Jump to content
Sign in to follow this  
JJT

Using Ammocrate scripts - RPGs not working!

Recommended Posts

Hi,

I have created a custom ammocrate script so I can use it in my missions (on editor)

Whenever I add the RPG script to this, the only one I get (same result using dogs of war ammocrate filler) is the RPG7V with OG7, no other ammunition, despite adding 100 of each type of rocket.

Does anyone know what the problem is?

Thanks (pasted entire document below)

while {alive _this} do

{

clearweaponcargo _this;

clearmagazinecargo _this;

_this addWeaponCargo ["Colt1911",30];

_this addWeaponCargo ["glock17_EP1",30];

_this addWeaponCargo ["M9",30];

_this addWeaponCargo ["M9SD",30];

_this addWeaponCargo ["ACE_Earplugs",100];

_this addWeaponCargo ["ACE_DAGR",100];

_this addWeaponCargo ["ACE_G36A1",30];

_this addWeaponCargo ["ACE_G36A1_AG36A1",30];

_this addWeaponCargo ["ACE_G36A1_AG36A1_D",30];

_this addWeaponCargo ["ACE_G36A1_AG36A1_D_UP",30];

_this addWeaponCargo ["ACE_G36A1_AG36A1_UP",30];

_this addWeaponCargo ["ACE_G36K_EOTech",30];

_this addWeaponCargo ["ACE_GlassesLHD_glasses",100];

_this addWeaponCargo ["ACE_GlassesGasMask_US",100];

_this addWeaponCargo ["ACE_HK416_D10",30];

_this addWeaponCargo ["ACE_HK416_D10_COMPM3",30];

_this addWeaponCargo ["ACE_HK416_D10_AIM",30];

_this addWeaponCargo ["ACE_HK416_D10_COMPM3_SD",30];

_this addWeaponCargo ["ACE_HK416_D10_Holo",30];

_this addWeaponCargo ["ACE_HK416_D10_M320",30];

_this addWeaponCargo ["ACE_HK416_D10_M320_UP",30];

_this addWeaponCargo ["ACE_HK416_D10_SD",30];

_this addWeaponCargo ["ACE_HK416_D14",30];

_this addWeaponCargo ["ACE_HK416_D14_ACOG_PVS14",30];

_this addWeaponCargo ["ACE_HK416_D14_COMPM3",30];

_this addWeaponCargo ["ACE_HK416_D14_COMPM3_M320",30];

_this addWeaponCargo ["ACE_HK416_D14_COMPM3_M320_UP",30];

_this addWeaponCargo ["ACE_HK416_D14_SD",30];

_this addWeaponCargo ["ACE_HK416_D14_TWS",30];

_this addWeaponCargo ["ACE_Kestrel4500",100];

_this addWeaponCargo ["ACE_HuntIR_monitor",100];

_this addWeaponCargo ["ACE_KeyCuffs",100];

_this addWeaponCargo ["ACE_M1014_Eotech",30];

_this addWeaponCargo ["ACE_M109",30];

_this addWeaponCargo ["ACE_M110",30];

_this addWeaponCargo ["ACE_M110_SD",30];

_this addWeaponCargo ["ACE_M136_CSRS",30];

_this addWeaponCargo ["ACE_M27_IAR",30];

_this addWeaponCargo ["ACE_M240G_M145",30];

_this addWeaponCargo ["ACE_M249Para",30];

_this addWeaponCargo ["ACE_M249Para_M145",30];

_this addWeaponCargo ["ACE_M72A2",30];

_this addWeaponCargo ["ACE_MX2A",100];

_this addWeaponCargo ["ACE_Map",100];

_this addWeaponCargo ["ACE_ParachutePack",1000];

_this addWeaponCargo ["ACE_Rangefinder_OD",100];

_this addWeaponCargo ["ACE_SCAR_L_ACOG",30];

_this addWeaponCargo ["ACE_SCAR_L_CQC",30];

_this addWeaponCargo ["ACE_SCAR_L_CQC_Eotech",30];

_this addWeaponCargo ["ACE_SCAR_L_CQC_Eotech_EGLM",30];

_this addWeaponCargo ["ACE_SCAR_L_SNIPER",30];

_this addWeaponCargo ["ACE_SCAR_L_SPECTER",30];

_this addWeaponCargo ["ACE_SPAS12",30];

_this addWeaponCargo ["ACE_SpottingScope",30];

_this addWeaponCargo ["ACE_TAC50",30];

_this addWeaponCargo ["ACE_TAC50_SD",30];

_this addWeaponCargo ["ACE_WireCutter",10];

_this addWeaponCargo ["AA12_PMC",30];

_this addWeaponCargo ["BAF_AS50_scoped",30];

_this addWeaponCargo ["BAF_AS50_TWS",30];

_this addWeaponCargo ["BAF_L110A1_Aim",30];

_this addWeaponCargo ["BAF_L7A2_GPMG",30];

_this addWeaponCargo ["BAF_L85A2_RIS_ACOG",30];

_this addWeaponCargo ["BAF_L85A2_RIS_CWS",30];

_this addWeaponCargo ["BAF_L85A2_RIS_Holo",30];

_this addWeaponCargo ["BAF_L85A2_RIS_SUSAT",30];

_this addWeaponCargo ["BAF_L85A2_UGL_ACOG",30];

_this addWeaponCargo ["BAF_L85A2_UGL_Holo",30];

_this addWeaponCargo ["BAF_L85A2_UGL_SUSAT",30];

_this addWeaponCargo ["BAF_L86A2_ACOG",30];

_this addWeaponCargo ["BAF_LRR_scoped",30];

_this addWeaponCargo ["Binocular_Vector",30];

_this addWeaponCargo ["NVGoggles",100];

_this addWeaponCargo ["Laserdesignator",40];

_this addWeaponCargo ["ItemCompass",100];

_this addWeaponCargo ["ItemGPS",100];

_this addWeaponCargo ["ItemMap",100];

_this addWeaponCargo ["ItemWatch",100];

_this addWeaponCargo ["SCAR_H_CQC_CCO",30];

_this addWeaponCargo ["SCAR_H_CQC_CCO_SD",30];

_this addWeaponCargo ["SCAR_H_LNG_Sniper",30];

_this addWeaponCargo ["SCAR_H_LNG_Sniper_SD",30];

_this addWeaponCargo ["SCAR_H_STD_EGLM_Spect",30];

_this addWeaponCargo ["SCAR_H_STD_TWS_SD",30];

_this addWeaponCargo ["BAF_NLAW_Launcher",100];

_this addWeaponCargo ["Javelin",100];

_this addWeaponCargo ["M47Launcher_EP1",100];

_this addWeaponCargo ["SMAW",100];

_this addWeaponCargo ["Stinger",100];

_this addmagazineCargo ["15Rnd_9x19_M9",100];

_this addmagazineCargo ["15Rnd_9x19_M9SD",100];

_this addmagazineCargo ["17Rnd_9x19_glock17",100];

_this addmagazineCargo ["7Rnd_45ACP_1911",100];

_this addmagazineCargo ["ACE_100Rnd_556x45_T_M249",100];

_this addmagazineCargo ["ACE_200Rnd_556x45_M249",100];

_this addmagazineCargo ["ACE_200Rnd_556x45_T_M249",100];

_this addmagazineCargo ["ACE_200Rnd_762x51_M240",200];

_this addmagazineCargo ["ACE_20Rnd_762x51_S_M110",100];

_this addmagazineCargo ["ACE_20Rnd_762x51_SB_M110",100];

_this addmagazineCargo ["ACE_20Rnd_762x51_T_M110",100];

_this addmagazineCargo ["ACE_30Rnd_556x45_S_G36",100];

_this addmagazineCargo ["ACE_30Rnd_556x45_S_Stanag",1000];

_this addmagazineCargo ["ACE_1Rnd_CS_M203",100];

_this addmagazineCargo ["ACE_1Rnd_HE_M203",100];

_this addmagazineCargo ["ACE_1Rnd_PR_M203",100];

_this addmagazineCargo ["ACE_30Rnd_556x45_SB_S_Stanag",100];

_this addmagazineCargo ["ACE_30Rnd_556x45_SB_Stanag",100];

_this addmagazineCargo ["ACE_30Rnd_556x45_T_G36",100];

_this addmagazineCargo ["ACE_30Rnd_556x45_T_Stanag",100];

_this addmagazineCargo ["ACE_400Rnd_762x51_M240",100];

_this addmagazineCargo ["ACE_5Rnd_127x99_B_TAC50",100];

_this addmagazineCargo ["ACE_5Rnd_127x99_S_TAC50",100];

_this addmagazineCargo ["ACE_5Rnd_127x99_T_TAC50",100];

_this addmagazineCargo ["ACE_5Rnd_25x59_HEDP_Barrett",100];

_this addmagazineCargo ["ACE_Bandage",400];

_this addmagazineCargo ["ACE_Bodybag",100];

_this addmagazineCargo ["ACE_Battery_Rangefinder",100];

_this addmagazineCargo ["ACE_BBetty_M",100];

_this addmagazineCargo ["ACE_C4_M",100];

_this addmagazineCargo ["ACE_Epinephrine",400];

_this addmagazineCargo ["ACE_Flashbang",100];

_this addmagazineCargo ["ACE_LargeBandage",400];

_this addmagazineCargo ["ACE_Laserbatteries_D",100];

_this addmagazineCargo ["ACE_M34",100];

_this addmagazineCargo ["ACE_M4SLAM_M",100];

_this addmagazineCargo ["ACE_Morphine",400];

_this addmagazineCargo ["ACE_SMAW_Spotting",100];

_this addmagazineCargo ["Dragon_EP1",100];

_this addmagazineCargo ["MAAWS_HEAT",100];

_this addmagazineCargo ["MAAWS_HEDP",100];

_this addmagazineCargo ["PipeBomb",100];

_this addmagazineCargo ["SMAW_HEAA",100];

_this addmagazineCargo ["SMAW_HEDP",100];

_this addmagazineCargo ["Stinger",100];

_this addmagazineCargo ["20Rnd_B_AA12_74Slug",100];

_this addmagazineCargo ["20Rnd_B_AA12_HE",100];

_this addmagazineCargo ["20Rnd_B_AA12_Pellets",100];

_this addmagazineCargo ["5Rnd_127x99_as50",100];

_this addmagazineCargo ["8Rnd_B_Beneli_74Slug",100];

_this addmagazineCargo ["8Rnd_B_Beneli_Pellets",100];

_this addmagazineCargo ["1Rnd_HE_M203",100];

_this addmagazineCargo ["1Rnd_Smoke_M203",100];

_this addmagazineCargo ["1Rnd_SmokeGreen_M203",100];

_this addmagazineCargo ["1Rnd_SmokeRed_M203",100];

_this addmagazineCargo ["SmokeShell",100];

_this addmagazineCargo ["SmokeShellGreen",100];

_this addmagazineCargo ["SmokeShellRed",100];

_this addmagazineCargo ["ACE_20Rnd_762x51_S_SCAR",100];

_this addmagazineCargo ["5Rnd_86x70_L115A1",100];

_this addmagazineCargo ["20Rnd_762x51_SB_SCAR",100];_this addmagazineCargo ["ACE_5Rnd_86x70_T_L115A1",100];_this addweaponCargo ["ACE_WPMuzzle",100];_this addmagazineCargo ["ACE_M15",100];_this addmagazineCargo ["ACE_8Rnd_12Ga_Buck00",100];_this addmagazineCargo ["ACE_8Rnd_12Ga_Slug",100];

_this addweaponCargo ["ACE_Javelin_CLU",30];_this addweaponCargo ["ACE_GlassesLHD_glasses",100];_this addweaponCargo ["ACE_GlassesSunglasses",100];_this addweaponCargo ["ACE_GlassesTactical",100];_this addweaponCargo ["ACE_GlassesBalaklava",100];_this addweaponCargo ["ACE_GlassesBalaklavaGray",100];_this addweaponCargo ["ACE_GlassesBalaklavaOlive",100];_this addweaponCargo ["ACE_RPG22",100];

_this addmagazineCargo ["ACE_Medkit",400];_this addweaponCargo ["M136",100];_this addweaponCargo ["ACE_TeargasMuzzle",100];_this addmagazineCargo ["ACE_M7A3",100];_this addmagazineCargo ["BAF_L109A1_HE",100];_this addweaponCargo ["HandGrenadeMuzzle",100];_this addmagazineCargo ["HandGrenade_West",100];_this addweaponCargo ["ACE_IncendiaryMuzzle",100];_this addmagazineCargo ["ACE_ANM14",100];_this addweaponCargo ["SmokeShellMuzzle",100];_this addmagazineCargo ["SmokeShellBlue",100];_this addmagazineCargo ["SmokeShellOrange",100];_this addmagazineCargo ["SmokeShellPurple",100];_this addmagazineCargo ["SmokeShellYellow",100];

_this addWeaponCargo ["RPG18",30];

_this addWeaponCargo ["RPG7V",30];

_this addmagazineCargo ["OG7",100];

_this addmagazineCargo ["OG9_HE",100];

_this addmagazineCargo ["PG7V",100];

_this addmagazineCargo ["PG7VL",100];

_this addmagazineCargo ["PG7VR",100];

_this addmagazineCargo ["PG9_AT",100];_this addweaponCargo ["M4A3_RCO_GL_EP1",30];_this addweaponCargo ["MAAWS",30];_this addmagazineCargo ["ACE_MAAWS_HE",100];sleep 1800;

};

Share this post


Link to post
Share on other sites

Don't know exactly what you problem is. I have not tested the wall of text.... but maybe add the Magazines before the Weapon.

If that doesn't work..... then just try adding the RPG Weapons and Ammo to the crate alone and see what happens. Do some troubleshooting!! Bit by bit!

Share this post


Link to post
Share on other sites

As you're obviously using ACE, you might want to use the ACE rpgs.

What could be the problem is the ammocrate size, actually. I know there is a limit to what a crate can contain, and it seems that you loaded a s***load of crap in there, buddy!

Maybe try with just the RPGs (a few of them only) in the crate, see if that could be the problem.

Anyway, an unwanted piece of advice: just ask yourself if you do need all that for a single mission. I just can't imagine why you would need a hundred HuntIR monitors in there, for example. (actually i can't imagine why you would need a hundred anything) This will take some time to load, and you'll probably never use it.

And at last, there's some strange stuff in there, like

_this addweaponCargo ["SmokeShellMuzzle",100]

Does this even work?

Share this post


Link to post
Share on other sites

I think it is required to make smoke grenades work... not sure though..

For example, my phosphorous grenades didn't work until I addded "WPMuzzle"

---------- Post added at 11:51 ---------- Previous post was at 11:50 ----------

And I'm using this crate for my edited Domination map for lingor (I edited it from a base version) and well, if you get a full server 30 of everything and 100 of magazines could be useful. Might get rid of 100 HUNTIR monitors though.

Share this post


Link to post
Share on other sites

Yeah, but if you use the domi-included crate script, the boxes are created locally on each client (and refreshed every 20 mins if i remember well). That is why you don't need so much stuff in there, no matter how many people you have on the server at a given time.

Did you try with RPGs only? Did it solve your problem?

And i might repeat myself, but you'd probably wanna switch to ACE launchers (even though i'm not totally sure ACE doesn't automatically change them to the ACE ones). Cause you might get issues with the vanilla Javelins, for example.

Share this post


Link to post
Share on other sites

just before the closing };

Add

sleep 1800;

this will rearm the ammo crate every 1800 secounds.

As far as your issue well just test around the weapons and ammo u are having issues with

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  

×