Home   Help Search Login Register  

Author Topic: Domove not working in MP ?!?  (Read 3733 times)

0 Members and 2 Guests are viewing this topic.

PRiME

  • Guest
Domove not working in MP ?!?
« on: 12 Feb 2003, 17:00:45 »
Basicly its just not working, does not matter how many different ways I try it..

Here is the script im trying it on

----------------

?!(local Server): Goto "Next"
East5Truck = "Ural" createVehicle getPos StartVclEast5
#Next
Publicvariable "East5Truck"

"SoldierESaboteurBizon" createUnit [getMarkerPos "East5", groupE5, "East5Man1 = this", 0.9, "CAPTAIN"]
East5Man1 setBehaviour "AWARE"
East5Man1 moveindriver East5Truck

"SoldierESaboteurBizon" createUnit [getMarkerPos "East5", groupE5, "East5Man2 = this", 0.9, "Lieutenant"]
East5Man2 moveinCargo East5Truck
East5Man2 setBehaviour "AWARE"

"SoldierESaboteurBizon" createUnit [getMarkerPos "East5", groupE5, "East5Man3 = this", 0.9, "Corporal"]
East5Man3 moveinCargo East5Truck
East5Man3 setBehaviour "AWARE"

"SoldierESaboteurBizon" createUnit [getMarkerPos "East5", groupE5, "East5Man4 = this", 0.9, "Private"]
East5Man4 moveinCargo East5Truck
East5Man4 setBehaviour "AWARE"

"SoldierESaboteurBizon" createUnit [getMarkerPos "East5", groupE5, "East5Man5 = this", 0.9, "Private"]
East5Man5 moveinCargo East5Truck
East5Man5 setBehaviour "AWARE"

"SoldierESaboteurBizon" createUnit [getMarkerPos "East5", groupE5, "East5Man6 = this", 0.9, "Private"]
East5Man6 moveinCargo East5Truck
East5Man6 setBehaviour "AWARE"

"SoldierESaboteurBizon" createUnit [getMarkerPos "East5", groupE5, "East5Man7 = this", 0.9, "Private"]
East5Man7 moveinCargo East5Truck
East5Man7 setBehaviour "AWARE"

"SoldierESaboteurBizon" createUnit [getMarkerPos "East5", groupE5, "East5Man8 = this", 0.9, "Private"]
East5Man8 moveinCargo East5Truck
East5Man8 setBehaviour "AWARE"

"SoldierESaboteurBizon" createUnit [getMarkerPos "East5", groupE5, "East5Man9 = this", 0.9, "Private"]
East5Man9 moveinCargo East5Truck
East5Man9 setBehaviour "AWARE"

"SoldierESaboteurBizon" createUnit [getMarkerPos "East5", groupE5, "East5Man10 = this", 0.9, "Private"]
East5Man10 moveinCargo East5Truck
East5Man10 setBehaviour "AWARE"

"SoldierESaboteurBizon" createUnit [getMarkerPos "East5", groupE5, "East5Man11 = this", 0.9, "Private"]
East5Man11 moveinCargo East5Truck
East5Man11 setBehaviour "AWARE"

"SoldierESaboteurBizon" createUnit [getMarkerPos "East5", groupE5, "East5Man12 = this", 0.9, "Private"]
East5Man12 moveinCargo East5Truck
East5Man12 setBehaviour "AWARE"

leader groupE5 domove getpos East5Move

exit

--------------


Basicly I managed to get everything else sorted. But domove will not work on DEDICATED SEVERS.  Everything else is fine I think.

Is there some nasty Domove bug that I dunno about?


Thanks if anyone can help.

PRiME

  • Guest
Re:Domove not working in MP ?!?
« Reply #1 on: 12 Feb 2003, 23:51:26 »
Hmmm guess this stuff is above most peoples heads?


Just Wish there was another way to make a unit move. Domove I suspect is bugged when trying to get created units to move on Dedicated servers.?.

Offline Sui

  • Former Staff
  • ****
    • OFPEC
Re:Domove not working in MP ?!?
« Reply #2 on: 13 Feb 2003, 00:46:26 »
Heya Prime...

I think you want the move command instead of domove. Domove will work, but it will only move the single unit you tell to move, rather than the whole group.

For that, you want to use the move command...

PRiME

  • Guest
Re:Domove not working in MP ?!?
« Reply #3 on: 13 Feb 2003, 01:12:58 »
I couldn't get the move command to work thought, Couldn't find reference to it in the Command Ref docs..

How would I adapt it to the current script. Also I do a dofollow on the units once the ural gets to the waypoint, the problem is the first unit don't even move at all. They are like DEAD, don't do anything at all.

I will give this MOVE command a go if ya can help me with how to word it rite in my script.

Thanks for the reply :)

Offline Sui

  • Former Staff
  • ****
    • OFPEC
Re:Domove not working in MP ?!?
« Reply #4 on: 13 Feb 2003, 01:19:50 »
Just change the domove to move.

What is East5Move? A Game Logic unit?

PRiME

  • Guest
Re:Domove not working in MP ?!?
« Reply #5 on: 13 Feb 2003, 01:51:45 »
It ok I found it,

Tho no go.. I tried CommandMove I tried Domove

I tried everything I can think of. Cna't believe no1 else has kicked up a storm about this.

I think this is some sort of massive bug in OFP.. Can;t get the created units to move no matter what.. they refuse to..

At a loss.. .


Offline Sui

  • Former Staff
  • ****
    • OFPEC
Re:Domove not working in MP ?!?
« Reply #6 on: 13 Feb 2003, 05:07:53 »
Possibly no one has kicked up a storm about it because it's not a bug in OFP at all, but something you're not quite doing right? ;)

Is East5Move a Game Logic, or is it a marker?

How are you spawning in this group... is there an already existing unit out on an island somewhere?

If you give us some details we can probably help you out, but if you decide "it's a bug" and "it can't be fixed" then you're probably not going to get anything done about it ;)

PRiME

  • Guest
Re:Domove not working in MP ?!?
« Reply #7 on: 13 Feb 2003, 06:00:13 »
East5Move is a GL and I also have a Marker in as well for testing purposes..


Like I said it works in Editor and in Private server.. THE ONLY issue I got is getting it to work correctly in the Dedicated server enviroment..

Obvious there is a existing unit which has the group set. It gets deleted on map load so its a dummy group I made.

Basicly RTS2 Team can do all this... I can't seem to wrap my head around it.. Even a pro has looked at it and he claims it all works for him but not for me.. go figure.. :(

Guess I will just wait tell someone comes up with something.. Already been waiting too long.. 6months or so :/

PRiME

  • Guest
Re:Domove not working in MP ?!?
« Reply #8 on: 13 Feb 2003, 06:04:14 »
Heres the mission. Basicly try testing it in Ded mode.. ALso I have changed things around a fair bit in a attempt to get it working.. feel free to mod it at will..

The SOviet unit in MP is the test guy. Basicly I been timing tiggers to spawn the URal and observe the effect.. U probly need to move "[]exec "JetWave4.sqs";" from the init and place it in a trigger.. or turn on the one I already have ingame..


Thanks if anyone can help. I don't think anyone can as this is very tricky it seems. Only people I seen do it correctly was the RTS2 Team.

Offline Chris Death

  • Former Staff
  • ****
  • Finally Death's gonna get ya
    • OFPEC
Re:Domove not working in MP ?!?
« Reply #9 on: 13 Feb 2003, 16:59:53 »
Quote
?!(local Server): Goto "Next"
East5Truck = "Ural" createVehicle getPos StartVclEast5
#Next
Publicvariable "East5Truck"

Correct me if i'm wrong, but this use of PublicVariable doesn't
look right to me.

You execute PublicVariable on the server AND on it's clients,
while it's only required (and recommended) to run on the
server.

I don't think, this will solve your problem (just had to say it).


P.S: as i have a test DS (running every now and then), i'll
give your mission a try on it, to see if i can help.

:edit - ah yeah forgot to add:  when i've got some time left
Will be during this weekend or so.

~S~ CD
« Last Edit: 13 Feb 2003, 17:01:51 by Chris Death »
Dont argue with idiots....they will bring you down to their level and beat you there with experience.

How to use Waypoint type Scripted

PRiME

  • Guest
Re:Domove not working in MP ?!?
« Reply #10 on: 14 Feb 2003, 01:43:39 »
Thankyou Chris, also I have tried with and without public variables. I have tried many different types of code. The one above is just how I have left it atm and I know some may not seem right. If you remove those parts and then look  at it in DServer you will see the issue clearly.

Even when the units are placed in the truck correctly they refuse to move in any which way. :(

Offline Sui

  • Former Staff
  • ****
    • OFPEC
Re:Domove not working in MP ?!?
« Reply #11 on: 14 Feb 2003, 06:25:16 »
hmm... well buggered if I know what's wrong with it ???

I suggest going back to basics, and trying to eliminate the possibilities one at a time...

eg. Try to get one guy (any guy) to move using their name and the move command... then their name and the domove command... etc.

Just eliminate possibilities one by one until you narrow it down...

Oh, and CommandMove is exactly the same as DoMove, except you'll hear the:

blah... move to ... blah blah

If the player is in the group. DoMove is the silent version of commandmove ;)

PRiME

  • Guest
Re:Domove not working in MP ?!?
« Reply #12 on: 14 Feb 2003, 10:27:22 »
Nar I duno, I think there is something special most advanced scripters do to get it working but guess non of them have the need for forums any more.. ell well maybe another time I will get around to sorting it out.

I tried many things and it still didn't work.. Not much more I can do.

Pope_Zog

  • Guest
Re:Domove not working in MP ?!?
« Reply #13 on: 14 Feb 2003, 14:17:02 »
Lighten up PRiME :) it's not the end of the world ;)

Your problem is the group groupE5. What you'll have to do is create an East guy somewhere safe on your island (where the players won't ever see him), give him the name DummyE5 and in his init field put groupE5 = group this. Now the createUnit command will recognize the group. You'll then remove this dummy guy from the group when you've created the first unit.

What you'll also need to do is add a short pause between the creation of each unit. In my own experience, the game will create two or three units then forget about the rest.

Try this modified version of your script and see that it works now:
Code: [Select]
?!(local Server): Goto "Next"
East5Truck = "Ural" createVehicle getPos StartVclEast5
#Next
Publicvariable "East5Truck"

"SoldierESaboteurBizon" createUnit [getMarkerPos "East5", groupE5, "East5Man1 = this", 0.9, "CAPTAIN"]
East5Man1 setBehaviour "AWARE"
East5Man1 moveindriver East5Truck
[DummyE5] join grpNull

~0.02

"SoldierESaboteurBizon" createUnit [getMarkerPos "East5", groupE5, "East5Man2 = this", 0.9, "Lieutenant"]
East5Man2 moveinCargo East5Truck
East5Man2 setBehaviour "AWARE"

~0.02

"SoldierESaboteurBizon" createUnit [getMarkerPos "East5", groupE5, "East5Man3 = this", 0.9, "Corporal"]
East5Man3 moveinCargo East5Truck
East5Man3 setBehaviour "AWARE"

~0.02

"SoldierESaboteurBizon" createUnit [getMarkerPos "East5", groupE5, "East5Man4 = this", 0.9, "Private"]
East5Man4 moveinCargo East5Truck
East5Man4 setBehaviour "AWARE"

~0.02

"SoldierESaboteurBizon" createUnit [getMarkerPos "East5", groupE5, "East5Man5 = this", 0.9, "Private"]
East5Man5 moveinCargo East5Truck
East5Man5 setBehaviour "AWARE"

~0.02

"SoldierESaboteurBizon" createUnit [getMarkerPos "East5", groupE5, "East5Man6 = this", 0.9, "Private"]
East5Man6 moveinCargo East5Truck
East5Man6 setBehaviour "AWARE"

~0.02

"SoldierESaboteurBizon" createUnit [getMarkerPos "East5", groupE5, "East5Man7 = this", 0.9, "Private"]
East5Man7 moveinCargo East5Truck
East5Man7 setBehaviour "AWARE"

~0.02

"SoldierESaboteurBizon" createUnit [getMarkerPos "East5", groupE5, "East5Man8 = this", 0.9, "Private"]
East5Man8 moveinCargo East5Truck
East5Man8 setBehaviour "AWARE"

~0.02

"SoldierESaboteurBizon" createUnit [getMarkerPos "East5", groupE5, "East5Man9 = this", 0.9, "Private"]
East5Man9 moveinCargo East5Truck
East5Man9 setBehaviour "AWARE"

~0.02

"SoldierESaboteurBizon" createUnit [getMarkerPos "East5", groupE5, "East5Man10 = this", 0.9, "Private"]
East5Man10 moveinCargo East5Truck
East5Man10 setBehaviour "AWARE"

~0.02

"SoldierESaboteurBizon" createUnit [getMarkerPos "East5", groupE5, "East5Man11 = this", 0.9, "Private"]
East5Man11 moveinCargo East5Truck
East5Man11 setBehaviour "AWARE"

~0.02

"SoldierESaboteurBizon" createUnit [getMarkerPos "East5", groupE5, "East5Man12 = this", 0.9, "Private"]
East5Man12 moveinCargo East5Truck
East5Man12 setBehaviour "AWARE"

~0.02

leader groupE5 domove getPos East5Move

exit

Pope Zog

PRiME

  • Guest
Re:Domove not working in MP ?!?
« Reply #14 on: 14 Feb 2003, 14:53:31 »
So the reason the units don't move or respond well is because I delete the groupE5 dummy guy on mission start ?

Hmm could explain some things.

So if I delete the dummy guy after I have made the first unit to add to his group it should then all work good? hmm sounds promissing. I will try it out in da morning.


If it works, thankyou very much :).. I will reply in the morning with results.


EDIT: So I also gotta make sure the dummy guy joins grpNull before deleting him? Sounds resonable.
« Last Edit: 14 Feb 2003, 14:56:19 by PRiME »