TheVampire Posted May 18, 2014 Author Report Share Posted May 18, 2014 doublepost Link to comment Share on other sites More sharing options...
TheVampire Posted May 18, 2014 Author Report Share Posted May 18, 2014 Can anyone please explain: But I'm uncertain how the rest works, what it means, or how to change it: for "_x" from 0 to 30 do { _sSelect = floor(random _sCount); _item = DZMSConSupply select _sSelect; _crate addMagazineCargoGlobal [_item,1]; Does it pick an item and randomly assign a quantity? Then repeats it for 30 times with different item each time? Or is this somehow a chance or percentage of an item to spawn? The 30 in the code you quoted is how many times it will pick an item from the array. Once it picks an item, it adds the amount that is listed, which is 1. So you should get 30 items from the DZMSConSupply array, with random items from the array. Link to comment Share on other sites More sharing options...
blueman Posted May 18, 2014 Report Share Posted May 18, 2014 The 30 in the code you quoted is how many times it will pick an item from the array. Once it picks an item, it adds the amount that is listed, which is 1. So you should get 30 items from the DZMSConSupply array, with random items from the array. Ah! So, if I were to change the array of items in the DZMSConSupply array to only contain one item, then it should yield 30 of that item correct. Not that I'll do that, but just to be sure I understand. Thanks Vamp! Link to comment Share on other sites More sharing options...
[email protected] Posted May 18, 2014 Report Share Posted May 18, 2014 When I add this to my server it gets stuck on wait for host. Any fixes? Link to comment Share on other sites More sharing options...
Regicyde Posted May 19, 2014 Report Share Posted May 19, 2014 Incredibly noob question - but I'll drop it nonetheless. I've installed it exactly according to instructions, server booted up fine, but there are no missions appearing. Do I need to activate anything? Do I require an additional interface? Apologies, I must be missing something basic. Cheers, Regicyde Link to comment Share on other sites More sharing options...
TheVampire Posted May 19, 2014 Author Report Share Posted May 19, 2014 Incredibly noob question - but I'll drop it nonetheless. I've installed it exactly according to instructions, server booted up fine, but there are no missions appearing. Do I need to activate anything? Do I require an additional interface? Apologies, I must be missing something basic. Cheers, Regicyde Check your RPT. The missions can take up to 30mins before they spawn (all adjustable in the DZMSConfig.sqf). In your RPT about 30 seconds after you join the game it should log that DZMS is starting. If it started, it should be working fine. When I add this to my server it gets stuck on wait for host. Any fixes? Check your RPT, your server pbo may have been corrupted. Link to comment Share on other sites More sharing options...
Regicyde Posted May 20, 2014 Report Share Posted May 20, 2014 Updated, thanks for the Reply Vampire. I had an incorrect pathway. Nothing to do with your Mod. Thanks again! Works beautifully now. TheVampire 1 Link to comment Share on other sites More sharing options...
shan1784 Posted May 20, 2014 Report Share Posted May 20, 2014 Any update on convoy missions??? Link to comment Share on other sites More sharing options...
kmcnasty Posted May 22, 2014 Report Share Posted May 22, 2014 Hello All, Only recently had the chance to run my own server so still learning. I have a fresh epoch install with infistar anti hack and a refuelling script. I have installed the DZMS script as per the instructions which i will repeat below. These seem easy enough. 1. put DZMS folder in root of dayz_server.pbo 2. put "[] ExecVM "\z\addons\dayz_server\DZMS\DZMSInit.sqf";" above allowConnection = true; which is like the 5th last line of the file The server loads fine but no events are firing after waiting an hour. Nothing in the log or .rpt file shows any referance to DZMS. Do i need to create events for the missions or should it just start working out of the box? Google seems to advise that others use this along with infiStar so i am doubting that is the cause?. please help the instructions are so simple and ive wasted so much time i feel sooooooo daft....... thank you in advance for any suggestions you can provide Link to comment Share on other sites More sharing options...
fr1nk Posted May 22, 2014 Report Share Posted May 22, 2014 I think you've got a couple extra quotation marks in there. Should be: [] ExecVM "\z\addons\dayz_server\DZMS\DZMSInit.sqf"; Link to comment Share on other sites More sharing options...
TheVampire Posted May 22, 2014 Author Report Share Posted May 22, 2014 Any update on convoy missions??? Convoy missions will be added to the A3 Epoch version of "DZMS" when it comes out, since the AI driving is better, and A3 is easier to program for on-the-fly. Link to comment Share on other sites More sharing options...
kmcnasty Posted May 23, 2014 Report Share Posted May 23, 2014 The Extra quotes where just for the forums :). I eventually found another mod that was actually getting errors in my .rpt file. It was advising that it could not find the mod files even tho my Syntax and locations where correct(was pulling my hair out double/triple checking things). So I googled file location issues with correct syntax/location............ Eventually i found that It was due to me leaving the dayz_server folder in addons after re packaging the .pbo file. so....Remember noobs delete the dayz_server folder after recreating the .pbo file. For me personally I have found it is best to have nothing in the addons folder except the required .pbo file.... Link to comment Share on other sites More sharing options...
Donnovan Posted May 23, 2014 Report Share Posted May 23, 2014 Hi, Really thanks for all the comments on the code, it helps a lot. We did the change from "medical" or "weapon" to "supply" on the functions... [_crate,"weapon"] ExecVM DZMSBoxSetup; ...in some of the missions, and then we also corrected the text messages from weapon/medical to supply. Nothing more. When our suply mission started whe expected to win 30 construction items, but at the end we found only 2 cinder blocks. Besides the changes i already did, i also need to change the crate utilized in the mission to allow insertion of 30 itens inside it? May be the original crate in the mission is too small to acomodate 30 construction itens. Help is apreciated, Link to comment Share on other sites More sharing options...
TheVampire Posted May 23, 2014 Author Report Share Posted May 23, 2014 Hi, Really thanks for all the comments on the code, it helps a lot. We did the change from "medical" or "weapon" to "supply" on the functions... [_crate,"weapon"] ExecVM DZMSBoxSetup; ...in some of the missions, and then we also corrected the text messages from weapon/medical to supply. Nothing more. When our suply mission started whe expected to win 30 construction items, but at the end we found only 2 cinder blocks. Besides the changes i already did, i also need to change the crate utilized in the mission to allow insertion of 30 itens inside it? May be the original crate in the mission is too small to acomodate 30 construction itens. Help is apreciated, Here is the arrays of construction supplies. (from DZMSWeaponCrateList.sqf in ExtConfig) //////////////////////////////////////////////////////////////////////////////////////////////// // Epoch Supplies. If you have Epoch, these are the supplies in the Construction Crates DZMSConTools = ["ItemToolbox","ItemCrowbar","ItemKnife","ItemEtool","ItemHatchet_DZE","ItemMatchbox_DZE"]; DZMSConSupply = ["CinderBlocks","MortarBucket","ItemTankTrap","ItemPole","PartGeneric","PartPlywoodPack","PartPlankPack","ItemTentOld","ItemTentDomed","ItemTentDomed2","ItemSandbag","ItemWire","workbench_kit","ItemGenerator"]; And here is the item selections code: /////////////////////////////////////////////////////////////////// // Epoch Supply Crates if (_type == "supply") then { // load tools _scount = count DZMSConTools; for "_x" from 0 to 2 do { _sSelect = floor(random _sCount); _item = DZMSConTools select _sSelect; _crate addWeaponCargoGlobal [_item, 1]; }; // load construction _scount = count DZMSConSupply; for "_x" from 0 to 30 do { _sSelect = floor(random _sCount); _item = DZMSConSupply select _sSelect; _crate addMagazineCargoGlobal [_item,1]; }; }; Your crates will end of with 2 items from DZMSConTools, and 30 items from DZMSConSupply. Link to comment Share on other sites More sharing options...
Donnovan Posted May 23, 2014 Report Share Posted May 23, 2014 Thankyou very much TheVampire.I talked with the ingame admin and he sayd the players are receiving lots of itens, but they was expecting more cinder blocks in the loot. I will change the code, thankyou very much for it, to increase the chance of each one of the 30 itens be cinder block.Bai! Link to comment Share on other sites More sharing options...
TheVampire Posted May 24, 2014 Author Report Share Posted May 24, 2014 Thankyou very much TheVampire. I talked with the ingame admin and he sayd the players are receiving lots of itens, but they was expecting more cinder blocks in the loot. I will change the code, thankyou very much for it, to increse the chance of each one of the 30 itens be cinder block. Bai! You could either remove some of the lower end items from the array, or add multiple cinderblock entries to the array to increase the chance of them being chosen. Link to comment Share on other sites More sharing options...
Donnovan Posted May 24, 2014 Report Share Posted May 24, 2014 You could either remove some of the lower end items from the array, or add multiple cinderblock entries to the array to increase the chance of them being chosen.The goal is more or less, 7 Cinder Blocks on the loot. // load construction _scount = count DZMSConSupply; for "_x" from 0 to 30 do { if (random 1 < 7/30) then { _item = ["CinderBlocks"]; _crate addMagazineCargoGlobal [_item,1]; } else { _sSelect = floor(random (_sCount - 1)); _item = (DZMSConSupply - ["CinderBlocks"]) select _sSelect; _crate addMagazineCargoGlobal [_item,1]; }; }; I also can do a code that is a little simplier: // load construction _scount = count DZMSConSupply; for "_x" from 0 to 30 do { if (random 1 < _KVAL) then { _item = ["CinderBlocks"]; _crate addMagazineCargoGlobal [_item,1]; } else { _sSelect = floor(random _sCount); _item = DZMSConSupply select _sSelect; _crate addMagazineCargoGlobal [_item,1]; }; }; Where _KVAL is the solution for the equation: _KVAL + (1 - _KVAL)*(1/15) = 7/30_KVAL = 5/28The solution about duplicade Cinder Block entries is what i was looking for! Its the best and simpliest solution.But just adding Cinder Blocks to the array i can't reach the "7/30 chance of cinder", but i can reach a very near "4/18 chance of cinder".Adding 3 more Cinders, i will have 1+3 Cinder Blocks and 15+3 itens on the arrays, what gives the chance of 4/18. Link to comment Share on other sites More sharing options...
MoorZ Posted May 27, 2014 Report Share Posted May 27, 2014 has anyone tried this on NAPF? I have had couple of problems with it on my test server, one i noticed one mission spawned in the middle of water over 400 meter either side of land with the main building and crate unreachable under water and all AI swimming. the second problem was when i completed the mission and while in middle of looting the gear from the crate the mission started over in the same location causing a new batch of AI to spawn around me and immediately killing me. anyone had these issues and fixed them? Link to comment Share on other sites More sharing options...
TheVampire Posted May 28, 2014 Author Report Share Posted May 28, 2014 has anyone tried this on NAPF? I have had couple of problems with it on my test server, one i noticed one mission spawned in the middle of water over 400 meter either side of land with the main building and crate unreachable under water and all AI swimming. the second problem was when i completed the mission and while in middle of looting the gear from the crate the mission started over in the same location causing a new batch of AI to spawn around me and immediately killing me. anyone had these issues and fixed them? Missions shouldn't be able to spawn in water. Missions also shouldn't be able to spawn within 1000m of eachother. Can you post an RPT and make sure you have the newest version from the Github? Link to comment Share on other sites More sharing options...
MoorZ Posted May 28, 2014 Report Share Posted May 28, 2014 sure its pretty big file I can email it to you? Link to comment Share on other sites More sharing options...
MoorZ Posted May 28, 2014 Report Share Posted May 28, 2014 let me know if you want me to go further back but here is where i think it started today: 14:26:21 [DZMS]: Starting DayZ Mission System. 14:26:21 [DZMS]: WickedAI Found! Using WickedAI's Relations! 14:26:21 [DZMS]: Currently Running Version: RC1.1 14:26:21 [DZMS]: Mission and Extended Configuration Loaded! 14:26:21 [DZMS]: napf Detected. Map Specific Settings Adjusted! 14:26:21 [DZMS]: DayZ Epoch Detected! Some Scripts Adjusted! 14:26:21 [DZMS]: Loading ExecVM Functions. 14:26:21 [DZMS]: Loading Compiled Functions. 14:26:21 [DZMS]: Loading All Other Functions. 14:26:21 [DZMS]: Mission Functions Script Loaded! 14:26:21 [DZMS]: Major Mission Clock Starting! 14:26:21 [DZMS]: Minor Mission Clock Starting! 14:26:21 [DZMS]: Mission Marker Loop for JIPs Starting! 14:26:25 Server: Object 3:51 not found (message 70) 14:26:25 Server: Object 3:50 not found (message 70) 14:26:25 Server: Object 3:56 not found (message 94) 14:26:25 Server: Object 3:60 not found (message 70) 14:26:25 Server: Object 3:59 not found (message 70) 14:26:25 Server: Object 3:58 not found (message 70) 14:26:25 Server: Object 3:57 not found (message 70) 14:26:25 Server: Object 3:53 not found (message 70) 14:26:25 Server: Object 3:54 not found (message 70) 14:26:25 Server: Object 3:55 not found (message 70) 14:26:25 Server: Object 3:61 not found (message 70) 14:26:25 Server: Object 3:65 not found (message 94) 14:26:25 Server: Object 3:62 not found (message 94) 14:26:25 Server: Object 3:63 not found (message 94) 14:26:25 Server: Object 3:64 not found (message 94) 14:27:21 "0 Active ground units" 14:27:21 "0 Active emplacement units" 14:27:21 "0 Active chopper patrol units (Crew)" 14:27:21 "0 Active vehicle patrol units (Crew)" 14:27:27 [DZMS]: Running Major Mission SM3. 14:27:27 [DZMS]: (DZMSUnitsMajor) 3 AI Spawned, 3 units in mission. 14:27:32 [DZMS]: (DZMSUnitsMajor) 3 AI Spawned, 6 units in mission. 14:27:37 [DZMS]: (DZMSUnitsMajor) 3 AI Spawned, 9 units in mission. 14:27:42 [DZMS]: (DZMSUnitsMajor) 3 AI Spawned, 12 units in mission. 14:27:42 [DZMS]: (DZMSUnitsMajor) Waiting for 6/12 Units or Less to be Alive and a Player to be Near the Objective. 14:28:41 "CLEANUP: INITIALIZING CLEANUP SCRIPT" 14:30:03 "RUNNING EVENT: crash_spawner on [2014,5,28,9,30]" 14:32:30 [DZMS]: Running Minor Mission SM6. 14:32:30 [DZMS]: (DZMSUnitsMinor) 3 AI Spawned, 3 units in mission. 14:32:31 [DZMS]: (DZMSUnitsMinor) 3 AI Spawned, 6 units in mission. 14:32:32 [DZMS]: (DZMSUnitsMinor) 3 AI Spawned, 9 units in mission. 14:32:33 [DZMS]: (DZMSUnitsMinor) 3 AI Spawned, 12 units in mission. 14:32:34 [DZMS]: (DZMSUnitsMinor) Waiting for 6/12 Units or Less to be Alive and a Player to be Near the Objective. 14:33:41 "TIME SYNC: Local Time set to [2013,8,3,9,33]" 14:35:23 "WAI: Starting Mission weapon_cache" 14:35:23 "WAI: Mission Weapon Cache Started At [14825.5,12487.7]" 14:35:23 "WAI: Spawned a group of 7 Bandits at [14825.5,12487.7,0]" 14:35:23 "WAI: Spawned a group of 4 Bandits at [14825.5,12487.7,0]" 14:35:23 "WAI: Sapwned in 2 M2StaticMG" 14:37:22 "11 Active ground units" 14:37:22 "2 Active emplacement units" 14:37:22 "0 Active chopper patrol units (Crew)" 14:37:22 "0 Active vehicle patrol units (Crew)" 14:38:09 "get: STRING (150741382), sent: STRING (150741382)" 14:38:09 "DISCONNECT: Mo Lester (150741382) Object: B 1-1-B:1 (Mo Lester) REMOTE, _characterID: 4 at loc [14893.8,16285.4,0.20079]" 14:38:09 Client: Remote object 3:6 not found 14:38:11 Warning: Cleanup player - person 3:5 not found Link to comment Share on other sites More sharing options...
TheVampire Posted May 29, 2014 Author Report Share Posted May 29, 2014 Are you sure its a DZMS Mission and not a WAI Mission? You can upload the rpt somewhere and PM me the link. There is also a debug line in DZMSFunctions.sqf you can enable by removing the two slashes. //diag_log text format ["[DZMS]: DEBUG: Pos:[%1,%2] / noWater?:%3 / okDistance?:%4 / TaviHeight:%5 / BlackListed?:%6", _posX, _posY, _noWater, _okDis, _tavHeight, _isBlack]; Link to comment Share on other sites More sharing options...
anthonypull Posted May 31, 2014 Report Share Posted May 31, 2014 Has anyone released additional missions? Players on my server are dying for industrial missions. I know you can just simply adjust loot array's to drop more cinder and whatnot but industrial based stashhouses would be really cool. Link to comment Share on other sites More sharing options...
Surge Gaming Posted June 2, 2014 Report Share Posted June 2, 2014 so ive installed it all properley and checked it all but when i load up the server etc it stays on waiting for server to start authentication??? Link to comment Share on other sites More sharing options...
TheVampire Posted June 2, 2014 Author Report Share Posted June 2, 2014 so ive installed it all properley and checked it all but when i load up the server etc it stays on waiting for server to start authentication??? Check your RPT. If it says server_monitor.sqf is missing then your packing software corrupted the pbo. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now