Problems creating a Mod
Hi if tryed to create a Mod but have Problems testing it. If tryed things discribed here: http://forums.unknownworlds.com/discussion/128106/how-to-make-a-mod-for-natural-selection-2 The Problem is I cant start my one Mod.
I have tryed with hotload. I created a Shortcut with thies extiction: " -game NSLite -hotload". But I end up in the main menu with text. And it won't work.
I tryed to Debug it via Decoda. Menu looks right. I set a Breakpoint a the start of every lua code. But it doesn' stop anywhere. And it won't work.
I tryed to publish it. And load it via steam workshop but my Publisher looks like that. See attachment. So thiswon't work too.
Please help me?
I have tryed with hotload. I created a Shortcut with thies extiction: " -game NSLite -hotload". But I end up in the main menu with text. And it won't work.
I tryed to Debug it via Decoda. Menu looks right. I set a Breakpoint a the start of every lua code. But it doesn' stop anywhere. And it won't work.
I tryed to publish it. And load it via steam workshop but my Publisher looks like that. See attachment. So thiswon't work too.
Please help me?
Comments
Regarding the publisher, try increasing your resolution. I think the publisher doesn't show all the buttons at lower resolutions.
What changes have I made. The file game_setup.xml looks like this:
I have created the following files:
lua\LiteClient.lua:
lua\LiteServer.lua:
lua\LitePredict.lua:
lua\LiteShared.lua:
And lua\Weapons\Marine\LitePistol.lua Here I tryed to override the funktion to see something.
For the resolution. I running 1600x900 and can't incrase it. I don't thing it is a Problem see the picture:
You're not loading LitePistol.lua, so that clearly won't work. What is your directory structure and what launch arguments are you using?
Your font/resolution is clearly the problem with the buttons getting cut off the bottom of the publisher. If you can't change your resolution try changing your font size: http://windows.microsoft.com/en-us/windows7/make-the-text-on-your-screen-larger-or-smaller
btw try to use the new hooking system in /lua/entry
I'm using the arguments But it din't seam to work. I had copied one of the original balance .lua -files in my mode folder and changed it a bit. Without adding it to any list. If I now start the game via Debugger it applies the Changes. But not with Hotload. And my one files are still not in use. Maybe the XML is broken...
@Tharos: Thanks for Print-function thies will make things a little bit easyer. What do you mean with new hooking system? Shoud I replace the XML with thies Entry? Or how is it used?
Andi's simple mod framework was recently included into the main game, so you can try to load your code using it: http://forums.unknownworlds.com/discussion/126678/simple-mod-framework-lua
It's described in SteamApps\common\Natural Selection 2\ns2\lua\entry\readme.txt
Create a file called ns2lite.entry in your mod folder (in /lua/entry)