Home   Help Search Login Register  

Author Topic: ArmA Football Mission  (Read 2607 times)

0 Members and 2 Guests are viewing this topic.

Offline ArMaTeC

  • Members
  • *
  • City Life 2
    • armatechsquad.com
ArmA Football Mission
« on: 18 Jul 2007, 03:43:10 »
Hi all im creating an MP football addon

Please note this is the mission only not addon
Code works in SP and 95% mp (bug reported below)

Small video showing ball in action

http://www.youtube.com/v/LNoX-vdQGsY

*****
*BUG*
*****
Current Error in mission scirpts only in MP though take a look maybe soem one has a fix for this

http://www.youtube.com/watch?v=e9lltkmevGg
Removed mission as its getting finalized
« Last Edit: 25 Jul 2007, 04:50:55 by ArMaTeC »

Offline FreeBird

  • Members
  • *
Re: ArmA Football Mission
« Reply #1 on: 21 Jul 2007, 00:15:26 »
Let your "ball.sqf" run on all clients (from init.sqf) and see what happens.(Cant test myself)

Also "player" command on a serverscript is not working on a dedi.(It does work when u host yourself,then u are server and client)

Call [This,Birth,School,Work,Death]execVM "Storyofmylife.sqf"
(_this select 1)ObjStatus "DONE";(_this select 2)ObjStatus "DONE";(_this select 3)ObjStatus "ACTIVE";(_this select 4)ObjStatus "HIDDEN";
if not((_this select 0) IsKindOf "Human")ExitWith{PlayMusic"Goodbye Cruel World"}

Offline ArMaTeC

  • Members
  • *
  • City Life 2
    • armatechsquad.com
Re: ArmA Football Mission
« Reply #2 on: 24 Jul 2007, 16:49:53 »
Updated top post maybe soem one knows of a fix for this i belive its todo with setVelocity but maybe just an error file to look at is kick.sqf

Offline Mr.Peanut

  • Former Staff
  • ****
  • urp!
Re: ArmA Football Mission
« Reply #3 on: 24 Jul 2007, 17:19:53 »
SetVelocity used to be (and I presume still is) a local command.  How it behaves on the ball will depend on which machine the ball is local to(the server?).  If you call setVelocity on a non-local vehicle, the machine that calls the command will see the vehicle respond to the command, but only until the next network synch, at which point it will return to whatever position it has on every other machine.  I presume this is still true since 1.08.

Is the ball a vehicle class object or a static object. Static objects never used to respond to setVelocity, pre 1.08.
urp!

Offline ArMaTeC

  • Members
  • *
  • City Life 2
    • armatechsquad.com
Re: ArmA Football Mission
« Reply #4 on: 24 Jul 2007, 17:35:45 »
Would running the code on the server only fix this issue?

i used class type thing for the ball it must be the network synch problem as thats the only reason it could be is there any way to work around this?
« Last Edit: 24 Jul 2007, 17:52:45 by ArMaTeC »

Offline ArMaTeC

  • Members
  • *
  • City Life 2
    • armatechsquad.com
Re: ArmA Football Mission
« Reply #5 on: 25 Jul 2007, 04:50:28 »
ok bug fixed by sending data from client to server