Framework_Tanoa_Life icon indicating copy to clipboard operation
Framework_Tanoa_Life copied to clipboard

Companies are not saved

Open MasonsOD opened this issue 4 years ago • 9 comments

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

MasonsOD avatar Mar 18 '20 21:03 MasonsOD

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

Lyeed avatar Mar 19 '20 11:03 Lyeed

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

MasonsOD avatar Mar 19 '20 14:03 MasonsOD

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 :)

Lyeed avatar Mar 19 '20 15:03 Lyeed

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

MasonsOD avatar Mar 19 '20 16:03 MasonsOD

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

Lyeed avatar Mar 19 '20 16:03 Lyeed

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 avatar Mar 19 '20 17:03 MasonsOD

#define ADMIN_AND_MODO {"2222222222222222","33333333333333"}


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

	// - Modo

that's what i mean

MasonsOD avatar Mar 19 '20 17:03 MasonsOD

But that doesn't work

MasonsOD avatar Mar 19 '20 17:03 MasonsOD

#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";
};

Lyeed avatar Mar 20 '20 14:03 Lyeed