Skip to content
This repository was archived by the owner on Jan 1, 2025. It is now read-only.

Commit 977d932

Browse files
authored
Redump sdk for 1.8.5 (#21)
* Remove ClassMap * Add GetDefaultObject * Rename GObjObjects to GObjects * Update all classes/structs * stuff * Add debug limits * Try to fix default * Revert * More debugging * Use bitfields again * Minor fixes
1 parent 9a2c98d commit 977d932

File tree

79 files changed

+450049
-425662
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+450049
-425662
lines changed

Python/init.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def Disable(self):
2929

3030
import randomizer
3131

32-
def LoadModList(caller: UObject, function: UFunction, parms: FStruct, result: FStruct) -> bool:
32+
def LoadModList(caller: UObject, function: UFunction, params: FStruct, result: FStruct) -> bool:
3333
caller.SetStoreHeader("Mods", 0, "By Abahbob", "Mod Manager")
3434
pc = GetEngine().GamePlayers[0]
3535
for idx, mod in enumerate(bl2sdk.Mods):
@@ -45,11 +45,11 @@ def LoadModList(caller: UObject, function: UFunction, parms: FStruct, result: FS
4545
RemoveEngineHook("WillowGame.MarketplaceGFxMovie.OnDownloadableContentListRead", "InjectMods")
4646
RegisterEngineHook("WillowGame.MarketplaceGFxMovie.OnDownloadableContentListRead", "InjectMods", LoadModList)
4747

48-
def process_hook(caller: UObject, function: UFunction, parms: FStruct, result: FStruct) -> bool:
48+
def process_hook(caller: UObject, function: UFunction, params: FStruct, result: FStruct) -> bool:
4949
pc = GetEngine().GamePlayers[0]
50-
ControllerId = parms.popInt()
51-
ukey = parms.popFName()
52-
event = parms.popByte()
50+
ControllerId = params.popInt()
51+
ukey = params.popFName()
52+
event = params.popByte()
5353
if ukey == 'Enter':
5454
if event == 0:
5555
selected_object = caller.GetSelectedObject()
@@ -78,7 +78,7 @@ def ReplaceDLCWithMods(caller: UObject, stack: FFrame, result: FStruct, function
7878
bNew = stack.popULong()
7979
if Caption == "$WillowMenu.WillowScrollingListDataProviderFrontEnd.DLC":
8080
Caption = "MODS"
81-
caller.AddListItem(EventID, Caption, bDisabled, bNew)
81+
caller.AddListItem(EventID, Caption, bDisabled, False)
8282
stack.SkipFunction()
8383
return False
8484

Python/rando_log.json

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[]

Python/test.py

+12-31
Original file line numberDiff line numberDiff line change
@@ -65,37 +65,18 @@
6565
# NewSkill = bl2sdk.ConstructObject(Class="SkillDefinition", Name="MyBrandNewSkill", Template=SomeSkill, Outer=SomeSkill.Outer)
6666
# Branch.Tiers[0].Skills.Set(1, NewSkill)
6767
# return True
68-
packages = [
69-
"GD_Assassin_Streaming_SF",
70-
"GD_Mercenary_Streaming_SF",
71-
"GD_Siren_Streaming_SF",
72-
"GD_Lilac_Psycho_Streaming_SF",
73-
"GD_Tulip_Mechro_Streaming_SF",
74-
"GD_Soldier_Streaming_SF",
75-
]
76-
77-
for package in packages:
78-
bl2sdk.LoadPackage(package)
79-
skills = ['PreshrunkCyberpunk',
80-
'Discord',
81-
'TypecastIconoclast',
82-
'RationalAnarchist',
83-
'WithClaws',
84-
'BloodSoakedShields',
85-
'DeathFromAbove','BloodOverdrive',
86-
'BloodyRevival',
87-
'BloodBath',
88-
'FuelTheBlood',
89-
'BoilingBlood',
90-
'NervousBlood',
91-
'Bloodsplosion']
92-
93-
skilldefs = bl2sdk.UObject.FindObjectsContaining("SkillDefinition ")
94-
95-
for skill in skills:
96-
for skilldef in skilldefs:
97-
if skilldef.GetFullName().endswith(skill):
98-
print(skilldef.GetFullName().split(' ')[-1])
68+
pc = bl2sdk.GetEngine().GamePlayers[0].Actor
69+
InfectionStateDef = bl2sdk.ConstructObject(Class="AnemoneInfectionDefinition", Outer=AIS.Outer, SetFlags=3)
70+
# Fog = bl2sdk.FindObject("HeightFog", "SanctuaryAir_Light.TheWorld:PersistentLevel.HeightFog_0")
71+
# print(InfectionStateDef)
72+
# print(Fog)
73+
pc.Pawn.AnemoneInfectionState = pc.Spawn(bl2sdk.UObject.FindClass("AnemoneInfectionState", False), pc, "Test", pc.Location, pc.Rotation, None, True)
74+
AIS = pc.Pawn.AnemoneInfectionState
75+
AIS.WPC = pc
76+
AIS.InfectionRate = 1.0
77+
AIS.ToggleInfectionEffects(True, pc)
78+
AIS.bIsLocalPlayer = True
79+
# pc.Pawn.SetAnemoneInfectionState(True,True,pc.Pawn,InfectionStateDef,Fog)
9980

10081
# x = bl2sdk.ConstructObject(bl2sdk.UObject.StaticClass())
10182
# print(x)

0 commit comments

Comments
 (0)