Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
  • Need help?

    Create a topic in the appropriate section
    Don't write everything in the chat!
  • Take a look at the marketplace

    There you can buy
    everything related to game servers
  • Don't want a ban?

    Please read our rules
    Don't disturb the order!
  • Sell or buy?

    Use services of the guarantor
    We will make your deal safe

Доброго времени суток.

Пожалуйста объясните мне систему дэйз мода, не эпоч и.т.д

Мне интересно где его скачивать как устанавливать серверные файлы, есть ли для него скрипты или что то доп.

Или сайт где все подробно описывают.

Edited by TheApollo (see edit history)

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts




Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Similar Content

    • By Troy1
      Скрипт спавна NPC имеется, но взаимодействие не какого. 
      Скрипт экшена.
      class ActionSpawnSelectNPC : ActionInteractBase {     void ActionSpawnSelectNPC()     {         m_CommandUID = DayZPlayerConstants.CMD_ACTIONMOD_INTERACTONCE; // Уникальный ID действия         m_StanceMask = DayZPlayerConstants.STANCEMASK_ERECT | DayZPlayerConstants.STANCEMASK_CROUCH; // Разрешенные позы         m_Text = "Проводник"; // Текст действия     }     override void CreateConditionComponents()     {         m_ConditionTarget = new CCTNone; // Условия для цели         m_ConditionItem = new CCINone; // Условия для предмета     }     override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)     {         Object obj = target.GetObject();         Print("Данные с obj " + obj);         if (obj && obj.IsAlive()) {             Print("Данные с obj живой или нет " + obj);                          PlayerBase pb = PlayerBase.Cast(obj);             Print("Данные с pb.m_SoC_ss_isNPC " + pb.m_SoC_ss_isNPC);                          if (pb && pb.m_SoC_ss_isNPC) { // Проверка, является ли объект NPC                 return true; // Условие выполнено, действие доступно             }         }         return false; // Условие не выполнено, действие недоступно     }     override void OnStartClient(ActionData action_data)     {         // PlayerBase player = PlayerBase.Cast(action_data.m_Player);         // if (player) {             // player.RequestToServer(); // Отправляем запрос на сервер         // }     } } modded class ActionConstructor {     override void RegisterActions(TTypenameArray actions)     {         super.RegisterActions(actions);         actions.Insert(ActionSpawnSelectNPC);     } }; Скрипт  PlayerBase
      modded class PlayerBase {     bool m_SoC_ss_isNPC = false; // кастомное свойство     override void Init() {         super.Init();         RegisterNetSyncVariableBool("m_SoC_ss_isNPC"); // регистрация кастомного свойства для синхронизации между клиентом и сервером     }          override void SetActions(out TInputActionMap InputActionMap)     {         super.SetActions(InputActionMap);         AddAction(ActionSpawnSelectNPC, InputActionMap);     }          void SendToServer(bool m_sn, int sel, bool es, bool sar) {         Param4<bool, int, bool, bool> sendParam = new Param4<bool, int, bool, bool>(m_sn, sel, es, sar);         RPCSingleParam(SOC_SS_RPCs.SOC_SPUI, sendParam, true, GetIdentity());     }          void TimeOutRefresh() {         RPCSingleParam(SOC_SS_RPCs.SOC_RSCT, NULL, true, GetIdentity());     }          void RequestToServer() {         RPCSingleParam(SOC_SS_RPCs.SOC_SCUR, NULL, true, GetIdentity());     } } Скрипт спавна NPC
      class NpcFunction {     void NpcFunction()     {         ReadConfig();     }          protected void ReadConfig()     {         ConfigNPC m_ConfigNPC = new ConfigNPC();         JsonFileLoader<ConfigNPC>.JsonLoadFile(SPAWN_SELECT_NPC_FOLDER + SPAWN_SELECT_NPC_CONFIG, m_ConfigNPC);         EntityAI itemCreated = NULL;         foreach(auto NpcData : m_ConfigNPC.NPCConfig)         {             vector posNpc = Vector(NpcData.Position[0], NpcData.Position[1], NpcData.Position[2]);             vector oriNpc = Vector(NpcData.Orientation[0], NpcData.Orientation[1], NpcData.Orientation[2]);             Object SpawnSelectNpc = GetGame().CreateObject(NpcData.ClassNameNpc, posNpc, false, false, true);             SpawnSelectNpc.SetPosition(posNpc);             SpawnSelectNpc.SetOrientation(oriNpc);                          PlayerBase man = PlayerBase.Cast(SpawnSelectNpc); // Кастим объект класса Object к объекту того класса, в который мы добавили кастомное свойство (PlayerBase).                          for(int i = 0; i < NpcData.Clothes.Count(); i++) {                 itemCreated = man.GetInventory().CreateInInventory(NpcData.Clothes[i]);             }             man.m_SoC_ss_isNPC = true; // Проставляем значение нашему кастомному свойству.         }                  foreach(auto ObjData : m_ConfigNPC.ObjConfig)         {             vector posObj = Vector(ObjData.Position[0], ObjData.Position[1], ObjData.Position[2]);             vector ObjOri = Vector(ObjData.Orientation[0], ObjData.Orientation[1], ObjData.Orientation[2]);             Object SoCSpawnSelectObj = GetGame().CreateObject(ObjData.ClassNameObj, posObj, false, false, true);             SoCSpawnSelectObj.SetPosition(posObj);             SoCSpawnSelectObj.SetOrientation(ObjOri);         }         WriteLog("SpawnSelectNpc configuration file successfully read.");     } } Что не так? В другом моде взаимодействие работает а в нужном нет. Переменные bool менял на новое "m_SoC_ss_isNPC " не помгло. Взаимодействие срабатывает на другом NPC не на том которои нужно. Помогите пожалуйста.
    • By magliner
      Привет ! Ну вот моя история с вопросом в конце.. Я фанат Дэйз ванилы черноруси, заколебало сидеть на бездушных серверах со слабой админкой и терять лут от софтеров, решил создать под свои скромные запросы около ванильный сервер.. Нашел хорошего исполнителя, быстро и четко запустили отладили и ВОТ я имею СВОЙ сервер.. клас! вечер восторга и изучения
      Пожалуйста, Войдите или Зарегистрируйтесь, чтобы увидеть это: Вложение.

      Пожалуйста, Войдите или Зарегистрируйтесь, чтобы увидеть это: Вложение.
    • By -Reks-
      Продам сервер по DayZ/ Есть 
      Пожалуйста, Войдите или Зарегистрируйтесь, чтобы увидеть это: Вложение.
    • By SemKa1407
      Ссылка на архив: https://disk.yandex.ru/d/WmYW5AcZozGSiA
      Инструкция, написанная на коленке, есть в архиве (для полных нулей).
    • By SemKa1407
      Будьте добры, помогите пожалуйста.
      Проблема в том, что не приходят сообщения в нужное время. Скорее всего неправильная логика.
      class FakeChatNotifier { ref Timer m_Timer; ref Timer m_MessageTimer; bool m_IsActive; // Списки диалогов ref array<ref array<string>> m_WelcomeDialogs; ref array<ref array<string>> m_RegularDialogs; ref array<ref array<string>> m_ThreatDialogs; void FakeChatNotifier() { m_Timer = new Timer(); m_MessageTimer = new Timer(); m_IsActive = false; // Инициализация диалогов InitializeDialogs(); Print("[FakeChatNotifier] Initialized"); // Лог для проверки инициализации } void InitializeDialogs() { // Приветственные диалоги m_WelcomeDialogs = new array<ref array<string>>; m_WelcomeDialogs.Insert({"Hello!", "How are you?"}); m_WelcomeDialogs.Insert({"Anyone alive?", "Yes, I am here. What's new?"}); m_WelcomeDialogs.Insert({"What's the situation?", "It seems quiet, but stay sharp."}); // Обычные диалоги m_RegularDialogs = new array<ref array<string>>; m_RegularDialogs.Insert({"Check radio frequency 98.7", "Got it, I'll stay alert."}); m_RegularDialogs.Insert({"Never trust strangers", "Right, it's every man for himself here."}); m_RegularDialogs.Insert({"I saw someone near the old factory", "Thanks for the info, I'll check it out."}); // Угрозы m_ThreatDialogs = new array<ref array<string>>; m_ThreatDialogs.Insert({"We will find you...", "Try, but I won't give up."}); m_ThreatDialogs.Insert({"You won't escape", "I'm ready for this."}); m_ThreatDialogs.Insert({"Your loot will be ours", "You wish."}); } void Start() { if (!m_IsActive) { m_IsActive = true; m_Timer.Run(60, this, "CheckTime", NULL, true); // Запуск таймера на проверку каждые 60 секунд Print("[FakeChatNotifier] Started main timer"); // Лог для проверки запуска } } void Stop() { m_IsActive = false; m_Timer.Stop(); m_MessageTimer.Stop(); Print("[FakeChatNotifier] Stopped timers"); // Лог для проверки остановки } // Функция для получения текущего времени void GetCurrentHour(out int hour) { int year, month, day, minute; GetGame().GetWorld().GetDate(year, month, day, hour, minute); // Получаем текущий час из даты Print("[FakeChatNotifier] Current hour: " + hour); // Лог для проверки текущего времени } void CheckTime() { int hour; GetCurrentHour(hour); // Используем нашу функцию для получения текущего часа if (hour >= 22 || hour < 6) { if (!m_IsActive) { Print("[FakeChatNotifier] Night time detected, starting dialog cycle"); // Лог для ночного времени StartDialogCycle(hour); } } else { Print("[FakeChatNotifier] Day time, stopping dialogs"); // Лог для дневного времени Stop(); } } void StartDialogCycle(int hour) { if (!m_IsActive) return; array<string> dialog; if (hour >= 22 && hour < 23) { dialog = m_WelcomeDialogs.GetRandomElement(); // Приветственные диалоги Print("[FakeChatNotifier] Sending welcome dialog"); // Лог для приветственных диалогов } else if (hour >= 23 && hour < 3) { dialog = m_RegularDialogs.GetRandomElement(); // Обычные диалоги Print("[FakeChatNotifier] Sending regular dialog"); // Лог для обычных диалогов } else if (hour >= 3 && hour < 6) { dialog = m_ThreatDialogs.GetRandomElement(); // Угрозы Print("[FakeChatNotifier] Sending threat dialog"); // Лог для угроз } SendDialog(dialog); ScheduleNextDialog(); // Планирование следующего диалога } void ScheduleNextDialog() { int interval = Math.RandomIntInclusive(900, 1500); // Интервал (15-25 минут в секундах) m_MessageTimer.Run(interval, this, "StartDialogCycle", NULL, false); Print("[FakeChatNotifier] Scheduled next dialog in " + interval + " seconds"); // Лог для планирования следующего диалога } void SendDialog(array<string> dialog) { for (int i = 0; i < dialog.Count(); i++) { float delay = i * Math.RandomIntInclusive(5, 9); // Задержка между сообщениями в диалоге (5-9 секунд) m_MessageTimer.Run(delay, this, "SendMessageToPlayers", new Param1<string>(dialog[i]), false); Print("[FakeChatNotifier] Scheduled message with delay " + delay + " seconds: " + dialog[i]); // Лог для отправки сообщения } } void SendMessageToPlayers(Param1<string> param) { string message = param.param1; array<Man> players = new array<Man>; GetGame().GetPlayers(players); if (players.Count() > 0) { foreach (Man player : players) { Param1<string> globalMessage = new Param1<string>(message); GetGame().RPCSingleParam(player, ERPCs.RPC_USER_ACTION_MESSAGE, globalMessage, true, player.GetIdentity()); } Print("[FakeChatNotifier] Sent message to all players: " + message); // Лог для отправленного сообщения } else { Print("[FakeChatNotifier] No players online to send message: " + message); // Лог для случая, если нет игроков } } }  
  • Our picks

×
×
  • Create New...

Important Information

By using this site, you automaticly agree to our Guidelines and Privacy Policy.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.