mirror of
https://github.com/Tomato-dayZ/DayZ-SA-Tomato.git
synced 2024-08-30 16:22:09 +00:00
Initial
This commit is contained in:
parent
bf3c0eb586
commit
990bd75f89
@ -1 +0,0 @@
|
|||||||
com\DayZ-SA-Tomato
|
|
@ -1 +0,0 @@
|
|||||||
1
|
|
@ -1,3 +1,4 @@
|
|||||||
76561198017833573
|
76561198017833573
|
||||||
76561198134309775
|
76561198134309775
|
||||||
76561198065995341
|
76561198065995341
|
||||||
|
76561198158876613
|
Binary file not shown.
0
DayZ-Sa-Tomato/Log/Info.log
Normal file
0
DayZ-Sa-Tomato/Log/Info.log
Normal file
0
DayZ-Sa-Tomato/Log/Info.txt
Normal file
0
DayZ-Sa-Tomato/Log/Info.txt
Normal file
Binary file not shown.
Binary file not shown.
BIN
DayZ-Sa-Tomato/addons/DayZ-SA-Tomato.pboex
Normal file
BIN
DayZ-Sa-Tomato/addons/DayZ-SA-Tomato.pboex
Normal file
Binary file not shown.
@ -91,8 +91,8 @@ modded class MissionGameplay
|
|||||||
Mission CreateCustomMission(string path)
|
Mission CreateCustomMission(string path)
|
||||||
{
|
{
|
||||||
if ( GetGame().IsServer() && GetGame().IsMultiplayer() ) {
|
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();
|
return new MissionGameplay();
|
||||||
}
|
}
|
||||||
// class, function, params
|
//class, function, params
|
@ -19,7 +19,10 @@
|
|||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with DayZ SA Tomato. If not, see <https://www.gnu.org/licenses/>.
|
along with DayZ SA Tomato. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
class CommunityOfflineServer : MissionServer
|
//#include "$CurrentDir:\\mpmissions\\dayzOffline.chernarusplus\\init.c"
|
||||||
|
//class CommunityOfflineServer : CustomMission
|
||||||
|
// modded class CustomMission
|
||||||
|
class CustomMission: MissionServer
|
||||||
{
|
{
|
||||||
protected bool m_bLoaded;
|
protected bool m_bLoaded;
|
||||||
ref DevTeleport devTeleport;
|
ref DevTeleport devTeleport;
|
||||||
@ -31,7 +34,7 @@ class CommunityOfflineServer : MissionServer
|
|||||||
protected ref map<string, string> m_AdminList;
|
protected ref map<string, string> m_AdminList;
|
||||||
static ref map<string, string> m_StaminaList;
|
static ref map<string, string> m_StaminaList;
|
||||||
protected string m_AdminListPath = "$CurrentDir:\\DayZ-SA-Tomato\\Config\\";
|
protected string m_AdminListPath = "$CurrentDir:\\DayZ-SA-Tomato\\Config\\";
|
||||||
void CommunityOfflineServer()
|
void CustomMission()
|
||||||
{
|
{
|
||||||
Print( "CommunityOfflineServer::CommunityOfflineServer()" );
|
Print( "CommunityOfflineServer::CommunityOfflineServer()" );
|
||||||
m_bLoaded = false;
|
m_bLoaded = false;
|
||||||
@ -40,7 +43,7 @@ class CommunityOfflineServer : MissionServer
|
|||||||
adminMenu = new AdminMenu();
|
adminMenu = new AdminMenu();
|
||||||
}
|
}
|
||||||
|
|
||||||
void ~CommunityOfflineServer()
|
void ~CustomMission()
|
||||||
{
|
{
|
||||||
Print( "CommunityOfflineServer::~CommunityOfflineServer()" );
|
Print( "CommunityOfflineServer::~CommunityOfflineServer()" );
|
||||||
}
|
}
|
||||||
@ -355,7 +358,7 @@ class CommunityOfflineServer : MissionServer
|
|||||||
override void OnInit()
|
override void OnInit()
|
||||||
{
|
{
|
||||||
super.OnInit();
|
super.OnInit();
|
||||||
SetupWeather();
|
//SetupWeather();
|
||||||
|
|
||||||
//Admin list Insert from text
|
//Admin list Insert from text
|
||||||
m_AdminList = new map<string, string>; //UID, name
|
m_AdminList = new map<string, string>; //UID, name
|
||||||
@ -550,18 +553,18 @@ class CommunityOfflineServer : MissionServer
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void InitHive()
|
// void InitHive()
|
||||||
{
|
// {
|
||||||
Hive oHive = GetHive();
|
// Hive oHive = GetHive();
|
||||||
|
|
||||||
if( !oHive )
|
// if( !oHive )
|
||||||
{
|
// {
|
||||||
oHive = CreateHive();
|
// oHive = CreateHive();
|
||||||
}
|
// }
|
||||||
|
|
||||||
if( oHive )
|
// if( oHive )
|
||||||
{
|
// {
|
||||||
oHive.InitOffline();
|
// oHive.InitOffline();
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
|
@ -258,9 +258,9 @@ static void SetFreezePlayer( ref PlayerBase player, bool freeze )
|
|||||||
player.GetInputController().OverrideAimChangeY( freeze, 0 );
|
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()
|
static ref PlayerBase GetPlayer()
|
||||||
|
126
README.md
126
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
|
## Set VerifySignatures to 0 or Sign it everytime you rebuild
|
||||||
|
|
||||||
## 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
|
|
||||||
|
|
||||||
|
118
Rebuild and Restart.bat
Normal file
118
Rebuild and Restart.bat
Normal file
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user