Better way to bundle text files #2805
thevurv
started this conversation in
Suggestions
Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Looks like from recent changes, there is now finally a way to bundle text files for workshop addons!
Facepunch/gmad@d55a443
https://wiki.facepunch.com/gmod/Update_Preview_Changelog
Could now potentially move E2 examples into data_static and read from there.
Current method is a super fucked up generated lua file containing JSON data in a comment of all the file names and contents: https://github.com/wiremod/wire/blob/6f8480bd5254aafee70ae7675981d284df6cab2a/lua/wire/default_data_files.lua
Ofc this needs testing, I'm not completely sure this would work yet.
Beta Was this translation helpful? Give feedback.
All reactions