Jump to content
Sign in to follow this  
vancer2

Need help with Backpacks

Recommended Posts

Im trying to convert the Get backpack dialog from Xenos new domination into an i44 domination But no matter what i do I cant get the ammo box to spawn. When i copy and paste the Backpackdialog.hpp over My game will crash with an error talking about X_dlg\BackpackDialog line 0 ( encountered instead of {

I shouldnt have to edit the file at all I really want to use this But its just not workign for me. Anyone got any ideaS?

Share this post


Link to post
Share on other sites

checking your .rpt file for location of the error and using showscripterrors will help alot.

also this is a question best asked in the i44 or editing domination thread.

most likely the answer is already in there and you dont have to ask, just search for it.

Share this post


Link to post
Share on other sites

For Windows 7:

C:\Users\username\AppData\Local\ArmA 2 OA\arma2oa.RPT

It's just a text file so open it with Notepad or something. I use Context myself since it'll prompt me to refresh it if it's changed.

Share this post


Link to post
Share on other sites

Ok i found it But i dont understand what the file is trying to show me. Are their any tools that can fix the problem its telling me? For example I dont understand what this line is saying

private ["_a",">

Error Missing ;

File mpmissions\__cur_mp.Chernarus\x_client\x_playerammobox.sqf, line 9

Error in expression <];

Share this post


Link to post
Share on other sites

Your missing an ";" on line 9 of x_playerammobox.sqf

Share this post


Link to post
Share on other sites

that cant be right its right here heres the line from line 9

_box_array = GVAR(player_ammobox_pos);

Share this post


Link to post
Share on other sites

think of the .rpt like a compass, it will point you in the right direction. Also understanding how the game compiles code will help you as well.

We write code in a nice multi line fashion so that we can read the code, the game will then compile all that into one huge line of code,so sometimes if there is an error it could be a problem in the line above or below the error.

Your going to have to post the whole section of your .rpt that ran for that mission, and then post those scripts that it found errors in.

Share this post


Link to post
Share on other sites

The private ["_a","> is probably the line that's missing the ; or a " in there somewhere, you might have a

private["_a","_b",_c];
_box_array = GVAR(player_ammobox_pos); 

And it'll report the error on the GVAR line since it realized at that point that there's a problem even though the problem was with the _c object not being a string in the previous line.

Best to just upload your mission as you have it to speed up debugging. :)

Share this post


Link to post
Share on other sites

That's just the mission.sqm, we need the scripts as well, so 7zip up the whole i44whatever.chernarus folder. :)

Share this post


Link to post
Share on other sites

Ooh, i totally read this thread wrong, thought you were trying to get the backpack system from domination working in another mission not combining i44 and A2 and Domi all together. Yikes...

Don't see anything obviously wrong with those files though unless player_ammobox_pos isn't declared somewhere previously.

I'll check it out when I get home, don't have i44 here. :/

Share this post


Link to post
Share on other sites

I still havnt figured this out. Does anyone know how to go about fixing this?

Share this post


Link to post
Share on other sites

Put down an Objects(Military) -> Bagheap and I added this to it's init field:

_nul = [this] execVM "bagheap.sqf"; this addEventHandler ["HandleDamage", {false}];

To make i44 backpacks available you'd edit that bagheap.sqf file:

_heap = _this select 0;

_heap addAction ["Take German Bag", "addBackpack.sqf", ["I44_Bag_G"]];
_heap addAction ["Take German CO Bag", "addBackpack.sqf", ["I44_Bag_G_CO"]];
_heap addAction ["Take German NCO Bag", "addBackpack.sqf", ["I44_Bag_G_NCO"]];
_heap addAction ["Take German Radio Bag", "addBackpack.sqf", ["I44_Bag_G_Radio"]];
_heap addAction ["Take German Medic Bag", "addBackpack.sqf", ["I44_Bag_G_Medic"]];
_heap addAction ["Take MG42 Bag", "addBackpack.sqf", ["I44_Bag_MG42"]];
_heap addAction ["Take GrWM34 Bag", "addBackpack.sqf", ["I44_Bag_GrWM34"]];
_heap addAction ["Take Tripod Bag", "addBackpack.sqf", ["Tripod_Bag"]];
_heap addAction ["Remove Backpack", "addBackpack.sqf", [""]];

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
Sign in to follow this  

×