Jump to content
Raziaar

config.cpp Array concatenation?

Recommended Posts

Hey guys... I'm actually doing this for ARMA 1, but posting here since I figure I can get more responses quicker as the ARMA 1 editing forums are pretty dead, and I'm assuming ARMA 2 is still very similar to ARMA 1.

I am trying to add together two arrays... or better yet simply adding to the end of the array.

First file...

magazines[] = {"blahblah", "blahblah", "blahblah", "blahblah", "blahblah", "blahblah", "blahblah"};

Second file...

magazines[] = {"newblahblahnew"};

The second file overwrites the entirety of the first file's array... which I guess is to be expected. I want however to append my additions to that original array without overriding it.

I'm not exactly sure how to add arrays together or concatenate them. I could just take all of the contents of the first array... copy and paste them into the array on the second file... and add my other item to it. However that seems like a poor way to do it and I want it to be more flexible.

Can somebody help?

EDIT; Yeah I need to figure this out... because it's eliminating some objects that it shouldn't be... because it's overwriting what I cannot see in my files.

Edited by Raziaar

Share this post


Link to post
Share on other sites

Not that I'm aware of.

I made extensive tests long time ago trying to add my handgrenades into the class Throw muzzles but with no joy - the idea back then was to use #define in some way (ifdef _FDF_handgrenadeMuzzle -> then create a magazinearray including my grenades and FDF handgrenades and so on) but I never made it work so running my swedish infantry with other mods like FDF - or as back in OFP the nice UKF and OFrP (won't happen now will it :( ) - one have to load the addon one plans to play as last in the mod string since that one will "win" the class Throw war.

But I'd be very interested to see a solution for this me too.

Share this post


Link to post
Share on other sites
Hey guys... I'm actually doing this for ARMA 1, but posting here since I figure I can get more responses quicker as the ARMA 1 editing forums are pretty dead, and I'm assuming ARMA 2 is still very similar to ARMA 1.

+1 infraction for posting in the wrong forum on purpose.

Share this post


Link to post
Share on other sites

I think you're a bit late there, shay_gman...

  • Like 1

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×