development:technical-details:patches:maniac:new-maniac-commands
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| development:technical-details:patches:maniac:new-maniac-commands [2026/10/09 13:48] – carbonara | development:technical-details:patches:maniac:new-maniac-commands [2026/10/09 16:52] (current) – [Zoom Screen] carbonara | ||
|---|---|---|---|
| Line 221: | Line 221: | ||
| ===== Control Shared Save ===== | ===== Control Shared Save ===== | ||
| - | FIXME | + | //Player status: Supported //✅//; Global save status is set to be opened on boot if it exists, no file output limit.// |
| + | |||
| + | The Control Shared Save command (共有セーブの操作, | ||
| + | |||
| + | When using the command, there are two different global save locations that need to be distinguished: | ||
| + | * The **global save**, which consists of the area where the data is temporarily written in memory and altered by the various functions of the command. | ||
| + | * The '' | ||
| + | |||
| + | Additionally, | ||
| + | * If set to opened, and that the game is closed either by the user or by using the Exit Game command, the content of the global save will be copied to the '' | ||
| + | * The '' | ||
| + | * If set to closed, exiting the game will not alter the '' | ||
| + | |||
| + | Notes: | ||
| + | * The file '' | ||
| + | * Upon game boot or game reset, the content of the '' | ||
| + | * The output '' | ||
| + | |||
| + | ==== Open ==== | ||
| + | |||
| + | By using **Open**, the global save status will be set to opened. | ||
| + | |||
| + | Common TPC syntax: < | ||
| + | |||
| + | Raw writing: < | ||
| + | |||
| + | ==== Close ==== | ||
| + | |||
| + | By using **Close**, the content of the '' | ||
| + | |||
| + | Common TPC syntax: < | ||
| + | |||
| + | Raw writing: < | ||
| + | |||
| + | ==== Save ==== | ||
| + | |||
| + | By using **Save**, the content of the global save will be written on the '' | ||
| + | |||
| + | Notes: | ||
| + | * The opened/ | ||
| + | |||
| + | Common TPC syntax: < | ||
| + | |||
| + | Raw writing: < | ||
| + | |||
| + | ==== Save then Close ==== | ||
| + | |||
| + | By using **Save then Close**, the content of the global save will be written on the '' | ||
| + | |||
| + | Notes: | ||
| + | * The opened/ | ||
| + | |||
| + | Common TPC syntax: < | ||
| + | |||
| + | Raw writing: < | ||
| + | |||
| + | ==== Copy from Global Save ==== | ||
| + | |||
| + | **Copy from Global Save** allows to copy values from the global save to switches and variables. | ||
| + | |||
| + | The command has the following fields: | ||
| + | * Type: Whether switches or variables should be copied. | ||
| + | * Current Save Data: Position of the first switch or variable ID should receive the values from the global save, with the possility to use a constant or variable for the ID. | ||
| + | * Global Save Data: Position of the first switch or variable in the global save that should be copied, with the possility to use a constant or variable for the ID. | ||
| + | * Size: How many values should be copied, with the possibility to use a constant, variable or variable redirection. | ||
| + | |||
| + | Notes: | ||
| + | * Switches and variables do not share their slot allocations, | ||
| + | * Using the command will set the global save status to opened. | ||
| + | * Using a null or negative size will not copy any value. | ||
| + | |||
| + | Common TPC syntax for switches: < | ||
| + | Common TPC syntax for variables: < | ||
| + | |||
| + | Where: | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | |||
| + | Raw writing: < | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | |||
| + | ==== Copy to Global Save ==== | ||
| + | |||
| + | **Copy to Global Save** allows to copy switches and variables to the global save. | ||
| + | |||
| + | The command has the following fields: | ||
| + | * Type: Whether switches or variables should be copied. | ||
| + | * Current Save Data: Position of the first switch or variable ID that should be copied to the global save, with the possility to use a constant or variable for the ID. | ||
| + | * Global Save Data: Position of the first switch or variable in the global save that should be written to, with the possility to use a constant or variable for the ID. | ||
| + | * Size: How many values should be copied, with the possibility to use a constant, variable or variable redirection. | ||
| + | |||
| + | Notes: | ||
| + | * Switches and variables do not share their slot allocations, | ||
| + | * Using the command will set the global save status to opened. | ||
| + | * Using a null or negative size will not copy any value. | ||
| + | |||
| + | Common TPC syntax for switches: < | ||
| + | Common TPC syntax for variables: < | ||
| + | |||
| + | Where: | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | |||
| + | Raw writing: < | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| ===== Set Picture ID ===== | ===== Set Picture ID ===== | ||
| Line 846: | Line 970: | ||
| //Player status: Unsupported// | //Player status: Unsupported// | ||
| - | FIXME | + | The Script command (スクリプト) allows to execute JavaScript code. |
| + | |||
| + | The Maniac Patch executable comes bundled with [[https:// | ||
| + | |||
| + | Additionally, | ||
| + | * < | ||
| + | * < | ||
| + | * < | ||
| + | |||
| + | The command has the following fields: | ||
| + | * Source Text: Code to execute, with the possibility to have it come from the command, from a string variable or from a string variable redirection. | ||
| + | * Variable that receive return value: Switches, switch redirections, | ||
| + | |||
| + | FIXME //Provide more examples and info on using JavaScript and making it communicate with the engine.// | ||
| + | |||
| + | Notes: | ||
| + | * If a command with an incorrect syntax is executed, the console will be opened and will display an error highlighting the syntax issue. This does not halt the game. | ||
| + | |||
| + | Internally, the command comes with two different command codes, '' | ||
| + | |||
| + | TPC only offers editing the first command code: the second command code is impossible to edit through the Maniac Patch or TPC, and can only be deleted. | ||
| + | |||
| + | TPC syntax of the first command code: < | ||
| + | |||
| + | Where: | ||
| + | * '' | ||
| + | * < | ||
| + | |||
| + | Raw writing for the command code 3030: < | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | |||
| + | The values '' | ||
| + | |||
| + | Raw writing for the command code 3031: < | ||
| + | * '' | ||
| + | * '' | ||
| ===== Zoom Screen ===== | ===== Zoom Screen ===== | ||
| Line 878: | Line 1048: | ||
| * Setting the Scale to a value above 24000 will not do any zoom. | * Setting the Scale to a value above 24000 will not do any zoom. | ||
| * If the layer is set to a value not on the [1;10] range, no zoom will occur. | * If the layer is set to a value not on the [1;10] range, no zoom will occur. | ||
| + | * The zoom only affects the overworld, it does not affect battles and menus. | ||
| * The zoom properties are kept in the save file. | * The zoom properties are kept in the save file. | ||
development/technical-details/patches/maniac/new-maniac-commands.1791553720.txt.gz · Last modified: by carbonara