Call a different world file for CTF mode [Solved]
Posted: Sat Dec 20, 2008 4:17 pm
I'm trying to make it so that my CTF mode calls a different world file than other modes (ex, conquest uses the KCH world file, but ctf uses the KC3 world file, all in the same mod map directory).
What I've done is set up a world2 folder for my map, saved the world file as KC3, when my map's directory is officially "KCH". Then I went into KC3.req (in the world2 folder), changed all the KCH refrences to KC3. Finally, I changed the line in the KCHc_ctf.lua to say:
ReadDataFile("dc:KCH\\KC3.lvl", "KC3_ctf")
When I tested, there were no cps to spawn on, which likely means the world file didn't load. Then I went into mission reqs and changed KCHc_ctf refrences to KC3c_ctf refrences, went into addme.lua and changed the downloadable content refrence to KC3c_ctf, and finally changed the script name itself from KCHc_ctf to KC3c_ctf. Guess what error I got then? Could not open MISSION\KCHc_ctf.lvl. If I can just find what is still refrencing KCHc_ctf.lvl and change it, I might be in business. Or perhaps I'm on entirely the wrong track. Either way, help is appriciated. Thanks!
What I've done is set up a world2 folder for my map, saved the world file as KC3, when my map's directory is officially "KCH". Then I went into KC3.req (in the world2 folder), changed all the KCH refrences to KC3. Finally, I changed the line in the KCHc_ctf.lua to say:
ReadDataFile("dc:KCH\\KC3.lvl", "KC3_ctf")
When I tested, there were no cps to spawn on, which likely means the world file didn't load. Then I went into mission reqs and changed KCHc_ctf refrences to KC3c_ctf refrences, went into addme.lua and changed the downloadable content refrence to KC3c_ctf, and finally changed the script name itself from KCHc_ctf to KC3c_ctf. Guess what error I got then? Could not open MISSION\KCHc_ctf.lvl. If I can just find what is still refrencing KCHc_ctf.lvl and change it, I might be in business. Or perhaps I'm on entirely the wrong track. Either way, help is appriciated. Thanks!