Changeset 198
- Timestamp:
- Sep 22, 2014, 11:54:56 AM (10 years ago)
- Location:
- binary-improvements
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/7dtd-server-fixes/src/AllocsLogFunctions.cs
r159 r198 42 42 if (p != null) { 43 43 p.SetOffline (); 44 } else { 45 Log.Out ("Disconnected player not found in client list..."); 44 46 } 45 47 PersistentData.PersistentContainer.Instance.Save (); -
binary-improvements/7dtd-server-fixes/src/CommandExtensions.cs
r163 r198 2 2 using System; 3 3 using System.Collections.Generic; 4 using System.Reflection; 4 5 5 6 namespace AllocsFixes … … 11 12 try { 12 13 ConsoleSdtd cons = manager.m_GUIConsole; 13 cons.AddCommand (new CreativeMenu (cons)); 14 cons.AddCommand (new EnableRendering (cons)); 15 cons.AddCommand (new GetGamePrefs (cons)); 16 cons.AddCommand (new GetTime (cons)); 17 cons.AddCommand (new Give (cons)); 18 cons.AddCommand (new Kill (cons)); 19 cons.AddCommand (new ListItems (cons)); 20 cons.AddCommand (new ListKnownPlayers (cons)); 21 cons.AddCommand (new ListLandProtection (cons)); 22 cons.AddCommand (new ListPlayersExtended (cons)); 23 cons.AddCommand (new RemoveLandProtection (cons)); 24 cons.AddCommand (new RenderMap (cons)); 25 cons.AddCommand (new Reply (cons)); 26 cons.AddCommand (new SayToPlayer (cons)); 27 cons.AddCommand (new SetTimeReal (cons)); 28 cons.AddCommand (new ShowInventory (cons)); 29 cons.AddCommand (new TeleportPlayer (cons)); 30 cons.AddCommand (new AllocsFixes.CustomCommands.Version (cons)); 14 string ns = "AllocsFixes.CustomCommands"; 15 string basetype = "ConsoleCommand"; 16 17 foreach (Type t in Assembly.GetExecutingAssembly ().GetTypes()) { 18 if (t.IsClass && t.Namespace.Equals (ns) && t.BaseType.Name.Equals (basetype)) { 19 try { 20 ConstructorInfo ctor = t.GetConstructor (new Type[] {typeof(ConsoleSdtd)}); 21 cons.AddCommand ((ConsoleCommand)ctor.Invoke (new object[] {cons})); 22 } catch (Exception e) { 23 Log.Out ("Could not register custom command \"" + t.Name + "\": " + e); 24 } 25 } 26 } 31 27 } catch (Exception e) { 32 28 Log.Out ("Error registering custom commands: " + e); -
binary-improvements/7dtd-server-fixes/src/PersistentData/Player.cs
r161 r198 98 98 if (clientInfo != null) { 99 99 Log.Out ("Player set to offline: " + steamId); 100 Vector3i lastPos = new Vector3i (Entity.GetPosition ());101 lastPositionX = lastPos.x;102 lastPositionY = lastPos.y;103 lastPositionZ = lastPos.z;104 totalPlayTime += (long)(Time.timeSinceLevelLoad - Entity.CreationTimeSinceLevelLoad);105 100 lastOnline = DateTime.Now; 101 try { 102 Vector3i lastPos = new Vector3i (Entity.GetPosition ()); 103 lastPositionX = lastPos.x; 104 lastPositionY = lastPos.y; 105 lastPositionZ = lastPos.z; 106 totalPlayTime += (long)(Time.timeSinceLevelLoad - Entity.CreationTimeSinceLevelLoad); 107 } catch (NullReferenceException) { 108 Log.Out ("Entity not available. Something seems to be wrong here..."); 109 } 106 110 clientInfo = null; 107 111 } -
binary-improvements/bin/Release/7dtd-server-fixes_version.txt
r197 r198 1 Version: 0.93.537 7.347871 Version: 0.93.5378.21429
Note:
See TracChangeset
for help on using the changeset viewer.