vancer2 14 Posted July 11, 2011 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
demonized 20 Posted July 11, 2011 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
vancer2 14 Posted July 11, 2011 Where do i find these RPT files at? Share this post Link to post Share on other sites
kylania 568 Posted July 11, 2011 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
vancer2 14 Posted July 11, 2011 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
riouken 15 Posted July 11, 2011 Your missing an ";" on line 9 of x_playerammobox.sqf Share this post Link to post Share on other sites
vancer2 14 Posted July 11, 2011 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
riouken 15 Posted July 11, 2011 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
kylania 568 Posted July 11, 2011 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
vancer2 14 Posted July 11, 2011 http://www.2shared.com/file/JGB_TQlR/mission.html theres the mission and heres the rpt http://www.2shared.com/file/RyFLRlL6/ArmA2OA.html Share this post Link to post Share on other sites
kylania 568 Posted July 11, 2011 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
vancer2 14 Posted July 11, 2011 okays http://www.2shared.com/file/DMXwiGXb/i44_Dom_Ger_nogyro_fx_VanceChe.html Share this post Link to post Share on other sites
kylania 568 Posted July 11, 2011 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
vancer2 14 Posted July 11, 2011 Well this works in another mission if u want to check this one here it is the ammo box has the dialog that im trying to get but it wont work http://www.2shared.com/file/41jEewZG/Playground_1944_currentTakista.html Share this post Link to post Share on other sites
vancer2 14 Posted July 13, 2011 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
kylania 568 Posted July 15, 2011 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