Home » MODDING HQ 1.13 » v1.13 Bug Reports » Unable to select mercs on Strategic Map after sector reinforcement
Unable to select mercs on Strategic Map after sector reinforcement[message #353310] Mon, 23 April 2018 21:26 Go to next message
ElecMS

 
Messages:13
Registered:November 2009
Hey folks, on the latest SVN version of GameData, and the latest compiled .exe I could find (8555), I am experiencing a game-breaking bug where after a sector receives reinforcements, a turn or three later I can no longer select mercs or groups, or click cancel, on the Strategic Map screen. The list on the far left is clickable, rest of the UI is responsive, but the small dialog when selecting a merc or a group in a sector cannot be interacted with.

This is my current long term save (50% progress), as I just met Mike. After attacking a sector, 1 turn after reinforcements arrive I can no longer select mercs on the Strategic Map. Also interesting is that I can't click Cancel at the bottom of the dialog.

I've painstakingly played and replayed from old saves to determine the trigger for this issue, and it only seems to happen a few turns after enemy reinforcements arrive at a sector that I am attacking, after they are alerted to my presence. I am a chronic restarter of this game... probably 20 campaigns over the years as I restart when things get easier, but this is my longest running playthrough and I would love to actually finish the end game with the new features.

Has anyone seen anything like this? Any ideas where the bug may be located? I can continue to progress in my save only with Spy/Stealth kills, but this is frustrating.

I can attach a save, but it currently says that I am limited to 0kb, possibly because I have a low post count?

I am interested in potentially trying to help debug this issue, being a C# programmer myself, but I haven't been able to successfully compile an exe using VS 2017 CE, the solution defaults to compiling a .lib rather than an exe? (seperate post here http://thepit.ja-galaxy-forum.com/index.php?t=msg&goto=353311&#msg_353311)

[Updated on: Mon, 23 April 2018 21:31]

Re: Unable to select mercs on Strategic Map after sector reinforcement[message #353313 is a reply to message #353310] Mon, 23 April 2018 22:15 Go to previous messageGo to next message
Flugente

 
Messages:3344
Registered:April 2009
Location: Germany
Can you exit to tactical by pressing [Esc], or re-enter combat by selecting the sector on the map (that should call the screen where you can select tactical, autoresolve or retreat)?

Usual solution for savegames is to upload them to some filehoster and just post the link here. Putting your JA2_Options.ini alongside it would also be helpful, in case a specific setting affects this.



“What are you doing?” Joffrey interrupted him.

“… can’t a man give a few last words for his son to carry?”

“…Who told you your son was making it out of this field alive?”

If you want, you can donate to me. This will not affect how and what I code, and I will not code specific features in return. I will be thankful though.


Re: Unable to select mercs on Strategic Map after sector reinforcement[message #353316 is a reply to message #353313] Mon, 23 April 2018 22:41 Go to previous messageGo to next message
ElecMS

 
Messages:13
Registered:November 2009
Sorry, meant to state that! Yes, I can exit the dialog to tactical by pressing Escape, and I can re-enter combat by selecting a sector on the map (or pressing space) and selecting "Go to Sector".

Hey, I really appreciate your work on this project, by the way! big grin

Here's the save: https://nofile.io/f/PNJZtTUnhfE/SaveGame100.sav

And the JA2_Options.ini: https://nofile.io/f/FtK3H6K2Kg4/Ja2_Options.INI (updated, sorry, I included the wrong one)

I have tried opening the same save with the default SVN JA2_Options.ini, and the issue still occurs.

[Updated on: Tue, 24 April 2018 04:37]

Re: Unable to select mercs on Strategic Map after sector reinforcement[message #353317 is a reply to message #353316] Mon, 23 April 2018 23:03 Go to previous messageGo to next message
ElecMS

 
Messages:13
Registered:November 2009
Got the latest exe to compile! On starting my save prior to the bug, I get the following debug message in the game log (bottom of tactical screen)

https://preview.ibb.co/koQZOc/Truck_Error.jpg

However, with this latest SVN exe, after exiting tactical to test selection of groups, I can open the sector where the battle is occurring, but when I select "Go To Sector" I hear a click but nothing happens. Weird. But, I am able to get back to the action with the down arrow button next to the laptop.

[Updated on: Mon, 23 April 2018 23:31]

Re: Unable to select mercs on Strategic Map after sector reinforcement[message #353321 is a reply to message #353317] Tue, 24 April 2018 04:35 Go to previous messageGo to next message
ElecMS

 
Messages:13
Registered:November 2009
Haven't figured out the difference yet, but I have encountered a situation where simultaneously:

I can't select a group or merc on the strategic map from the dialog, nor can I click 'Cancel'
I can't exit the dialog with Escape, but can left click elsewhere on the strategic map to dismiss the dialog
Can click "Go to sector" to try to continue the fight, but if I hit the down arrow button, or hit Escape a couple of times I can get back in the fight.

Save: https://nofile.io/f/0b9P8aKfG3u/SaveGame103.sav

I thought for a minute that the SVN compiled exe might actually not have the problem, as it was quite a few turns after sector reinforcements before the bug hit, but eventually it did. speechless

[Updated on: Tue, 24 April 2018 04:38]

Re: Unable to select mercs on Strategic Map after sector reinforcement[message #353323 is a reply to message #353321] Tue, 24 April 2018 06:08 Go to previous messageGo to next message
ElecMS

 
Messages:13
Registered:November 2009
Was able to step through the code finally using "Break All", and got to step through CreatePopUpBoxForMovementBox, which runs the first time you open the dialog, and then runs again when you've clicked on a person, setting the asterisks around their name to show selection.

When the bug occurs, CreatePopUpBoxForMovementBox occurs for the first paint, but when you then try to select the group or merc, the second CreatePopUpBoxForMovementBox does not fire, as if my click didn't go through.

However, the mouseover highlights work properly - anything under my cursor is changed to white, including the Cancel option. Just can't get a click to register.


Re: Unable to select mercs on Strategic Map after sector reinforcement[message #353327 is a reply to message #353323] Tue, 24 April 2018 23:54 Go to previous messageGo to next message
ElecMS

 
Messages:13
Registered:November 2009
I now believe that this is the game running out of some sort of game engine resource, (like MouseRegions?), rather than anything in the game timeline itself.

After messing around trying to tease out a common factor, I was able to make this save https://nofile.io/f/JCUoQwrnhn5/AutoSaveGame01.sav which is just on the brink of the bug.

While the game progress is paused, typically only opening the laptop and shutting it will cause the bug to occur, where I cannot select a group, merc, or click cancel from the Strategic Map. If once doesn't work, try opening the laptop screen again a couple of times.

Opening the options menu doesn't seem to be enough, but opening the save menu seems to tip things over the edge.

I have also had other button oddities, though not frequently. Rarely, sometimes Group and Cancel will be unclickable, but the lone merc name is selectable.

@Flugente, you seem to have had experience in this space, any ideas how I could monitor / find this resource? Is MouseRegions barking up the wrong tree?

Would you be willing to open this save and see if you have the same outcome?

Re: Unable to select mercs on Strategic Map after sector reinforcement[message #353497 is a reply to message #353327] Mon, 14 May 2018 23:11 Go to previous message
RoWa21

 
Messages:2039
Registered:October 2005
Location: Austria
@mouse regions: there is a debug switch which shows all the mouse regions as white rectangles. very useful to see if any old invalid mouse regions still exists on new screens.

[Updated on: Mon, 14 May 2018 23:26]



Previous Topic: Game Freeze to death.
Next Topic: SCI 8558 - Hostile Sector Issue
Goto Forum:
  


Current Time: Sun Jul 22 10:04:36 EEST 2018

Total time taken to generate the page: 0.00863 seconds