Changing mission -- solved
by Temasek Polytechnic Tp8 · in Torque Game Engine · 05/23/2006 (8:31 pm) · 7 replies
Anyone know how to change mission while the game had been load
example my first map loaded, when the player complete the 1st map, it go to a trigger that will load the next map...
createServer("SinglePlayer", "starter.fps/data/missions/dungeon.mis");
%conn = new GameConnection(ServerConnection);
RootGroup.add(ServerConnection);
%conn.setConnectArgs($pref::Player::Name);
%conn.setJoinPassword($Client::Password);
%conn.connectLocal();
i try out this one.... but it will get an error
example my first map loaded, when the player complete the 1st map, it go to a trigger that will load the next map...
createServer("SinglePlayer", "starter.fps/data/missions/dungeon.mis");
%conn = new GameConnection(ServerConnection);
RootGroup.add(ServerConnection);
%conn.setConnectArgs($pref::Player::Name);
%conn.setJoinPassword($Client::Password);
%conn.connectLocal();
i try out this one.... but it will get an error
About the author
#2
*** Stage 1 load
*** Stage 2 load
Executing starter.fps/data/missions/dungeon.mis.
*** Mission loaded
Connect request from: IPX:54657874:75726573203D:8736
Connection established 1533
CADD: 1534 local
it stop here
it since not Sending mission load to client....
05/23/2006 (9:21 pm)
*** LOADING MISSION: starter.fps/data/missions/dungeon.mis*** Stage 1 load
*** Stage 2 load
Executing starter.fps/data/missions/dungeon.mis.
*** Mission loaded
Connect request from: IPX:54657874:75726573203D:8736
Connection established 1533
CADD: 1534 local
it stop here
it since not Sending mission load to client....
#3
loadMission("starter.fps/data/missions/test.mis");
ps : Am from SG myself, is Temasek teaching Torque as part of curriculum?
05/24/2006 (9:41 am)
This works for me.loadMission("starter.fps/data/missions/test.mis");
ps : Am from SG myself, is Temasek teaching Torque as part of curriculum?
#4
should i disconnect first before loadmission
loadMission does it work while the game in play and when player walk into a trigger....
05/24/2006 (6:05 pm)
Ron Hasson: not really it only for my projectshould i disconnect first before loadmission
loadMission does it work while the game in play and when player walk into a trigger....
#5
www.garagegames.com/mg/forums/result.thread.php?qt=33492
Make sure you read the whole thread for some fixes to the initial code. It's important, for instance, to call the initial switchMission function via schedule, rather than directly. ie.,:
schedule(0,0,switchMission,"mission.mis");
(...using the 'switchMission' function as written in that thread)
05/24/2006 (6:55 pm)
I use the method spelled out in this thread, and it works great:www.garagegames.com/mg/forums/result.thread.php?qt=33492
Make sure you read the whole thread for some fixes to the initial code. It's important, for instance, to call the initial switchMission function via schedule, rather than directly. ie.,:
schedule(0,0,switchMission,"mission.mis");
(...using the 'switchMission' function as written in that thread)
#6
05/24/2006 (7:44 pm)
Cool brian... it worked thank dude
#7
I scheduled a call to loadMission when a trigger is activated.
Anyway, good that you got it solved.
I'm using TGE to create a multi-player game for the past few months.
I'm interested to contact you, nothing serious in mind, just to meet/talk to a fellow Torque user in SG.
Pls email me ronhasson-at-hotmail.com if you're keen.
05/24/2006 (8:52 pm)
@TP8I scheduled a call to loadMission when a trigger is activated.
Anyway, good that you got it solved.
I'm using TGE to create a multi-player game for the past few months.
I'm interested to contact you, nothing serious in mind, just to meet/talk to a fellow Torque user in SG.
Pls email me ronhasson-at-hotmail.com if you're keen.
Torque 3D Owner Aun Taraseina