So since the latest update, my plugins don't seem to be loading the lang messages. I noticed that the lang folder is now organised by localisation, and it seems to have occurred with this.
A plugin that I had loading an edited (not-default) lang last update still seems to load the edited lang, however any changes to it now do not seem to be used. It DOES NOT revert back to default. I've tested this with plugins other than my owner (Remover Tool), and the same behaviour occurs. Adding text to a string in the lang, then reloading the plugin, does not result in updated text in-game.
I've ensured that the file IS indeed saving (and in-fact, the changes persist across plugin reloads, despite not being reflected in-game), and that permissions are correct. I don't know if this is just my server, I wouldn't imagine so. Config files work fine.
Steps to reproduce:
Because of this, it almost seems like the lang files are being saved else-where, rather than in the lang/en folder, and Oxide is using these values. Is there perhaps some config option I've missed to specify the language so that lang/en is used? Not really too sure what else it could be.
- Edit lang file for any plugin that uses default Oxide lang.
- Save lang file.
- Reload plugin.
- Test chat output for plugin in-game. Note that it does not reflect what you edited.
- Open lang file again, note that the changes you made are still persistent.
Solved Strange bug with Langs
Discussion in 'Rust Development' started by Skrallex, Oct 22, 2016.
-
Wulf Community Admin
Are you using the latest Oxide build? Pretty sure that was fixed in the last.
-
I updated after we spoke about the bug with IPlayerManager.Connected or whatever the bug with the Covalence player list that was affecting BetterChat. I checked the Release Changelog thread and didn't see any update since then?
Last edited by a moderator: Oct 22, 2016 -
Wulf Community Admin
-
Hmm, that's odd. I'll try updating Oxide again tomorrow morning and see if it fixes it, I'll let you know.
-
Okay yep, ran another Oxide update and the problem is fixed. Cheers Wulf.
