Cyb0rg Posted December 16, 2009 Posted December 16, 2009 (edited) Made a script to make the initials units positions random. You'll need to have powershell and 7-zip installed in the default directory. Just add the symbol "*" and a number in kilometers next the unit name. Ex: Unit #2 *5 ----> will make that unit be positioned in a 5km radius from original position. if you want just 100m, enter : *0.1 Also, you'll need to change the first line in the script with the current path and mission file name. Just run the batch RndMission.bat or r.ps1 in the powershell console. Every time you run the script, will be created a new mission with *_RND.miz with diferent values. Hoping ED will add this feature in next patch/release. :pilotfly:missions.zip Edited June 3, 2010 by Cyb0rg 1 [sIGPIC][/sIGPIC] Asteroids ____________________________________________ Update this :D
coopercobra03 Posted December 27, 2009 Posted December 27, 2009 Sounds great! But I can't download Powershell for Windows 7!
KeyCat Posted May 30, 2010 Posted May 30, 2010 Made a script to make the initials units positions random. Thanks for making and sharing Cyb0rg, this is exactly whats needed in FC2/BS to increase any missions replayabilty! As you I hope it someday will be included as standard in the editor (like OFP/ArmA's placement radius and probability sliders) but until then this may help, gonna try it out. To make it even easier to use maybe this could be ported to a Authotkey script and thus no need to install Powershell. http://www.autohotkey.com One question, will it somehow be possible to run this (or similar programs/script) on a server between missions, is it possible with ServMan? /KC
nemises Posted May 30, 2010 Posted May 30, 2010 great work Cybord.. Cooper, I believe powershell is intergrated into win7 ...
xracer Posted May 30, 2010 Posted May 30, 2010 Sound great. I did try to make a function like that in a small program. But ended up with a function which randomize the type of unit which appears every time the program is used on a mission file. The problem i encountered with this random placement function is that often in the mountain areas the units will be placed in totally unrealistic positions and i dont even know if they could engage anything cause of that. The plan was to run the program on the mission file and get random units and random placements. Now i work a little once in a while when i have to energy and time to make random weather at startup of mission. If we get these three functions into one "click once" program then we are getting somewhere ;) System spec: Intel Core i7 920@4.2Ghz (stable, 65degC fully loaded), EVGA GTX-780, Asus P6T Deluxe V2 v.5.04 BIOS, Saitek X52, 1TB/500GB WD HD for system/storage. Kingston SSD 120 GB for DCS, 250GB Samsung 840 SSD for the rest. 16GB Kingston KHX1600C9D3 Memory, 9 GB Pagefile, EK HFX-240 Watercooling, Corsair HX-1000 PSU. HAF-932 Tower, TrackIR-5, Win64Ult [sIGPIC][/sIGPIC]
Cyb0rg Posted June 3, 2010 Author Posted June 3, 2010 (edited) Sounds great! But I can't download Powershell for Windows 7! Yes Powershell is already in win7 default installation. It's also available to download from M$ site for XP SP3 and Vista. One question, will it somehow be possible to run this (or similar programs/script) on a server between missions, is it possible with ServMan? Don't see why not.. a server can have a schedule task running this batch (every 30 min or 60 or whatever); So the next mission loaded would have new random values.. The problem i encountered with this random placement function is that often in the mountain areas the units will be placed in totally unrealistic positions and i dont even know if they could engage anything cause of that Indeed, as you could see, in mountain areas it's not functional... maybe reducing the radius to something around 25m or so.. but on the other hand not much random this way :D Edit: To make it even easier to use maybe this could be ported to a Authotkey script and thus no need to install Powershell. http://www.autohotkey.com Sure, i dont know autokey :book: , but why not? Did a little correction.. wasn't working with mission names with spaces. :blink: :pilotfly: Edited June 3, 2010 by Cyb0rg [sIGPIC][/sIGPIC] Asteroids ____________________________________________ Update this :D
Recommended Posts