WASTED
WASTED > Mod Releases > Topic Details
Easy weapon modding template v4.2 (with associated guide)
Update: Now has an associated guide.
http://steamcommunity.com/sharedfiles/filedetails/?id=940743021

edit: It's 100% ok to use this in any mods you release! Go hog wild!


This is an easy to use template for making a weapon, where by default it follows an existing weapon's settings, but all of the available settings you can change are still visible, explained, and still changable.
Mostly made from the default mod file example_weapon_from_scratch.wmd, although It's been heavily edited from the original to work in a simplier, more thoroughly explained way (as best as I understand the mechanics).

To use: make a copy of Easy weapon template.wmd, put it in a folder inside of your wasted Mods folder, and then go through it and follow the directions to make whatever kind of weapon you want.

Included files:
The weapon template itself
More Info.txt, which is a database containing plenty of useful information.

I would also recommend using Notepad++ and the lua language extension because it makes everything a lot more readable. If I messed something up, let me know.


https://drive.google.com/open?id=0BztZxG-dBCGnbmNOZWpvYU5iZG8

Changelog:
v4.1: Removed 1logger, it's been mostly replaced by the new and improved More Info.txt
Fixed miscellaneous grammar errors
Changed some settings that were uneccesarily complicated.
Removed remaining references to 1logger.

v4.2: Some big changes in "More Info.txt", although parts of it are meant for equipment.
More grammar and description changes.
Last edited by king bore haha; Jul 22 @ 2:08pm
< >
Showing 1-8 of 8 comments
Lots of changes in v4. Edited everything again to make it more readable, fixed a couple melee weapon bugs, and also enabled changing the buff granted while aiming. Also some other misc changes: like providing the zoom_level buff for a way of changing how much the weapon zooms.

Another useful addition is More Info.txt, which is a database of known item tags, buff names, context tags, and weapon object names.
Last edited by king bore haha; Jun 12 @ 9:31pm
Zylo Jun 16 @ 8:40pm 
Just wanted to say thanks for the template, really makes moding weapons easier.
Zylo Jun 21 @ 11:39pm 
How does the logger work? I see that it runs in the console, but it never prints anything other than "logger started" "logger done" I set all the inner bools to true.
I don't know why that would happen. If enablelogger = true, and any of the log_infos = true then it should just work. Make sure the file is saved, and make sure the true/false are in lowercase are all I can think of.

There is also a glitch where the console can mess up and not print anything at all of it gets too full, so having them all set to true could also be causing a problem. But if it's printing "Logger is done" then I don't think that is it.
Zylo Jun 22 @ 11:10am 
Logger is enabled
Logger is done

I turned off all but one of the bools, but still this is all I get. ^
everything is lowercase.

I just place the file in my mods folder right?

EDIT: I think I fixed the above issue, but now it complains that it cant acesss base item from this line
Log("contextTags: " .. item.contextTags)

It worked once I commented out that line.
Last edited by Zylo; Jun 22 @ 11:31am
Originally posted by Zylo:
Logger is enabled
Logger is done

I turned off all but one of the bools, but still this is all I get. ^
everything is lowercase.

I just place the file in my mods folder right?

EDIT: I think I fixed the above issue, but now it complains that it cant acesss base item from this line
Log("contextTags: " .. item.contextTags)

It worked once I commented out that line.

Oh ok items don't have contextTags so that makes sense. I must have put it in there and not thought about it. That's actually an old version of the logger, and the new version is a huge mess so I didn't update it in the template.
Updated the template again, also updated more info.txt. It's up to the current version I've been using.

More info will be outdated again once I finish recording information for equipment and consumables, and I think I'll include everything in the same file at that point.
Last edited by king bore haha; Jul 6 @ 2:40pm
Quick update, mostly regarding "More Info.txt" with some couple of (mostly inconsequential) changes in the template itself.
< >
Showing 1-8 of 8 comments
Per page: 15 30 50

WASTED > Mod Releases > Topic Details