Persistent world objects...
by Jason Davis · in Torque Game Engine · 04/16/2008 (3:56 am) · 5 replies
Greetings! I'm not sure if this is definitely the right place or not, but here goes...
I have been working on a mod for quite some time and have been experimenting with the multiplayer aspect of this. When I start the server side of Torque, I can query for LAN servers and find it from another machine. I can join the server fine, and see how that works well. I have a player and a vehicle in my level.
However, if I join the mission, drive the vehicle to another location, dismount the vehicle, and then exit the mission, it doesn't save the location of the vehicle if I re-join the mission. It loads the vehicle in the default starting location of the mission. I may be under a false presumption, but I thought the mission itself doesn't change unless you shut down the server module.
Looking for tips on keeping things persistent, whether or not players are logged into the mission.
Any tips?
I have been working on a mod for quite some time and have been experimenting with the multiplayer aspect of this. When I start the server side of Torque, I can query for LAN servers and find it from another machine. I can join the server fine, and see how that works well. I have a player and a vehicle in my level.
However, if I join the mission, drive the vehicle to another location, dismount the vehicle, and then exit the mission, it doesn't save the location of the vehicle if I re-join the mission. It loads the vehicle in the default starting location of the mission. I may be under a false presumption, but I thought the mission itself doesn't change unless you shut down the server module.
Looking for tips on keeping things persistent, whether or not players are logged into the mission.
Any tips?
#2
04/17/2008 (4:27 am)
That's a good idea... I'll check that out. Thanks Lee.
#3
04/17/2008 (9:23 am)
Have you checked the mission cycle time? The default behaviour is to reset every so often; you can turn this cycling off.
#4
Will keep you guys posted on this... :-)
04/17/2008 (6:20 pm)
I'm checking out the log on the server, and it looks like it has "ENDING MISSION" in console.log as soon as the client logs out. I'm going to take a look at the source in this area and see if I can disable this if no one is officially logged in at the time. That way I can end the mission only if I explicitly request to do so.Will keep you guys posted on this... :-)
#5
04/17/2008 (7:13 pm)
I'm pretty sure you've found the problem. Strange, I don't think it does this, stock.
Torque Owner Lee Latham
Default Studio Name