Skip to content

New extension: Save and Load Object made by God-Sonic#1569

Open
github-actions[bot] wants to merge 1 commit into
mainfrom
extension/KillerDSonic/1568
Open

New extension: Save and Load Object made by God-Sonic#1569
github-actions[bot] wants to merge 1 commit into
mainfrom
extension/KillerDSonic/1568

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot commented Mar 2, 2025

Description

It save and load object's variables, zorder, angles, and position. It can save and load multiple objects at a time.

How to use the extension

You need the object you want to save with the save behavior and the loader object with the loader behavior. In the event, there are two action . One is for save the object in the scene every 0.1 to 1 seconds that is save to storage. The other one load the object from storage in the scene.

Checklist

  • I've followed all of the best practices.
  • I confirm that this extension can be integrated to this GitHub repository, distributed and MIT licensed.
  • I am aware that the extension may be updated by anyone, and do not need my explicit consent to do so.

What tier of review do you aim for your extension?

Community (Unreviewed)

Example file

Game.zip

Extension file

LoadandSave.zip

@github-actions github-actions Bot added the ✨ New extension A new extension label Mar 2, 2025
@github-actions github-actions Bot requested a review from a team as a code owner March 2, 2025 16:46
@moolbie
Copy link
Copy Markdown
Contributor

moolbie commented Apr 2, 2025

lowkey, just do sum javascript and save literally everything. so you save the object json

@KillerDSonic
Copy link
Copy Markdown

It saves a json of a object with it variables

@moolbie
Copy link
Copy Markdown
Contributor

moolbie commented Apr 6, 2025

It does not.
ObjectVarToJSON(Object,Variables) does not save the object variables
it saves the objects variable called "Variables"

@KillerDSonic
Copy link
Copy Markdown

It does but it only works when you name the objects variable name by " Variables" that only way it will work

@moolbie
Copy link
Copy Markdown
Contributor

moolbie commented Apr 11, 2025

that's why i'm saying you should do some javascript to save the entire object, then it will also work on custom objects

@KillerDSonic
Copy link
Copy Markdown

I need to learn JavaScript in order to do that which I don't have the time for at this moment but maybe in the future.

@moolbie
Copy link
Copy Markdown
Contributor

moolbie commented Apr 19, 2025

pretty sure you can just do:
'writeStringInJSONFile("Objects","Save",JSON.stringify(objects))'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

✨ New extension A new extension

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants