New Command 2059 - Game Loader Command#3614
Open
jetrotal wants to merge 1 commit into
Open
Conversation
This command allows loading another game hosted in the same folder of current game. Useful for having a game split into chapters, or gamejams. Syntax: ```js @raw 2059, "[path and flags]", 0,1, // [0] Exit Behavior Type // [1] Exit Behavior Value (0: Exit, 1: Parent Title, 2: Parent Map/Savestate) 2,3 // [2] Target String Type // [3] Target String Value (Ignored for 0, otherwise ID of String Var) ``` example: ```js @raw 2059, "dons_adventure", 0, 2 // loads dons_adventure, and return back to parent_game's previous map when closing it. @raw 2059, """dons adventure"" --language EN", 1, 100 // when having space or using flag arguments "" "" is needed. also when leaving child game, what's happen is decided by variable 100 ```
Member
|
Honestly weird feature and the web player will hate it. 😅 Anyway. What the code nicely shows is our awful amount of global state. There are similar hacky approaches for the game browser and the map savegame load |
Contributor
Author
|
web player could simply have a reload the entire page with different params |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This command allows loading another game hosted in the same folder of current game. Useful for having a game split into chapters, or gamejams.
Syntax:
example:
A test project that uses it:
demo_loader.zip