Skip to content

Commit d9b6688

Browse files
authored
Added fix for Han Solo (odf change in pistol) (#45)
1 parent 8f24561 commit d9b6688

File tree

4 files changed

+43
-0
lines changed

4 files changed

+43
-0
lines changed
1.44 MB
Binary file not shown.

munge.bat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ copy /Y MUNGED\patch_paths.script "0\patch_scripts\"
3131
copy /Y patch_shell.lvl "0\patch_scripts\"
3232
copy /Y patch_ingame.lvl "0\patch_scripts\patch_ingame.lvl"
3333
copy /Y MUNGED\user_script_*.script "0\in-game-options\"
34+
copy /Y deploy_lvl\*.lvl "0\in-game-options\"
3435
copy /Y .\addme.lvl "0\addme.script"
3536

3637
copy /y readme.md "0\readme.txt"

readme.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ Options > Video Settings > (X) Custom Options:
117117
| | Aspyr broke mod localization (this fix is imperfect, but usually works). | user_script_loc_fix.script |
118118
| | Aspyr broke in-game-music for most mods. | user_script_cc_music_fix.script |
119119
| | Command Posts 1 and 4 aren't counted as valid CPs for Rhen Var Citadel Conquest.| user_script_rhenvar2_cp_fix.script |
120+
| | Command Posts 1 and 4 aren't counted as valid CPs for Rhen Var Citadel Conquest.| user_script_rhenvar2_cp_fix.script |
120121
| | Adjust to Aspyr making AI heroes work in-game. | removed 'user_script_ai_hero_support.script' |
121122

122123

@@ -135,3 +136,8 @@ Options > Video Settings > (X) Custom Options:
135136
| | Fake Console - Added various Command Post related commands if playing Conquest mode.| |
136137
| | Fake Console - Added Kit Fisto and Assajj Ventress to the list of Hero commands.| |
137138
| | Fake Console - Minor spelling errors were fixed in a few commands.| |
139+
140+
# July 27 2024 Release notes (Release 2.2)
141+
|Added fixes for:| | |
142+
|----------------|------|-----|
143+
| | Aspyr broke Han Solo| user_script_han_fix.script + all_weap_hero_hanpistol.lvl |
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
-- user_script_han_fix.lua
2+
-- HanFix by bad_al_, Rayman1103
3+
-- Description: Fixes issue where Han Solo crashes the game.
4+
--
5+
6+
-- need to set
7+
-- MedalsTypeToLock = -1 in "all_weap_hero_hanpistol.odf"
8+
9+
local oldReadDataFile = ReadDataFile
10+
11+
local function LoadHanPistol()
12+
print("info: LoadHanPistol()")
13+
-- use the zero_fs to find the right file
14+
local result = zero_patch_fs.getFiles("all_weap_hero_hanpistol", {".lvl"})
15+
if( table.getn(result) > 0) then
16+
ReadDataFile(result[1], "all_weap_hero_hanpistol")
17+
print("info: run fix for 'all_weap_hero_hanpistol' ")
18+
else
19+
print("info: Oopsie! 'all_weap_hero_hanpistol.lvl' not found ")
20+
end
21+
end
22+
23+
ReadDataFile = function(...)
24+
if(string.upper(arg[1]) == "SIDE\\ALL1.LVL") then
25+
local index = 2
26+
local length = table.getn(arg)
27+
while index < length do
28+
if( string.lower(arg[index]) == "all_hero_hansolo_tat") then
29+
LoadHanPistol()
30+
break
31+
end
32+
index = index + 1
33+
end
34+
end
35+
return oldReadDataFile(unpack(arg))
36+
end

0 commit comments

Comments
 (0)