Can't change default mission in starter game
by Mark Alsip · in Torque Game Engine Advanced · 03/26/2009 (9:14 pm) · 3 replies
I'm a newbie, having a total blast developing missions using the TGEA mission/world starter template in PROJECTS/TEMPLATE. But I'm really struggling with changing the default mission that loads at startup. Basically, I just can't do it. The number of main.cs scripts throughout the project tree is bewildering. I assume that's where I'd be making an edit. And I can't quite follow from the console log which mission is getting loaded.
So my question, where would be the best place to look for a definitive answer to which .mis file is being invoked? Is it a config file issue rather than a main.cs script edit?
So my question, where would be the best place to look for a definitive answer to which .mis file is being invoked? Is it a config file issue rather than a main.cs script edit?
#2
Many thanks for the quick reply and I'm up and running now. I've been reading through a great Torque book lately and for some reason came away thinking I needed to make the change in one of the main.cs files. Your advice about the Stronghold example is good advice. I was holding off on that one until I got the basics down.
I've got to say I am really impressed with TGEA. It's working perfectly with all my dev tools (Photoshop CS4, Caligari GameSpace, Mojoworld Pro, and Bryce), and some nice low-poly military model collections. It took just 2 days to build a complete World War II city complete with Panzer and Tiger tanks prowling the streets -- it took almost a month to do the same 'back in the day".
OK, I'll shut up now and get back to polishing off this mission. Thanks again for the help.
03/26/2009 (10:23 pm)
Michael,Many thanks for the quick reply and I'm up and running now. I've been reading through a great Torque book lately and for some reason came away thinking I needed to make the change in one of the main.cs files. Your advice about the Stronghold example is good advice. I was holding off on that one until I got the basics down.
I've got to say I am really impressed with TGEA. It's working perfectly with all my dev tools (Photoshop CS4, Caligari GameSpace, Mojoworld Pro, and Bryce), and some nice low-poly military model collections. It took just 2 days to build a complete World War II city complete with Panzer and Tiger tanks prowling the streets -- it took almost a month to do the same 'back in the day".
OK, I'll shut up now and get back to polishing off this mission. Thanks again for the help.
#3
03/27/2009 (5:40 am)
I also recommend you get an IDE like Torsion or some script editor which allows you to search across files. Makes it much easier to track down where things are.
Associate Michael Hall
Distracted...
createServer( "SinglePlayer", expandFileName("~/data/missions/simple.mis") );"~/data/missions/simple.mis" is the filepath/name of the default mission that the Template game loads. Change it to point to yourMission.mis (with yourMission.mis being the name of your mission file) and you'll be good to go.But be aware that this is done a bit differently in the Stronghold example (the FPS starter) which allows you to pick from a list of missions.