View Full Version : Objects not showing up on server?
Wondering if anyone has an answer for me, he goes.
I have placed a fortress and some sand bags on a house roof to make a fortified looking house.
But the objects aren't showing on the server?
everything works fine locally and to test why they're not showing up i've set up a trigger to move them off the ground when i radio alpha:
fort1 setpos [getPos fort1 select 0, getPos fort1 select 1, 3.8];fence3 setpos [getPos fence3 select 0, getPos fence3 select 1, 3.5];fence2 setpos [getPos fence2 select 0, getPos fence2 select 1, 3.5];fence1 setpos [getPos fence1 select 0, getPos fence1 select 1, 3.5]
and they arn't showing at all,anyone ideas?
setPos does not work in MP or it (looks like it) has only local effect.
Mar 8 2007, 13:58
try with :
this setPosASL [ getPosASL this select 0, getPosASL this select 1, (getPosASL this select 2) + 2.5];
L etranger thanks but it didn't work either http://forums.bistudio.com/oldsmileys/sad_o.gif
To add to the problem i have a Dshkm on the roof as well BUT it shows up and thats using:
mg2 setpos [getPos mg2 select 0, getPos mg2 select 1, 3.4]
SO whats not showing up is a Fortress and 3 fences.. http://forums.bistudio.com/oldsmileys/sad_o.gif
[Edit]also i have other fences on the ground so i know theres no problems with missing addons or somthing like that.
Is there away to place the Fortress and fences' on the ground somewhere and then move them to the postion with say a trigger. Ie everything set up a mile off then i can watch and move the iteams from where ever on to the roof?
I would need to know the pos of where i want the iteams to go(location on the roof) how would i find this out?
Thanks for any help
[2nd Edit]I can now say after testing that Fortress' and fences' do not react to "setpos".
I had tested with 3 Fortress' one under the ground,one on ground level and one floating and a trigger to move them a set hight above ground level...
Well they all Started on ground level and when i pressed the trigger nothing happened... All stayed where they were. http://forums.bistudio.com/oldsmileys/mad_o.gif
Mar 8 2007, 16:48
I've found that anything static, i.e. buildings, fortresses and such apparently cannot be setPos'd in MP. The only thing you can do is create them and setDir on them. But they can only be moved locally after that.
For example, Client A uses createVehicle to make a fortress. He can setPos it anywhere after that. But none of the other clients can, nor will they see if it moves. They'll only see it in the original starting point. They can, however setDir it.
Also, any buildings that are created won't collapse like the pre-placed island buildings when destroyed.
Since I'm working on RTS4, and that requires that a base be built, this has been an issue. In 1.02, all clients could setPos buildings, but the new position was not broadcast across the network, so it was local. The buildings would also collapse when destroyed. As of 1.05, this is not the case.
I PM'd Suma, and he told me it was to reduce information sent across the network. I agree that it's a good thing--no sense in static object information being sent across the network, or it'd lag.
So, I don't know what to do in your case. Perhaps we'll need to make an addon pack of static objects which are not classified as static objects so they can be setPos'd. Or perhaps they'll adjust it in an upcoming patch.
Thanks for the info...
Well lets hope they change it for 1.06
Powered by vBulletin® Version 4.2.2 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.