Skip to content

Better names of compiled variables #238

@cardillan

Description

@cardillan

Current naming scheme is described here.

The main goals of the current design are:

  • Make it possible to figure out source variable name from mlog (i.e. no need to consult a mapping table).
  • Ensure no conflict among variable names and with linked blocks.
  • Use very short prefixes, so that the variable name is visible in the Vars window in game.

There is an ongoing effort to make the compiled code more readable. Part of it is #235, which will be initially available in 3.3.0 and might be improved upon in later releases. Making a more accessible naming convention for variables would be a step in the same direction.

It is necessary to consider that mods can add new content to the game, including new names of linked blocks. Any name in the form of lower case word + numerical index may potentially represent a linked block in a processor.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions