EvEmu  0.8.4
11 September 2021
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
PlayerCommands.cpp
Go to the documentation of this file.
1 
2  /* Custom config file options
3  * current settings displayed on console at start-up
4  * -allan 7June2015
5  */
6  sLog.Blue(" ServerConfig", "World Switches");
7  if (sConfig.world.saveOnMove) {
8  sLog.Green(" Save on Move","Enabled.");
9  } else {
10  sLog.Warning(" Save on Move","Disabled.");
11  }
12  if (sConfig.world.saveOnUpdate) {
13  sLog.Green(" Save on Update","Enabled.");
14  } else {
15  sLog.Warning(" Save on Update","Disabled.");
16  }
17  if (sConfig.world.StationDockDelay) {
18  sLog.Green(" Docking Delay","Enabled.");
19  } else {
20  sLog.Warning(" Docking Delay","Disabled.");
21  }
22  if (sConfig.world.gridUnload) {
23  sLog.Green(" Grid Unloading","Enabled. Grids will unload after %u seconds of inactivity.", sConfig.world.gridUnloadTime);
24  } else {
25  sLog.Warning(" Grid Unloading","Disabled.");
26  }
27  std::printf("\n"); // spacer
28 
29  sLog.Blue(" ServerConfig", "Rate Modifiers");
30  if (sConfig.rates.secRate != 1.0) {
31  sLog.Yellow(" SecStatus","Modified at %.0f%%.", (sConfig.rates.secRate *100) );
32  } else {
33  sLog.Green(" SecStatus","Normal.");
34  }
35  if (sConfig.rates.npcBountyMultiply != 1.0) {
36  sLog.Yellow(" Bountys","Modified at %.0f%%.", (sConfig.rates.npcBountyMultiply *100) );
37  } else {
38  sLog.Green(" Bountys","Normal.");
39  }
40  if (sConfig.rates.DropItem != 1) {
41  sLog.Yellow(" Item Drops","Modified at %ux.", sConfig.rates.DropItem );
42  } else {
43  sLog.Green(" Item Drops","Normal.");
44  }
45  if (sConfig.rates.DropSalvage != 1) {
46  sLog.Yellow(" Salvage Drops","Modified at %ux.", sConfig.rates.DropSalvage );
47  } else {
48  sLog.Green(" Salvage Drops","Normal.");
49  }
50  if (sConfig.rates.DropMoney != 1.0) {
51  sLog.Yellow(" Isk Rewards","Modified at %.0f%%.", (sConfig.rates.DropMoney *100) );
52  } else {
53  sLog.Green(" Isk Rewards","Normal.");
54  }
55  if (sConfig.rates.damageRate != 1.0) {
56  sLog.Yellow(" All Damages","Modified at %.0f%%.", (sConfig.rates.damageRate *100) );
57  } else {
58  sLog.Green(" All Damages","Normal.");
59  }
60  if (sConfig.rates.turretDamage != 1.0) {
61  sLog.Yellow(" Turret Dmg","Modified at %.0f%%.", (sConfig.rates.turretDamage *100) );
62  } else {
63  sLog.Green(" Turret Dmg","Normal.");
64  }
65  if (sConfig.rates.turretRoF != 1.0) {
66  sLog.Yellow(" Turret ROF","Modified at %.0f%%.", (sConfig.rates.turretRoF *100) );
67  } else {
68  sLog.Green(" Turret ROF","Normal.");
69  }
70  if (sConfig.rates.missileDamage != 1.0) {
71  sLog.Yellow(" Missile Dmg","Modified at %.0f%%.", (sConfig.rates.missileDamage *100) );
72  } else {
73  sLog.Green(" Missile Dmg","Normal.");
74  }
75  if (sConfig.rates.missileRoF != 1.0) {
76  sLog.Yellow(" Missile ROF","Modified at %.0f%%.", (sConfig.rates.missileRoF *100) );
77  } else {
78  sLog.Green(" Missile ROF","Normal.");
79  }
80  if (sConfig.rates.missileTime != 1.0) {
81  sLog.Yellow(" Missile Time","Modified at %.0f%%.", (sConfig.rates.missileTime *100) );
82  } else {
83  sLog.Green(" Missile Time","Normal.");
84  }
85  std::printf("\n"); // spacer
86  sLog.Blue(" ServerConfig", "R.A.M. Rate Modifiers");
87  if (sConfig.ram.ResPE != 1.0) {
88  sLog.Yellow(" PE Research Time","Modified at %.0f%%.", (sConfig.ram.ResPE *100) );
89  } else {
90  sLog.Green(" PE Research Time","Normal.");
91  }
92  if (sConfig.ram.ResME != 1.0) {
93  sLog.Yellow(" ME Research Time","Modified at %.0f%%.", (sConfig.ram.ResME *100) );
94  } else {
95  sLog.Green(" ME Research Time","Normal.");
96  }
97  if (sConfig.ram.MatMod != 1.0) {
98  sLog.Yellow("Material Modifier","Modified at %.0f%%.", (sConfig.ram.MatMod *100) );
99  } else {
100  sLog.Green("Material Modifier","Normal.");
101  }
102  if (sConfig.ram.CopyTime != 1.0) {
103  sLog.Yellow(" Copy Time","Modified at %.0f%%.", (sConfig.ram.CopyTime *100) );
104  } else {
105  sLog.Green(" Copy Time","Normal.");
106  }
107  if (sConfig.ram.ProdTime != 1.0) {
108  sLog.Yellow(" Production Time","Modified at %.0f%%.", (sConfig.ram.ProdTime *100) );
109  } else {
110  sLog.Green(" Production Time","Normal.");
111  }
112  if (sConfig.ram.InventTime != 1.0) {
113  sLog.Yellow(" Invention Time","Modified at %.0f%%.", (sConfig.ram.InventTime *100) );
114  } else {
115  sLog.Green(" Invention Time","Normal.");
116  }
117  if (sConfig.ram.ReTime != 1.0) {
118  sLog.Yellow(" RE Time","Modified at %.0f%%.", (sConfig.ram.ReTime *100) );
119  } else {
120  sLog.Green(" RE Time","Normal.");
121  }
122  if (sConfig.ram.WasteMod != 1.0) {
123  sLog.Yellow(" Waste Modifier","Modified at %.0f%%.", (sConfig.ram.WasteMod *100) );
124  } else {
125  sLog.Green(" Waste Modifier","Normal.");
126  }
127  std::printf("\n"); // spacer
128 
129  sLog.Blue(" ServerConfig","Critical Hit Chances");
130  if (sConfig.rates.PlayerCritChance != 0.02f) {
131  sLog.Yellow(" Player","Modified at %.1f%%.", (sConfig.rates.PlayerCritChance *100) );
132  } else {
133  sLog.Green(" Player","Normal at 2%%.");
134  }
135  if (sConfig.rates.NpcCritChance != 0.015f) {
136  sLog.Yellow(" NPC","Modified at %.1f%%.", (sConfig.rates.NpcCritChance *100) );
137  } else {
138  sLog.Green(" NPC","Normal at 1.5%%.");
139  }
140  if (sConfig.rates.SentryCritChance != 0.02f) {
141  sLog.Yellow(" Sentry","Modified at %.1f%%.", (sConfig.rates.SentryCritChance *100) );
142  } else {
143  sLog.Green(" Sentry","Normal at 2%%.");
144  }
145  if (sConfig.rates.DroneCritChance != 0.03f) {
146  sLog.Yellow(" Drone","Modified at %.1f%%.", (sConfig.rates.DroneCritChance *100) );
147  } else {
148  sLog.Green(" Drone","Normal at 3%%.");
149  }
150  if (sConfig.rates.ConcordCritChance != 0.05f) {
151  sLog.Yellow(" Concord","Modified at %.1f%%.", (sConfig.rates.ConcordCritChance *100) );
152  } else {
153  sLog.Green(" Concord","Normal at 5%%.");
154  }
155  std::printf("\n"); // spacer
156 
157  sLog.Blue(" ServerConfig", "Feature Switches");
158  if (sConfig.ram.AutoEvent) {
159  sLog.Green(" RAM AutoEvent","Enabled.");
160  } else {
161  sLog.Warning(" RAM AutoEvent","Disabled.");
162  }
163  if (sConfig.server.ModuleAutoOff) {
164  sLog.Green(" Module Auto-Off","Enabled.");
165  } else {
166  sLog.Warning(" Module Auto-Off","Disabled.");
167  }
168  if (sConfig.server.AsteroidsOnDScan) {
169  sLog.Green(" DScan Asteroids","Enabled.");
170  } else {
171  sLog.Warning(" DScan Asteroids","Disabled.");
172  }
173  if (sConfig.server.CargoMassAdditive) {
174  sLog.Green(" Cargo Mass","Enabled.");
175  } else {
176  sLog.Warning(" Cargo Mass","Disabled.");
177  }
178  if (sConfig.cosmic.BumpEnabled) {
179  sLog.Green("Bumping Mechanics","Enabled.");
180  } else {
181  sLog.Warning("Bumping Mechanics","Disabled.");
182  }
183  if (sConfig.server.LoadOldMissions) {
184  sLog.Green("Keep Old Missions","Enabled.");
185  } else {
186  sLog.Warning("Keep Old Missions","Disabled.");
187  }
188  if (sConfig.testing.EnableDrones) {
189  sLog.Green(" Player Drones","Enabled.");
190  } else {
191  sLog.Warning(" Player Drones","Disabled.");
192  }
193  if (sConfig.testing.ShipHeat) {
194  sLog.Green(" Ship Heat","Enabled.");
195  } else {
196  sLog.Warning(" Ship Heat","Disabled.");
197  }
198  if (sConfig.cosmic.PIEnabled) {
199  sLog.Green(" PI System","Enabled.");
200  } else {
201  sLog.Warning(" PI System","Disabled.");
202  }
203  if (sConfig.cosmic.AnomalyEnabled) {
204  sLog.Green(" Anomaly System","Enabled.");
205  } else {
206  sLog.Warning(" Anomaly System","Disabled.");
207  }
208  if (sConfig.cosmic.DungeonEnabled) {
209  sLog.Green(" Dungeon System","Enabled.");
210  } else {
211  sLog.Warning(" Dungeon System","Disabled.");
212  }
213  if (sConfig.cosmic.BeltEnabled) {
214  sLog.Green(" Asteroid Belts","Enabled.");
215  } else {
216  sLog.Warning(" Asteroid Belts","Disabled.");
217  }
218  if (sConfig.npc.StaticSpawns) {
219  sLog.Green(" Static Spawns","Enabled. Checks every %u minutes", sConfig.npc.StaticTimer /60);
220  } else {
221  sLog.Warning(" Static Spawns","Disabled.");
222  }
223  if (sConfig.npc.RoamingSpawns) {
224  sLog.Green(" Roaming Spawns","Enabled. Checks every %u minutes", sConfig.npc.RoamingTimer /60);
225  } else {
226  sLog.Warning(" Roaming Spawns","Disabled.");
227  }
228  if (sConfig.npc.RoamingSpawns or sConfig.npc.StaticSpawns)
229  sLog.Green(" Spawns Enabled","Respawn timer checks every %u minutes", sConfig.npc.RespawnTimer /60);
230  if (sConfig.server.BountyPayoutDelayed) {
231  sLog.Green(" Delayed Bounties","Delayed Bounties are Enabled. Loop runs every %u minutes", sConfig.server.BountyPayoutTimer);
232  if (sConfig.server.FleetShareDelayed) {
233  sLog.Green(" Delayed Bounties","Delay for Fleet Bounty Sharing is Enabled.");
234  } else {
235  sLog.Warning(" Delayed Bounties","Delay for Fleet Bounty Sharing is Disabled. Fleet Sharing of Bounties is immediate.");
236  }
237  } else {
238  sLog.Warning(" Delayed Bounties","Delayed Bounties are Disabled. Bounty payouts are immediate.");
239  if (sConfig.server.FleetShareDelayed) {
240  sLog.Warning(" Delayed Bounties","Delayed Bounties are Disabled. Fleet Sharing of Bounties is immediate.");
241  } else {
242  sLog.Warning(" Delayed Bounties","Delay for Fleet Bounty Sharing is Disabled. Fleet Sharing of Bounties is immediate.");
243  }
244  }
245  std::printf("\n"); // spacer
246 
247  sLog.Blue(" ServerConfig", "Misc Switches");
248  if (sConfig.server.ModuleDamageChance) {
249  sLog.Green(" Module Damage","Enabled. Set to %i%% chance.", (int8)(sConfig.server.ModuleDamageChance *100));
250  } else {
251  sLog.Warning(" Module Damage","Disabled.");
252  }
253  if (sConfig.rates.WorldDecay) {
254  sLog.Green(" Decay Timer","Enabled. Checks every %u minutes", sConfig.rates.WorldDecay);
255  } else {
256  sLog.Warning(" Decay Timer","Disabled.");
257  }
258  if (sConfig.server.TraderJoe) {
259  sLog.Green(" Market Bot Mgr", "TraderJoe is Enabled.");
260  /* create the MarketBot singleton */
261  sLog.Green(" ServerInit", "Starting Market Bot Manager");
262  sMktBotMgr.Initialize();
263  } else {
264  sLog.Warning(" Market Bot Mgr", "TraderJoe is Disabled.");
265  }
266  std::printf("\n"); // spacer
267 
268  sLog.Blue(" ServerConfig", "Debug Switches");
269  if (sConfig.debug.IsTestServer) {
270  sLog.Error(" ServerConfig", "Test Server Enabled");
271  } else {
272  sLog.Error(" ServerConfig", "Live Server Enabled");
273  }
274  if (sConfig.debug.StackTrace) {
275  sLog.Warning(" StackTrace", "Enabled");
276  } else {
277  sLog.Warning(" StackTrace", "Disabled");
278  }
279  if (sConfig.debug.UseProfiling) {
280  sLog.Green(" Server Profiling","Enabled.");
281  sProfiler.Initialize();
282  } else {
283  sLog.Warning(" Server Profiling","Disabled.");
284  }
285  if (sConfig.debug.BeanCount) {
286  sLog.Green(" BeanCounting","Enabled.");
287  } else {
288  sLog.Warning(" BeanCounting","Disabled.");
289  }
290  if (sConfig.debug.SpawnTest) {
291  sLog.Warning(" Spawn Test","Enabled.");
292  } else {
293  sLog.Warning(" Spawn Test","Disabled.");
294  }
295  if (sConfig.debug.BubbleTrack) {
296  sLog.Warning(" Bubble Tracking","Enabled.");
297  } else {
298  sLog.Warning(" Bubble Tracking","Disabled.");
299  }
300  if (sConfig.debug.UseShipTracking) {
301  sLog.Warning(" Ship Tracking","Enabled.");
302  } else {
303  sLog.Warning(" Ship Tracking","Disabled.");
304  }
305  if (sConfig.debug.PositionHack) {
306  sLog.Warning(" Position Hack","Enabled.");
307  } else {
308  sLog.Warning(" Position Hack","Disabled.");
309  }
310  std::printf("\n"); // spacer
311 
#define sConfig
A macro for easier access to the singleton.
#define sProfiler
Definition: dbcore.cpp:39
signed __int8 int8
Definition: eve-compat.h:45
#define sLog
Evaluates to a NewLog instance.
Definition: LogNew.h:250
#define sMktBotMgr
Definition: MarketBotMgr.h:58