Solved Failed to import JSON

Discussion in 'Rust Discussion' started by Resistance, Oct 30, 2015.

  1. [10/30/2015 6:33:03 AM] [Oxide] 6:32 AM [Warning] Failed to import JSON file: oxide.users already exists.
    [10/30/2015 6:33:03 AM] [Oxide] 6:32 AM [Warning] Failed to import JSON file: oxide.groups already exists.
    I get this when I start my server but its all up to date what can I do to fix this problem
    [DOUBLEPOST=1446204123,1446186896][/DOUBLEPOST]So no one can help with this even if i delete these files it keeps making them again but on my test pc it does not so i need to know what to delete, fix, change etc etc to fix this problem
     
  2. Plugins which accessed the json files directly will create these files. Like Ranks and Titles did/does.
     
  3. These two files are meant to be data files now and I removed the Ranks and Titles plugin as it was giving me problems and still it makes the files. I have reported the problem with the Ranks and Titles plugin but the coder does not fix it
     
  4. Well it was just an example. Dunno exactly which plugins used them. Oxide itself only uses the data files.
     
  5. Its strange one server keeps trying to make them when its started the other one does not both have the same plugins they are like a clone of each other but my main one is the only one with a problem
     
  6. Wulf

    Wulf Community Admin

    Use Notepad++ or similar program to do a 'find all' for "oxide.users" in all of your plugin files. Also make sure you don't have any in the oxide/data folder.
     
  7. I have these files in the data folder
    oxide.users.data
    oxide.groups.data
    oxide.covalence.playerdata.data
    but it keeps making these two files in the data folder
    oxide.users.json
    oxide.groups.json
    I do use notepad++ so do you want me to open each script in plugins and search for oxide.users and oxide.groups not really clear what you mean
     
  8. Wulf

    Wulf Community Admin

    You can search an entire folder where your plugins are.
     
  9. tried that but I dont think it would work unless i opened each script
     
  10. Wulf

    Wulf Community Admin

  11. Line 27: var uData = data.GetData('oxide.users');
    my_server_identity\oxide\plugins\PrefixHandler.js
    This is from the files that I dont have any problem will check on the one I have now to see if its the same
     
  12. Wulf

    Wulf Community Admin

    That's one of your culprits right there.
     
  13. Maybe its also the reason I have been having problems with the RanksandTitles plugin it was so bad I had to remove it so if I remove the PrefixHandler plugin then I should be able to install the RanksandTitles again unless someone fixes the PrefixHandler
     
  14. Wulf

    Wulf Community Admin

    All of the plugins by that author access the user/group data wrongly I believe.
     
  15. Wish he would fix them and thx for the help that fixed all my problems