Help with files.

    Joined
    Mar 22, 2015
    Messages
    120
    Reaction score
    64
    • Purchased!
    • Community Content - Bronze 1
    • Legacy Citizen 2
    I'm working on a top secret project.
    I can't disclose much, but I need to know how I can access the data in the FACTIONS.fac File under server-database/world

    When I try to open the file it shows up as random characters mostly though I have an idea what it does. I specifically need access to the FactionPoint int somewhere there
     

    nightrune

    Wizard/Developer/Project Manager
    Joined
    May 11, 2015
    Messages
    1,324
    Reaction score
    577
    • Schine
    • Top Forum Contributor
    • Thinking Positive
    I'm working on a top secret project.
    I can't disclose much, but I need to know how I can access the data in the FACTIONS.fac File under server-database/world

    When I try to open the file it shows up as random characters mostly though I have an idea what it does. I specifically need access to the FactionPoint int somewhere there
    Its likely a binary file. You are gonna have to go old school and change things in game and look for the values you need. Better get good with a hex editor.
     
    • Like
    Reactions: Valck

    AndyP

    Customer Experience Manager
    Joined
    Aug 15, 2013
    Messages
    1,199
    Reaction score
    264
    • Schine
    • Wired for Logic
    Yes as stated above, its a binary file, and you have to walk through it with a full parser to find specific values.
    However, you cannot write to it, while the server is running, it will only be a place to save for the server, it will not load changes to the file.
    It may be easier to insert a /faction_list command to the server and parse the output, it gives a complete list of faction names, ID, playercount and factionpoints.
    I assume this is much easier.

    - Andy
     
    Joined
    Mar 22, 2015
    Messages
    120
    Reaction score
    64
    • Purchased!
    • Community Content - Bronze 1
    • Legacy Citizen 2
    Yes as stated above, its a binary file, and you have to walk through it with a full parser to find specific values.
    However, you cannot write to it, while the server is running, it will only be a place to save for the server, it will not load changes to the file.
    It may be easier to insert a /faction_list command to the server and parse the output, it gives a complete list of faction names, ID, playercount and factionpoints.
    I assume this is much easier.

    - Andy
    My intention is not to write to it. I will see about using that command thank you.