Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
Thank you for your suggestion. We will consider implementing the export functionality using logs in a future update (for instance, making use of logs when the user's safeScripts are set to true). However, if exporting through logs is already possible with RexmecK's ItemEditor, then I might not need to implement that feature in my Mod. I will consider this as well.
This can be done with the following lua call for saving to log in a compacted json format:
sb.logInfo("%s", sb.printJson(JSON_CODE_HERE))
And you can access any json file with the use of the following function, although you might want to pcall it, as it causes a script error if it can't find the inputed entry:
root.assetJson(`String` assetPath)
This should completely remove the need to disable script safety, at the cost of like 20 secs of manual labour on the user's part.
That's one of the big reasons why nobody has made mods that need it disabled, so many things would be possible if it was safe to disable it.
Furthermore, RexmecK Item Editor already allows you to partially do this in a much safer way, albeit being a bit more manual.
For example, when creating custom items, they need to be treated as JSON files. However, if you wanted to edit items obtained in-game using a text editor, you would need to use external tools like StarCheat, or convert the player file to JSON format to inspect its contents. This mod allows you to directly export items to JSON files in a folder, making it easy to convert custom items to JSON without using external tools.
Furthermore, when importing custom items back into the game after editing, the usual method required entering single-player mode and enabling the /admin command to use /spawnitem. However, with this mod, if there are JSON files in the folder, you can import items into the game in multiplayer mode as well.
Do you export an in-game item under a custom name, edit the sprite, and re-import it? In which case it would basically just be a simplified modding process for edited items/sprites?
Or is this some kind of solution to have custom items in the game clientside?
I'm interested in it, but not sure exactly what it's for.