Build tool: should use server side nbt files
xavierh opened this issue ยท 0 comments
Minecolonies version
Future version
Expected behavior
- Use the server nbt files, so if they have been customized on the server, the player should have the correct one without effort
Actual behaviour
- The player need to copy the nbt file used by its server in order to work properly.
- It is event more difficult if the player use different server with different decorations
Implementation
Difficulty: moderate
- When the player open the build tools, a list of hut/decoration should be sent to him
- When the player select a hut/decoration, we should:
- Look in the player local hard drive under minecolonnies/worldname/filename
- If the file is not found, it should request the file to the server
- The server should look for the file on the hard drive
- If the file is not found it should look into the asset
- once the file/asset is found it should send it to the client (using SavescanMessage)
- the client should store it under minecolonnies/worldname/filename (so it won't request the file every time)
world name should be unique somehow
file name would be buildings/citizen1.nbt or waypoint/bridge1.nbt
If the building style are directory bases is should work fine with it too
This would help with #486
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.