Changeset 128 for binary-improvements/7dtd-server-fixes
- Timestamp:
- Aug 26, 2014, 1:08:25 AM (10 years ago)
- Location:
- binary-improvements/7dtd-server-fixes
- Files:
-
- 3 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/7dtd-server-fixes/7dtd-server-fixes.csproj
r115 r128 37 37 </Reference> 38 38 <Reference Include="Assembly-CSharp"> 39 <HintPath>..\7dtd-binaries\Assembly-CSharp.d eobf.dll</HintPath>39 <HintPath>..\7dtd-binaries\Assembly-CSharp.dll</HintPath> 40 40 </Reference> 41 41 </ItemGroup> … … 62 62 <Compile Include="src\TelnetCommands\RemoveLandProtection.cs" /> 63 63 <Compile Include="src\TelnetCommands\Version.cs" /> 64 <Compile Include="src\TelnetCommands\RenderMap.cs" /> 65 <Compile Include="src\TelnetCommands\CreativeMenu.cs" /> 66 <Compile Include="src\TelnetCommands\Give.cs" /> 67 <Compile Include="src\TelnetCommands\ListItems.cs" /> 68 <Compile Include="src\MapRendering.cs" /> 64 69 </ItemGroup> 65 70 <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> -
binary-improvements/7dtd-server-fixes/src/AdminToolsStuff.cs
r120 r128 78 78 return cc.Names (); 79 79 } else { 80 return new string[ 0];80 return new string[]{cmd}; 81 81 } 82 82 } -
binary-improvements/7dtd-server-fixes/src/AssemblyInfo.cs
r117 r128 18 18 // and "{Major}.{Minor}.{Build}.*" will update just the revision. 19 19 20 [assembly: AssemblyVersion("0.09 0.*")]20 [assembly: AssemblyVersion("0.091.*")] 21 21 22 22 // The following attributes are used to specify the signing key for the assembly, -
binary-improvements/7dtd-server-fixes/src/CommandExtensions.cs
r114 r128 7 7 { 8 8 try { 9 manager.m_GUIConsole.AddCommand (new CreativeMenu (manager.m_GUIConsole)); 9 10 manager.m_GUIConsole.AddCommand (new GetGamePrefs (manager.m_GUIConsole)); 10 11 manager.m_GUIConsole.AddCommand (new GetTime (manager.m_GUIConsole)); 12 manager.m_GUIConsole.AddCommand (new Give (manager.m_GUIConsole)); 11 13 manager.m_GUIConsole.AddCommand (new Kill (manager.m_GUIConsole)); 14 manager.m_GUIConsole.AddCommand (new ListItems (manager.m_GUIConsole)); 12 15 manager.m_GUIConsole.AddCommand (new ListLandProtection (manager.m_GUIConsole)); 13 16 manager.m_GUIConsole.AddCommand (new ListPlayersExtended (manager.m_GUIConsole)); 14 17 manager.m_GUIConsole.AddCommand (new RemoveLandProtection (manager.m_GUIConsole)); 18 manager.m_GUIConsole.AddCommand (new RenderMap (manager.m_GUIConsole)); 15 19 manager.m_GUIConsole.AddCommand (new Reply (manager.m_GUIConsole)); 16 20 manager.m_GUIConsole.AddCommand (new SayToPlayer (manager.m_GUIConsole)); … … 21 25 Log.Out ("Error registering custom commands: " + e); 22 26 } 23 /*24 try {25 List<ConsoleCommand> commands = manager.m_GUIConsole.commands;26 foreach (ConsoleCommand c in commands) {27 string name = string.Empty;28 foreach (string cname in c.Names()) {29 if (cname.Length > 0) {30 if (name.Length > 0)31 name += ", ";32 name += cname;33 }34 }35 name += " => " + c.Description();36 Log.Out (name);37 }38 } catch (Exception e) {39 Log.Out ("Error listing commands: " + e);40 }41 */42 27 } 43 28 } -
binary-improvements/7dtd-server-fixes/src/CommonMappingFunctions.cs
r111 r128 41 41 { 42 42 return SingletonMonoBehaviour<Authenticator>.Instance.GetPlayerId (GetPlayerName (_ci)); 43 } 44 45 public static string GetSteamID (string _playerName) 46 { 47 return SingletonMonoBehaviour<Authenticator>.Instance.GetPlayerId (_playerName); 43 48 } 44 49 -
binary-improvements/7dtd-server-fixes/src/PlayerDataStuff.cs
r103 r128 59 59 Log.Out ("Error in GM_SavePlayerData: " + e); 60 60 } 61 /*62 Log.Out ("Inventory of player:");63 for (int i = 0; i < _playerDataFile.inventory.Length; i++) {64 InventoryField item = _playerDataFile.inventory [i];65 printItem (item, i);66 }67 61 68 Log.Out ("Bag of player:"); 69 for (int i = 0; i < _playerDataFile.bag.Length; i++) { 70 InventoryField item = _playerDataFile.bag [i]; 71 printItem (item, i); 72 }*/ 62 // Log.Out ("Inventory of player:"); 63 // for (int i = 0; i < _playerDataFile.inventory.Length; i++) { 64 // InventoryField item = _playerDataFile.inventory [i]; 65 // printItem (item, i); 66 // } 67 // 68 // Log.Out ("Bag of player:"); 69 // for (int i = 0; i < _playerDataFile.bag.Length; i++) { 70 // InventoryField item = _playerDataFile.bag [i]; 71 // printItem (item, i); 72 // } 73 73 } 74 74 … … 93 93 name = iBlock.GetItemName (item.itemValue); 94 94 } 95 Log.Out (string.Format ("Slot {0:00}: {1:00} * {2}", slot, item.count, name)); 95 Log.Out (string.Format ("Slot {0:00}: {1:00} * {2}, blockinst={3}, meta={4}, type={5}, usetimes={6}", 96 slot, item.count, name, item.itemValue.blockinst, item.itemValue.meta, item.itemValue.type, item.itemValue.usetimes)); 96 97 } 97 98 }
Note:
See TracChangeset
for help on using the changeset viewer.