Skip to content

Releases: huderlem/poryscript

3.5.1

24 Nov 15:40
Compare
Choose a tag to compare

Fixed

  • Fix bug where \N didn't respect numLines when using format().

3.5.0

10 Nov 20:55
Compare
Choose a tag to compare

Added

  • Movement can now be inlined within commands using a special moves() operator, similar to text. For example:
    applymovement(OBJ_EVENT_ID_PLAYER, moves(
        walk_left * 4
        face_down
    ))
    
  • Print a warning message when numLines is missing from a font's config. Defaults to numLines=2 in that case, rather than 0.
  • Added msgbox to the default command_config.json, since msgbox(.., MSGBOX_YESNO) would be a very common use case.

Changed

  • Multi-line string literals will now remove newline characters, and separate each line by a space character instead.
    • This should rarely, if ever, be used. But the previous behavior resulted in invalid compiled scripts.

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.