Skip to content

Commit 903150c

Browse files
committed
Fixed missing methods in game patch 1.047.016
1 parent 13a4db5 commit 903150c

16 files changed

Lines changed: 35 additions & 32 deletions

File tree

SEModAPIInternal/API/Common/WorldManager.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,20 +107,20 @@ public bool IsWorldSaving
107107
}
108108
}
109109

110-
public MySessionSettings SessionSettings
110+
public MyObjectBuilder_SessionSettings SessionSettings
111111
{
112112
get
113113
{
114114
try
115115
{
116-
MySessionSettings sessionSettings = (MySessionSettings)BaseObject.GetEntityFieldValue(BackingObject, WorldManagerSessionSettingsField);
116+
MyObjectBuilder_SessionSettings sessionSettings = (MyObjectBuilder_SessionSettings)BaseObject.GetEntityFieldValue(BackingObject, WorldManagerSessionSettingsField);
117117

118118
return sessionSettings;
119119
}
120120
catch (Exception ex)
121121
{
122122
LogManager.ErrorLog.WriteLine(ex);
123-
return new MySessionSettings();
123+
return new MyObjectBuilder_SessionSettings();
124124
}
125125
}
126126
}

SEModAPIInternal/API/Entity/BaseEntity.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -838,7 +838,7 @@ public class BaseEntityNetworkManager
838838
public static string BaseEntityNetworkManagerNamespace = "5F381EA9388E0A32A8C817841E192BE8";
839839
public static string BaseEntityNetworkManagerClass = "48D79F8E3C8922F14D85F6D98237314C";
840840

841-
public static string BaseEntityBroadcastRemovalMethod = "70ED7CE650C61018FB30DBB0720365EF";
841+
public static string BaseEntityBroadcastRemovalMethod = "37605E21446C66A02114219BC7F64197";
842842

843843
//Packets
844844
//10 - ??

SEModAPIInternal/API/Entity/BaseObject.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
using Sandbox.Common.ObjectBuilders;
1313
using Sandbox.Common.ObjectBuilders.Definitions;
14+
using Sandbox.Common.ObjectBuilders.Serializer;
1415

1516
using SEModAPI.API;
1617

@@ -1390,7 +1391,7 @@ public T NewEntry<T>() where T : BaseObject
13901391
{
13911392
if (!IsMutable) return default(T);
13921393

1393-
MyObjectBuilder_Base newBase = MyObjectBuilder_Base.CreateNewObject(typeof(MyObjectBuilder_EntityBase));
1394+
MyObjectBuilder_Base newBase = MyObjectBuilderSerializer.CreateNewObject(typeof(MyObjectBuilder_EntityBase));
13941395
var newEntry = (T)Activator.CreateInstance(typeof(T), new object[] { newBase });
13951396
GetInternalData().Add(m_definitions.Count, newEntry);
13961397
m_changed = true;

SEModAPIInternal/API/Entity/InventoryEntity.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
using Sandbox.Common.ObjectBuilders;
77
using Sandbox.Common.ObjectBuilders.Definitions;
8+
using Sandbox.Common.ObjectBuilders.Serializer;
89

910
using SEModAPI.API;
1011
using SEModAPI.API.Definitions;
@@ -197,7 +198,7 @@ public InventoryItemEntity NewEntry()
197198
{
198199
MyObjectBuilder_InventoryItem defaults = new MyObjectBuilder_InventoryItem();
199200
SerializableDefinitionId itemTypeId = new SerializableDefinitionId(typeof(MyObjectBuilder_Ore), "Stone");
200-
defaults.PhysicalContent = (MyObjectBuilder_PhysicalObject)MyObjectBuilder_PhysicalObject.CreateNewObject(itemTypeId);
201+
defaults.PhysicalContent = (MyObjectBuilder_PhysicalObject)MyObjectBuilderSerializer.CreateNewObject(itemTypeId);
201202
defaults.Amount = 1;
202203

203204
InventoryItemEntity newItem = new InventoryItemEntity(defaults);

SEModAPIInternal/API/Entity/PowerProducer.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ public class PowerProducer
1818
public static string PowerProducerNamespace = "FB8C11741B7126BD9C97FE76747E087F";
1919
public static string PowerProducerClass = "7E69388ED0DB47818FB7AFF9F16C6EDA";
2020

21-
public static string PowerProducerGetMaxPowerOutputMethod = "0F6AA335BDAB95C90E78246F838B4231";
22-
public static string PowerProducerGetCurrentOutputMethod = "CCAF8565B95D64B8D013728451D46F86";
23-
public static string PowerProducerSetCurrentOutputMethod = "EB0371410DF191F3A5528D684F498095";
21+
public static string PowerProducerGetMaxPowerOutputMethod = "C28C116B5B44725B378E65F4CABF4FA0";
22+
public static string PowerProducerGetCurrentOutputMethod = "A5430E8F21C664BA9C247FF1C2D056CB";
23+
public static string PowerProducerSetCurrentOutputMethod = "9FBD89B1710744E648542AB8EFA18FB7";
2424

2525
#endregion
2626

SEModAPIInternal/API/Entity/Sector/SectorObject/CharacterEntity.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public class CharacterEntity : BaseEntity
2727
public static string CharacterClass = "3B71F31E6039CAE9D8706B5F32FE468D";
2828

2929
public static string CharacterGetHealthMethod = "7047AFF5D44FC8A44572E92DBAD13011";
30-
public static string CharacterDamageCharacterMethod = "DoDamage";
30+
public static string CharacterDamageCharacterMethod = "CF6EEF37B5AE4047E65CA4A0BB43F774";
3131
public static string CharacterSetHealthMethod = "92A0500FD8772AB1AC3A6F79FD2A1C72";
3232
public static string CharacterGetBatteryMethod = "CF72A89940254CB8F535F177150FC743";
3333
public static string CharacterGetInventoryMethod = "GetInventory";

SEModAPIInternal/API/Entity/Sector/SectorObject/CubeGrid/CubeBlock/BatteryBlockEntity.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ public class BatteryBlockNetworkManager
391391

392392
public static string BatteryBlockNetManagerCurrentStoredPowerPacketClass = "59DE66D2ECADE0929A1C776D7FA907E2";
393393

394-
public static string BatteryBlockNetManagerCurrentStoredPowerPacketGetIdMethod = "BB64D4385310CACE0C4AB2810898C4CE";
394+
public static string BatteryBlockNetManagerCurrentStoredPowerPacketGetIdMethod = "4E5FB782782D9D0A3F1B2D984232F9D0";
395395

396396
public static string BatteryBlockNetManagerCurrentStoredPowerPacketValueField = "ADC3AB91A03B31875821D57B8B718AF5";
397397

SEModAPIInternal/API/Entity/Sector/SectorObject/CubeGrid/CubeBlock/ButtonPanelEntity.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@ public class ButtonPanelEntity : ShipControllerEntity
3434
public ButtonPanelEntity(CubeGridEntity parent, MyObjectBuilder_RemoteControl definition)
3535
: base(parent, definition)
3636
{
37-
m_currentPlayerId = definition.CurrentPlayerId.GetValueOrDefault(0);
37+
m_currentPlayerId = definition.PreviousControlledEntityId.GetValueOrDefault(0);
3838
}
3939

4040
public ButtonPanelEntity(CubeGridEntity parent, MyObjectBuilder_RemoteControl definition, Object backingObject)
4141
: base(parent, definition, backingObject)
4242
{
43-
m_currentPlayerId = definition.CurrentPlayerId.GetValueOrDefault(0);
43+
m_currentPlayerId = definition.PreviousControlledEntityId.GetValueOrDefault(0);
4444
}
4545

4646
#endregion

SEModAPIInternal/API/Entity/Sector/SectorObject/CubeGrid/CubeBlock/FunctionalBlockEntity.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ public class FunctionalBlockEntity : TerminalBlockEntity
2626
public static string FunctionalBlockNamespace = "6DDCED906C852CFDABA0B56B84D0BD74";
2727
public static string FunctionalBlockClass = "7085736D64DCC58ED5DCA05FFEEA9664";
2828

29-
public static string FunctionalBlockGetEnabledMethod = "89B34B01DCC6C8596E80023078BB9541";
29+
public static string FunctionalBlockGetEnabledMethod = "get_Enabled";
3030
public static string FunctionalBlockSetEnabledMethod = "97EC0047E8B562F4590B905BD8571F51";
31-
public static string FunctionalBlockBroadcastEnabledMethod = "D979DB9AA474782929587EC7DE5E53AA";
31+
public static string FunctionalBlockBroadcastEnabledMethod = "RequestEnable";
3232
public static string FunctionalBlockGetPowerReceiverMethod = "get_PowerReceiver";
3333

3434
#endregion

SEModAPIInternal/API/Entity/Sector/SectorObject/CubeGrid/CubeBlock/LandingGearEntity.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public class LandingGearEntity : FunctionalBlockEntity
2727
public static string LandingGearNamespace = "6DDCED906C852CFDABA0B56B84D0BD74";
2828
public static string LandingGearClass = "5C73AAF1736F3AA9956574C6D9A2EEBE";
2929

30-
public static string LandingGearGetAutoLockMethod = "763E2D37AD44E6CA8DDAC82B83A0BC87";
30+
public static string LandingGearGetAutoLockMethod = "7C88AC26AE0A543E4AD1742FC9C1B70A";
3131
public static string LandingGearSetAutoLockMethod = "F542ACDC0D61EB46F733A5527CFFBE14";
3232
public static string LandingGearGetBrakeForceMethod = "A84CC3FC7B1C4CA0A631E34D2F024163";
3333
public static string LandingGearSetBrakeForceMethod = "013F45FD594F8A80D5952A7AC22A931E";

0 commit comments

Comments
 (0)