sebamarynissen/sc4

Fix the phantom slider bug

Opened this issue · 3 comments

Now that commercials can be growified as well, let's see if we can implement a fix for the phantom slider bug. This link on sc4devotion reveals a bit about it and this link on Simtropolis provides additional information too.

Basically we'll need to find out where the funding is stored in the Savegame file, fix it and resave the city.

The main question which is still open though is whether we will need to find the problematic plugin in the user's plugin folder. If this is the case, it will be harder to implement a fix on growifier.com, but it should still be doable in the script.

Looks like it's the AA313C9F Budget Subfile that we'll need to decode to be able to do what we want.

Allright, we're getting some grip on the issue. We can reproduce the slider bug can be reproduced by doing the following:

  • Plop a single elementary school
  • Modify the total cost in the Elementary School budget line item.
  • Reopen the city.

If we've increased the cost, the slider goes down. If we've decreased the cost, the slider goes up. In order words, if we lower the ratio expense / 100 % cost, the slider goes down.