You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
h% as d% has no special meaning. The disassembler just print out the value based on the preceeding data type.
The following letters currently used:
'g' - GXT Reference, 'z' - Zone name (both produce an extra comment) 'p' - pointers, produce labels 'o', 't' - model references, get replaced with #name 'x' - external script id, produce extra comment 's' - a string parameter in LCS only
Interesting. I'm working on strategies to make opcode.txt more generic between games and to improve the educational quality by selecting or crafting example that show real data as much as possible. So for my own benefit and without breaking anything I could use letters like:
This is an attempt to organize my thoughts on possible uses of data type letters in scm.ini and may get updated as I investigate further.
Letters with formatting: 'g' - GXT Reference (+comment) 'z' - Zone name (+comment) 'p' - pointers, produce labels 'o', 't' - model references, get replaced with #name 'x' - external script id (+comment) 's' - a string parameter in LCS only
Suggestions for formatting: 'b' - bool - resolves to True or False (always or if 1 or 0?) 'm' - models, like o% but without linking to defined objects (negative values) 'e' - hexadecimal, 'H', 'X', '0'? (not sure it's practical)
Reserved letters for datatypes with no formatting 'd' - data 'h' - handle 'r' - return 'v' - variable 'l' - localvar 'f' - float 'i' - integer 'c' - constant
Special Handling Opcodes 'k' - block, (ID of) 128 byte data block
0155=3,set_zone_car_density %1z% %2b:day/night% %3d%
This bool format is present in the current SCM.ini for GTA3. Doesn't work or seem to hurt anything.
Probably because s% is frequently used in SCM.ini for VC and III, but I haven't looked to see how the data is encoded. More than likely s% was used for informational purposes.
There is a great deal of inconsistency with the lettering used in the current SCMs. It seems that several authors took a shot at the formats with different style expectations which were ignored and scrambled in the SCR conversion and has now propagated to fastman92's data as well. None of it appears to hurt anything other than confusing anyone trying to make sense of the clues.
Activity
x87 commentedon Feb 9, 2020
h% as d% has no special meaning. The disassembler just print out the value based on the preceeding data type.
The following letters currently used:
'g' - GXT Reference, 'z' - Zone name (both produce an extra comment)
'p' - pointers, produce labels
'o', 't' - model references, get replaced with #name
'x' - external script id, produce extra comment
's' - a string parameter in LCS only
OrionSR commentedon Feb 10, 2020
Interesting. I'm working on strategies to make opcode.txt more generic between games and to improve the educational quality by selecting or crafting example that show real data as much as possible. So for my own benefit and without breaking anything I could use letters like:
'h' - handle
'v' - variable
'l' - localvar
'f' - float
'i' - integer
'b' - bool
OrionSR commentedon Feb 12, 2020
This is an attempt to organize my thoughts on possible uses of data type letters in scm.ini and may get updated as I investigate further.
Letters with formatting:
'g' - GXT Reference (+comment)
'z' - Zone name (+comment)
'p' - pointers, produce labels
'o', 't' - model references, get replaced with #name
'x' - external script id (+comment)
's' - a string parameter in LCS only
Suggestions for formatting:
'b' - bool - resolves to True or False (always or if 1 or 0?)
'm' - models, like o% but without linking to defined objects (negative values)
'e' - hexadecimal, 'H', 'X', '0'? (not sure it's practical)
Reserved letters for datatypes with no formatting
'd' - data
'h' - handle
'r' - return
'v' - variable
'l' - localvar
'f' - float
'i' - integer
'c' - constant
Special Handling Opcodes
'k' - block, (ID of) 128 byte data block
OrionSR commentedon Feb 25, 2020
It looks like s% applies to III and VC too.
0155=3,set_zone_car_density %1z% %2b:day/night% %3d%This bool format is present in the current SCM.ini for GTA3. Doesn't work or seem to hurt anything.
x87 commentedon Jul 5, 2020
not sure what makes you think so?
yea, it was left for backward compatibility with BW's Mission Builder INI format back in a day. Sanny's INI parser just swallows such constants.
OrionSR commentedon Jul 5, 2020
Probably because s% is frequently used in SCM.ini for VC and III, but I haven't looked to see how the data is encoded. More than likely s% was used for informational purposes.
There is a great deal of inconsistency with the lettering used in the current SCMs. It seems that several authors took a shot at the formats with different style expectations which were ignored and scrambled in the SCR conversion and has now propagated to fastman92's data as well. None of it appears to hurt anything other than confusing anyone trying to make sense of the clues.
x87 commentedon Jul 5, 2020
It can be a task against the data repo to cleanup existing INI files and use consistent lettering.
x87 commentedon Oct 30, 2020
Closing in favor of sannybuilder/dev#75