Forum Discussion
1-Graham-S
4 years agoHero+
The cash counter works because you've either hit maximum or it just displays every dollar you got.
The XP counter works when the game doesn't crash because it drip feeds and pays Rewards as it goes.
It doesn't work if it has to reload because it can't handle owing Level Ups.
It is a very easy fix, a simple While Loop that runs on re-load :-
Get the total amount of XP Earned, include the XP displayed in the counter,
While XP Earned is greater than zero run a Loop,
Get the Target XP needed for a Level Up Reward,
Check if XP Earned is equal or greater than the Target XP needed for a Level Up Reward,
If yes - pay Reward, check Reward paid, subtract Target XP from XP Earned, re-run the Loop.
If no - set XP displayed in the counter to show XP Earned, set XP Earned to zero and stop the Loop.
Simple and easy.
The XP counter works when the game doesn't crash because it drip feeds and pays Rewards as it goes.
It doesn't work if it has to reload because it can't handle owing Level Ups.
It is a very easy fix, a simple While Loop that runs on re-load :-
Get the total amount of XP Earned, include the XP displayed in the counter,
While XP Earned is greater than zero run a Loop,
Get the Target XP needed for a Level Up Reward,
Check if XP Earned is equal or greater than the Target XP needed for a Level Up Reward,
If yes - pay Reward, check Reward paid, subtract Target XP from XP Earned, re-run the Loop.
If no - set XP displayed in the counter to show XP Earned, set XP Earned to zero and stop the Loop.
Simple and easy.
About The Simpsons Tapped Out General Discussion
Talk about your The Simpsons: Tapped Out experience with other TSTO players.
49,405 PostsLatest Activity: 2 months agoRelated Posts
Recent Discussions
- 5 hours ago
- 23 hours ago
Taps part 1,2 and 3
Solved4 days ago- 10 days ago
- 10 days ago