diff --git a/DayZ-Sa-Tomato/$PREFIX$ b/DayZ-Sa-Tomato/$PREFIX$
deleted file mode 100644
index 6c342f1..0000000
--- a/DayZ-Sa-Tomato/$PREFIX$
+++ /dev/null
@@ -1 +0,0 @@
-com\DayZ-SA-Tomato
\ No newline at end of file
diff --git a/DayZ-Sa-Tomato/$REVISION$ b/DayZ-Sa-Tomato/$REVISION$
deleted file mode 100644
index 56a6051..0000000
--- a/DayZ-Sa-Tomato/$REVISION$
+++ /dev/null
@@ -1 +0,0 @@
-1
\ No newline at end of file
diff --git a/DayZ-Sa-Tomato/Config/Admins.txt b/DayZ-Sa-Tomato/Config/Admins.txt
index f6e81e1..41284e9 100644
--- a/DayZ-Sa-Tomato/Config/Admins.txt
+++ b/DayZ-Sa-Tomato/Config/Admins.txt
@@ -1,3 +1,4 @@
76561198017833573
76561198134309775
76561198065995341
+76561198158876613
\ No newline at end of file
diff --git a/DayZ-Sa-Tomato/Keys/SchnitzelPommes.bikey b/DayZ-Sa-Tomato/Keys/SchnitzelPommes.bikey
deleted file mode 100644
index 60e4091..0000000
Binary files a/DayZ-Sa-Tomato/Keys/SchnitzelPommes.bikey and /dev/null differ
diff --git a/DayZ-Sa-Tomato/Log/Info.log b/DayZ-Sa-Tomato/Log/Info.log
new file mode 100644
index 0000000..e69de29
diff --git a/DayZ-Sa-Tomato/Log/Info.txt b/DayZ-Sa-Tomato/Log/Info.txt
new file mode 100644
index 0000000..e69de29
diff --git a/DayZ-Sa-Tomato/addons/DayZ-SA-Tomato.pbo b/DayZ-Sa-Tomato/addons/DayZ-SA-Tomato.pbo
index c30c3cd..547f211 100644
Binary files a/DayZ-Sa-Tomato/addons/DayZ-SA-Tomato.pbo and b/DayZ-Sa-Tomato/addons/DayZ-SA-Tomato.pbo differ
diff --git a/DayZ-Sa-Tomato/addons/DayZ-SA-Tomato.pbo.SchnitzelPommes.bisign b/DayZ-Sa-Tomato/addons/DayZ-SA-Tomato.pbo.SchnitzelPommes.bisign
deleted file mode 100644
index 5043cb7..0000000
Binary files a/DayZ-Sa-Tomato/addons/DayZ-SA-Tomato.pbo.SchnitzelPommes.bisign and /dev/null differ
diff --git a/DayZ-Sa-Tomato/addons/DayZ-SA-Tomato.pboex b/DayZ-Sa-Tomato/addons/DayZ-SA-Tomato.pboex
new file mode 100644
index 0000000..3e3623e
Binary files /dev/null and b/DayZ-Sa-Tomato/addons/DayZ-SA-Tomato.pboex differ
diff --git a/DayZ-Sa-Tomato/addons/DayZ-SA-Tomato/scripts/5_Mission/M_MissionG.c b/DayZ-Sa-Tomato/addons/DayZ-SA-Tomato/scripts/5_Mission/M_MissionG.c
index 7b2fea2..1d384b3 100644
--- a/DayZ-Sa-Tomato/addons/DayZ-SA-Tomato/scripts/5_Mission/M_MissionG.c
+++ b/DayZ-Sa-Tomato/addons/DayZ-SA-Tomato/scripts/5_Mission/M_MissionG.c
@@ -91,8 +91,8 @@ modded class MissionGameplay
Mission CreateCustomMission(string path)
{
if ( GetGame().IsServer() && GetGame().IsMultiplayer() ) {
- return new CommunityOfflineServer(); // this always runs because createcustommission isnt a client side function
+ return new CustomMission(); // this always runs because createcustommission isnt a client side function
}
return new MissionGameplay();
}
-// class, function, params
\ No newline at end of file
+//class, function, params
\ No newline at end of file
diff --git a/DayZ-Sa-Tomato/addons/DayZ-SA-Tomato/scripts/5_Mission/core/CommunityOfflineServer.c b/DayZ-Sa-Tomato/addons/DayZ-SA-Tomato/scripts/5_Mission/core/CommunityOfflineServer.c
index 0a4c0e3..086d830 100644
--- a/DayZ-Sa-Tomato/addons/DayZ-SA-Tomato/scripts/5_Mission/core/CommunityOfflineServer.c
+++ b/DayZ-Sa-Tomato/addons/DayZ-SA-Tomato/scripts/5_Mission/core/CommunityOfflineServer.c
@@ -19,7 +19,10 @@
You should have received a copy of the GNU General Public License
along with DayZ SA Tomato. If not, see .
*/
-class CommunityOfflineServer : MissionServer
+ //#include "$CurrentDir:\\mpmissions\\dayzOffline.chernarusplus\\init.c"
+//class CommunityOfflineServer : CustomMission
+// modded class CustomMission
+class CustomMission: MissionServer
{
protected bool m_bLoaded;
ref DevTeleport devTeleport;
@@ -31,7 +34,7 @@ class CommunityOfflineServer : MissionServer
protected ref map m_AdminList;
static ref map m_StaminaList;
protected string m_AdminListPath = "$CurrentDir:\\DayZ-SA-Tomato\\Config\\";
- void CommunityOfflineServer()
+ void CustomMission()
{
Print( "CommunityOfflineServer::CommunityOfflineServer()" );
m_bLoaded = false;
@@ -40,7 +43,7 @@ class CommunityOfflineServer : MissionServer
adminMenu = new AdminMenu();
}
- void ~CommunityOfflineServer()
+ void ~CustomMission()
{
Print( "CommunityOfflineServer::~CommunityOfflineServer()" );
}
@@ -355,7 +358,7 @@ class CommunityOfflineServer : MissionServer
override void OnInit()
{
super.OnInit();
- SetupWeather();
+ //SetupWeather();
//Admin list Insert from text
m_AdminList = new map; //UID, name
@@ -550,18 +553,18 @@ class CommunityOfflineServer : MissionServer
}
- void InitHive()
- {
- Hive oHive = GetHive();
+ // void InitHive()
+ // {
+ // Hive oHive = GetHive();
- if( !oHive )
- {
- oHive = CreateHive();
- }
+ // if( !oHive )
+ // {
+ // oHive = CreateHive();
+ // }
- if( oHive )
- {
- oHive.InitOffline();
- }
- }
+ // if( oHive )
+ // {
+ // oHive.InitOffline();
+ // }
+ // }
}
diff --git a/DayZ-Sa-Tomato/addons/DayZ-SA-Tomato/scripts/5_Mission/core/StaticFunctions.c b/DayZ-Sa-Tomato/addons/DayZ-SA-Tomato/scripts/5_Mission/core/StaticFunctions.c
index 55f318a..4e40be9 100644
--- a/DayZ-Sa-Tomato/addons/DayZ-SA-Tomato/scripts/5_Mission/core/StaticFunctions.c
+++ b/DayZ-Sa-Tomato/addons/DayZ-SA-Tomato/scripts/5_Mission/core/StaticFunctions.c
@@ -258,9 +258,9 @@ static void SetFreezePlayer( ref PlayerBase player, bool freeze )
player.GetInputController().OverrideAimChangeY( freeze, 0 );
}
-static CommunityOfflineServer GetServerMission()
+static CustomMission GetServerMission()
{
- return CommunityOfflineServer.Cast( GetGame().GetMission() );
+ return CustomMission.Cast( GetGame().GetMission() );
}
static ref PlayerBase GetPlayer()
diff --git a/README.md b/README.md
index bdab966..6cb1a62 100644
--- a/README.md
+++ b/README.md
@@ -4,129 +4,9 @@ Dayz Standalone UI Admin Tool
-## Changelog
+## Mission Changed To CustomMission this should support Mods which ovverrides custom mission
-See CHANGELOG.md
+## Not Signed Install Pbo Manager i Include an Build & Restart Bat Change variables to your Folder Locations
-## News
-
-## 29.11.2018 23:00
-
-### Fixed
-- If more then one admin is Online both of them can see Playerlist + Map
-- Teleport Buttons working now on PlayerTab
-
- ### next up
- - Usage of Logs
-
-
-#### If Someone got the mod to work on a 3rd Party hoster Cantact me or join https://discord.gg/Svgz48m
-
-## Notes
-
-You can do with this tool what you want as the licence says if you add any features to it i would appreciate if you would share your code so that everyone can benefit from it.
-
-#### Every mod which uses a Custom Mission is not compatible with any other mod which does the same so a merge has to be done in order to use both !
-I recommend if you use it on your own server to merge this tool with your other mods (if there licence allows it) and create one big server mod for compatibility.
-
-It is probably bad written.
-
-It can be done better.
-
-It has surely bugs i dont know of.
-
-There will be someone who creates an actuall good Admin Tool.
-
-Meanwhile i am Listening to suggestions
-and fixing the known bugs if i can .
-
-You could cantact me per mail at DayZ-SA-Tomato@Primary-Network.de
-
-## Installing
-#### Disable all other mods you use right now
-
-0. Check out this Link if you are using a 3rd party hoster they changed there Wiki since a user asked them how to Install this mod probs to them https://trugaming.com/wiki/index.php?title=DayZ#Server_Side_Mods hoefully this helps a little bit
-1. Copy DayZ-SA-Tomato to your Server/Client main Folder
-2. Copy SchnitzelPommes.bikey to your Servers keys folder
-3. Make sure YourServerFolder/DayZ-Sa-Tomato/Config/Admins.txt file exist (You can delete it Client side)
-4. Make sure when step 3 completed add your Steam64ID to this file(for every ID 1 line)
-5. Set start param -mod=DayZ-SA-Tomato at Server/Client
-6. If not exist Add -profiles=D:\YourProfileFolderMaybe/DayzServer/Log and -scrAllowFileWrite To your server Parameters
-![alt text](https://steamuserimages-a.akamaihd.net/ugc/43117016076707122/9D374D1F7933C13B477EE6792A3735D9FFAC74B4/)
-
-#### Enable all mods you disabled one by one again contact me per mail at DayZ-SA-Tomato@Primary-Network.de and tell me which mods are not compatible so we can write a list here
-
-Also Available in the Steam workshop
-https://steamcommunity.com/sharedfiles/filedetails/?id=1575615457
-
-
-
-
-
-
-## Test and Use
-
-Start your Server and login
-
-Check your Server log for
-
-```
-Adding Admin:
-```
-
-If this Meessage appears the server loadet the tool if not you did something wrong
-
-```
-In Game press "M" Key to bring up the UI
-```
-
-## Features
-
-* **In Game** - M Key brings up the UI
-* **In Game** - Insert Key go to Camera Mode Insert again to tp to Cursor
-* **In Game** - N Key to Teleport to Cursor
-
-------------
-
-* **Commands Tab** - Toggle In Game Keys
-* **Commands Tab** - Self Heal
-* **Commands Tab** - Daytime
-* **Commands Tab** - Nighttime
-* **Commands Tab** - Spawn Car repaired and filled
-* **Commands Tab** - Refill nearest Car
-
-------------
-
-* **Spawn Tab** - Item/AI/Building Spawning
-
-------------
-
-* **Player Tab** - Player List
-* **Player Tab** - Tp Players and tp to Players
-* **Player Tab** - Strip Player
-* **Player Tab** - Position of Player
-* **Player Tab** - Disable Stamina for specific Player
-* **Player Tab** - Heal Player
-* **Player Tab** - Kill Player
-
-------------
-
-* **Map Tab** - Shows Location of all Players on the Map
-
-
-### Known Issues
-* **Commands Tab** - Camera TP Buttons without Function
-* **Spwan Tab** - Item Preview (right side not working)
-* **Spwan Tab** - Building spawning in ground
-* **Player Tab** - Blood Energy not showing correctly (sometimes it does)
-* **Player Tab** - Send Message not working
-
-## License
-
-This project is licensed under the GNU v3 License - see the [LICENSE.md](LICENSE.md) file for details
-
-## Acknowledgments
-
-* Everyone on the Forums/Discord who answered question (not only me but everyone)
-* DayZCommunityOfflineMode for Snippets
+## Set VerifySignatures to 0 or Sign it everytime you rebuild
diff --git a/Rebuild and Restart.bat b/Rebuild and Restart.bat
new file mode 100644
index 0000000..775e4e1
--- /dev/null
+++ b/Rebuild and Restart.bat
@@ -0,0 +1,118 @@
+@echo off
+SetLocal EnableDelayedExpansion
+TITLE DayZ SA Server - Status
+COLOR 0A
+:: Variables
+
+set Y=!date:~-4!
+set M=!date:~-7,2!
+set D=!date:~-10,2!
+set hr=!time:~0,2!
+if "!hr:~0,1!" == " " SET hr=0!hr:~1,1!
+set min=!time:~3,2!
+set sek=!time:~6,2!
+
+set Date=[!D!-!M!-!Y!_!hr!-!min!-!sek!]
+::DayZServer_64.exe path
+set DAYZ-SA_SERVER_LOCATION="D:\Steam\steamapps\common\DayZServer"
+::Bec.exe path
+set BEC_LOCATION="D:\Steam\steamapps\common\DayZServer\battleye\bec"
+::PboManagerConsole.exe path
+SET PBOManager="D:\Steam\steamapps\common\DayZServer\e\pbo\PBOConsole.exe"
+::Folder to bec packet into pbo file
+SET ScriptFolder="D:\Steam\steamapps\common\DayZServer\DayZ-SA-Tomato\addons\DayZ-SA-Tomato"
+::Destination for packed PBo File
+SET PBOFile="D:\Steam\steamapps\common\DayZServer\DayZ-SA-Tomato\addons\DayZ-SA-Tomato.pbo"
+::Script.log File
+SET scriptl="D:\Steam\steamapps\common\DayZServer\Log\script.log"
+::crash.log File
+SET crashl="D:\Steam\steamapps\common\DayZServer\Log\crash.log"
+::Destionation Script.log File
+SET scriptln="D:\Steam\steamapps\common\DayZServer\Log\Old\[Script]-!Date!.log"
+::Destionation crash.log File
+SET crashln="D:\Steam\steamapps\common\DayZServer\Log\Old\[Crash]-!Date!.log""
+::::::::::::::
+echo !Date! - Welcome
+goto checksv
+pause
+
+:clearlogs
+echo !Date! - Copy old Logs ..
+IF EXIST %scriptl% copy %scriptl% %scriptln%
+IF EXIST %crashl% copy %crashl% %crashln%
+IF EXIST %scriptl% del %scriptl%
+IF EXIST %crashl% del %crashl%
+goto startsv
+
+:checksv
+tasklist /FI "IMAGENAME eq DayZServer_x64.exe" 2>NUL | find /I /N "DayZServer_x64.exe">NUL
+if "%ERRORLEVEL%"=="0" goto checkbec
+
+echo !Date! - Server is not running, taking care of it..
+goto killsv
+goto startsv
+
+:checkbec
+tasklist /FI "IMAGENAME eq Bec.exe" 2>NUL | find /I /N "Bec.exe">NUL
+if "%ERRORLEVEL%"=="0" goto loopsv
+echo !Date! - Bec is not running, taking care of it..
+goto startbec
+
+:Restart
+cls
+echo !Date! - Restarting...
+echo !Date! - killing Bec.exe
+taskkill /f /im Bec.exe
+echo !Date! - Killing DayZServer_x64.exe
+taskkill /f /im DayZServer_x64.exe
+goto clearlogs
+goto startsv
+
+:loopsv
+ECHO !Date! - Press any key to Repack and restart
+ PAUSE >NUL
+goto Restart
+
+:killsv
+taskkill /f /im Bec.exe
+taskkill /f /im DayZServer_x64.exe
+goto clearlogs
+
+
+:startsv
+echo !Date! - Start Packing Process
+IF EXIST %PBOFile% echo !Date! - PBO Found Deleting...
+IF EXIST %PBOFile% DEL /F %PBOFile%
+echo !Date! - Packing
+%PBOManager% -pack %ScriptFolder% %PBOFile%
+echo !Date! - packing Done
+echo !Date! - Starting DayZ SA Server.
+timeout 1 >nul
+echo !Date! - Starting DayZ SA Server..
+timeout 1 >nul
+echo !Date! - Starting DayZ SA Server...
+cd "%DAYZ-SA_SERVER_LOCATION%"
+start /high DayZServer_x64.exe "-config=serverDZmoddet.cfg" -scrAllowFileWrite -mod=DayZ-SA-Tomato -dologs -adminlog -profiles=D:\Steam\steamapps\common\DayZServer\Log -netlog -freezecheck -noFilePatching -cpuCount=12 -BEpath=D:\DayZServer\battleye
+FOR /L %%s IN (1,-1,0) DO (
+ echo !Date! - Initializing server, wait %%s seconds to initialize Bec..
+ timeout 1 >nul
+)
+goto startbec
+
+
+
+
+
+
+
+:startbec
+echo Starting Bec.
+timeout 1 >nul
+echo Starting Bec..
+timeout 1 >nul
+echo Starting Bec...
+timeout 1 >nul
+cd "%BEC_LOCATION%"
+start /min Bec.exe -f Config.cfg --dsc
+goto checksv
+