MaFi-Games / Captain-of-Industry-issues

Public issue tracker for Captain of Industry video game
22 stars 4 forks source link

Map Dragging can cause violent Map Shaking - Risk of Epileptic Seizure #974

Open RealisticOptimist opened 1 year ago

RealisticOptimist commented 1 year ago

Issue description

If you drag the map on a mountain flank towards that same side of the monitor, the map starts violently shaking:

MapShake e.g. you drag towards bottom right to see it.

Now that I can finally reproduce it (it's been around since July, at least) I can provide some insight/ guess: The shaking starts the moment the flank of the mountain (the terrain) gets hidden by the mountain ridge. It looks like an issue with translating the mouse's (x,y) and the map's (x,y,z) coordinates. When the original spot on the map gets hidden, the mouse position gets interpreted as a different location. Then the map starts jumping.

The onset and violence (frequence, distance) of the shaking depends on the height and slope at the mouse cursor as well as the speed of CPU and graphics. Zooming in makes it earlier and stronger.

Expected behavior

Strictly no such map shaking. While not personally affected I think sensitive people could suffer an epileptic seizure.

Reproduction steps

See issue description. Any hill on any map is fine.

Game version

v0.4.14a(156)

Attachments

No response

RealisticOptimist commented 1 year ago

Update v0.5.4a: Greatly improved, but it still occcurs in some situations, eg. YSNP: YSNPShake This is on the plateau left of the valley (valley opens to bottom). Drag the map towards the valley, when the mouse pointer is in certain areas over the mountain ridge it shakes.