JHGuitarFreak / UQM-MegaMod

A fork of The Ur-Quan Masters + HD-mod that remasters the HD graphics with a veritable smorgasbord of extra features, options, QoL improvements, and much more...
https://uqm-mods.sourceforge.net
GNU General Public License v2.0
78 stars 22 forks source link

Wont run, complains of no HD content,despite hd content pack present and loaded. #85

Closed clort81 closed 2 years ago

clort81 commented 2 years ago
UQM-MegaMod-0.8.0.85$ ls -lR content/
content/:
total 4
drwxr-xr-x 2 plab plab 4096 Oct 23 07:24 packages
-rw-r--r-- 1 plab plab    0 Oct 23 07:52 version

content/packages:
total 630584
-rw-r--r-- 1 me me 130621289 Oct 22 19:42 mm-0.8.0.85-3dovoice.uqm
-rw-r--r-- 1 me me  32754511 Oct 22 19:14 mm-0.8.0.85-content.uqm
-rw-r--r-- 1 me me 296559012 Oct 22 19:50 mm-0.8.0.85-hd.uqm
-rw-r--r-- 1 me me 135563859 Oct 22 20:26 uqm-0.7.0-3dovideo.uqm
-rw-r--r-- 1 me me  50188876 Oct 22 19:38 uqm-remix-disc1.uqm

Result: "Hmm... You were trying to run the game in HD mode, but the game couldn't find the HD addon .uqm package."

Yet strace shows it found openat(AT_FDCWD, "/home/me/uqm-megamod/UQM-MegaMod-0.8.0.85/content/packages/mm-0.8.0.85-hd.uqm", O_RDONLY) = 13

clort81 commented 2 years ago

That was 0.8.0.85 btw.

with git master I tried running from build dir.

Tried a ./build.sh uqm install (into /usr/local/games/). And that can go into Setup. There I enabled HD.

gdb --args /usr/local/games/lib/uqm-megamod/UrQuanMasters "--contentdir=/usr/local/games/share/uqm-megamod/content"

Got the Hmm... again http://0x0.st/-dW_.webp

No indication in gdb or console what causes this.

strace  /usr/local/games/lib/uqm-megamod/UrQuanMasters "--contentdir=/usr/local/games/share/uqm-megamod/content" 2>&1 |grep mm-0.8
write(2, "uio_open mm-0.8.0.85-3dovoice.uq"..., 34uio_open mm-0.8.0.85-3dovoice.uqm
newfstatat(AT_FDCWD, "/usr/local/games/share/uqm-megamod/content/packages/mm-0.8.0.85-3dovoice.uqm", {st_mode=S_IFREG|0644, st_size=130621289, ...}, 0) = 0
openat(AT_FDCWD, "/usr/local/games/share/uqm-megamod/content/packages/mm-0.8.0.85-3dovoice.uqm", O_RDONLY) = 11
write(2, "uio_open mm-0.8.0.85-content.uqm"..., 33uio_open mm-0.8.0.85-content.uqm
newfstatat(AT_FDCWD, "/usr/local/games/share/uqm-megamod/content/packages/mm-0.8.0.85-content.uqm", {st_mode=S_IFREG|0644, st_size=32754511, ...}, 0) = 0
openat(AT_FDCWD, "/usr/local/games/share/uqm-megamod/content/packages/mm-0.8.0.85-content.uqm", O_RDONLY) = 12
write(2, "uio_open mm-0.8.0.85-hd.uqm\n", 28uio_open mm-0.8.0.85-hd.uqm
newfstatat(AT_FDCWD, "/usr/local/games/share/uqm-megamod/content/packages/mm-0.8.0.85-hd.uqm", {st_mode=S_IFREG|0644, st_size=296559012, ...}, 0) = 0
openat(AT_FDCWD, "/usr/local/games/share/uqm-megamod/content/packages/mm-0.8.0.85-hd.uqm", O_RDONLY) = 13

Looks to me like it's opening content!

Is it open when I New Game? Let's list open files.

UrQuanMas 585727                         me   11r      REG              179,2 130621289     193881 /usr/local/games/share/uqm-megamod/content/packages/mm-0.8.0.85-3dovoice.uqm
UrQuanMas 585727                         me   12r      REG              179,2  32754511     192302 /usr/local/games/share/uqm-megamod/content/packages/mm-0.8.0.85-content.uqm
UrQuanMas 585727                         me   13r      REG              179,2 296559012     193880 /usr/local/games/share/uqm-megamod/content/packages/mm-0.8.0.85-hd.uqm
UrQuanMas 585727 585731 Starcon2M        me   11r      REG              179,2 130621289     193881 /usr/local/games/share/uqm-megamod/content/packages/mm-0.8.0.85-3dovoice.uqm
UrQuanMas 585727 585731 Starcon2M        me   12r      REG              179,2  32754511     192302 /usr/local/games/share/uqm-megamod/content/packages/mm-0.8.0.85-content.uqm
UrQuanMas 585727 585731 Starcon2M        me   13r      REG              179,2 296559012     193880 /usr/local/games/share/uqm-megamod/content/packages/mm-0.8.0.85-hd.uqm
UrQuanMas 585727 585732 SDLHotplu        me   11r      REG              179,2 130621289     193881 /usr/local/games/share/uqm-megamod/content/packages/mm-0.8.0.85-3dovoice.uqm
UrQuanMas 585727 585732 SDLHotplu        me   12r      REG              179,2  32754511     192302 /usr/local/games/share/uqm-megamod/content/packages/mm-0.8.0.85-content.uqm
UrQuanMas 585727 585732 SDLHotplu        me   13r      REG              179,2 296559012     193880 /usr/local/games/share/uqm-megamod/content/packages/mm-0.8.0.85-hd.uqm
UrQuanMas 585727 585733 SDLAudioP        me   11r      REG              179,2 130621289     193881 /usr/local/games/share/uqm-megamod/content/packages/mm-0.8.0.85-3dovoice.uqm
UrQuanMas 585727 585733 SDLAudioP        me   12r      REG              179,2  32754511     192302 /usr/local/games/share/uqm-megamod/content/packages/mm-0.8.0.85-content.uqm
UrQuanMas 585727 585733 SDLAudioP        me   13r      REG              179,2 296559012     193880 /usr/local/games/share/uqm-megamod/content/packages/mm-0.8.0.85-hd.uqm
UrQuanMas 585727 585734 UrQuanMas        me   11r      REG              179,2 130621289     193881 /usr/local/games/share/uqm-megamod/content/packages/mm-0.8.0.85-3dovoice.uqm
UrQuanMas 585727 585734 UrQuanMas        me   12r      REG              179,2  32754511     192302 /usr/local/games/share/uqm-megamod/content/packages/mm-0.8.0.85-content.uqm
UrQuanMas 585727 585734 UrQuanMas        me   13r      REG              179,2 296559012     193880 /usr/local/games/share/uqm-megamod/content/packages/mm-0.8.0.85-hd.uqm
clort81 commented 2 years ago

Issue was caused by using 0.8.0.85 content zips with git master build.

The git master megamod should be played with the content from a git clone of this repo. https://github.com/Serosis/UQM-MegaMod-Content