Open Maxopoly opened 7 years ago
@Maxopoly is jukealert a good place to look into how to do this?
Yes, JukeAlert or NameLayer
Hi @Maxopoly, for the GUI, which is awesome BTW and easy to make work, I have to extend ACivMod instead of JavaPlugin. But when I do this, the plugin suddenly won't save/load the packaged config.yml anymore (see here). It's very weird, it only saves (to plugins/RealisticBiomes/config.yml on the server) this part:
#---------------------------------------
# Example config using replacement, if replace_fishing: true is set
# fish_drops:
# mat_FISH:
# # 50% of drops will be fish, regardless of "minecraft" drops.
# base_rate: 0.5
and nothing of the config gets loaded, no plants configured. If I remove all those commented line from the config.yml, the saved config.yml is just empty. I have been trying to figure out what part of ACivMod could interfere, but I really can't make any sense out of this. ACivMod loads another config, but I think that's just for the annotations and should not interfere with RB.
Do you have any idea what the issue could be, or where I could look further?
It's because of the stupid CivConfig stuff. It will parse the config and then write it back together with the hardcoded defaults. If it's actively deleting your config, the whole thing failed to parse, which most likely means the yaml structure is invalid (check for errors at the very beginning of the server startup log).
The thing, without extend ACivMod, JavaPlugin will parse it just fine with its YAMLParser. Well, I will have to investigate further. Edit: it's the default config.yml from the repo.
Did you call super.onEnable() at the start of your onEnable method?
Yes I did
El 23 sept. 2016 1:09 p. m., "Maxopoly" notifications@github.com escribió:
Did you call super.onEnable() at the start of your onEnable method?
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Civcraft/RealisticBiomes/issues/85#issuecomment-249164610, or mute the thread https://github.com/notifications/unsubscribe-auth/AAS7x4dNldVsG0Nd89V2WNjdLGlpHJAVks5qs7N1gaJpZM4JcOBK .
I'm out of ideas then. If you push what you have somewhere I'll try to figure it out.
Ok, thanks for the help!
El 23 sept. 2016 1:16 p. m., "Maxopoly" notifications@github.com escribió:
I'm out of ideas then. If you push what you have somewhere I'll try to figure it out.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Civcraft/RealisticBiomes/issues/85#issuecomment-249165881, or mute the thread https://github.com/notifications/unsubscribe-auth/AAS7x460i40JjWaBmxi_mtoGuqnXchnVks5qs7UMgaJpZM4JcOBK .
I ended up not inheriting ACivMod and just registering the inventory-menu listener to make it work.
Opens GUI that shows everything important for every growable for the current biome.