My name is Zach, although I go by Legitosity online. I'm currently trying to create a (simple?) mod for my server! I've never done any swbf2 modding, but I know the basics of coding. I work with HTML5/CSS and Javascript, so even though I don't know Lua I can follow along. I'm trying to setup my server as a TDM server, and we're using the CTF maps. I'd also like to learn how to do this for the future, so by all means if you're feeling up to it go for modding it, but teach me!
I want to --
1.) Delete the flag (and if that's easy perhaps the score's at the top and the flag spawn location (the little glowy circle thing))
2.) Delete the vehicles
3.) Get rid of the spawn timer (Instant Spawn instead of waiting up to 15 seconds)
With the help of SWBFGamers I've been able to mess around with the coding alittle bit on my own, but I got directed over here because you concentrate on SWBF2. I downloaded a Mission.Lvl editor from their site and I've slowly been working around that.
(Here's the DL link for the editor http://www.mediafire.com/download/9dirn ... _swbfii.7z)
Let's use Mygeeto as an example map (there is CTF and Vehicles on this map so I can learn how to edit both out)
In the /scripts/MYG I opened up "myg1g_ctf.lua" in NotePad++ and then proceed to edit what I could find.
I found the spawn time
"SetSpawnDelay(10.0,0.25)" and changed it to "SetSpawnDelay(1.0,0.25)"
I also commented out all of the "flag capture objective stuff"
and I commented out the vehicles in ReadDataFiles
In my head, the logic is that I deleted the set position for the flags so they won't be places, I also deleted the ReadDataFile so the vehicles won't be there either aaand I lowered the spawn time to one so.
After than I go back to the root of the folder and hit munge, it munges a new mission.lvl
Then to test my mod, I run a new dedicated server off of my own computer (so I don't have to mess around with out actual server just yet) but when I hit start I get a FATAL message "Could not open MISSION\myg1g_ctf.lvl"
I'm obviously doing something wrong,
Thanks for helping in advance ~
- Legit


