eggbeast 3685 Posted May 14, 2010 Hi I'm trying to find and remedy the source of a bug that occasionally crops up playing Evolution. It may be an evo issue, or it may be wider, hence posting about it here... REPRODUCE IT? go into game in evolution or other mission with respawn potential plant a satchel on 30s timer open map and double click to type on it do not press enter to terminate your marker sentence input get killed respawn you should have NO user input, not even pressing ESCAPE. Permanently ok i'm hunting the source of the typing oin the map script to see if they use something like player disableuserinput true; I'm looking in UI.pbo in \ui\scriptsUIeditmod.sqf I found this line which might be relevant if isNil("UI_lastPushedKey") then { UI_lastPushedKedy = 9999; }; note typo can anyone point me to the right script that runs the typing on the map routine? To fix the problem I'm thinking of adding a line into my spawn script that activates something on death that isn't currently (e.g. pressing ENTER) - hence being locked into the typing script with no userinput etc it may be just a disableuserinput true that needs remedying with disableUserInput false; any thoughts? Share this post Link to post Share on other sites
eggbeast 3685 Posted May 14, 2010 putting disableUserInput false; into the spawnb script doesn't work, the player respawns but is frozen to the spot and no keys except ctrl alt del work Share this post Link to post Share on other sites
CarlGustaffa 4 Posted May 15, 2010 I would make a ticket on that typo. Share this post Link to post Share on other sites
eggbeast 3685 Posted May 15, 2010 ok how do I do that? has anyone else had this bug in their missions? where you die and respawn with no controls even Escape is locked usually after being killed while typing Share this post Link to post Share on other sites
11aTony 0 Posted May 15, 2010 Yeah this happens everytime I play it nearly. Only happens in evo though. Never had it in warfare or something. Share this post Link to post Share on other sites
CarlGustaffa 4 Posted May 15, 2010 @eggbeast: I made it for you, ref this. But always good to register anyways, for stuff like this. Btw, well spotted, it has to be a typo :) Share this post Link to post Share on other sites
eggbeast 3685 Posted May 16, 2010 ok thanks for your help there cg. can anyone locate the "typing on the map" script for me? Share this post Link to post Share on other sites
eggbeast 3685 Posted May 19, 2010 ok I've run some tests The error happens always when typing on the map and you are killed in Evolution. You respawn and can no longer press Escape for the main menu or any other key. A mod I'm running GMJ_sightadjustment uses a custom control config GMJ_SA_KEY_Einc = 200; // increase elevation adjustment GMJ_SA_KEY_Edec = 208; // decrease elevation adjustment GMJ_SA_KEY_Winc = 205; // increase windage adjustment GMJ_SA_KEY_Wdec = 203; // decrease windage adjustment /* UP = 200 DOWN = 208 LEFT = 203 RIGHT = 205 */ and it runs this init code // init keydown handler waitUntil { !isNull(findDisplay 46); }; GMJ_SA_KeyHandle = (findDisplay 46) displayAddEventHandler ["KeyDown", format ["_this call (GMJ_SA select %1);", GMJ_SA_INDEX_FONKEYDOWN]]; interestingly, also the core script in evo is called bythe T menu, and this is enabled at spawn by the line (FindDisplay 46) DisplaySetEventHandler ["keydown","if ((_this select 1) In actionKeys ""TeamSwitch"") then {a = createDialog 'evoUI'}"]; and when the game has frozen I can adjust windage on the weapon and open the T menu, so these keys work because their cofigs run the scripts above after you respawn. However something key is disabled when you start typing on the map, and it is not re-enabled when you die or respawn... now I could probably find the player init code in the core game script and re-run the line that enables the main menu and keys config etc, butthat could be messy. what I need to find is the scriptthat runs the "writing on the map" function and find out what it disables andwhy it doesn't re-enable it if the player is killed... can anyone at all help find it? I've looked all over the place for it in the stock pbo's... :pet5: Share this post Link to post Share on other sites
eggbeast 3685 Posted May 24, 2010 bump... can anyone help? Share this post Link to post Share on other sites
Maddmatt 1 Posted May 24, 2010 now I could probably find the player init code in the core game script and re-run the line that enables the main menu and keys config etc, butthat could be messy. what I need to find is the scriptthat runs the "writing on the map" function and find out what it disables andwhy it doesn't re-enable it if the player is killed... can anyone at all help find it? I've looked all over the place for it in the stock pbo's... :pet5: I doubt you'll find it in a script. It's probably coded in the executable. Share this post Link to post Share on other sites
eggbeast 3685 Posted May 24, 2010 i'd better get an angle grinder on it then lol Share this post Link to post Share on other sites