Skip to content

Parameter Letter h  #1

Closed
Closed

Description

@OrionSR

help-system/html/en/GTA_INI.htm
SCM.ini documentation doesn't describe how h% is used.

No luck finding external reference either.

Activity

  1. x87 commented on Feb 9, 2020

    @x87
    Collaborator

    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

  2. OrionSR commented on Feb 10, 2020

    @OrionSR
    Author

    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

  3. OrionSR commented on Feb 12, 2020

    @OrionSR
    Author

    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

  4. OrionSR commented on Feb 25, 2020

    @OrionSR
    Author

    's' - a string parameter in LCS only

    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.

  5. x87 commented on Jul 5, 2020

    @x87
    Collaborator

    It looks like s% applies to III and VC too.

    not sure what makes you think so?

    This bool format is present in the current SCM.ini for GTA3. Doesn't work or seem to hurt anything.

    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.

  6. OrionSR commented on Jul 5, 2020

    @OrionSR
    Author

    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.

  7. x87 commented on Jul 5, 2020

    @x87
    Collaborator

    It can be a task against the data repo to cleanup existing INI files and use consistent lettering.

  8. added
    good first issue
    on Jul 5, 2020
  9. x87 commented on Oct 30, 2020

    @x87
    Collaborator

    Closing in favor of sannybuilder/dev#75

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions