xu4-engine / u4

xu4 "Ultima IV Recreated"
http://xu4.sourceforge.net
GNU General Public License v2.0
53 stars 13 forks source link

Cannot get Xu4 1.1 to run "Cannot find module" #11

Closed Astaldo711 closed 2 years ago

Astaldo711 commented 2 years ago

I unpacked the files to a folder named XU4. In this folder I have another folder named Ultima4. In this folder are all the game files I installed from gog. When I try to run xu4.exe, I get a message "Cannot find module Ultima IV".

WickedSmoke commented 2 years ago

This indicates that the game module declared in xu4.cfg cannot be found. For v1.1 there should be a line like this:

game=Ultima-IV

Earlier versions used a different name. You can remove the xu4.cfg, erase that line, or set it as above.

Astaldo711 commented 2 years ago

Thanks for the quick response. I don't seem to have a xu4.cfg file. I searched in appdata/local and also used explorer to search my PC.

WickedSmoke commented 2 years ago

The file would be in %AppData%. If xu4.cfg does not exist then the Ultima-IV.mod will be used. Since you report that the module name has a space and not a hypen I can only assume that there is an old config file being loaded.

WickedSmoke commented 2 years ago

The next version will have a --verbose message showing what settings file is being loaded.

Astaldo711 commented 2 years ago

Got it working, thank you! Found the file in appdata/roaming