mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-04-23 00:17:00 +00:00
Merge branch 'master' of https://github.com/Starystars67/BeamNG-MP-Server
This commit is contained in:
@@ -93,7 +93,7 @@ void GenerateConfig(){
|
|||||||
FileStream << "# This is the BeamNG-MP Server Configuration File\n"
|
FileStream << "# This is the BeamNG-MP Server Configuration File\n"
|
||||||
"Debug = false # true or false to enable debug console output\n"
|
"Debug = false # true or false to enable debug console output\n"
|
||||||
"Port = 30814 # Port to run the server on\n"
|
"Port = 30814 # Port to run the server on\n"
|
||||||
"MaxClients = 10 # Maximum Amount of Clients\n"
|
"MaxPlayers = 10 # Maximum Amount of Clients\n"
|
||||||
"Map = \"levels/gridmap/level.json\"\n"
|
"Map = \"levels/gridmap/level.json\"\n"
|
||||||
"Name = \"BeamNG-MP FTW\"";
|
"Name = \"BeamNG-MP FTW\"";
|
||||||
FileStream.close();
|
FileStream.close();
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ bool Debug = false;
|
|||||||
void addToLog(basic_string<char> Data);
|
void addToLog(basic_string<char> Data);
|
||||||
void HeartbeatInit();
|
void HeartbeatInit();
|
||||||
int Port = 30814;
|
int Port = 30814;
|
||||||
int MaxClients = 10;
|
int MaxPlayers = 10;
|
||||||
string MapName = "levels/gridmap/level.json";
|
string MapName = "levels/gridmap/level.json";
|
||||||
string ServerName = "BeamNG-MP FTW";
|
string ServerName = "BeamNG-MP FTW";
|
||||||
|
|
||||||
@@ -32,14 +32,14 @@ int main() {
|
|||||||
DebugData(); //Prints Debug Data
|
DebugData(); //Prints Debug Data
|
||||||
}
|
}
|
||||||
setLoggerLevel("ALL");
|
setLoggerLevel("ALL");
|
||||||
ServerMain(Port, MaxClients);
|
ServerMain(Port, MaxPlayers);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void DebugData(){
|
void DebugData(){
|
||||||
cout << "Debug : true" << "\n";
|
cout << "Debug : true" << "\n";
|
||||||
cout << "Port : " << Port << "\n";
|
cout << "Port : " << Port << "\n";
|
||||||
cout << "MaxPlayers : " << MaxClients << "\n";
|
cout << "MaxPlayers : " << MaxPlayers << "\n";
|
||||||
cout << "MapName : " << MapName << "\n";
|
cout << "MapName : " << MapName << "\n";
|
||||||
cout << "ServerName : " << ServerName << "\n";
|
cout << "ServerName : " << ServerName << "\n";
|
||||||
}
|
}
|
||||||
@@ -49,7 +49,7 @@ void SetMainValues(bool D, int P,int MP,string Name,string serverName){
|
|||||||
Port = P;
|
Port = P;
|
||||||
MapName = Name;
|
MapName = Name;
|
||||||
ServerName = serverName;
|
ServerName = serverName;
|
||||||
MaxClients = MP;
|
MaxPlayers = MP;
|
||||||
}
|
}
|
||||||
|
|
||||||
void LogInit(){
|
void LogInit(){
|
||||||
|
|||||||
Reference in New Issue
Block a user