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

Move base64-encoded data out of .tscn files #29

Closed

Conversation

akien-mga
Copy link
Contributor

Before:

$ ls -lh Box/DestroyedBox.tscn Environment/environment.tscn Player/GrenadeVisuals/grenade/grenade.tscn 
-rw-r--r-- 1 akien akien  13M Aug 15 17:15 Box/DestroyedBox.tscn
-rw-r--r-- 1 akien akien 949K Aug 15 17:15 Environment/environment.tscn
-rw-r--r-- 1 akien akien 5,3M Aug 15 17:15 Player/GrenadeVisuals/grenade/grenade.tscn

After:

$ ls -lh Box/DestroyedBox.tscn Environment/environment.tscn Player/GrenadeVisuals/grenade/grenade.tscn 
-rw-r--r-- 1 akien akien 8,8K Aug 15 17:15 Box/DestroyedBox.tscn
-rw-r--r-- 1 akien akien 798K Aug 15 17:15 Environment/environment.tscn
-rw-r--r-- 1 akien akien 1,5K Aug 15 17:15 Player/GrenadeVisuals/grenade/grenade.tscn

environment.tscn still has some collision shapes embedded that could be extracted.

Draft as there's still a major issue with this, some of the newly created .res files change every single time the project is saved... The destroyed box crate stuff is also weirdly heavy and hacky, ideally we should find a way to source those meshes from the .glb file.

@akien-mga
Copy link
Contributor Author

Superseded by #30.

@akien-mga akien-mga closed this Aug 17, 2023
@akien-mga akien-mga deleted the move-base64-data-to-binary-res branch August 17, 2023 21:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant