Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pad stage archives to allow for testing and editing without reloading the game #51

Open
AwesomeTMC opened this issue Jul 25, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@AwesomeTMC
Copy link
Member

Editing a stage and then saving while the game is open usually causes the "Disc Not Read" error, but if the new file is the same size as the old one, it works and lets you test the changes made.

So to allow for placing a coin (for example) without the game giving the aforementioned error, we could add padding to .arcs so they remain the same size. (I should also mention that shibbo suggested this, but I only found that out after coming up with the idea)

I tested this with hex editing on my own .arcs and yes, it does actually work.

Let's go through the full details.

When editing a stage, there will be an option called "Cardboard Box settings". You click on that and it brings up a small form, with a slider that ranges from 0 to the max recommended amount of padding, and an input (which is synced with the slider) that lets you put any amount wanted. Something like this (but with actual proper alignment):
image

Upon setting the amount greater than 0, a .cb file will be created for each map in the current stage (or this zone's map) containing the desired size.

When saving, Whitehole will look for a .cb file. If one is found, it adds the padding needed to get the file to the size specified in the .cb file. If the file gets larger than the padding, it warns the user that "The cardboard box is full". Right there, put the cardboard box settings form so the modder can adjust it easily.

Maybe there could also be a default "cardboard box size" setting so the modder doesn't have to set it up every time.

Feel free to give your thoughts here or in the Discord.

Also, my reasoning for using cardboard box terminology: A cardboard box will remain the same size regardless of the item inside it, and becomes pretty much useless if the item inside is bigger than it. Giving the arc padding is similar to that and helps visualize.

@AwesomeTMC AwesomeTMC added the enhancement New feature or request label Jul 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant