Can't get a simple mod to work
aeroripper
Join Date: 2005-02-25 Member: 42471NS1 Playtester, Forum Moderators, Constellation
in Modding
I'm am trying to replace "spinner.dds" with a custom one. I followed these instructions:
http://unknownworlds.com/ns2/time-to-make-the-mods/
I made a new folder "ui" under my source folder. My directory structure looks like this:
ui/loading/spinner.dds
In my ModShared.lua it looks like this:
Script.Load("ui/loading/spinner.dds")
It shoots out an error in console that says file not found. What am I doing wrong? The ubershotgun mod works fine, although I'm not loading it currently.
http://unknownworlds.com/ns2/time-to-make-the-mods/
I made a new folder "ui" under my source folder. My directory structure looks like this:
ui/loading/spinner.dds
In my ModShared.lua it looks like this:
Script.Load("ui/loading/spinner.dds")
It shoots out an error in console that says file not found. What am I doing wrong? The ubershotgun mod works fine, although I'm not loading it currently.
Comments
You're first problem is you're trying to load a DDS (Direct Draw Surface) file as a Lua script. That's impossible for a number of reasons.
The second problem you have, is you're trying to treat your minor graphics change like a code-level change mod. No code needs to be changed for what you're doing.
All you need to do is drop your spinner.dds file in the appropriate folder (match what NS2 uses), and you're done.
I already did this, but the problem persists:
^ This is the normal directory structure in the /Natural Selection 2/ns2/ui/loading/spinner.dds folder.
Other notes:
- Builder is open, and updating properly
- Clicking 'launch game' from within launchpad. It shows my mod title at the top of the menu bar.
- Mod is unpublished currently, but it should still work.
Builder will not build files already in the right file type. You don't even need a .material file unless you change the name of the files so they differ from the normal files.