editing items

The next update will be available on Wednesday, December 18, in the early evening (GMT+1).

This update will not yet replace the Java version, instead it is the actual content update. We'll provide more information about the transition together with the update.
  • Hello,


    I am not much of a programmer but I am pretty technical. Never done any modding and was wondering how easy it would be to take an in game item and just change the 3d model to a different one?


    For example if I wanted to change the way the sword looked, could I just replace some model file or is it much more involved than that?


    Thanks!

  • Hey, do you refer to the new version, or the Java version? Basically the game stores all definitions in the "definitions.db" database file (for the new version, it's located in Data/StreamingAssets/). It can be opened with an SQLite editor (e.g. DB Browser). It contains a table called "items" which contains all item definitions, including the path to the model.


    In the Java version, you could basically just replace the model with a new model (but it has to use JMonkey's .j3o file format). For the new version, however, it's a bit more tricky, because the data is stored in a Unity "asset bundle". It's not impossible, but you can't just replace an individual model file in that bundle, instead you would have to extract and repack the whole asset bundle.


    However, it's our intention to make this a bit easier in the near future, so you could load prefabs from a separate asset bundle easily. That way you could pack your custom model in a separate asset bundle and place this bundle in the game folder, then provide the path to that asset in the definitions file (and the game would load it from the new bundle automatically, instead of having to modify existing bundles) :)

  • yea the new version.

    So I could change the model of a functional item and it would keep all its functionality? I could swap the sword model for a baguette and be running around hitting things and dealing damage to stuff with my lunch?

  • Yes, this is correct :) Once custom asset bundle loading is implemented (basically there isn't too much work involved to get that ready), you could indeed easily replace a sword with a baguette (it would then still behave like a sword) and you could even adjust the amount of damage the baguette deals per hit (this is defined in the definitions.db) :D


    We'll provide more information about that in the future^^

Participate now!

Don’t have an account yet? Create a new account now and be part of our community!