Entity files and .data

    Joined
    Jun 29, 2013
    Messages
    144
    Reaction score
    64
    • Modder
    • Legacy Citizen 4
    • Purchased!
    Hi everyone, I am currently working on the decryption of entity files.
    In recent weeks I could get a lot of information that could lead the community to create interesting projects I think.



    here is the result
    uniqueID (STRING)
    maxPos [x,y,z] //Array of int
    minPos [x,y,z] //Array of int

    dock //N/A
    dockedTo (STRING) //name of entity
    dockedToPos //N/A

    s //N/A
    cs1 //N/A
    realname (STRING)

    transformable
    mass(float)
    transform[
    [x,y,z] //x axis, Array of float
    [x,y,z] //y axis, Array of float
    [x,y,z] //z axis, Array of float
    [x,y,z] //local_pos, Array of float
    (float)

    ]
    AIConfig0[
    AiElement type AIM_AT state (STRING)
    AiElement type TYPE state (STRING)
    AiElement type ACTIVE state (BOOL)
    ]

    sPos [x,y,z] //Array of int
    fid(INT) //faction ID
    own //N/A

    container
    controllerStructure //this part is still confused but yesterday I came across these logs,
    { I think a good track
    inventory type ADDED INVENTORY: (10, 7, 11) on Client(1):
    index Inventory: (3; (10, 7, 11)){
    inventory slots types 1=>[slot 1; t 269; c 200000; mt -1],
    values(LIST) 0=>[slot 0; t 286; c 110000; mt -1]}
    }

    wepContr
    PointDist
    controller{
    idPos //N/A
    EffectStruct
    DamagePointEffect id dist //N/A
    DistancePointEffect id dist //N/A
    ReloadPointEffect id dist //N/A
    SpeedPointEffect id dist //N/A
    }
    wepContr
    wepContr
    wepContr

    pw(double)
    sh(double)
    creatorId null (STRING ENTITY_PLAYERSTATE_) null (STRING ENTITY_PLAYERSTATE_) //first STRING is the creator and second is for last modification)


    the file structure seems to be the same for the ship and for the stations. shop, planets and asteroid differ slightly.
    .data file is a HSQLDB, I opened it today and I'll post you contente later in the day

    Imagine all the things we can do with this information, an effective 3D starmap (we could even imagner a system that shows whether or not the stations that are not part of your faction), a 3D catalog ship with good info,...
    Sorry for my english
     
    Joined
    Jun 25, 2013
    Messages
    403
    Reaction score
    11
    • Legacy Citizen 2
    • Legacy Citizen
    We have a github community working on cracking StarMade, including all the data files. It\'s here.

    If you look in the SMTools area you can find my JOTools projects. There full java code for reading and writing entity files, header, logic, meta and ship files. There is a utility EditEntityFile that lets you make simple adjustments to entity files from the command line. (I use it to pump up my cash in my sandbox!)

    I\'d encourage you to check it out and contribute there, rather than re-inventing the wheel.