Solved Editing Rust databases?

Discussion in 'Rust Discussion' started by Płomyk, Feb 20, 2016.

  1. Like in other games like Arma Epoch, there have to be a database that stores information about elements placed on the map (and more, like their health points etc.)

    Is there any way to edit the database in real-time? I think that everything I have is a Storage.db and UserPersistence.db, but I don't know if I can edit this to make a SQL query that could fix all server elements with hp lower than 100%

    I don't even know if I can access this file with some help of IDE software

    Before I start to dig a google for (I suppose) SQLite tools, I want to ask if real-time editing works in this game, it can be also encrypted
     
  2. I want to learn how to write plugins, but first off I need to understand how Oxide communicates with game entities after hooks like onHit has been triggered. Can I modify object properties by accessing it's data in raw form, or I have to use pre-built functions for this? I gave an example about data I would like to find in database, but every sqlite IDEs won't show any data from *.db files
     
  3. Wulf

    Wulf Community Admin

    Oxide doesn't communicate with it really, plugins just call functions and get values from Rust directly.

    Also, the .db files from Rust simple store signs and player blueprints, nothing more. You shouldn't edit them directly though while the server is running.
     
  4. Ok thanks :)
     
  5. All the other stuff is stored in the .sav-files.
    Basically, you modify those by simply altering data in Rust itself directly, and whenever server.save is called, those changes are stored to the file system.