Смена карт дневной и ночной режим

cleanplay

Участник
Сообщения
99
Реакции
6
Всем привет! Решаю вопрос установки карт днем и ночью! В одно время загружается конфиг для голосования за дневные карты, в другое время за ночные карты! Создавл два конфига день и ночь, сделал расписание exec конфиг дневной и тоже самое ночной! Но это работает только если использовать коллекции воркшопа! Как можно сделать так, чтобы это работало с картами, которые на сервере, может есть какой то плагин для этого или мапчусер! Голосование ставил стандартное
 

Kruzya

Участник
Сообщения
12,970
Реакции
10,921
  • Команда форума
  • #4
Через какой обычный планировщик? О_о
 

aksissound

Участник
Сообщения
85
Реакции
14
я думаю он про cron на той линухтачке где он хостит:crazy:. еси так - то низя
 

Kruzya

Участник
Сообщения
12,970
Реакции
10,921
  • Команда форума
  • #6
@aksissound, ну тут есть аж два варианта, про какой планировщик он пишет.
  • Обычный, который предоставляется на игровых хостингах вроде MyArena.
  • Линуксовый CronTab.
 

cleanplay

Участник
Сообщения
99
Реакции
6
@aksissound, ну тут есть аж два варианта, про какой планировщик он пишет.

  • Обычный, который предоставляется на игровых хостингах вроде MyArena.
    Линуксовый CronTab.
Я установил данный плагин, по времени сделал настройку загрузки мапцикла
sc_addjob 25 10 * * * "sm_cvar mapcyclefile day_maps.txt"
Вот что пишет мне в консоли при выполнении данной команды по времени:
[basecommands.smx] "Console<0><Console><Console>" console command (cmdline "mapcyclefile day_maps.txt")

Файл day_maps.txt лежит в корне сервера там же где и обычный мапцикл.
Суть такова что карты меняет в разноброс, ставит даже те, которых в файле day_maps.txt нет.

Куда еще можно капнуть? Думаю что maplist.cfg еще править нужно.
Вот мой
/**
* Use this file to configure map lists.
*
* Each section is a map list that plugins can use. For example, the Admin Menu
* requests an "admin menu" map list, and you can control which maps appear via
* this file.
*
* Each section must have a property that explains where to read the maps from.
* There are two properties:
*
* target - Redirect the request to another section.
* file - Read a file of map names, in mapcycle.txt format.
*
* There is one section by default, called "mapcyclefile" - it is mapped to the
* mapcycle.txt file, or whatever the contents of your mapcyclefile cvar is.
*
* If a plugin requests a map list file which doesn't exist, or is empty, SourceMod
* tries the "default" section, and then the "mapcyclefile" section.
*/
"MapLists"
{
/**
* Default requests go right to the mapcyclefile.
*/
"default"
{
"target" "mapcyclefile"
}

/* Admin menu, map menu */
"sm_map menu"
{
"file" "addons/sourcemod/configs/adminmenu_maplist.ini"
}

/* Admin menu, map voting menu */
"sm_votemap menu"
{
"file" "addons/sourcemod/configs/adminmenu_maplist.ini"
}

/* For the "randomcycle" plugin */
"randomcycle"
{
"target" "default"
}

/* For the "mapchooser" plugin */
"mapchooser"
{
"target" "default"
}

/* For the "nominations" plugin */
"nominations"
{
"target" "default"
}
 

leshaJEY

Участник
Сообщения
175
Реакции
16
@aksissound, ну тут есть аж два варианта, про какой планировщик он пишет.

  • Обычный, который предоставляется на игровых хостингах вроде MyArena.
    Линуксовый CronTab.

Такой вопрос к тебе, вот каждый раз после обновления сбивается motd, maplist.txt, mapcycle.txt
С создал для motd отдельный файл, и прописал в server.cfg - motdfile "mymotd.txt"
После обновления motd перестал сбиваться, возможно провернуть такое же для maplist.txt, mapcycle.txt?
Если да, не мог бы помочь.
 

inklesspen

Не пишу модули под LSD :с
Сообщения
1,775
Реакции
967
Я установил данный плагин, по времени сделал настройку загрузки мапцикла
sc_addjob 25 10 * * * "sm_cvar mapcyclefile day_maps.txt"
Вот что пишет мне в консоли при выполнении данной команды по времени:
[basecommands.smx] "Console<0><Console><Console>" console command (cmdline "mapcyclefile day_maps.txt")

Файл day_maps.txt лежит в корне сервера там же где и обычный мапцикл.
Суть такова что карты меняет в разноброс, ставит даже те, которых в файле day_maps.txt нет.

Куда еще можно капнуть? Думаю что maplist.cfg еще править нужно.
Вот мой
/**
* Use this file to configure map lists.
*
* Each section is a map list that plugins can use. For example, the Admin Menu
* requests an "admin menu" map list, and you can control which maps appear via
* this file.
*
* Each section must have a property that explains where to read the maps from.
* There are two properties:
*
* target - Redirect the request to another section.
* file - Read a file of map names, in mapcycle.txt format.
*
* There is one section by default, called "mapcyclefile" - it is mapped to the
* mapcycle.txt file, or whatever the contents of your mapcyclefile cvar is.
*
* If a plugin requests a map list file which doesn't exist, or is empty, SourceMod
* tries the "default" section, and then the "mapcyclefile" section.
*/
"MapLists"
{
/**
* Default requests go right to the mapcyclefile.
*/
"default"
{
"target" "mapcyclefile"
}

/* Admin menu, map menu */
"sm_map menu"
{
"file" "addons/sourcemod/configs/adminmenu_maplist.ini"
}

/* Admin menu, map voting menu */
"sm_votemap menu"
{
"file" "addons/sourcemod/configs/adminmenu_maplist.ini"
}

/* For the "randomcycle" plugin */
"randomcycle"
{
"target" "default"
}

/* For the "mapchooser" plugin */
"mapchooser"
{
"target" "default"
}

/* For the "nominations" plugin */
"nominations"
{
"target" "default"
}

..Mapcyclefile нет такой команды
 

aksissound

Участник
Сообщения
85
Реакции
14
Я установил данный плагин, по времени сделал настройку загрузки мапцикла
sc_addjob 25 10 * * * "sm_cvar mapcyclefile day_maps.txt"
Вот что пишет мне в консоли при выполнении данной команды по времени:
[basecommands.smx] "Console<0><Console><Console>" console command (cmdline "mapcyclefile day_maps.txt")

Файл day_maps.txt лежит в корне сервера там же где и обычный мапцикл.
Суть такова что карты меняет в разноброс, ставит даже те, которых в файле day_maps.txt нет.

Куда еще можно капнуть? Думаю что maplist.cfg еще править нужно.
Вот мой
/**
* Use this file to configure map lists.
*
* Each section is a map list that plugins can use. For example, the Admin Menu
* requests an "admin menu" map list, and you can control which maps appear via
* this file.
*
* Each section must have a property that explains where to read the maps from.
* There are two properties:
*
* target - Redirect the request to another section.
* file - Read a file of map names, in mapcycle.txt format.
*
* There is one section by default, called "mapcyclefile" - it is mapped to the
* mapcycle.txt file, or whatever the contents of your mapcyclefile cvar is.
*
* If a plugin requests a map list file which doesn't exist, or is empty, SourceMod
* tries the "default" section, and then the "mapcyclefile" section.
*/
"MapLists"
{
/**
* Default requests go right to the mapcyclefile.
*/
"default"
{
"target" "mapcyclefile"
}

/* Admin menu, map menu */
"sm_map menu"
{
"file" "addons/sourcemod/configs/adminmenu_maplist.ini"
}

/* Admin menu, map voting menu */
"sm_votemap menu"
{
"file" "addons/sourcemod/configs/adminmenu_maplist.ini"
}

/* For the "randomcycle" plugin */
"randomcycle"
{
"target" "default"
}

/* For the "mapchooser" plugin */
"mapchooser"
{
"target" "default"
}

/* For the "nominations" plugin */
"nominations"
{
"target" "default"
}
В конце поставь "}"
Такой вопрос к тебе, вот каждый раз после обновления сбивается motd, maplist.txt, mapcycle.txt
С создал для motd отдельный файл, и прописал в server.cfg - motdfile "mymotd.txt"
После обновления motd перестал сбиваться, возможно провернуть такое же для maplist.txt, mapcycle.txt?
Если да, не мог бы помочь.
не делай
app_update 740 validate
Делай
app_update 740
 

kilroy

:clown:
Сообщения
1,065
Реакции
606
  • Команда форума
  • #14
..Mapcyclefile нет такой команды
Вообще то есть. (Mapcyclefile - Valve Developer Community)
Такой вопрос к тебе, вот каждый раз после обновления сбивается motd, maplist.txt, mapcycle.txt
С создал для motd отдельный файл, и прописал в server.cfg - motdfile "mymotd.txt"
После обновления motd перестал сбиваться, возможно провернуть такое же для maplist.txt, mapcycle.txt?
Если да, не мог бы помочь.
Если внимательно почитаете сообщения ТСа, то увидите нужное вам, ну а если лень, то Заменяются maplist и mapcycle после обновления
 

cleanplay

Участник
Сообщения
99
Реакции
6
Ребят может разберемся с одним вопросом? Честно я уже запутался в рутине сообщений куда и кому адресованных!
--- Добавлено позже ---
ну значит тронул
Я скачал sourcemod и этот файл один в один без доп. скобок
 

aksissound

Участник
Сообщения
85
Реакции
14
Флуд/Оффтоп
Ребят может разберемся с одним вопросом? Честно я уже запутался в рутине сообщений куда и кому адресованных!
--- Добавлено позже ---

Я скачал sourcemod и этот файл один в один без доп. скобок
Будь внимателен
Оффтоп
sourcemod/maplists.cfg at master · alliedmodders/sourcemod · GitHub
 

cleanplay

Участник
Сообщения
99
Реакции
6
ну значит тронул
Я скачал sourcemod и тот
Будь внимателен
Оффтоп
sourcemod/maplists.cfg at master · alliedmodders/sourcemod · GitHub
Сори копировал не до конца! Но сути не меняет, проблема с картами остается
 

inklesspen

Не пишу модули под LSD :с
Сообщения
1,775
Реакции
967
upload_2018-1-14_12-36-4.png

странно
 

Kruzya

Участник
Сообщения
12,970
Реакции
10,921
  • Команда форума
  • #20
Mapcyclefile нет такой команды
Есть.
IyvLRcF.png

С маленькой писать надо, не с большой.

каждый раз после обновления сбивается motd, maplist.txt, mapcycle.txt
Как сервер обновляете?

Ребят, мапцикл по новой читается только при смене карты. Не ждите моментального эффекта.
 
Сверху Снизу