Entity Inventory editing

    Tunk

    Who's idea was this?
    Joined
    Sep 8, 2013
    Messages
    363
    Reaction score
    153
    • Purchased!
    • Community Content - Bronze 1
    • Legacy Citizen 4
    Started a investigation on this for a project I'm working on, from dumping the database structure it appears inventories aren't stored there.

    Which indicates to me that inventories are stored in the entity files, so I would like to ask,
    How safe is it to modify a live entity file and if not are there any alternatives to modify a non-player inventory live from the server side of things?

    If there is no safe method for a live edit I'll go drop this in suggestions.
     

    StormWing0

    Leads the Storm
    Joined
    Jun 26, 2015
    Messages
    2,126
    Reaction score
    316
    • Community Content - Bronze 1
    The stuff in the starting inventory is under the GameConfig file if I remember right.
     

    Tunk

    Who's idea was this?
    Joined
    Sep 8, 2013
    Messages
    363
    Reaction score
    153
    • Purchased!
    • Community Content - Bronze 1
    • Legacy Citizen 4
    Talking about inventories on ships, stations, planets, and asteroids.
    If there is no easy way to modify them I'll just soft unload the entities if loaded and modify the entity files directly.
     

    nightrune

    Wizard/Developer/Project Manager
    Joined
    May 11, 2015
    Messages
    1,324
    Reaction score
    577
    • Schine
    • Top Forum Contributor
    • Thinking Positive
    Started a investigation on this for a project I'm working on, from dumping the database structure it appears inventories aren't stored there.

    Which indicates to me that inventories are stored in the entity files, so I would like to ask,
    How safe is it to modify a live entity file and if not are there any alternatives to modify a non-player inventory live from the server side of things?

    If there is no safe method for a live edit I'll go drop this in suggestions.
    I would say that's probably not safe at all. Due to threading concerns and race conditions with the server.