ObamaCare Posted April 27, 2014 Report Share Posted April 27, 2014 I think I've tried about 6 different methods to change the default player spawn loadout, and nothing seems to be working. Here's a relevant snippet of the mission pbo's init.sqf if (!isDedicated) then { //Conduct map operations 0 fadeSound 0; waitUntil {!isNil "dayz_loadScreenMsg"}; dayz_loadScreenMsg = (localize "STR_AUTHENTICATING"); //Custom Loadouts [] ExecVM "Scripts\loadout.sqf"; //Run the player monitor _id = player addEventHandler ["Respawn", {_id = [] spawn player_death;}]; _playerMonitor = [] execVM "\z\addons\dayz_code\system\player_monitor.sqf"; //anti Hack [] execVM "admintools\AdminList.sqf"; I made sure that that the directory was correct and everything. Here's the loadout.sqf file //Default Loadout DefaultMagazines = ["ItemBandage","ItemBandage","17Rnd_9x19_glock17","17Rnd_9x19_glock17","ItemMorphine","ItemPainkiller","ItemWaterbottleBoiled","FoodSteakCooked"]; DefaultWeapons = ["glock17_EP1","ItemFlashlight","ItemHatchet"]; DefaultBackpack = "DZ_Patrol_Pack_EP1"; DefaultBackpackWeapon = ""; Yet the players always spawn, even after death, with the crowbar (default) loadout. Link to comment Share on other sites More sharing options...
0 FragZ Posted April 27, 2014 Report Share Posted April 27, 2014 Any RPT files by chance? Could help figure out the problem. Otherwise you can try this setup: waitUntil {(getPlayerUID player) != ""}; //Default Loadout DefaultMagazines = ["ItemBandage","ItemBandage","ItemPainkiller","FoodCanSardines","ItemWaterbottle","15Rnd_9x19_M9SD","15Rnd_9x19_M9SD"]; DefaultWeapons = ["Itemtoolbox","ItemMap","ItemHatchet_DZE","ItemCompass","ItemKnife","M9SD"]; DefaultBackpack = "DZ_Patrol_Pack_EP1"; DefaultBackpackWeapon = ""; Link to comment Share on other sites More sharing options...
0 ObamaCare Posted April 27, 2014 Author Report Share Posted April 27, 2014 Here is a fresh RPT log http://pastebin.com/FeZkT3yL Ignore the admin tools part, that's something I can fix on my own. Just forgot a comma. Edit: tried your idea, nothing changed. Link to comment Share on other sites More sharing options...
0 Friendly Posted April 27, 2014 Report Share Posted April 27, 2014 put //Default Loadout DefaultMagazines = ["ItemBandage","ItemBandage","ItemPainkiller","FoodCanSardines","ItemWaterbottle","15Rnd_9x19_M9SD","15Rnd_9x19_M9SD"]; DefaultWeapons = ["Itemtoolbox","ItemMap","ItemHatchet_DZE","ItemCompass","ItemKnife","M9SD"]; DefaultBackpack = "DZ_Patrol_Pack_EP1"; DefaultBackpackWeapon = ""; just after your // DayZ Epoch config stuff Link to comment Share on other sites More sharing options...
0 Friendly Posted April 27, 2014 Report Share Posted April 27, 2014 also you have a lot of errors in your rpt so if someone wants to help you fix all of those... Link to comment Share on other sites More sharing options...
0 ObamaCare Posted April 27, 2014 Author Report Share Posted April 27, 2014 I was planning on fixing those errors after I find a solution for this. And that was actually the first thing I tried. I noticed in the cache folder there is a file called default.sqf, and that contains the default spawn items in it, but whenever I edit it it gets overwritten on restart. I'm running a Linux server if that changes anything. Link to comment Share on other sites More sharing options...
0 (TLS) Posted April 28, 2014 Report Share Posted April 28, 2014 Link to comment Share on other sites More sharing options...
0 ObamaCare Posted April 28, 2014 Author Report Share Posted April 28, 2014 I appreciate the help, but that was the first thing I tried and the script never seemed to have executed. Link to comment Share on other sites More sharing options...
0 (TLS) Posted April 29, 2014 Report Share Posted April 29, 2014 I appreciate the help, but that was the first thing I tried and the script never seemed to have executed. It worked first time and has worked since then, are you sure you done everything right? Link to comment Share on other sites More sharing options...
0 ObamaCare Posted April 30, 2014 Author Report Share Posted April 30, 2014 I tried it, and I had two friends try it, none of us could get it to work. I suppose I could find another way though. Maybe find out what the base file is that defines the loadout then change that. Link to comment Share on other sites More sharing options...
0 Brockie Posted April 30, 2014 Report Share Posted April 30, 2014 all you gotta do is put this: DefaultMagazines = ["ItemBandage","ItemBandage","ItemMorphine","ItemBloodbag","ItemAntibiotic","ItemPainkiller","ItemWaterbottleBoiled","FoodCanBakedBeans","30rnd_9x19_MP5","30rnd_9x19_MP5","30rnd_9x19_MP5"]; DefaultWeapons = ["ItemFlashlight","ItemHatchet_DZE","ItemMap","ItemCompass","MP5A5"]; DefaultBackpack = "DZ_ALICE_Pack_EP1"; //DefaultBackpackWeapon = ""; just above dayz_paraSpawn = true; in your init.sqf and modify it the way you like! Link to comment Share on other sites More sharing options...
0 gopostal Posted April 30, 2014 Report Share Posted April 30, 2014 Read my post here: It helps explain why you just simply cannot ignore RPT errors because you think they are unrelated to what your current issue is. ObamaCare 1 Link to comment Share on other sites More sharing options...
0 ObamaCare Posted April 30, 2014 Author Report Share Posted April 30, 2014 Read my post here: It helps explain why you just simply cannot ignore RPT errors because you think they are unrelated to what your current issue is. Thank you, I was able to make it work by debugging other scripts. I'm just so used to other game servers that simply ignore errors and continue executing other, working, scripts. Link to comment Share on other sites More sharing options...
Question
ObamaCare
I think I've tried about 6 different methods to change the default player spawn loadout, and nothing seems to be working.
Here's a relevant snippet of the mission pbo's init.sqf
I made sure that that the directory was correct and everything. Here's the loadout.sqf file
Yet the players always spawn, even after death, with the crowbar (default) loadout.
Link to comment
Share on other sites
12 answers to this question
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now