Forum Archive. A read-only snapshot of the Warfare Incorporated forums (2003–2020), preserved for historical purposes.  ·  warfareincorporated.com
Warfare Incorporated Forum

How to Set Next Level?
Author Message
SoLan
Very Active User


Joined: 13 Jan 2004
Posts: 183
 Post Posted: Fri Feb 06, 2004 5:30 pm  Post subject: How to Set Next Level?

I am making a mission pack with three levels that follow each other. When the player finishes level 1, I want level 2 to be loaded. I have tried doing this with the "Set Next Level" trigger, but I can't get it right. The explanation to the trigger says that "the mission naming convention is "mission.lvl"." I have tried to use the name of my .ld (without the .ld) and I have tried to use the mission title .lvl, but none of these seem to work. What is my mission name - if it has any - and how do I set the mission name if I have to do that?
crakerz
Mega-Poster


Joined: 17 Sep 2003
Posts: 353
Location: California Bay Area
 Post Posted: Fri Feb 06, 2004 10:22 pm  

What is interesting is that you do not need to compile levels into one pdb to be able to call them from other levels. I called level S_03 (one of spiffcode's built-in ones) from one of my own levels.....

I'm wondering if the mission name is a persistant variable of some kind.
scottlu
WI Founder


Joined: 15 Aug 2003
Posts: 1773
 Post Posted: Fri Feb 06, 2004 10:51 pm  

Actually SoLan you've found a great bug. You can't do it with this version of M because the internal reference names of exported missions are auto-generated. I'll need to change that so you can reference a known mission. Good bug!
crakerz
Mega-Poster


Joined: 17 Sep 2003
Posts: 353
Location: California Bay Area
 Post Posted: Fri Feb 06, 2004 11:48 pm  

Way to go, SoLan! It looks like you've just recently joined (or started posting to) this forum, and you've already made a number of great suggestions and finds. Glad you are on the team!
SoLan
Very Active User


Joined: 13 Jan 2004
Posts: 183
 Post Posted: Mon Feb 09, 2004 12:41 pm  

Are the internal reference names auto-generated every time you export a mission pack, or is there a way to guess what the names will be? Or maybe a way to read from an exported mission what the name is? Linking the missions is all that remains before I can finish my three level mission pack. :?
SoLan
Very Active User


Joined: 13 Jan 2004
Posts: 183
 Post Posted: Tue Feb 10, 2004 2:37 am  

I am answering my own question. ;)

It seems like the internal reference names are auto-generated every time you export a mission pack. I have managed to read the level names from the exported packs, and exporting my levels in reverse order (three, then two, then one) I was able to get the Set Next Level references correct. this means, however, that I can not export all three levels into one mission pack. :(

Auto-generated names also means that levels that are numbered, do not appear in a correct sequence in the mission list in Warfare Inc, as it seems levels are sorted by their internal reference names.

For a more elegant solution, I guess I will have to wait for the next release of the editor and hope that the problem is solved there. :roll:
Wizard
Established Forum User


Joined: 30 Nov 2003
Posts: 68
Location: Bristol, England
 Post Posted: Tue Feb 10, 2004 3:23 am  

...talking of which, when is the next version coming out.?
scottlu
WI Founder


Joined: 15 Aug 2003
Posts: 1773
 Post Posted: Tue Feb 10, 2004 8:46 am  

I'm at the PalmSource conference this week. M has all my attention right now, however I don't have a date other than "reasonably soon"!