-
Content Count
1977 -
Joined
-
Last visited
-
Medals
-
Medals
Everything posted by Undeceived
-
[SP/Campaign] Dying Ember (resistance campaign)
Undeceived replied to Undeceived's topic in ARMA 3 - USER MISSIONS
Thanks! Also, could a native English speaker cross read the dialogues, looking for strange expressions, etc.? :) This would be much appreciated!- 117 replies
-
- resistance
- civilian
-
(and 5 more)
Tagged with:
-
[SP/Campaign] Dying Ember (resistance campaign)
Undeceived replied to Undeceived's topic in Arma 3 - MAKE ARMA NOT WAR CONTEST - SINGLEPLAYER GAME MODE
Hello everyone! Here's the next version of Dying Ember --> Version 0.8! The download is in the first post. The Steam Workshop update will follow soon (tomorrow I think). Important note (v. 0.8): Due to the implemented persistency stuff (weapon pool, take equipment over to next mission, etc.), a restart of the campaign is needed in version 0.8! Changelog: Version 0.8 (beta): Missions 5 to 10 (of 11) were added, plus some nice cutscenes Weapon pool added Take equipment to next mission Many many bugs were fixed in missions 1-4 Feedback to the player was tweaked (guidance, next steps, short summaries, etc.) Known problems: Weapon pool inconsistencies (due to Arma 3 bugs and in the weapon pool system and dirty workarounds... --> PLEASE VOTE HERE: http://feedback.arma3.com/view.php?id=20792) -
[SP/Campaign] Dying Ember (resistance campaign)
Undeceived replied to Undeceived's topic in ARMA 3 - USER MISSIONS
Hello everyone! Finally I can release the next version of Dying Ember --> Version 0.8! The download is in the first post. The Steam Workshop update will follow soon (tomorrow I think). Important note (v. 0.8): Due to the implemented persistency stuff (weapon pool, take equipment over to next mission, etc.), a restart of the campaign is needed in version 0.8! Changelog: Version 0.8 (beta): Missions 5 to 10 (of 11) were added, plus some nice cutscenes Weapon pool added Take equipment to next mission Many many bugs were fixed in missions 1-4 Feedback to the player was tweaked (guidance, next steps, short summaries, etc.) Known problems: Weapon pool inconsistencies (due to Arma 3 bugs and in the weapon pool system and dirty workarounds... --> PLEASE VOTE HERE: http://feedback.arma3.com/view.php?id=20792)- 117 replies
-
- resistance
- civilian
-
(and 5 more)
Tagged with:
-
How to remove all items of certain type / category from array?
Undeceived posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
Hello guys, can you help me with that... I have an array with many weapon strings, item strings, etc. I want to keep everything in that array, but REMOVE all items that are part of the classname category A3_Weapons_F_Vests. If you check this page, you will see that all vests are contained in this category. In short: How do I remove all vests from the array with one code line? Many thanks for your time! -
How to remove all items of certain type / category from array?
Undeceived replied to Undeceived's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Thanks a lot, guys! I didn't expect that many replies! :) Yeah, it really is the case that in my array there are not the Vest_V_ vests, but just only the V_ vests. So I tried to go with the second suggestion and it works too, but still returns this error: Error Zero divisor This is the code I used (basically your suggestion, but only with a bigger _itemArray with more vests) with the location of the error marked as [xxx] (in the fourth line): _itemArray = ["V_BandollierB_cbr","V_Chestrig_khk","arifle_MXC_Holo_pointer_F","V_PlateCarrier2_rgr","B_Kitbag_rgr_Exp","FirstAidKit","V_Chestrig_khk","FirstAidKit"]; for "_i" from 0 to (count _itemArray) - 1 do { if (getText (configfile >> "CfgWeapons" >> _itemArray [xxx]select _i >> "ItemInfo" >> "_generalMacro") == "VestItem") then { _itemArray = _itemArray - [(_itemArray select _i)]; }; }; hint str (_itemArray); //["arifle_MXC_Holo_pointer_F","B_Kitbag_rgr_Exp","FirstAidKit","FirstAidKit"]; EDIT: The strange thing here is: When I use your array, Iceman, (which has only 1 vest in it), the error doesn't appear. As soon as I add one or more vests to it, it comes. EDIT 2: Something else that really is strange: When I have a bunch of vests in the array (e.g. see my array below), the script doesn't work reliable. One vest will still remain in the array. Funnily, if I then launch the loop once again, it cleans the array as it should from the vests. :D My example (note that the array is not cleaned perfectly after the first loop - the "V_Chestrig_khk" remains in it): POOL_ITEMS = ["V_BandollierB_oli","FirstAidKit","FirstAidKit","FirstAidKit","FirstAidKit","V_BandollierB_oli","V_PlateCarrier2_rgr","V_BandollierB_oli","V_Chestrig_khk","V_PlateCarrier1_blk","V_PlateCarrier2_rgr"]; for "_i" from 0 to (count POOL_ITEMS) - 1 do { if (getText (configfile >> "CfgWeapons" >> POOL_ITEMS select _i >> "ItemInfo" >> "_generalMacro") == "VestItem") then { POOL_ITEMS = POOL_ITEMS - [(POOL_ITEMS select _i)]; }; }; hint str (POOL_ITEMS); //["FirstAidKit","FirstAidKit","FirstAidKit","FirstAidKit","V_Chestrig_khk"]; //Applying the loop once again, finally cleans the array from vests: for "_i" from 0 to (count POOL_ITEMS) - 1 do { if (getText (configfile >> "CfgWeapons" >> POOL_ITEMS select _i >> "ItemInfo" >> "_generalMacro") == "VestItem") then { POOL_ITEMS = POOL_ITEMS - [(POOL_ITEMS select _i)]; }; }; hint str (POOL_ITEMS); //["FirstAidKit","FirstAidKit","FirstAidKit","FirstAidKit"]; Is this a bug or did the loop not repeat often enough? ---------- Post added at 13:13 ---------- Previous post was at 11:52 ---------- EDIT 3: DasAttorney's method in his first post worked too. Thanks, mate! -
[SP Campaign] M.E.R.C.S. - mercenary expendable ruthless covert selfish
Undeceived replied to IndeedPete's topic in ARMA 3 - USER MISSIONS
It should be ready in the next few days. :) Thanks for your help, too! -
ArmA 3 : Resist
Undeceived replied to Kydoimos's topic in Arma 3 - MAKE ARMA NOT WAR CONTEST - SINGLEPLAYER GAME MODE
What was the problem with Steam, Kydoimos? -
[SP Campaign] M.E.R.C.S. - mercenary expendable ruthless covert selfish
Undeceived replied to IndeedPete's topic in ARMA 3 - USER MISSIONS
Congrats on the new version, IP! :) -
Detect container + its content in container
Undeceived posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
Hi guys - another array question, I guess... :rolleyes: I want to save all kinds of stuff to the weapon pool, including the following constellation: All content of a crate (weapons, magazines, items), but also backpacks, vests and uniform which are in that crate plus their own content. That would be: Array of weapons in crate = weaponCargo crate Array of magazines in crate = magazineCargo crate Array of items in crate = itemCargo crate Array of additional containers in crate (backpacks, vests, uniforms) = backpackCargo crate, vestCargo doesn't exist, neither does uniformCargo Array of the content of the backpacks, vests and uniforms = ?? The backpacks, vests and uniforms themselves in the crate are not so important to me, but their content is. Does anyone have an idea, how to get these arrays? Thanks for your time! -
Detect container + its content in container
Undeceived replied to Undeceived's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Larrow, can you help me once more with this? How can I remove the containers from the crate (or from the _containerArray) after retrieving their contents? I'm asking because there's that bug in the weapon pool system: http://forums.bistudio.com/showthread.php?182958-Weapon-Pool-duplicates-itself-in-campaign-progress-!-! It happens for items, mags and weapons, but also for vests, if they are in the crate. The result is that after approx. four missions I have about 30 vests in the weapon pool - which is quite annoying... :rolleyes: Thank you! -
Weapon Pool duplicates itself in campaign progress
Undeceived replied to Undeceived's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Well, that would solve it, but then the GET/SET scripts would be kind of redundant. Ideally the player should keep his equipment on him after finishing a mission and only take some more gear from the WP, if he's running out of ammo. But if there's no other idea (anyone?), I think I will have to do it that way... A completely different approach would be only to collect what belongs in the WP at the end of a mission and then (in the beginning of the next one) simply ignore what the player has taken from the WP. :j: Does anyone have another sudden inspiration? -
Weapon Pool duplicates itself in campaign progress
Undeceived replied to Undeceived's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Thanks, KK, that works! And tryteyker for your time! It's annoying, but I already have the next problem in line. :rolleyes: FPDR The player can already have some magazines of those in MAGAZINE_POOL. I use aeroson's GET/SET loadout scripts, which passes the player's gear to the next mission and he has it already in the briefing inventory screen (where the weapon pool is). A quick example of the problem: There are 5 magazines "30Rnd_556x45_Stanag" in the weapon pool in the briefing (aka. in MAGAZINE_POOL). The player has 3 magazines "30Rnd_556x45_Stanag" left from the last mission. The player decides that he won't need anymore mags from the WP and starts the mission without taking a mag from it. Killzone_Kid's script is launched after the briefing and sees 3 magazines in the player's inventory and deletes those 3 from MAGAZINE_POOL. :butbut: Is there a way to prevent this or to check if the player has taken something from the WP? Damn, this whole weapon pool workaround is so complicated.... Thanks guys! Your help is great! -
Weapon Pool duplicates itself in campaign progress
Undeceived replied to Undeceived's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Ok, step by step we're getting closer. :D With the following code, no error appers anymore: I took out the _template part and went straight with POOL_MAGAZINES for testing purposes. MAGAZINES_PLAYER = magazines player; // ["30Rnd_556x45_Stanag","30Rnd_556x45_Stanag"] // POOL_MAGAZINES looks like this in this test (4 mags, 2 grenades): // ["30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","HandGrenade","HandGrenade"] for "_w" from 0 to ((count MAGAZINES_PLAYER) -1) do { _gearsel = MAGAZINES_PLAYER select _w; if (_gearsel in POOL_MAGAZINES) then { POOL_MAGAZINES = POOL_MAGAZINES - [_gearsel]; }; }; saveVar "POOL_MAGAZINES"; The problem now is that by using this substraction command POOL_MAGAZINES = POOL_MAGAZINES - [_gearsel];, every string that looks like _gearsel will be deleted from POOL_MAGAZINES. Only the grenades will remain in the array. The info on the BIKI (Arrays) confirms this too The result will be a The example on Substraction on the BIKI page shows it quite well. Now the question is: How can we remove ONLY _gearsel, not all strings that look like _gearsel? -
Weapon Pool duplicates itself in campaign progress
Undeceived replied to Undeceived's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Well, this is what was shown on the screen at least. Not exactly in that line you mentioned if (_gearsel in _template) but in that if then-part, yes. Check the exact location in my post on the previous page. -
Weapon Pool duplicates itself in campaign progress
Undeceived replied to Undeceived's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Yes, that's right. ["nameofmag","nameofmag","nameofmag2","nameofmag3"] (etc...) -
Weapon Pool duplicates itself in campaign progress
Undeceived replied to Undeceived's topic in ARMA 3 - MISSION EDITING & SCRIPTING
["30Rnd_65x39_caseless_green","30Rnd_65x39_caseless_green","30Rnd_65x39_caseless_green"] -
Weapon Pool duplicates itself in campaign progress
Undeceived replied to Undeceived's topic in ARMA 3 - MISSION EDITING & SCRIPTING
tryteyker, the script still gives an error. This time one line later. :) Error -: Type String, expected Number,Array MAGAZINES_PLAYER = magazines player; for "_w" from 0 to ((count MAGAZINES_PLAYER) -1) do { _template = POOL_MAGAZINES; _gearsel = MAGAZINES_PLAYER select _w; if (_gearsel in _template) then { _template = _template - _gearsel; //The error position is right after the - (probably means the _gearsel). }; POOL_MAGAZINES = _template; }; saveVar "POOL_MAGAZINES"; Any idea how to solve this? Thanks! -
Weapon Pool duplicates itself in campaign progress
Undeceived replied to Undeceived's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Thanks, tryteyker. I'm still trying to understand it :j: : This script is launched after the briefing of mission 2, is that right? So it checks what the weapon pool was between mission 1 and mission 2 then checks what the player has taken from the pool in the briefing of mission 2 and then substracts the taken equipment from the pool. Is that right? :o And after that I have to clear the whole pool and add DCV_WEAPON_TEMPLATE to the pool at the end of mission 2 again - together with the stuff, which the player has collected in mission 2. Is that correct? EDIT: I'm trying to implement the above system, but when I use your script, the following error appears: Error Undefined variable in expression: _gearsel I showed you the exact position of the error in the script (see below). I changed your script a little bit by replacing the profileNamespace code by simple saveVar (I want to avoid the profileNamespace). It currently looks like this: (btw. I'll launch the script three times. 1: for the weapons, 2: for the mags, 3: for the items.) //POOL_MAGAZINES is the template for the magazines. It was saveVar'd in the previous mission. MAGAZINES_PLAYER = magazines player; //These are the actual magazines of the player, after having taken stuff from the briefing weapon pool. for "_w" from 0 to ((count MAGAZINES_PLAYER)) do { _template = POOL_MAGAZINES; _gearsel = MAGAZINES_PLAYER select _w; if (_gearsel in _template) then { //This is the line which returns the error. _template = _template - _gearsel; }; POOL_MAGAZINES = _template; }; saveVar "POOL_MAGAZINES"; Why is that undefined? I did define MAGAZINES_PLAYER at the beginning of the script, didn't I? I feel that the solution really is near!!! -
Weapon Pool duplicates itself in campaign progress
Undeceived replied to Undeceived's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Yeah, I'd appreciate it, as I'm quite a noob when it comes to arrays, etc.. :D Thanks, tryteyker! -
Weapon Pool duplicates itself in campaign progress
Undeceived replied to Undeceived's topic in ARMA 3 - MISSION EDITING & SCRIPTING
No, that's not the problem. I can get all equipment and save it as array, I have some scripts for that - Larrow for example helped me to retrieve stuff from containers in crates (backpacks, uniforms and vests) (http://forums.bistudio.com/showthread.php?182394-Detect-container-its-content-in-container) and bardosy helped me with the rest (http://forums.bistudio.com/showthread.php?177988-Items-and-Weapons-Saving). The complicated for me is now that part to compare it to the template and subtract from the template. I think I still didn't get what you mean with template. :) -
Weapon Pool duplicates itself in campaign progress
Undeceived replied to Undeceived's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Thanks, guys, for your input! AZCoder - ok, but how can I know (and then remove) from that array what the player has taken out of the pool for himself and his group members for the next mission? If I'm not mistaken, this is what tryteyker is suggesting, am I right? Damn - now why is my scripting knowledge so limited! :D -
Weapon Pool duplicates itself in campaign progress
Undeceived replied to Undeceived's topic in ARMA 3 - MISSION EDITING & SCRIPTING
It should work like you did it in the debug console. But I still didn't get the idea behind it, I think. :o The WP will not only consist of the one rifle, but of dozens of weapons, magazines and items which the player can collect. And since I don't know which gear he will collect, I can't clear the WP and put stuff in the pool, as you suggested. Or am I missing the point completely? (could very well be because I'm pretty "worn out" because of that problem already. :D :D). IndeedPete, thx for the confirmation! -
Weapon Pool duplicates itself in campaign progress
Undeceived replied to Undeceived's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Thanks, AZCoder. Unfortunately none of the ideas worked or gave me an idea for a workaround... No matter what you (resp. I) do - the "jump" from one mission to the next causes the WP to duplicate itself. And the query commands didn't work too, even in the campaign environment. Even though I have added stuff into the WP, a query command always returns 0. I uploaded a mini campaign with only the relevant scripts. I would highly appreciate it if you guys could take a look at it. Maybe you can find a way to prevent this bug (or confirm that it exists and that there's no workaround - so I can create a ticket in the AFT). Just give the campaign a run. I added some hints to explain, what is happening. Thanks! http://www.mediafire.com/download/dyt1t19ncnzqz50/WPcampaign.7z -
[SP/Campaign] Dying Ember (resistance campaign)
Undeceived replied to Undeceived's topic in ARMA 3 - USER MISSIONS
Great to see you around, Johnnyboy! :) And thanks for the feedback and support over all these years! :) Yeah, the player is supposed to tell the attack team that he's ready (via the radio menu), but this seems not to be clear enough. I'll check if the player did it and will remind him if not (or will let him say it automatically). Looking forward to read more from you! And to see a continuation of Last Tango In Bagango for tue contest!! :D (legendary mission! )- 117 replies
-
- resistance
- civilian
-
(and 5 more)
Tagged with:
-
Weapon Pool duplicates itself in campaign progress
Undeceived replied to Undeceived's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Tryteyker, no matter how tedious it is, I'd do it. :D But the query commands seem to be broken too, at least according to my tests... If anyone got them working, please tell me how you did it! AZCoder, could you please show me an example in BIS campaign? In which scripts they use these clear commands before adding stuff to the pool? I'm surprised by the use because as far as I know (and in my campaign as well) these clearing commands completely erase the pool! So how do they do that...?