Jump to content


  • Content Count

  • Joined

  • Last visited

  • Medals

Everything posted by ArmAIIholic

  1. @Minimalaco you can try this zapat's script : this should be sufficient enough, right? Just be sure to run this script on Server. Yes it does, you don't have spawning process and then deleting groups, in contrary, everything is loaded at the beginning. Plus, since there is a limit of 144 groups per each side in the editor, with this script you can pre-load many missions from Clipboard and, in that way, cover whole map with battles. And use snippet posted above to clear the area when player leaves it.
  2. I can freely say this is my dream coming true in ArmA. You all know there is no way you can spawn more than 144 groups on the map and there are some eeeeexcellent scripts for dynamic spawning, but what if... what if... what if it is possible to make mission in the editor and just keep placing and placing and placing and placing and placing, .......... and placing units and waypoints that will spawn later???? :cool: Download this mission for Utes and give it a try, see what I mean. I want to thank Murklor here, cause he made fantastic script Editor based AI spawn script by trigger, I tried that script before, but it used dummy groups, so there was a limit all the time ("full buffer"). Not anymore --- I tweaked it and posted v7 that doesn't use dummy groups thus doesn't have any limitation about number of groups. :bounce3: === How to use === 1. Open mission in the editor, Alt+Tab to mission folder 2. Open init.sqf in some text editor and you will see that... 3. The number of groups _k = 4; in this example, Alt+Tab back to game 4. Start the Preview 5. Approach one of the tents -- one will spawn half (2 groups) the other tent other half (also 2 groups) 6. You will see hint -- 4 cycles and 4 groups (not counting player) Now fun begins... 7. Set _k = 250; 8. You will groups spawning and disappearing :bounce3: that is Murklor's script at work 9. But noooo dummy groups --- number of all Groups is always (on my PC) 5-10 -- that is my tweak :cool: 10. One tent will spawn 125 and the other 125. 11. Still there is no way to spawn more than 144 to be at the same time on the map, but let's try this... Now reeeeal fun begins... 12. Set _k = 500; 13. This script will remember those 500 groups (or more :D) and you can spawn them on trigger at any time --- and again you can see them spawning and disappearing for later usage!!! but without drop in performance! 14. If you "trigger tent" you will see that units are spawned , but I experienced serious drop in fps...... However, you can cover the whole of Chernarus with battles and spawn them directly from editor without need to script anything -- What You See Is What You Get, so no matter how many groups you place on the map, you can separate them in groups and spawn them by trigger -- I just made small experiment to prove that this script really works. === Download === Editor based AI spawn script by trigger v7, Murklor's script tweaked by ArmAIIholic -- only performance test !!! http://www.mediafire.com/?keya92l71p2n2y0 http://www.megaupload.com/?d=V41ZASKK http://rapidshare.com/files/449129947/spawn_exampleV7_performance.utes.zip http://hotfile.com/dl/106535290/0732bd2/spawn_exampleV7_performance.utes.zip.html also check these downloads : Editor based AI spawn script by trigger v7, Murklor's script tweaked by ArmAIIholic -- example mission. World in Conflict Tool aka WICT -- next release will include this script! The reason I made a new thread (and I hope it will become sticky) is that script and method explained here are something that is essential for anyone who wants to make mission in ArmA editor. This script is designed by Murklor and tweaked by me, it doesn't require any addon and it's main purpose is to get behind limitation of the number of groups and to manage spawning by trigger. Anyone who scripted in ArmA will agree that such a thing has never been done before in easy way like this. Sincerely, ArmAIIholic
  3. I just wanted to inform you all that I've further enhanced Murklor's script and created two demo missions for v8 : Demo_1 is classic Murklor's example, the one that you have also in v7, but with corrections for syntax in waypoint statements Demo_2 is loaded from Clipboard --- you won't see any units on the map! So mission is accomplished --- remembering unlimited number of groups and their waypoints from the editor. Now this thread can be deleted :( :o
  4. Thanx, new version will come soon with new features...
  5. Editor based AI script by trigger v8 : v8 (ArmAIIholic) NO GROUPS MISSION ON CLIPBOARD --- UNITS AND WAYPOINT ARE SAVED AS THEY WERE IN SQM!!! === Added === - Waypoints are also remembered -- no dummy groups at all!!! - You get the output on Clipboard you can paste and execute. Added loader for Clipboard missions -- test demo_2.utes. Caution : a) be careful with waypoint statements >> they need to be between " ", so you have to use ' '. Look at the examples in demo_1.utes. b) waypoints don't have placement radius when saved to clipboard, they will be saved with position they've got from the editor === Changed === - Triggers are now plain variables (catch_trigger) and they use publicVariable a) simpler to manipulate, no initialization in init.sqf b) they are remembered and copied to Clipboard - Scripts are waiting with waitUntil rather than while (different "busy waiting" approach) === Demo missions === Demo_1 is classic Murklor's example, the one that you have also in v7, but with corrections for waypoint statements Demo_2 is loaded from Clipboard >>> loader.sqf >>> murk_spawn_loaded.sqf ---- you won't see any units on the map! That mission has 23KB :) === Capturing mission === Mission is captured from every murk_spawn.sqf, so give it some time to spawn everything and copy it to Clipboard. The more units you have on the map, the more time it will take for those scripts to save everything to clipboard. IMHO, using loaded missions will solve problems with other scripts (like Norrin's revive etc.) -- though didn't test that yet myself. === Download === http://www.mediafire.com/?n7wa6d1smli874w http://www.megaupload.com/?d=6QI2QYQJ http://rapidshare.com/files/449489338/spawn_exampleV8.zip Armaholic mirror has been updated too.
  6. WICT and WICT_Data folders should be not in the mission folder per se, but in mission folder, for example, Assassination1.Zargabad :) Open some of your mission folders and you will see what I am talking about. You see that WICT, WICT_Data, init.sqf and mission.sqm are inside WICT_demo_DEBUG.utes -- that IS A MISSION FOLDER :D
  7. Xa xa xa thanx Katipo66, yes, start with WICT was also through bushes and briars, and it was really the same!!! And same "players" in the conversation :) [GLT]Myke you forgot about WICT? :p just kidding, thanx man you were always my backup since I started scripting here.
  8. [GLT]Myke I have to say you are right. I tested it with waypoints and stuff, and realized it is not working. But I will fix this script and post it again. Idea still stays to remember unlimited number of groups and their waypoints from (3D) editor. See you soon...
  9. Let me explain more before video comes up --- there will be step by step tutorial how to do this. You cannot place more than 144 groups of the same side in the editor! Not in SQM! That is the fact. Period. "Then i have some scripts in the mission which are supposed to spawn another group (of the same side) - what will happen?" --- they can be spawned. The 144 restriction, as I said applies to editor units. However, 3D-editor placed units are spawned as SQF and can be remembered with Murklor's script -- therefore there is no limit of how many units this script can remember - bottom line you can have effect as if you have placed unlimited number of groups in the editor. As I said in previous post -- If there is a limit --- second tent would be empty = no more Logic Side to hold the groups --- experiment is simple and elegant --- if there is a limit the first tent would hold first 144 groups and that would be it --- but it isn't --- there are more groups, equal number in both tents. Just test the mission you will see. Don't be disappointed, I have few thing to test and I will post Youtube tutorial here.
  10. Yes, you can have more than 144 groups per each side. In example above number of remembered groups of ONE side is 500, since that rule only seams to apply to editor placed units aka units in SQM file. All other units created during the game don't follow that rule, but there will be serious drop of fps once you reach the limit and the loop I used from 0-500 won't be able to spawn more units unless you remove them. Please, please, please [GLT]Myke take a look at the example above (it is 5 min of your time) and code in init.sqf and put _k=500 before commenting further --- and tell me do you see what I see --- one tent will "hold the first half" = 250 groups and the other will "hold the second half" = 250 groups --- you can test that by "triggering a tent". If there is a limit --- second tent would be empty = no more Logic Side to hold the groups --- experiment is simple and elegant --- if there is a limit the first tent would hold first 144 groups and that would be it --- but it isn't --- there are more groups, equal number in both tents. I am interested in expanding one side's limits, I know who many groups there are and I tested that -- they truly ARE undependable --- but 1152 applies strictly to editor.
  11. It is not like that [GLT]Myke, let me explain more, since I know about DAC and I made WICT btw --- believe me I know extremely well what dynamic system is... It is not comparable to this. This is about making many, many scripted missions that can be executed together with all waypoints, tasks, triggers etc. everything that casual mission designer would make without dynamic system, you know : place a group, give them waypoints, bla bla and play. Murklor's script was caching units and they were accessible with allGroups. In the new version they are not dummy groups of any side, but Logic Side. Now look here : One solution is using 3D editor or RTE that will provide you with SQF that you can call and execute. However, it is a little bit complicated, because you have to collect all those files and execute them one by one by some trigger, right? If you merge them you will get a mess... This is much easier --- suppose I created 10 missions with 2x 144 groups each --- instead of calling 10 separate files, I can make one and call it on server right from the game start, and individual missions will be executed by trigger by Murklor's script. So, yes, you can have more than 144 groups! :cool: that is my final conclusion and statement :) What my demo from up above shows is that it caches all units, but keeps resources clear for any dynamic script that checks allGroups :D if you ever saw any of those scripts caching units into Logic Side I will "kneel and obey" :D Thanx for reading ;) A2H P.S. What would be great is to pull out data from e.g. SaveGame regarding cached units and merge them lately and load into new game. That would solve all problems, including working with 3D editor.
  12. TacKLed if you want to bring your machine down to its knees yes :) You can always increase spawn distance and make that area larger. Zapat is working on script that will populate the area a little bit more realistic. There is no such game that can handle maps that big and populate them all the time, only relatively small parts are active.
  13. @Kremator, yes, editor still won't let you place more than 144 groups on the map, but I am working on that too as I write this down. However, this demo I posted should demonstrate ability of this script to "remember" position and config of 500 groups without drop of performance. Once I find a way to crack the editor I will post it here. @TacKLed there is a "wave mode", just visit the Editor based AI spawn script by trigger v7, this just a performance demo.
  14. I had a hunch, but I am really surprised what this new script can do... Let me share that with you. I proudly present : Unlimited number of units in the editor I made an experiment and proved it is working!
  15. Hello my friends :D I proudly present you Unlimited number of units in the editor visit here
  16. I made an update to Editor based AI script by trigger and I will include it in next WICT release.
  17. Editor based AI script by trigger v7 : V7 (ArmAIIholic) - Added GameLogic center to reduce number of dummy groups at the beginning, and in modes repeated and reset *** - Changed beginning scope to isServer, rather than using exitWith - Shortened initializing trigger part in init.sqf - Added original instructions and examples, adapted for v7 - SQM is from v5 with some groups added - Functions module is not needed, but I placed it anyway (habit when making missions) This is report from arma2.RPT : *** in this way you can use Editor based AI script by trigger with any other addon that has dynamically created groups -- GameLogic groups are not listed as groups with allGroups, therefore they are not affecting performance! I also checked arma2.RPT and there are no errors regarding this script (tested in editor). I will include this in next WICT release. Download links : http://www.megaupload.com/?d=5VHLI1XS http://www.mediafire.com/?thwmjgope9fiaiq http://rapidshare.com/files/448926602/spawn_exampleV7.utes.zip ---UPDATE--- Armaholic is also updated thanx to Foxhound!
  18. ArmAIIholic

    arma2 in 3D Editor

    @killenger you need to execute that SQF file only on server and there are some lines you possibly need to remove (not necessarily). Open mission.sqf in text editor (I prefer Notepad++) Remove these lines (or similar, they are at the top of mission.sqf) activateAddons [ ]; activateAddons []; initAmbientLife; Your mission SQM will have all addons needed, but if you are using some adon for the first time in that SQF leave activateAddons []; Now, several lines below you will find this: _group_0 = createGroup _center_0; _unit_0 = objNull; if (true) then { bla bla bla anything if (true) then {selectPlayer _this;}; }; You won't need that if you SQM mission already HAS a player!!! Go to the end of the file mission.sqf and find this: processInitCommands; runInitScript; finishMissionInit; and you need to delete two lines at the end, leaving just processInitCommands; if you want to process some init line commands, but I don't prefer that. Use Double trigger method to activate your mission. Example: Trigger 1 Condition: !alive dude onAct: execute = true; publicvariable "execute"; Trigger 2 Condition: execute and isServer onAct: null = [] execVM "YourMissionName\mission.sqf"; @danewillems what do you mean you can "use" only vehicles?
  19. I am making task creator and these are fields that this creator will use : _location = _this select 0; // this will be the location of the task (String - optional) _loc_marker = _this select 1; // this will be marker of that location (String - optional) _show_time = _this select 2; // this will display mission date and time when task is given (optional) _task_title = _this select 3; // task title _task_body = _this select 4; // task message _task_assign = _this select 5; // assign this task uppon creation (yes or no, default no) Does anybody have some extra idea? The task will look something like this: Location : Chernogorsk (with link or "GPS unknown" comment if marker is not specified or doesn't exist) Date and Time : 6/2/2011 1137h Intel : bla bla bla What would be a proper and most realistic way to represent task? I tried to Google "military task template" but I didn't have any success... In other words --- how to design military-like template --- any suggestions?
  20. I will surely post here, since I see a lot of people can help. What I was thinking about is making even more dynamic tasks and briefings, with some pre-defined text combined with dynamic parts that will check current state of the battlefield and provide accurate info. Thank you all again for helping :)
  21. I just want to say thanx guys for info and help. The new WICT is release, as you might saw, but this will be excellent stuff for further projects.
  22. Well, I suppose... I had to round up some ideas you guys suggested. I hope this will help to all of you, especially you zapat, to develop some new ideas. I'll be here if you need me.
  23. WICT v6.0 -- made basic layout easier!!! -- added load KRON_Strings.sqf for Kronzky strings in start.sqf -- removed the list of bases (in previous versions you wrote them manually) at the beginning of startSettings.sqf and changed autoFlag.sqf function to support base types -- added automatic sorting of bases according to the flag's color in autoFlag.sqf -- changed setupW.sqf and setupE.sqf to support base types too -- improved responsiveness of flag.sqf script (new subscript in the main script) -- changed the way directional zone is created (to match new system with base types) -- added complete path to the file you want to execute via sandbox_exe.sqf script (removed chapters folder) and also improved responsiveness of that script -- completely new taskCreator script that helps you easily develop and control the storyline from the editor without need to make any script -- included special taskCreator execution in sandbox_exe.sqf script -- no more ID for sandbox_exe.sqf -- it is generated for every script that is ran (from its file name) -- no need to write meaningless IDs and manually keep track of them -- added optional parameter if you want to be able to run script again after certain period of time -- initialized reinforcements check variable in start.sqf (reinforcements are for SP ONLY) -- F2 is not needed anymore, all scripts use removeBody.sqf -- new variable WICT_removeBody in startSettings.sqf -- removed second-spawn-probability from troop transport -- it can be done via startSettings.sqf (just add more "clones of the same variant" in the pool, contact me for explanation) -- starting WICT is now JIP friendly -- fixed some errors in clearMemory.sqf -- new tutorials and online manual is adjusted for v6.0 Xi0PY-APshI u0FCnc2CAzw DcuWRSKvI-Q sjRKHJCbBHI
  24. spirit6 thanx for clarification I will put that soon on WICT website.