Alpine, i already know all that, except indexes.
Check out my tool
If i wouldn't know that then i wouldn't be able to create such tool and i know how coords are saved. This is easy now, as i have figured it out already, because as i said, i wouldn't be able to create my SCR Tool
OK, this is logical actually that variables are not saved and i must generate vars by myself.
But how actually game finds the commands in SCR, that's the problem.
Basically i can find any coordinate in SCR (take cranes, crushers, destructors, generators, powerups, etc), move them to other places, remove or hide, it doesn't matter.
Do you actually understand the primary problem?
For example PLAYER_PED, LEVELSTART, LEVELEND etc. PLAYER_PED requires coordinates, rotation and remap. This is easy.
But how the hell game finds that PLAYER_PED in SCR? That's the biggest problem.
Probably it holds the data as you said, for example: player_ped.
This zero points probably to some command (token) table from which game figures out what command is used.
PLAYER_PED is replaced by some token or pointer (for example B5) that points to some command table from where game figures out what command is that B5.
miss2.exe generates some txt files that contain data like:
Code: Select all
1 PLAYER_PED EXEC 2 (2916352,6684672,131072) 0 25
2 ARROW_DEC EXEC 3 arrow
3 ARROW_DEC EXEC 4 arrow_2
4 ARROW_DEC EXEC 5 arrow_3
5 ARROW_DEC EXEC 6 arrow_4
6 ARROW_DEC EXEC 7 arrow_end
7 MAP_ZONE_SET 8 B01 0 0 0 0 200 0 0 0 1000 0
8 MAP_ZONE_SET 9 B02 0 0 0 0 300 0 0 0 1000 0
9 MAP_ZONE_SET 10 B03 0 0 0 0 200 0 0 0 1000 0
10 MAP_ZONE_SET 11 B04 0 0 0 0 300 0 0 0 1000 0
11 MAP_ZONE_SET 12 B05 0 0 0 0 400 0 0 0 1000 0
etc. This will be handy also i guess to figure things out. But main problem still is the MAIN that should be solved.
If you know anything else about the SCR files, please let me know.
EDIT: i should send R* a letter and asking to release SCR file specs.
Maybe they can publish at least this little very old useless / outdated info?
Nobody needs this but we do.
EDIT2: email passed to R*
About C++, well, i have used it 3 years already. Not a problem for me.
But im just active Pascal programmer (more than 6 years now).
It doesn't matter what language i use actually.
Sorry guys for offtopic here, this discussion should be moved to my SCR tool thread.