Support #11162

Ammobox script creator

Added by Salah about 5 years ago. Updated about 5 years ago.

Status:Closed Start date:06/12/2010
Priority:Normal Due date:
Assignee:Sickboy % Done:

100%

Category:-
Target version:1.3
Component: Affected Version:
Close Reason:

Description

Hi,

the amount of different weapons and gear available in ACE2 is overwhelming.

Is there somewhere a little GUI/Application that will allow me to select various equipments (weapons, ammo, others things) and it creates a script for me that I can then simply copy/paste into the init field of an ammo box?

Something like a three-columns setup. On the left there is a classlist browser, in the middle a list of selected items with quantity for each item, and on the right a text window with the resulting script.

Thanks


Related issues

related to SIX Config Browser - Feature #10810: Add generators (for weaponboxes etc) In progress 05/24/2010

Associated revisions

Revision d1ace6aa
Added by Sickboy about 5 years ago

~ Added: ACE_fnc_changeLoadout function. refs #11162

Revision 7d7267e7
Added by Sickboy about 5 years ago

Changed: Added removeExisting optional parameter to changeLoadout function. refs #11162

Revision 97bec842
Added by Sickboy about 5 years ago

Changed: added locality check and documented optional parameter. refs #11162

Revision b6d3c35a
Added by Sickboy about 5 years ago

Fixed: Example. refs #11162

History

Updated by Sickboy about 5 years ago

  • Status changed from New to In progress
  • Assignee set to Sickboy
  • % Done changed from 0 to 20
There's a couple of things:

Other than that, I am working on a crate script generator, basically what you are looking for.
A prototype is available at http://browser.dev-heaven.net/cfg_weapons/generator
See #10810 for related ticket.

Updated by Salah about 5 years ago

Thanks for the quick answer.

I already found the classlist browser, but what I was looking for is the script generator. I'll have a look at your prototype.

I forgot to mention, the script should be able to add gear to units, too, and remove e.g. any exisitng gear.

Updated by Sickboy about 5 years ago

  • % Done changed from 20 to 30

NP. Added function ACE_fnc_changeLoadout for next update.
Examples:
From script:

[player, ["M16A2", "Binoculars"], [["Mine", 3], ["Handgrenade", 5]]] call ACE_fnc_changeLoadOut;

From initLine:
0 = [this, ["M16A2", "Binoculars"], [["Mine", 3], ["Handgrenade", 5]]] spawn ACE_fnc_changeLoadOut;

I'll see about adding support for this function into the generator, so you can select/filter and output into the weapons and magazine array format of the function.

Updated by Salah about 5 years ago

Sickboy wrote:

NP. Added function ACE_fnc_changeLoadout for next update.
Examples:
From script:[...]
From initLine:[...]

I'll see about adding support for this function into the generator, so you can select/filter and output into the weapons and magazine array format of the function.

Sory Sickboy, but that went right over my head. What exactly will this function do?

Updated by rocko about 5 years ago

Removes all weapons and magazines for unit and adds M16, Binocular, 3 mines and 5 handgrenades.

Updated by rocko about 5 years ago

  • Target version set to 1.0.3

Updated by Sickboy about 5 years ago

  • Target version changed from 1.0.3 to 1.3

Updated by Sickboy about 5 years ago

  • Status changed from In progress to Closed
  • % Done changed from 30 to 100

Updated by Salah about 5 years ago

Hello Sickboy,

I am looking forward to what you have made possible. While searching some more on the net, I found something someone made for OFP and Armed Assault. Sadly, the programmer has abandoned the project, even his website is down. But his program is basically what I was looking for:

http://www.armaholic.com/page.php?id=1455

I see that the actual class names are in .DAT files in simple text format. Basically, by editing these files with the appropriate ACE2 classnames one should be able to make an ACE2 Editor.

I will look into this.

Updated by Salah about 5 years ago

Hmkay, is there any way the classlist browser of yours can give me an output like this?

AK74,30Rnd_545x39_AK,1
AK74GL,30Rnd_545x39_AK,1,1Rnd_HE_GP25,1
AKS74PSO,30Rnd_545x39_AK,1
AKS74U,30Rnd_545x39_AK,1
AKS74UN,30Rnd_545x39_AKSD,1
G36A,30Rnd_556x45_G36,1
G36C,30Rnd_556x45_G36,1
G36K,30Rnd_556x45_G36,1
KSVK,5Rnd_127x108_KSVK,1
M107,10Rnd_127x99_m107,1
M16A2,30Rnd_556x45_Stanag,1
M16A2GL,30Rnd_556x45_Stanag,1,1Rnd_HE_M203,1
M16A4,30Rnd_556x45_Stanag,1
M16A4_ACG,30Rnd_556x45_Stanag,1
M16A4_ACG_GL,30Rnd_556x45_Stanag,1,1Rnd_HE_M203,1
M16A4GL,30Rnd_556x45_Stanag,1,1Rnd_HE_M203,1
M24,5Rnd_762x51_M24,1
M240,100Rnd_762x51_M240,2
M249,200Rnd_556x45_M249,2
M4,30Rnd_556x45_Stanag,1
M4A1,30Rnd_556x45_Stanag,1
M4A1GL,30Rnd_556x45_Stanag,1,1Rnd_HE_M203,1
M4A1SD,30Rnd_556x45_StanagSD,1
M4AIM,30Rnd_556x45_Stanag,1
M4GL,30Rnd_556x45_Stanag,1,1Rnd_HE_M203,1
M4SPR,30Rnd_556x45_Stanag,1
MP5A5,30Rnd_9x19_MP5,1
MP5SD,30Rnd_9x19_MP5SD,1
PK,100Rnd_762x54_PK,2
SVD,10Rnd_762x54_SVD,1

JAVELIN,JAVELIN,6
LaserDesignator,LaserBatteries,6
M136,M136,2
RPG7V,PG7V,2
STINGER,STINGER,6
STRELA,STRELA,6

Updated by Salah about 5 years ago

Oh god, this is getting more exciting. It seems he uploaded the last version of his program with an A2 patch in May 2010 on Armed Assault Info.

http://www.armedassault.info/index.php?s=ff818a4e0805a3b2216a9c377d9cf4f0&game=1&cat=utilities&id=97

Updated by Sickboy about 5 years ago

NP, thanks for the ideas n feedback :)
is this what you looking for? http://browser.dev-heaven.net/cfg_weapons/generator/?options[view]=chris
Only missing is multi-muzzle, like GL M203/GP25 etc, but i'll get that done if you like it.

A2 OA version is also in there, perhaps an OA editor as well? :D

Updated by Salah about 5 years ago

Excellent! that Chris output is exactly the correct format to edit the data for the unit wizard.

I wonder though why you are using the ACE_ magazines and not the standard named ones. I would really like to know what is the difference between "ACE_30Rnd_762x39_T_AK47" and "30Rnd_762x39_AK47" ? In the normal classlist browser, both are listed for the AK103 for example. Does the T stand for Tracer round?

Where is the difference if I "addmagazine" a mag type with ACE_ in front versus adding a regular magazine. Also, what are those "muzzle" magazines and do I have to consider them if I want to edit Chris' tool?

I suppose this is related to the ACE ammo system, where you swap generic mags for the needed ones, but I haven't really found an easy explanation for this.

one other kind of output needed (if you can spare the time) is a list of each weapon and below that the magazines that can be used with that weapon, like this (taken from the classlist browser):

ACE_AK103_GL
30Rnd_762x39_AK47
ACE_30Rnd_762x39_T_AK47
GP25Muzzle (huh, what is this for a type of ammo?)
1Rnd_HE_GP25
1Rnd_SMOKE_GP25
1Rnd_SmokeGreen_GP25
1Rnd_SmokeRed_GP25
1Rnd_SmokeYellow_GP25
ACE_1Rnd_CS_GP25
ACE_1Rnd_HE_GP25P
ACE_SSGreen_GP25
ACE_SSRed_GP25
ACE_SSWhite_GP25
ACE_SSYellow_GP25
FlareGreen_GP25
FlareRed_GP25
FlareWhite_GP25
FlareYellow_GP25
ACE_GP25Muzzle_AI (hm, a muzzle ammo type again)
1Rnd_HE_GP25
1Rnd_SMOKE_GP25
1Rnd_SmokeGreen_GP25
1Rnd_SmokeRed_GP25
1Rnd_SmokeYellow_GP25
ACE_1Rnd_CS_GP25
ACE_1Rnd_HE_GP25P
ACE_SSGreen_GP25
ACE_SSRed_GP25
ACE_SSWhite_GP25
ACE_SSYellow_GP25
FlareGreen_GP25
FlareRed_GP25
FlareWhite_GP25
FlareYellow_GP25

Hm, there seem to be quite some duplicates in there. ???

Sorry to turn this into a kind of support ticket.

Also available in: Atom PDF