Skip to content

Releases: huderlem/poryscript

3.4.0

16 Aug 00:07
Compare
Choose a tag to compare
  • Add support for AutoVar commands.
    • AutoVar commands can be used in place of the var operator to streamline comparisons.
    • AutoVar commands are defined in a new config file command_config.json.
  • Fix missing semicon character in FireRed/LeafGreen font config

The new command config file must now be specified with the -cc parameter in your Makefile
Example:

+ data/%.inc: data/%.pory; $(SCRIPT) -i $< -o $@ -fc tools/poryscript/font_config.json -cc tools/poryscript/command_config.json

3.4.0.2-autovars

15 Aug 14:16
Compare
Choose a tag to compare
3.4.0.2-autovars Pre-release
Pre-release

Preview build for upcoming autovars feature.

3.3.0

15 Jan 20:04
Compare
Choose a tag to compare
  • Add ability to configure number of lines used by format(). For example, this is useful if the text is intended to render in, a 3-line textbox (instead of the usual 2).
    • Additionally, format() now accepts named parameters, and numLines has been included in font_config.json.

3.2.0

02 Dec 19:02
Compare
Choose a tag to compare

[3.2.0] - 2023-12-02

Added

  • Add -lm option for C Preprocessor line markers to improve error messages.
    • -lm is enabled by default. You can specify -lm=false to disable line markers in the compiled output.

3.1.0

11 Nov 16:22
Compare
Choose a tag to compare

Added

  • Add support for configuration of the textbox's cursor width to improve format()'s ability to fit text on a line.
    • This is achieved with a new cursorOverlapWidth field in font_config.json
    • Note, this change also changed the maxLineLength of the 1_latin_frlg font, so existing uses of format() could be affected--especially when used in combination with explicit line breaks inside the format() text content.
  • Add automatic line break (\N) support to format()

3.0.3

04 Sep 20:51
Compare
Choose a tag to compare

Fixed

  • Fix bug where specifying a non-default font id with format() would apply the wrong maximum line width configuration.

3.0.2

20 May 14:59
Compare
Choose a tag to compare

Fixed

  • Fix bug where a switch statement with all empty case bodies would produce invalid output.

3.0.1

08 Jan 15:41
Compare
Choose a tag to compare

Fixed

  • Fix bug where end and return commands could cause labels to not render.

3.0.0

19 Nov 21:05
Compare
Choose a tag to compare

Changed

  • Font configuration file is now called font_config.json, and each font in that file contains a maxLineLength used by format(). The command-line option -fw has been renamed to -fc to reflect the new name of the font configuration file.

2.14.0

27 Jun 15:11
Compare
Choose a tag to compare

Added

  • Add the ability to define sub-labels inside script statements. This is useful in some cases where it's more ergonomic to directly jump to a desired location inside a script, similar to C's goto labels.