Jump to content

Photo
- - - - -

Bringing A2 weapon addons to A3


  • Please log in to reply
102 replies to this topic
Thread Starter
GvsE
GvsE

    Gunnery Sergeant

  • Members
  • 436 posts

#1

Posted 06 March 2013 - 12:05

Hi guys,

i'd appreciate it if somebody could explain or direct me to a relevant thread that elaborates what needs to be done to bring weapons we have in A2 to A3. Im thinking of a "forced" port that does not account for e.g. reload animations or modularity of weapons, but which still lets you use old weapons in A3. Any chance that such a sloppy job requires simple editing of given lines of config files or am I being too optimistic here?


EDIT: a SLOPPY solution!
If you want A2, OA default weapons and some custom weapon addons (e.g. RH smg pack, Christian's mp7 pack, etc.) you need to load your custom addons along with these BIS pbo's:
a. weapons.pbo, weapons2.pbo (which you will find in your Arma2/OA directory: C:\Program Files (x86)\Bohemia Interactive\AddOns)
b. weapons_e.pbo (which you will find in your Arma2/OA directory: C:\Program Files (x86)\Bohemia Interactive\Expansion\Addons)

Just copy these pbo's to one folder and load it as you would your other addons.

Bear in mind that this is a quick and dirty job: you will get errors as the game is loaded, weapons will not be modular, you probably won't have muzzle flashes. You should be able to see, hear and shoot these weapons in A3 though!

EDIT 2. THE RIGHT WAY: ALWARREN'S TUTORIAL
Check this page, where Alwarren has kindly written a tutorial instructing what needs to be done to do a propoer port of individual weapons.
Thank you kindly Alwarren! :)

Edited by GvsE, 09 March 2013 - 09:00.


R0adki11
R0adki11

    Major R0adki11

  • Moderator
  • 4907 posts
  • LocationGreat Britain

#2

Posted 06 March 2013 - 13:20

Hi guys,

i'd appreciate it if somebody could explain or direct me to a relevant thread that elaborates what needs to be done to bring weapons we have in A2 to A3. Im thinking of a "forced" port that does not account for e.g. reload animations or modularity of weapons, but which still lets you use old weapons in A3. Any chance that such a sloppy job requires simple editing of given lines of config files or am I being too optimistic here?


You should probably check out this thread: http://forums.bistud...elp-will-we-get

topas
topas

    Sergeant Major

  • Members
  • 1568 posts

#3

Posted 06 March 2013 - 13:21

> this

There should be some package with tools, tutorials and examples available some time later. Not right away with Alpha launch, from purely practical reasons - all the efforts went to making the actual game first. But I really look forward to support the whole modding thing more, will gladly make some tutorials when all is ready.
(...)
---------- Post added at 11:44 AM ---------- Previous post was at 11:38 AM ----------

Gun models are pretty much the same as in A2, except they have extra proxy slots for attachments. But I dare to guess the conversion will be possible with current A2 tools - I once tried to run an old Arma2 AK74 in Arma3 by just replacing the model of existing rifle and it worked pretty okay right away. There might be some difference in named selections and material settings, but overall there shoudl be no showstopping problems.


edit:
ninja'd

Thread Starter
GvsE
GvsE

    Gunnery Sergeant

  • Members
  • 436 posts

#4

Posted 06 March 2013 - 13:31

Thanks, I did just now. The only useful thing there is Vespa's statement:

Gun models are pretty much the same as in A2, except they have extra proxy slots for attachments. But I dare to guess the conversion will be possible with current A2 tools - I once tried to run an old Arma2 AK74 in Arma3 by just replacing the model of existing rifle and it worked pretty okay right away. There might be some difference in named selections and material settings, but overall there shoudl be no showstopping problems.


This isn't specific enough though. Any other hints?

Edit: hehe, you beat me to it topas. ;)

R0adki11
R0adki11

    Major R0adki11

  • Moderator
  • 4907 posts
  • LocationGreat Britain

#5

Posted 06 March 2013 - 13:53

This isn't specific enough though. Any other hints?


No other hints yet, i guess its too early yet. When we are at BETA stage i guess we might know more.

Thread Starter
GvsE
GvsE

    Gunnery Sergeant

  • Members
  • 436 posts

#6

Posted 06 March 2013 - 14:24

I don't think so. The knowledge is already out there. Look at this test version which works just fine (reload animation works as well): http://www.armaholic...ge.php?id=18741

Some popular weapon packs can already be loaded without major hassle: take RH smg for instance, and you'll get pistol versions of mp7, mp5k and one more. Sure, they lack reload animation but they CAN be loaded into the game. I bet there's something in config that prevents the other weapons from appearing, but I do not know what it is. :(

R0adki11
R0adki11

    Major R0adki11

  • Moderator
  • 4907 posts
  • LocationGreat Britain

#7

Posted 06 March 2013 - 15:31

I don't think so. The knowledge is already out there. Look at this test version which works just fine (reload animation works as well): http://www.armaholic...ge.php?id=18741

Some popular weapon packs can already be loaded without major hassle: take RH smg for instance, and you'll get pistol versions of mp7, mp5k and one more. Sure, they lack reload animation but they CAN be loaded into the game. I bet there's something in config that prevents the other weapons from appearing, but I do not know what it is. :(


I didn't realise that had been released, might see if i can get my Nogovan Rifles Arma2 addon working in Arma3.

granq
granq

    Sergeant Major

  • Members
  • 1954 posts

#8

Posted 06 March 2013 - 16:47

How to bring A2 weapons to A3.

First, I know sooo many people know this already, shouldn't take so much time. So please people, if you know stuff, share it. Only way for the community to advance.

Now on topic..

If you have a weapon with built in silencer (no muzzle flash) and no attachment you are lucky, your weapon already have all that is needed, but then you probably wouldn't look here anyway right.

So this is for weapons with muzzle flash and all the attachments.

Step 1 - Remove unneeded content
This means the A2 proxy for muzzle flash and scopes, IR pointers.

Step 2 - Add proxies to your model
Look at your weapon from the side.
Click on the menu Create and choose proxy

Write:
\a3\data_f\proxies\weapon_slots\muzzle.001

Repeat but write instead:
[I]\a3\data_f\proxies\weapon_slots\top.001
\a3\data_f\proxies\weapon_slots\side.001


This gives the places for attachments.

For muzzle flash write:

[I]\a3\data_f\proxies\muzzle_flash\muzzle_flash_rifle_mk20


In config, just inherit from one of the current weapons.

I hope this was enough to get your guys started and then someone else can keep writing.
My streaming Perhaps catch me working on some addons.
http://www.anrop.se Swedish ArmA community.

Slatts
Slatts

    Chief Warrant Officer

  • Members
  • 3414 posts

#9

Posted 06 March 2013 - 17:31

Cool :D will try this out on the M4

Any idea how to create custom optics to attach so I can bring over the Western Arma 2 optics I have?
Twitter: https://twitter.com/Slatts_modding
PhotoBucket album: http://s296.beta.pho...ro-man/library/

Slatts & HydroPump - Brothers in ArmA since 2002

Help fuel the Monster fund! And in turn, help me create more free content!
https://www.paypal.c...d=VBKWN4UGDL676

Stiltman
Stiltman

    Sergeant

  • Members
  • 139 posts

#10

Posted 06 March 2013 - 18:00

not to hard, just make a p3d with the optic in it just remember to have a memory lod with the eye point.
then its mostly just config work to get it working, only problem i see is that all the weapons need a compatibleItems[] in the cowsslot config, meaning that vanilla weapons wont be able to use your new optics
unless you overwrite the vanilla ones which isnt a good idea if one would have 2 addons that both overwrite the vanilla values.

weaponslotinfo config that should be in the weapon config of your weapon, where i had to add my optics classname to be able to use it on my weapon.
class WeaponSlotsInfo : WeaponSlotsInfo {
			class MuzzleSlot : SlotInfo {
				linkProxy = "\A3\data_f\proxies\weapon_slots\MUZZLE";
				compatibleItems[] = {"muzzle_snds_h"};
			};
			
			class CowsSlot : CowsSlot {
				compatibleItems[] = {"optic_Arco", "optic_aco", "optic_ACO_grn", "optic_hamr", "optic_Holosight","[B]optic_sam_aimpoint[/B]","[B]optic_sam_aimpoint_3x[/B]"};
			};
			
			class PointerSlot : PointerSlot {};
		};


config for optics i used, works well for me.
class cfgWeapons {
	class ItemCore;	// External class reference
	class InventoryItem_Base_F;	// External class reference
	class InventoryMuzzleItem_Base_F;	// External class reference
	class InventoryOpticsItem_Base_F;	// External class reference
	class InventoryFlashLightItem_Base_F;	// External class reference
	
	class optic_sam_aimpoint : ItemCore {
		scope = 2;
		displayName = "Aimpoint CS";
		picture = "\A3\weapons_F\Data\UI\gear_acco_EOTxps3_CA.paa";
		model = "\sam_acc\optic_aimpoint";
		descriptionShort = "1x, unlimited eye relief";
		weaponInfoType = "RscWeaponZeroing";
		
		class ItemInfo : InventoryOpticsItem_Base_F {
			mass = 4;
			RMBhint = "Aimpoint";
			modelOptics = "\A3\Weapons_F\empty";
			optics = 1;
			
			class OpticsModes {
				class Kolminator {
					opticsID = 1;
					useModelOptics = 0;
					opticsZoomMin = 0.375;
					opticsZoomMax = 1.1;
					opticsZoomInit = 0.75;
					memoryPointCamera = "eye";
					opticsFlare = 0;
					opticsDisablePeripherialVision = 0;
					distanceZoomMin = 300;
					distanceZoomMax = 300;
					cameraDir = "";
					visionMode[] = {};
					opticsPPEffects[] = {""};
				};

				class Backup : Kolminator {
					opticsID = 2;
					useModelOptics = 0;
					opticsFlare = 0;
					opticsDisablePeripherialVision = 0;
					opticsZoomMin = 0.25;
					opticsZoomMax = 1.1;
					opticsZoomInit = 0.5;
					memoryPointCamera = "backup";
					visionMode[] = {};
				};
			};
		};
	};
};

Posted Image

Thread Starter
GvsE
GvsE

    Gunnery Sergeant

  • Members
  • 436 posts

#11

Posted 06 March 2013 - 18:06

Thank you for the input guys!
In the meantime I have figured out a quick and sloppy way to load those old addons into A3 (see updated first post).
Keep sharing detailed instructions on how to port addons so that the community may benefit!

granq
granq

    Sergeant Major

  • Members
  • 1954 posts

#12

Posted 06 March 2013 - 18:32

optic_sam, should be sam_optic right?
My streaming Perhaps catch me working on some addons.
http://www.anrop.se Swedish ArmA community.

RobertHammer
RobertHammer

    Second Lieutenant

  • Members
  • 4779 posts

#13

Posted 06 March 2013 - 18:48

great info guys - I appreciate it :)
Posted ImagePosted Image
There's one place for One Snake and for One BigBoss !!!
Posted Image

granq
granq

    Sergeant Major

  • Members
  • 1954 posts

#14

Posted 06 March 2013 - 21:16

some of these might not look so good, but if you want a different muzzle flash try one of these.

muzzle_flash1.p3d
muzzle_flash2.p3d muzzle_flash3.p3d
muzzle_flash_2x2.p3d muzzle_flash_2x2_Front.p3d
muzzle_flash_GM6.p3d muzzle_flash_GMG.p3d
muzzle_flash_Mk20_Front.p3d muzzle_flash_pistol.p3d
muzzle_flash_pistol_FlareGun.p3d muzzle_flash_pistol_Mk26.p3d
muzzle_flash_pistol_P07.p3d muzzle_flash_pistol_Ruger.p3d
muzzle_flash_rifle_AA40.p3d muzzle_flash_rifle_GM6.p3d
muzzle_flash_rifle_KRISS.p3d muzzle_flash_rifle_KSG.p3d
muzzle_flash_rifle_M200.p3d muzzle_flash_rifle_M230.p3d
muzzle_flash_rifle_M4.p3d muzzle_flash_rifle_Mk20.p3d
muzzle_flash_rifle_MX25.p3d muzzle_flash_rifle_PDW2000.p3d
muzzle_flash_rifle_RFB.p3d muzzle_flash_rifle_Scorpion.p3d
muzzle_flash_rifle_TRG20.p3d muzzle_flash_rocket_70mm.p3d
muzzle_flash_rocket_Aim9x.p3d muzzle_flash_rocket_Hellfire.p3d
muzzle_flash_rocket_Zephyr.p3d muzzle_flash_silencer.p3d
muzzle_flash_XM25.p3d Smoke_white_tail.p3d


I have been looking into codes and files.. not ingame, so can't say how this is actually used but I noticed there is also some gunfire script.. but anyway, you will find out :)
My streaming Perhaps catch me working on some addons.
http://www.anrop.se Swedish ArmA community.

Duhoy
Duhoy

    Private First Class

  • Members
  • 29 posts

#15

Posted 07 March 2013 - 00:27

EDIT: a SLOPPY solution!
If you want A2, OA default weapons and some custom weapon addons (e.g. RH smg pack, Christian's mp7 pack, etc.) you need to load your custom addons along with these BIS pbo's:
a. weapons.pbo, weapons2.pbo (which you will find in your Arma2/OA directory: C:\Program Files (x86)\Bohemia Interactive\AddOns)
b. weapons_e.pbo (which you will find in your Arma2/OA directory: C:\Program Files (x86)\Bohemia Interactive\Expansion\Addons)

Just copy these pbo's to one folder and load it as you would your other addons.

Bear in mind that this is a quick and dirty job: you will get errors as the game is loaded, weapons will not be modular, you probably won't have muzzle flashes. You should be able to see, hear and shoot these weapons in A3 though!

You told me how to make them so the game loads them in but how to I actually use the guns?

Thread Starter
GvsE
GvsE

    Gunnery Sergeant

  • Members
  • 436 posts

#16

Posted 07 March 2013 - 08:52

I assume you know you should use the editor to test these weapons.
1. When inside the Editor, double-click anywhere on the map and place a Unit, for example "Rifleman".
2. Make sure the Unit is set as the "Player" and not "Playable" or "Non-Playable".
3. Double click on the map again and select Empty Units/Ammo
4. Now select ammo boxes (unfortunately many A2/OA ammo boxes will have no names here so you'll need to experiment)
Alternatively (and that's what I do) use the crate filler script by Tonic: http://www.armaholic...ge.php?id=18772

Hope this helps

Alwarren
Alwarren

    Warrant Officer

  • Members
  • 2640 posts

#17

Posted 07 March 2013 - 19:43

not to hard, just make a p3d with the optic in it just remember to have a memory lod with the eye point.
then its mostly just config work to get it working, only problem i see is that all the weapons need a compatibleItems[] in the cowsslot config, meaning that vanilla weapons wont be able to use your new optics
unless you overwrite the vanilla ones which isnt a good idea if one would have 2 addons that both overwrite the vanilla values.


Doesn't that mean that essentially there is going to be a big issue with, say, making an attachment pack since that will only work on vanilla guns? I mean, you don't strictly add your own attachments to the list, you repeat the whole list but this time without the attachments.

It would be much better if there was a way to extend the array. For example, instead of writing
compatibleItems[] = {"optic_Arco", "optic_aco", "optic_ACO_grn", "optic_hamr", "optic_Holosight","optic_sam_aimpoint","optic_sam_aimpoint_3x"};

a syntax like

compatibleItems[] += {"optic_sam_aimpoint","optic_sam_aimpoint_3x"};

would ensure you can use all the standard items PLUS your own items.

Otherwise, there's going to be a CF with what items fit on what weapon.

I don't think this is possible right now, but without such a mechanic, I foresee trouble. Or am I overlooking something?
Posted Image Posted Image
Join the Community Upgrade Project (thread website)

Slatts
Slatts

    Chief Warrant Officer

  • Members
  • 3414 posts

#18

Posted 07 March 2013 - 20:12

Has anyone got class names for the rifles? I can't open up the PBO :(
Twitter: https://twitter.com/Slatts_modding
PhotoBucket album: http://s296.beta.pho...ro-man/library/

Slatts & HydroPump - Brothers in ArmA since 2002

Help fuel the Monster fund! And in turn, help me create more free content!
https://www.paypal.c...d=VBKWN4UGDL676

dimitri_harkov
dimitri_harkov

    Master Sergeant

  • Members
  • 799 posts

#19

Posted 07 March 2013 - 20:15

there is already an all in one config available over at kju's devHeaven page.
Posted Image

Slatts
Slatts

    Chief Warrant Officer

  • Members
  • 3414 posts

#20

Posted 07 March 2013 - 20:23

Ah sweet thanks man, missed that :)
Twitter: https://twitter.com/Slatts_modding
PhotoBucket album: http://s296.beta.pho...ro-man/library/

Slatts & HydroPump - Brothers in ArmA since 2002

Help fuel the Monster fund! And in turn, help me create more free content!
https://www.paypal.c...d=VBKWN4UGDL676