Skip to main content

Module script

Module script 

Source
Expand description

Script handling for extracted .inf scripts, standalone .s2s transpilation, dialogue parsing, and sectioned file conversion.

Structs§

InfRawSource
Fallback when .inf parsing fails: preserve the raw source in .ron format so the file still appears in the manifest registry.

Functions§

convert_sectioned_file
Convert a sectioned .s2s file (with //~ markers) to a Lua module.
format_script_ref
Format a path to the .lua script for a given sequential index, relative to the .ron file.
parse_dialogue_to_lua
Parse dialog data from a .s2s file and generate a Lua table as a string.
split_into_sections
Split .s2s file content into sections by //~ markers.
write_script_lua
Extract an embedded .s2s script from an .inf entry, transpile it to Lua, and write it alongside the .ron file as <ron_stem>.<seq_index>.lua.