Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Fruithapje21 authored Jul 18, 2023
1 parent 14a2688 commit 3bdda91
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions romfs_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,42 @@ def float_to_hex(f):
content = content.replace(source_str.lower(), replace_str.lower())

if name == 'LoadingFade_00.bflyt':
# Scale Pa_Map_00
x = float_to_hex(scaling_factor)
source_str = '50615F4D61705F303000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000803F'
replace_str = '50615F4D61705F30300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000' + x
content = content.replace(source_str.lower(), replace_str.lower())

# Scale Pa_LargeDungeonMap_00
x = float_to_hex(scaling_factor)
source_str = '50615F4C6172676544756E67656F6E4D61705F303000000000000000000000000000000000000000000000000000000000000000000000000000803F'
replace_str = '50615F4C6172676544756E67656F6E4D61705F30300000000000000000000000000000000000000000000000000000000000000000000000' + x
content = content.replace(source_str.lower(), replace_str.lower())

# Scale Pa_Map_01
x = float_to_hex(scaling_factor)
source_str = '50615F4D61705F303100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000803F'
replace_str = '50615F4D61705F30310000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000' + x
content = content.replace(source_str.lower(), replace_str.lower())

# Scale Pa_LargeDungeonMap_01
x = float_to_hex(scaling_factor)
source_str = '50615F4C6172676544756E67656F6E4D61705F303100000000000000000000000000000000000000000000000000000000000000000000000000803F'
replace_str = '50615F4C6172676544756E67656F6E4D61705F30310000000000000000000000000000000000000000000000000000000000000000000000' + x
content = content.replace(source_str.lower(), replace_str.lower())

# Scale Pa_IconPlayer_00
x = float_to_hex(scaling_factor)
source_str = '50615F49636F6E506C617965725F3030000000000000000000000000000000000000000000000000000000000000000000000000000000000000803F'
replace_str = '50615F49636F6E506C617965725F303000000000000000000000000000000000000000000000000000000000000000000000000000000000' + x
content = content.replace(source_str.lower(), replace_str.lower())

# Scale P_SideBGDeco_00
x = float_to_hex(scaling_factor)
source_str = '505F5369646542474465636F5F303000000000000000000000000000000000000000704400001A43000000000000000000000000000000000000803F'
replace_str = '505F5369646542474465636F5F303000000000000000000000000000000000000000704400001A4300000000000000000000000000000000' + x
content = content.replace(source_str.lower(), replace_str.lower())

# Scale N_Base
x = float_to_hex(1/scaling_factor)
source_str = '4E5F426173655F303000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000803F'
Expand Down

0 comments on commit 3bdda91

Please sign in to comment.