1 /* This file is part of the Spring engine (GPL v2 or later), see LICENSE.html */
2 
3 #ifndef _SERVER_MSG_STRINGS_H_
4 #define _SERVER_MSG_STRINGS_H_
5 
6 #include <string>
7 
8 // All strings used by CGameServer, in a printf / boost::format compatible way
9 
10 const std::string ServerStart = "Server started on port %d";
11 const std::string PlayingDemo = "Opening demofile %s";
12 const std::string ConnectAutohost = "Connecting to autohost on port %d";
13 const std::string ConnectAutohostFailed = "Failed connecting to autohost on IP %s, port %d";
14 const std::string DemoStart = "Beginning demo playback";
15 const std::string DemoEnd = "End of demo reached";
16 const std::string GameEnd = "Game has ended";
17 const std::string NoClientsExit = "No clients connected, shutting down server";
18 
19 const std::string NoSyncResponse = "Error: Player %s did not send sync checksum for frame %d";
20 const std::string SyncError = "Sync error for %s in frame %d (got %x, correct is %x)";
21 const std::string NoSyncCheck = "Warning: Sync checking disabled!";
22 
23 const std::string ConnectionReject = "Connection attempt rejected: %s (Message ID: %d Network version: %d Datalength: %d)";
24 const std::string WrongPlayer = "Got message %d from %d claiming to be from %d";
25 const std::string PlayerJoined = "%s %s finished loading and is now ingame";
26 const std::string PlayerLeft = "%s %s left the game: %s";
27 const std::string PlayerResigned = "Player %s resigned from the game: %s";
28 
29 const std::string NoStartposChange = "%s tried to change his startposition illegally";
30 const std::string NoHelperAI = "%s (%d) is using a helper AI illegally";
31 const std::string NoTeamChange = "%s (%d) tried to change his team illegally";
32 const std::string NoAICreated = "%s (%d) tried to control team %i with an AI illegally";
33 const std::string NoAIChangeState = "%s (%d) tried to change the state of an AI (%i) controlling team %i to state %i illegally";
34 
35 const std::string UnknownTeammsg = "Unknown action in NETMSG_TEAM (%d) from player %d";
36 const std::string UnknownNetmsg = "Unhandled net msg (%d) in server from %d";
37 
38 const std::string CommandNotAllowed = "Player %d is not allowed to execute command %s";
39 
40 const std::string UncontrolledPlayerName = "Uncontrolled";
41 const std::string UnnamedPlayerName = "UnnamedPlayer";
42 
43 #endif // _SERVER_MSG_STRINGS_H_
44 
45