Описание на русском языке:
- Я добавил в init.c внутри mpmission функцию получения и записи в txt-файл врнутреннего времени на сервере (игровое время) http://i98.fastpic.ru/big/2018/1102/ea/fd0905af13e0417e0b52a1af769807ea.png
- Добавил в тот же файл вызов функции каждые 5 минут во время работы сервера http://i98.fastpic.ru/big/2018/1102/01/34723e0e7dc94531953f9707d6a9aa01.png
- Установил в параметрах сервера
serverTime = "2018/07/15/9/00";
serverTimeAcceleration=1;
serverTimePersistent=1;
- Запустил сервер (он работал ровно 4 часа настоящего времени), после чего перезапустил сервер и подождал некоторое время, после чего проверил сво текстовый файл, и увидел следующее:
http://i98.fastpic.ru/big/2018/1102/91/6d192ae21911ded6b5be9a02bbd88191.png
- Я изменил значение в конфигурации сервера на такое
serverTimePersistent=0;
и перезапустил сервер. Повторил 4 пункт заного, и увидел ту же самую ситуацию:
http://i98.fastpic.ru/big/2018/1102/70/11301a4c4d05368bc82ead5aa2f89a70.png
- После проведения данных действий отчетливо видно, что параметр serverTimePersistent в конфигурации сервера не работает так, как заявлено в документации к серверной части игры на официальном форуме игры. То есть при запуске сервер сначала подбирает последнее активное время на сервере, а потом заменяет автоматически на время, указанное в конфигурации сервера.
Файл используемой конфигурации сервера верный, я проверял это, ошибиться я не мог, поскольку другие параметры (такие, как имя сервера или сообщения при входе на сервер) работают и меняются.
Description in English:
- I added init.c inside the mpmission the option of receiving records in a. txt file vnutrennego the server time (game time) http://i98.fastpic.ru/big/2018/1102/ea/fd0905af13e0417e0b52a1af769807ea.png
- Added to the same file a function call every 5 minutes while the server is running http://i98.fastpic.ru/big/2018/1102/01/34723e0e7dc94531953f9707d6a9aa01.png
- Set in server parameters
serverTime = " 2018/07/15/9/00";
serverTimeAcceleration=1;
serverTimePersistent=1;
- Launched server (he worked exactly 4 hours present time), after what restarted the server and waited some time, after what checked its text file, and saw the next:
http://i98.fastpic.ru/big/2018/1102/91/6d192ae21911ded6b5be9a02bbd88191.png
- I changed the value in the server configuration to this
serverTimePersistent=0;
and restarted the server. Repeated paragraph 4 again, and saw the same situation:
http://i98.fastpic.ru/big/2018/1102/70/11301a4c4d05368bc82ead5aa2f89a70.png
- After carrying out these actions, you can clearly see that the serverTimePersistent parameter in the server configuration does not work as stated in the documentation for the server part of the game on the official forum of the game. That is, when the server starts, it first selects the last active time on the server, and then automatically replaces it with the time specified in the server configuration.
The server configuration file used is correct, I checked it, I could not make a mistake, because other parameters (such as the server name or messages when logging on to the server) work and change.