Lyeed / Framework_Tanoa_Life

Framework RPG/Life for ArmA 3 video game. The repository contains a client/server/database architecture that can be used to create your own multiplayer server
https://arma3.com/
Other
39 stars 18 forks source link

Companies are not saved #92

Open MasonsOD opened 4 years ago

MasonsOD commented 4 years ago

Good day, I wanted to ask such a question why, after building the company through the admin menu or so after restarting the server, all buildings disappear

Lyeed commented 4 years ago

You must not shut down the server yourself whenever you want. You have to either wait for a configured reboot or press the reboot button in the admin application in game and wait for the server to kick you. If you don't go though one of these steps, your server won't save and plenty data will be lost.

If you want to be sure that your server has saved data you can look at the server rpt log. You should have lines notifying you that X systems has been saved

MasonsOD commented 4 years ago

thanks. Is it possible to contact you, for example, through a discord?

Lyeed commented 4 years ago

I'm trying to regroup and keep my framework support on GitHub otherwise my answers are not visible enough and I have to repeat myself :)

MasonsOD commented 4 years ago

another question is how to add all the rights to administrators to several people tried different variations does not work

Lyeed commented 4 years ago

Each staff member needs to have its own class inheriting from the group you want them to have. Also you need to add each staff UUID in the array at the beginning of the config_staff file

https://github.com/Lyeed/Framework_Tanoa_Life/blob/master/Tanoa-Life.Tanoa/configs/GameConfigs/Config_Staff.hpp

MasonsOD commented 4 years ago

I did so and added on top. But I need to give administrator rights to another 1 person, could you write an example code for 2 people with administrator rights for an example so that I understand how this is done

MasonsOD commented 4 years ago

define ADMIN_AND_MODO {"2222222222222222","33333333333333"}


class MyAdminName: admin
    {
        uid="XXXXXXXXXXXXXXXXXX";"XXXXXXXXXXXXXXXXXX";
    };

    // - Modo

that's what i mean

MasonsOD commented 4 years ago

But that doesn't work

Lyeed commented 4 years ago

#define ADMIN_AND_MODO {"YourSteamUUID","HisSteamUUID"}
...
...
// - Admin
class admin
{
    rank="admin";
    teamspeak=1;
    slot=1;
    skip_checks=1;
};
class MasonsOD: admin
{
    uid="YourSteamUUID";
};
class MasonsODFriend: admin
{
    uid="HisSteamUUID";
};