Changeset 228 for binary-improvements
- Timestamp:
- Apr 10, 2015, 1:05:26 AM (10 years ago)
- Location:
- binary-improvements
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/7dtd-server-fixes/src/AllocsLogFunctions.cs
r224 r228 16 16 string steamId = CommonMappingFunctions.GetSteamID (ci); 17 17 18 string ip = ci. networkPlayer.ipAddress;18 string ip = ci.ip; 19 19 string name = string.Empty; 20 20 -
binary-improvements/7dtd-server-fixes/src/AssemblyInfo.cs
r226 r228 18 18 // and "{Major}.{Minor}.{Build}.*" will update just the revision. 19 19 20 [assembly: AssemblyVersion("0.11 1.*")]20 [assembly: AssemblyVersion("0.112.*")] 21 21 22 22 // The following attributes are used to specify the signing key for the assembly, -
binary-improvements/7dtd-server-fixes/src/PersistentData/Player.cs
r198 r228 118 118 entityId = CommonMappingFunctions.GetEntityID (ci); 119 119 name = CommonMappingFunctions.GetPlayerName (ci); 120 ip = ci. networkPlayer.ipAddress;120 ip = ci.ip; 121 121 } 122 122 -
binary-improvements/AllocsCommands/API.cs
r227 r228 9 9 10 10 public override string ModVersion () { 11 return "1. 1 for A11.1";11 return "1.2 for A11.2"; 12 12 } 13 13 } -
binary-improvements/AllocsCommands/Commands/TeleportPlayer.cs
r227 r228 8 8 public class TeleportPlayer : ConsoleCommand 9 9 { 10 private MethodInfo NetConnection_SendPackage = null;11 12 10 public TeleportPlayer (ConsoleSdtd cons) : base(cons) 13 11 { 14 Type typeClientInfo = Assembly.GetAssembly (typeof(ClientInfo)).GetType ("ClientInfo");15 Type typeNetConnection = typeClientInfo.GetField ("netConnection").FieldType.GetElementType ();16 MethodInfo[] mis = typeNetConnection.GetMethods ();17 foreach (MethodInfo mi in mis) {18 ParameterInfo[] pis = mi.GetParameters ();19 if (pis.Length == 1) {20 if (typeof (Package).Equals (pis[0].ParameterType)) {21 NetConnection_SendPackage = mi;22 }23 }24 }25 12 } 26 13 … … 81 68 82 69 p1.Entity.position = p2.Entity.GetPosition(); 70 p1.Entity.position.y += 1; 71 p1.Entity.position.z += 1; 83 72 } 84 73 85 74 NetPackage_EntityTeleport pkg = new NetPackage_EntityTeleport (p1.Entity); 86 75 87 if (NetConnection_SendPackage != null) { 88 NetConnection_SendPackage.Invoke (p1.ClientInfo.netConnection [0], new object[] {pkg}); 89 } else { 90 m_Console.SendResult ("SendPackage method not found"); 91 } 76 ConnectionManager.Instance.SendPackage (pkg, new PackageDestinationSingleEntityID (p1.ClientInfo.entityId)); 92 77 } 93 78 } catch (Exception e) { -
binary-improvements/MapRendering/API.cs
r226 r228 9 9 10 10 public override string ModVersion () { 11 return "1.0 for A11. 1";11 return "1.0 for A11.2"; 12 12 } 13 13 -
binary-improvements/WebInterface/API.cs
r226 r228 9 9 10 10 public override string ModVersion () { 11 return "1.0 for A11. 1";11 return "1.0 for A11.2"; 12 12 } 13 13 -
binary-improvements/WebInterface/Web/API/GetPlayersOnline.cs
r224 r228 17 17 string ip = string.Empty; 18 18 if (ci != null) { 19 ip = ci. networkPlayer.ipAddress;19 ip = ci.ip; 20 20 } 21 21 -
binary-improvements/server-fixes.userprefs
r224 r228 1 1 <Properties> 2 2 <MonoDevelop.Ide.Workspace ActiveConfiguration="Release_Version" /> 3 <MonoDevelop.Ide.Workbench ActiveDocument=" WebInterface/Web/Web.cs">3 <MonoDevelop.Ide.Workbench ActiveDocument="AllocsCommands/Commands/TeleportPlayer.cs"> 4 4 <Files> 5 5 <File FileName="7dtd-server-fixes/src/AssemblyInfo.cs" Line="20" Column="34" /> 6 6 <File FileName="assembly-patcher/Main.cs" Line="33" Column="105" /> 7 7 <File FileName="7dtd-server-fixes/src/CommandExtensions.cs" Line="24" Column="1" /> 8 <File FileName="7dtd-server-fixes/src/Mods.cs" Line=" 95" Column="3" />8 <File FileName="7dtd-server-fixes/src/Mods.cs" Line="32" Column="36" /> 9 9 <File FileName="7dtd-server-fixes/src/ModAPI.cs" Line="11" Column="40" /> 10 10 <File FileName="7dtd-server-fixes/src/StateManager.cs" Line="15" Column="14" /> 11 <File FileName="WebInterface/Web/Web.cs" Line="45" Column="6" /> 12 <File FileName="MapRendering/MapRendering/MapRendering.cs" Line="34" Column="20" /> 13 <File FileName="WebInterface/API.cs" Line="20" Column="1" /> 11 <File FileName="WebInterface/Web/Web.cs" Line="71" Column="28" /> 12 <File FileName="MapRendering/API.cs" Line="20" Column="1" /> 13 <File FileName="AllocsCommands/API.cs" Line="11" Column="15" /> 14 <File FileName="WebInterface/API.cs" Line="11" Column="25" /> 15 <File FileName="AllocsCommands/Commands/TeleportPlayer.cs" Line="70" Column="32" /> 16 <File FileName="AllocsCommands/Commands/SayToPlayer.cs" Line="31" Column="168" /> 14 17 </Files> 15 18 <Pads>
Note:
See TracChangeset
for help on using the changeset viewer.