Datablock on client
by Graham Evans · in Torque Game Engine · 12/08/2006 (9:42 am) · 2 replies
Greetings all :)
I think I am going insane, but theres nothing new there...
I realised (last night) that I don't think all my datablocks are actually being transmitted to the client on startup of the game.
I have a number of items which never actually exist in the world as discreet objects but are used and given to players as inventory/tradeskill items etc.
Now.. while my coding works great in single player mode with combined server/client the same cannot be said when running a client connecting to a dedicated server.
Now.. I have got round this by transmitting the information I need from the datablocks in the database queries, but I hate adding stuff to database queries as thats a quick road to seeing the lag icon at a later date.
Is there anyway to force the client to load all datablocks at the start of the game, or even to be able to flag those that need to be sent?
Am I getting into ghosting here?
Sorry for the newbieish question, but hey.. sometimes you just have to ask :)
Regards
Graham
I think I am going insane, but theres nothing new there...
I realised (last night) that I don't think all my datablocks are actually being transmitted to the client on startup of the game.
I have a number of items which never actually exist in the world as discreet objects but are used and given to players as inventory/tradeskill items etc.
Now.. while my coding works great in single player mode with combined server/client the same cannot be said when running a client connecting to a dedicated server.
Now.. I have got round this by transmitting the information I need from the datablocks in the database queries, but I hate adding stuff to database queries as thats a quick road to seeing the lag icon at a later date.
Is there anyway to force the client to load all datablocks at the start of the game, or even to be able to flag those that need to be sent?
Am I getting into ghosting here?
Sorry for the newbieish question, but hey.. sometimes you just have to ask :)
Regards
Graham
#2
I guess I need to find a way to build a list then that will "fake" add them to the server to get these items included as actually adding them all to the mission would be unrealistic.
Thanks again. I have a direction to start thinking about now :)
Regards
Graham
12/08/2006 (11:12 am)
Ahhhhh. Okay thanks Stefan.I guess I need to find a way to build a list then that will "fake" add them to the server to get these items included as actually adding them all to the mission would be unrealistic.
Thanks again. I have a direction to start thinking about now :)
Regards
Graham
Torque Owner Stefan Lundmark
All datablocks that are being used on the server will be put into a NetClass list which is then walked and sent to the client. If you do not use the datablock on the server then it will not be sent, which probably is what is happening to you.