Comrades in Arms Discussion Board
Outlawz7's missions workshop - Printable Version

+- Comrades in Arms Discussion Board (http://forum.ciahome.net)
+-- Forum: Comrades in Arms Life (http://forum.ciahome.net/forumdisplay.php?fid=3)
+--- Forum: Mission Releases (http://forum.ciahome.net/forumdisplay.php?fid=9)
+--- Thread: Outlawz7's missions workshop (/showthread.php?tid=2393)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27


Re: Outlawz7's missions workshop - Outlawz7 - 07-26-2014

Dropdown: Frini - (co12)
- Drop down on a NATO FOB

http://steamcommunity.com/sharedfiles/filedetails/?id=291538373


Sub Raid on Workshop, small update
http://steamcommunity.com/sharedfiles/filedetails/?id=291542904


Re: Outlawz7's missions workshop - Variable - 07-26-2014

Thanks Outlawz! Can you please post direct links to PBOs rather than workshop pages, yours truly will highly appreciate it.

About THE AWESOME Sub Raid mission - have you fixed the weapon pick crash?


Re: Outlawz7's missions workshop - Varanon - 07-26-2014

Is that the same crash as in choplifter?


Re: Outlawz7's missions workshop - Variable - 07-26-2014

(07-26-2014, 08:49 PM)Varanon link Wrote:Is that the same crash as in choplifter?
Yep, exactly the same... If memory serves, I was not the only one who crashed on choplifter, so I suppose it's not on my end, any idea?


Re: Outlawz7's missions workshop - Outlawz7 - 07-26-2014

Fix what? I never had that issue and don't know how could it be caused by the mission.


Re: Outlawz7's missions workshop - Variable - 07-26-2014

Did anyone else tried to pick up a weapon on that mission?


Re: Outlawz7's missions workshop - Varanon - 07-27-2014

In Choplifter, looking at the name of the mk20 shows a very long, repeated name. Dunno about other weapons. I think this is a server bug, though, I can't see how a mission could cause that. Might also be one of the addons.

For choplifter, we could try without addons...


Re: Outlawz7's missions workshop - Variable - 07-27-2014

(07-27-2014, 10:10 AM)Varanon link Wrote:In Choplifter, looking at the name of the mk20 shows a very long, repeated name. Dunno about other weapons. I think this is a server bug, though, I can't see how a mission could cause that. Might also be one of the addons.

For choplifter, we could try without addons...
Pretty sure I tried to pick a Mk20 rifle on Outlawz mission too. Damn it, I have no idea how to start troubleshooting this.


Re: Outlawz7's missions workshop - Alwarren - 07-28-2014

Okay, it seems we found out why it crashes. Your loadout script runs once per client, so everybody had like five pistols. Once you get rid of the extra pistols, you can pick up enemy rifles again.

I have a method of adding custom loadouts that is quite safe. I have the following script in a function module (works with call preprocessFileLineNumbers as well):

Code:
_unit = _this select 0;
_scriptName = _this select 1;

if (!local _unit) exitWith {};

_isHandled = _unit getVariable "FHQ_loadout_handled";
   
if (isNil "_isHandled") then {
       
    _unit setVariable ["FHQ_loadout_handled", true, true];
    _unit call compile preprocessFileLineNumbers _scriptName;
};

Use as

[this, "scripts\loadout.sqf"] call FHQ_fnc_safeAddLoadout;

from the init field. That also prevents them from being re-applied when JIPing or being revived.


Re: Outlawz7's missions workshop - Outlawz7 - 07-28-2014

http://ciahome.net/forum/index.php?topic=2979.msg25705#msg25705


Re: Outlawz7's missions workshop - Outlawz7 - 07-28-2014

I'd like to appropriate that function, is that all there is to it?


Re: Outlawz7's missions workshop - Alwarren - 07-28-2014

(07-28-2014, 04:43 PM)Outlawz7 link Wrote:I'd like to appropriate that function, is that all there is to it?

Yeah. In essence, it just sets a variable indicating that the loadout was applied. Thus, it won't apply it again ieven if something runs the init field or init.sqf again.


Re: Outlawz7's missions workshop - Outlawz7 - 07-28-2014

Can I use the command in init.sqf?


--------------------------
https://dl.dropboxusercontent.com/u/35519913/co06_otl7_sub_raid.Altis.pbo

Now with alwarren's function (also one UW mag and 3 medkits per loadout because I realized I set the first aid script to require them for first aiding)


Re: Outlawz7's missions workshop - Variable - 07-28-2014

Uploaded. Thanks Outlawz!


Re: Outlawz7's missions workshop - Alwarren - 07-28-2014

(07-28-2014, 06:00 PM)Outlawz7 link Wrote:Can I use the command in init.sqf?

Yeah, works too.