Jump to content
Sign in to follow this  
johny305

Arma 2 oa Life mission help

Recommended Posts

I am currently working on my life mission and have a few issues with it one of them is when trying to rob a gas station and i have the mission running on my computer it works perfectly but when i put the mission on the server the gas station robbing stops working and so does some other stuff any idea what im doing wrong ?

Share this post


Link to post
Share on other sites

You can push Your thread every day for the next few Years.

As long as You don't provide any usefull information, nobody will be able to help You.

Check the Logfiles (*.rpt) of both client and server for any errors and try to fix them.

Share this post


Link to post
Share on other sites

You also could have locality issues, for instance referencing "player" doesn't play nice on a dedicated server since there is no player.

But KiloSwiss is correct, without useful information all anyone can do is stab in the dark and most people won't bother with that.

Share this post


Link to post
Share on other sites

There is really no errors in the RPT file just when the mission is on the server it doesnt execute the scripts in a loop but when mission is ran client side it all works

---------- Post added at 05:40 ---------- Previous post was at 05:35 ----------

This is how i have the gas robbing exec5d1fp2 but the players do not get the action to rob the gas station unless mission is ran server side if i run fixgasrob.sqf on the debug console and execute it local it gas robbing works only for my character if execute it on server still only works for me

http://prntscr.com/5d1fp2

---------- Post added at 05:41 ---------- Previous post was at 05:40 ----------

heres the script that im running that when executed on debug menu gives only my character the option http://prntscr.com/5d1g3t

Share this post


Link to post
Share on other sites

Please upload all the Files (including the ones in which You exec/call the scripts/functions), so we can have a closer look.

Greez KiloSwiss

Share this post


Link to post
Share on other sites

Its not only the gas script none of these scripts are executed when the mission is on the actual server

http://prntscr.com/5d28je

Im not sure if it has something to do with if(isServer) then { but im pretty sure thats correct ?

Share this post


Link to post
Share on other sites
Im not sure if it has something to do with if(isServer) then { but im pretty sure thats correct ?
You could have answered that question by Yourself when either A. You were reading the WIKI about isServer or B. You would have read the linked article (see Post #5 by SavageCDN) where KillzoneKid explains locality.

To straight answer your question:

"if(isServer)..." will only let the scripts run on the server (including localhost).

And that's the reason why they don't get executed on clients.

Here are a few examples with isServer and isDedicated in the

if(isServer)then{
//code runs on localhost
//code runs on dedicated server

//code does not run on client
};

if(isServer)exitwith{};
//code runs on client

//code does not run on localhost
//code does not run on dedicated server

if(isDedicated)then{
//code runs on dedicated server

//code does not run on client
//code does not run on localhost
};

if(isDedicated)exitwith{};
//code runs on client
//code runs on localhost

//code does not run on dedicated server

Greez KiloSwiss

Edited by KiloSwiss

Share this post


Link to post
Share on other sites

So witch one should i be using ? if(isDedicated)then{ ?

Share this post


Link to post
Share on other sites

Maybe my examples were not clear enough:

Any code after "if(isDedicated)then{" will only run on a Dedicated Server, not on any client (player sitting at home) and also not when hosting the mission locally!

Let's have a look at the last picture You uploaded.

I assume that You want to execute these Scripts on the client and also when You are locally testing the Mission, then take this code:

if(!isDedicated)then{
//YOUR
//STUFF
//HERE
};

Greez KiloSwiss

Share this post


Link to post
Share on other sites

:O It worked thanks man for so long i thought it was the script broken then i noticed it wasnt the only script not wanting to run but this fixed the problem i appreciate it KILO

Share this post


Link to post
Share on other sites

Hmm, this script looks extremely familiar

http://gyazo.com/740216f88b69f8938f4b76b502763de5

http://gyazo.com/571339540aa6e928c134b29993e417b3

If you would have copied it out of my mission correctly you would have seen how it needed to be executed properly to work.

---------- Post added at 03:53 ---------- Previous post was at 03:43 ----------

http://gyazo.com/47eedf478b83fe6399363fad9d7e8670

Wow this is hilarious..

Share this post


Link to post
Share on other sites

[deleted] admin can remove, wasn't proper. But Gamerz971hd is right, looks familiar. Credit should be given when and where credit is due.

Edited by OpusFmSPol

Share this post


Link to post
Share on other sites

Looks familiar? This politenes thingy might look like a good idea from distance, but up close its just another road to hell. See heretic? Burn Heretic!!!!

Dont be afraid of offending people. If people get ofended with what you said about them, then you most probably just said truth about them, and truth has to be sayd.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×