Skip to content

ThpsQScripted\Settings

DCxDemo edited this page Apr 6, 2024 · 1 revision

Return to ThpsQScriptEd

Contents

Import

  • Apply cosmetic fixes: on import, changes text formatting slighty. Adds extra line feeds between scripts, adds extra line feed between } and { (useful in nodearrays) and more.
  • Prefer tab for nesting: Uses TAB symbol for nesting instead of spaces. By default 2 spaces are added.
  • Prefer symbolic operators: (not, or, and) will be imported as (!, ||, &&).
  • Uppercase keywords: every keyword will be uppercase (i.e. SCRIPT instead of script)
  • Show angle values in degrees: will convert radian angles to degrees
  • Round angles (may lose precision): this option will round angle value to 2 decimal places. Without this option turned on, 180 degrees will be presented as 180.00001

Export

  • Use short new line symbol: picks between 0x01 and 0x02 opcodes for line feeds. Doesn't really make any change so it is recommended to use 0x01 aka the short one. It is known however, that thps3 is more strict with line feeds in 0x02 mode.
  • Save symbols in a separate file: with this option turned on, current symbol cache will be saved as a .sym.qb file instead if being dumped along with the script.
  • Remove trailing line feeds: this will remove multiple line feeds from compiled file. This occurs when you have comments or empty lines in your code. Keep in mind that if this option is turned off, every line feed in script will be added to the compiled file, which may be useful for formatting if you're not planning to save q files.

Behaviour

  • Backup Q sources: enables backups for Q files, required for rollback feature.
  • Always load Q source if available: with this option on, the existing Q file will be opened automatically if you'll try to decompile QB.

External editor

User can choose an external editor to edit the script. Click Browse... button, locate your text editor executable and confirm your choice. If editor is chosen, Send to external editor menu item is available.

Once set up, Send to external editor button will save a text file to a temp location, open that file in an external editor and lock the ThpsQScriptEd input. Once you close the external editor, the temp file will be reloaded to the tool, so you can compile the edited script.

Minimum QB mode

Sets up the minimum QB compatibility mode on export.