Krzysztof
2019-08-26 06:27:12
Greetings
I have a problem I've no clue how to deal with.
This is all the code I'm using:
So, I start up the game, and run the script. It returns the correct color, let's call it ColorA. I know it's correct because it's the same result I get using Simba's Color Picker on that very spot (part of HUD).
Now, I change the color. It's a colorful bar representing on of the ingame resources, so if I began with an empty bar I'll fill it up, or vice versa - changing the color drastically.
Now, if I'll use Simba's Color Picker I clearly see the color has changed to ColorB (in that very pixel). But if I run the above code, I get the ColorA result for some reason. Even if I restart Simba and load up the same code, I still get the outdated ColorA result.
The only way to get it to show an appropriate result, is to save and exit the game, then boot it back up and load the save. Then, Simba returns the correct color again. As if the game had some mysterious protection of layers or something, obfuscating the results by not making them update with the rest of the game.
Can somebody help me figure out what's going on and how to deal with it?
I have a problem I've no clue how to deal with.
This is all the code I'm using:
program new;
begin
Writeln('Color1 is ' + IntToStr(GetColor(230, 891)));
end.
So, I start up the game, and run the script. It returns the correct color, let's call it ColorA. I know it's correct because it's the same result I get using Simba's Color Picker on that very spot (part of HUD).
Now, I change the color. It's a colorful bar representing on of the ingame resources, so if I began with an empty bar I'll fill it up, or vice versa - changing the color drastically.
Now, if I'll use Simba's Color Picker I clearly see the color has changed to ColorB (in that very pixel). But if I run the above code, I get the ColorA result for some reason. Even if I restart Simba and load up the same code, I still get the outdated ColorA result.
The only way to get it to show an appropriate result, is to save and exit the game, then boot it back up and load the save. Then, Simba returns the correct color again. As if the game had some mysterious protection of layers or something, obfuscating the results by not making them update with the rest of the game.
Can somebody help me figure out what's going on and how to deal with it?