ColonelSandersLite 0 Posted April 23, 2006 Alright, onMapSingle Click works erratically with ecp 1.085. It'll work between 1 and 10 times, then quit. I'm just posting this in the mission editing & scripting area to let anybody that makes missions designed for use with ecp know. Sample mission below: Everon mission.sqm <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">version=11; class Mission { randomSeed=9605123; class Intel { }; class Groups { items=1; class Item0 { side="WEST"; class Vehicles { items=1; class Item0 { position[]={5005.810547,158.214218,6928.161621}; azimut=132.223007; id=0; side="WEST"; vehicle="OfficerW"; player="PLAYER COMMANDER"; leader=1; skill=0.600000; init="onMapSingleClick {[_pos, _shift, _alt, ""MyTarget"", false, false]exec ""CSLMapClick.sqs""} "; }; }; }; }; class Markers { items=1; class Item0 { position[]={5086.809082,152.384552,6932.137695}; name="MyTarget"; type="Destroy"; colorName="ColorRed"; a=1.200000; b=1.200000; angle=72.388687; }; }; }; class Intro { randomSeed=12544003; class Intel { }; }; class OutroWin { randomSeed=10262019; class Intel { }; }; class OutroLoose { randomSeed=8190979; class Intel { }; }; CSLMapClick.sqs <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">_pos = _this select 0 _shift = _this select 1 _alt = _this select 2 _marker = _this select 3 _execOnShift = _this select 4 _execOnAlt = _this select 5 ? _shift and !(_execOnShift) : exit ? !(_shift) and _execOnShift : exit ? _alt and !(_execOnAlt) : exit ? !(_alt) and _execOnAlt : exit _marker setMarkerPos _pos exit Share this post Link to post Share on other sites
Trapper 0 Posted April 23, 2006 My Zombie Outbreak Simulation is ECP compatible and uses onmapsingleclick. The command is used between 0 to 17 times and never failed. <s>Main difference will be that I'm disabling the command after the map click input is recieved and reactivate it when needed.</s> Share this post Link to post Share on other sites
ColonelSandersLite 0 Posted April 23, 2006 Interesting, I'll have to try that. Share this post Link to post Share on other sites
ColonelSandersLite 0 Posted April 23, 2006 No, not it at all. Further testing indicates that onmapsingleclick breaks after about 10-15 seconds without ever using it. I'd really appreciate it if someone ran this mission using ofpr 1.96 and ecp 1.085 to confirm that either this happens on their system, something's wrong with my script, or that I need to start troubleshooting my game as it may need a reinstall/addon cleanup... --------------------------------------- Also, this still happens running ofp with no addons except ecp running at default settings. Works fine without ecp running. The logical conclusion is that it is in fact ecp. Share this post Link to post Share on other sites
sanctuary 19 Posted April 23, 2006 Zayfod posted the following in the ECP release thread, related to the onMapSingleClick problem Quote[/b] ]This is a onMapSingleClick issue, all addons that use this command have the same issue with 'onMapSingleClick' when used concurrently if they require different values at the same time.Solution for now is to disable ECP AI release and ECP Helo coms in your ECP_settings.sqf. They both use OnMapSingleCLick. ECP_AI_release_enable -> false (ECP_public set [36, false]) ECP_helo_coms_enable -> false (ECP_public set [50, false]) Alternatively, in a MP situation for the MAP you should de-pbo the map and in the init.sqs add this one-liner <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> ?(format["%1",ECP_Path]!=format["%1",nil])&&(format["%1",count ECP_public]!="scalar"):{ECP_public set[_x,false]}forEach[36,50] This way AI release and Helo commands will only be disabled for that particular map. Share this post Link to post Share on other sites
Trapper 0 Posted April 23, 2006 I didn't know this before, but I can confirm it. My mission doesn't include a helo so ECP_public 50 didn't kick in and ECP_public 36 was already disabled for other reasons. Share this post Link to post Share on other sites
ColonelSandersLite 0 Posted April 23, 2006 Thanks Sanctuary. That's helpfull. Hopefully, this will bring the problem to a few people's attention so they don't make the same mistake. Share this post Link to post Share on other sites
Guest Posted April 26, 2006 I've just stumbled upon this topic and that lead me to find the cause of the bug: AI Units Release. When that feature is initialised, it removes any code previously set by <span style='font-family:"Courier New"'>onMapSingleClick</span>. Yes, I know, that's very harsh... I, therefore, updated the ECP bug list. Share this post Link to post Share on other sites