Help with adding a new weapon
Rooky47
kansas Join Date: 2013-11-10 Member: 189256Members, Reinforced - Silver, Reinforced - Shadow
in Modding
Gun class: http://puu.sh/6fq3q.lua (Modified shotgun)
TechTreeConstants: http://puu.sh/6fq4f.lua
TechTreeButtons: http://puu.sh/6fq5K.lua
TechData: http://puu.sh/6fq6C.lua
Armory: http://puu.sh/6fq6Y.lua
Not sure what is wrong or if i'm missing a class to edit?
TechTreeConstants: http://puu.sh/6fq4f.lua
TechTreeButtons: http://puu.sh/6fq5K.lua
TechData: http://puu.sh/6fq6C.lua
Armory: http://puu.sh/6fq6Y.lua
Not sure what is wrong or if i'm missing a class to edit?
Comments
Not sure I look at everything and it should be working I assume I'm missing a file to edit everything in console goes by so fast I can't read it XD
Also check your log by going to %appdata%/roaming/Nautral Selection 2/log.txt
I run it through the launch pad I have know idea what is wrong because console spins by to fast I'll test some more and get back to you
What is the problem you are having?
Game does not load up at all I get black screen
%appdata%\Natural Selection 2
look for the file called log.txt
Read that and post the errors here, Then we can have a look.
http://puu.sh/6lkzp.txt
[Server] Script Error #1: lua/TechData.lua:304: attempt to index global 'Test' (a nil value)
This says there is a problem with Test somewhere. It is not registered in the game. Is it in TechTreeConstants? Is it spelled correctly? I will also have a look and see If I can identify it in your code, but you should try and solve it yourself at the same time...
OK, I have noticed that under [kTechDataDisplayName] = "Test", Try Changing it to "TEST", As it may be case sensitive, the same with kTechID.DropTest make sure the "Test" is changed to "TEST", and in kTechID.TechTest as well.
Try that and see how you go. I am confused by your error log though, as it appears to be saying line 304 is the problem, but all the lead up code shows power_point code, so I am wondering if you have accidently changed something to do with power_points at the same time.
Edit - Yes here is a power point error as well:
Error: lua/PowerPoint.lua:197: attempt to call method 'SetModel' (a nil value)
[Server] Script Error #2: lua/PowerPoint.lua:197: attempt to call method 'SetModel' (a nil value)
In fact looking through the errors, the function SetModel is failing on all server Map entities it is loading. So investigate that these entities can see the SetModel() function