Jump to content
Sign in to follow this  
kdk11

scripts not working in multiplayer

Recommended Posts

Ok I have looked through a lot of threads to try find an actual straight forward answer and cant see one. If there is one out there and you know of it please feel free to link it in here! I have spent most of today looking for a fix just incase anyone thinks I am being lazy! I made a mission and when exporting it to MP none of my scripts work? What am I doing wrong? What do I need to change?

Share this post


Link to post
Share on other sites
Ok I have looked through a lot of threads to try find an actual straight forward answer and cant see one. If there is one out there and you know of it please feel free to link it in here! I have spent most of today looking for a fix just incase anyone thinks I am being lazy! I made a mission and when exporting it to MP none of my scripts work? What am I doing wrong? What do I need to change?

Exporting to MP only creates a new mission folder and saves the mission.sqm file in it. You need to manually copy and paste the mission folder from the single player editor to the MPMissions folder.

Typically the path will be Documents/MyDocuments/Amra 3 - Other Profiles/YourProfileName/missions. Grab your mission folder from the missions folder, copy and paste it in the MPMissions folder (create one if there isn't one) in YourProfileName's directory.

  • Like 1

Share this post


Link to post
Share on other sites

I just tried that mate and its all done as you say, but when i go to try excute one of the scripts I still cant do it. Not sure what is going on

Share this post


Link to post
Share on other sites

I'm investigating and learning this myself at the moment, but for now u can check these links for info

http://www.kylania.com/ex/?p=26

http://community.bistudio.com/wiki?title=6thSense.eu:EG

snippet from the second link:

To only run something on dedicated server or serverClient: isServer

To only run something on clients, and never on dedicated server or serverClient: !isServer

To only run something on clients or server Clients: !(isNull player)

:note

If you made a single player mission previously with scripts in there. then export it to multiplayer the scripts don't get compiled in the new multiplayer .pbo file

in order to have your scripts compiled in the new multi player .pbo you need to have the scripts in the multiplayer mission DIR folder C:\Users\urusername\Documents\Arma 3 - Other Profiles\yourusername\missions"\testmapname.Stratis" once your scripts are there, then click export to multiplayer, this will compile your scripts with your mission sqm in the new .pbo

hope im not off track with the help your looking for lol

Edited by falconx1
  • Like 2

Share this post


Link to post
Share on other sites

no mate spot on. but when i do that they still dont work. This has my head done in lol My mission is intended for MP and I cant have it MP until I find a fix for this

Share this post


Link to post
Share on other sites
no mate spot on. but when i do that they still dont work. This has my head done in lol My mission is intended for MP and I cant have it MP until I find a fix for this

right now... your biggest problem is that u cant even explain whats your problem.......................

Share this post


Link to post
Share on other sites
right now... your biggest problem is that u cant even explain whats your problem.......................

Learn to read. I already said in previous replies whats wrong with it:S

Share this post


Link to post
Share on other sites
Learn to read. I already said in previous replies whats wrong with it:S

Post your script, that will make it easier to troubleshoot. Also post how you are having the script executed.

Share this post


Link to post
Share on other sites
Learn to read. I already said in previous replies whats wrong with it:S

IQOWP

..u know that one how the bus goes on the road, suddenly motor stops, driver pulls over and goes check whats wrong... and then the child gets out and screams "i know whats wrong.. i know whats wrong.. " and driver ask him "whats the problem?" and the answer is "its broken..."................

so..

Ok I have looked through a lot of threads to try find an actual straight forward answer and cant see one. If there is one out there and you know of it please feel free to link it in here! I have spent most of today looking for a fix just incase anyone thinks I am being lazy! I made a mission and when exporting it to MP none of my scripts work? What am I doing wrong? What do I need to change?

ITS BROKEN.....

what do u think that u will get from description like this ?

Share this post


Link to post
Share on other sites

well the other guys in here knew what I meant... And I now know its not just me having trouble with exporting MPmissions and the scripts working online.

Share this post


Link to post
Share on other sites
well the other guys in here knew what I meant... And I now know its not just me having trouble with exporting MPmissions and the scripts working online.

There is no real way to help you with out an example of the script or a copy of the mission. Yes, you say your scripts dont work in MP, which does tend to be an issue with people not specifying whether it is client run or server run. However, if the issue still persists, then we have no clue to tell where the issue is.

So if you are still having issues with the script, please post it, and let us know how it execs and what its suppose to do

Share this post


Link to post
Share on other sites
IQOWP

..u know that one how the bus goes on the road, suddenly motor stops, driver pulls over and goes check whats wrong... and then the child gets out and screams "i know whats wrong.. i know whats wrong.. " and driver ask him "whats the problem?" and the answer is "its broken..."................

so..

ITS BROKEN.....

what do u think that u will get from description like this ?

There is no real way to help you with out an example of the script or a copy of the mission. Yes, you say your scripts dont work in MP, which does tend to be an issue with people not specifying whether it is client run or server run. However, if the issue still persists, then we have no clue to tell where the issue is.

So if you are still having issues with the script, please post it, and let us know how it execs and what its suppose to do

let me just try something mate and I will post it if it does not work. It was mostly using VAS that would not work but have decided to leave that out this mission. I understand I need to be more specific with my posts but I am still new to all this so the whole giving me a hard time is not needed.

Share this post


Link to post
Share on other sites

How do you execute your scripts?

Give an example of what you are trying to do.

Share this post


Link to post
Share on other sites

hi! help needed here.

 

i'm  making a custom ammo supply and tested in Eden Editor without a problem. but the script wont work when i run it on server. Can anybody help me? Thanks in advance.

 

here is my script.

 

//init_Handle = this execVM "Custom\JRSupply.sqf"; put this in init box

// Setting
_amountWeapon = 10;
_amountAmmo = 20;
_refreshTime = 300;// refill every 5 minutes


_this allowDamage false;

// Loop Forever
while {true} do
{

//clear box
clearWeaponCargo _this;
clearMagazineCargo _this; 
clearItemCargo _this;


//Fill box
//Weapon and Ammo


// Weapon

_this addWeaponCargo ["sgun_HunterShotgun_01_F",10];
_this addWeaponCargo ["hlc_rifle_bcmjack",10];
_this addWeaponCargo ["LMG_Mk200_black_ACO_pointer_F",10];
_this addWeaponCargo ["hgun_P07_snds_F",10];
_this addWeaponCargo ["hgun_PDW2000_Holo_F",10];
_this addWeaponCargo ["launch_B_Titan_F",10];
_this addWeaponCargo ["launch_B_Titan_short_F",10];
_this addWeaponCargo ["launch_MRAWS_olive_F",10];

// Magazine

_this addMagazineCargo ["ACE_30Rnd_556x45_Stanag_M995_AP_mag",20];
_this addMagazineCargo ["30Rnd_9x21_Mag_SMG_02",20];
_this addMagazineCargo ["30Rnd_65x39_caseless_black_mag",20];
_this addMagazineCargo ["5Rnd_127x108_Mag",20];
_this addMagazineCargo ["150Rnd_93x64_Mag",20];
_this addMagazineCargo ["200Rnd_65x39_cased_Box",20];
_this addMagazineCargo ["2Rnd_12Gauge_Pellets",20];
_this addMagazineCargo ["hlc_30rnd_556x45_EPR",20];
_this addMagazineCargo ["16Rnd_9x21_Mag",20]
_this addMagazineCargo ["11Rnd_45ACP_Mag",20];
_this addMagazineCargo ["30Rnd_9x21_Mag",20];
_this addMagazineCargo ["Titan_AT",20];
_this addMagazineCargo ["Titan_AA",20];
_this addMagazineCargo ["MRAWS_HEAT55_F",20];
_this addMagazineCargo ["MRAWS_HE_F",20];


//_this addItemCargo ["youritem",20];
_this addItemCargo ["ACE_CableTie",20];
_this addItemCargo ["ItemGPS",20];
_this addItemCargo ["ACE_DefusalKit",20];
_this addItemCargo ["ACE_EarPlugs",20];
_this addItemCargo ["ACE_IR_Strobe_Item",20];


_this addItemCargo ["SmokeShellBlue",20];
_this addItemCargo ["SmokeShellGreen",20];
_this addItemCargo ["SmokeShellPurple",20];
_this addItemCargo ["SmokeShellRed",20];
_this addItemCargo ["SmokeShell",20];

// Misc Item

_this addItemCargo ["FirstAidKit",20];
_this addItemCargo ["NVGogglesB_blk_F",20];
_this addItemCargo ["ACE_Flashlight_XL50",20];
_this addItemCargo ["ACE_MapTools",20];
_this addItemCargo ["optic_Hamr",20];
_this addItemCargo ["optic_Nightstalker",20];
_this addItemCargo ["optic_LRPS",20];
_this addItemCargo ["muzzle_snds_H",20];
_this addItemCargo ["Laserbatteries",20];
_this addItemCargo ["ToolKit",20];
_this addItemCargo ["Laserdesignator",20];
_this addItemCargo ["Medikit",20];
_this addItemCargo ["muzzle_snds_M",20];
_this addItemCargo ["ACE_Altimeter",20];

// Helmet

_this addItemCargo ["jr_camo_helmet2",20];
_this addItemCargo ["jr_des_helmet2",20];

// Explosive

_this addItemCargo ["DemoCharge_Remote_Mag",20];
_this addItemCargo ["SatchelCharge_Remote_Mag",20];
_this addItemCargo ["HandGrenade",20];


// Vest

_this addItemCargo ["jr_PlateCarrierSpec_des",10];
_this addItemCargo ["jr_PlateCarrierSpec_wd",10];


// Backpack

_this addbackpackCargo ["Jr_Kitbag_des",5];
_this addbackpackCargo ["Jr_Kitbag_Camo",5];
_this addbackpackCargo ["Jr_Kitbag_med_des",5];


// Wait the duration of _refreshTime
sleep _refreshTime;
};

Share this post


Link to post
Share on other sites

Hi @JURAGAN,

According to forum rules you can't revive threads older than 4 months (let alone 7 years 😋).

That said, click on "Report post" on top right corner of your message and ask a moderator to change it to ARMA 3 - MISSION EDITING & SCRIPTING.

 

When that's done the answer to your question should be simple:

Replace all your commands with Global ones and run the script from the server only.

https://community.bistudio.com/wiki/clearWeaponCargoGlobal

https://community.bistudio.com/wiki/clearMagazineCargoGlobal

https://community.bistudio.com/wiki/clearItemCargoGlobal

https://community.bistudio.com/wiki/addWeaponCargoGlobal

https://community.bistudio.com/wiki/addMagazineCargoGlobal

https://community.bistudio.com/wiki/addItemCargoGlobal

https://community.bistudio.com/wiki/addBackpackCargoGlobal

 

Edited by RCA3
addWeaponCargoGlobal
  • Like 1

Share this post


Link to post
Share on other sites
4 minutes ago, RCA3 said:

Hi @JURAGAN,

According to forum rules you can't revive threads older than 4 months (let alone 7 years 😋).

That said, click on "Report post" on top right corner of your message and ask a moderator to change it to ARMA 3 - MISSION EDITING & SCRIPTING.

 

When that's done the answer to your question should be simple:

Replace all your commands with Global ones and run the script from the server only.

https://community.bistudio.com/wiki/clearWeaponCargoGlobal

https://community.bistudio.com/wiki/clearMagazineCargoGlobal

https://community.bistudio.com/wiki/clearItemCargoGlobal

https://community.bistudio.com/wiki/addWeaponCargo

https://community.bistudio.com/wiki/addMagazineCargoGlobal

https://community.bistudio.com/wiki/addItemCargoGlobal

https://community.bistudio.com/wiki/addBackpackCargoGlobal

 

thank you sir for your prompt reply. appreciate that.

  • Like 2

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  

×