It seems that you're using an outdated browser. Some things may not work as they should (or don't work at all).
We suggest you upgrade newer and better browser like: Chrome, Firefox, Internet Explorer or Opera

×
avatar
Pangaea666: Thanks. Sent you a PM about the .reg file.
Thanks - from the reg file you sent me it looks like it just the entries below. I'll add them to the registry file for the wrapper & update it later :)

[HKEY_LOCAL_MACHINE\Software\Firaxis Games\Sid Meier's Civilization 4]
"INSTALLDIR"="C:\\Civilization IV Complete\\Civ4"

[HKEY_LOCAL_MACHINE\Software\Firaxis Games\Sid Meier's Civilization 4 - Beyond the Sword]
"INSTALLDIR"="C:\\Civilization IV Complete\\Civ4\\Beyond the Sword"

[HKEY_LOCAL_MACHINE\Software\Firaxis Games\Sid Meier's Civilization 4 - Warlords]
"INSTALLDIR"="C:\\Civilization IV Complete\\Civ4\\Warlords"

avatar
Pangaea666: Couldn't get the shortcut working with this extra entry, and I tried to insert it in various places. Got it running from terminal, however, but the minimising thing still occurs. Found another command and tried that too, but that didn't work either. Weird. There is a message (in terminal) about "Not forcing virtual desktop", but I don't know if that is relevant here.
There is a slight difference between them (the shortcut needs the "env" part at the beginning), but if it still didn't work when started from the terminal then it won't make any difference.

One other thing you could try (possibly alongside setting the SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS environment variable) is to run the game in a virtual desktop. There are a number of ways to do this with my scripts - you can use a file named "desktop" in the support directory, or you can run the script with desktop=<res> (where <res> is either the resolution to use, "d" to use the detected desktop resolution, or "0" to disable forcing a virtual desktop), or you can run winecfg and set one there. See the release notes for more information about configuring a virtual desktop with my scripts.
avatar
adamhm: There is a slight difference between them (the shortcut needs the "env" part at the beginning), but if it still didn't work when started from the terminal then it won't make any difference.

One other thing you could try (possibly alongside setting the SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS environment variable) is to run the game in a virtual desktop. There are a number of ways to do this with my scripts - you can use a file named "desktop" in the support directory, or you can run the script with desktop=<res> (where <res> is either the resolution to use, "d" to use the detected desktop resolution, or "0" to disable forcing a virtual desktop), or you can run winecfg and set one there. See the release notes for more information about configuring a virtual desktop with my scripts.
There are folders named after version numbers too, but they are empty so perhaps they don't matter.

Thanks for the tip about virtual desktop. Such an easy solution too, just creating an empty file named "desktop" :) That actually worked, and I'm able to change workspaces and go back without the game getting minimised. And I can also take screenshots without getting popped out of the game, or having it minimised. This will make things a lot easier, as I tend to take screenshots here and there about important events (especially in competitive games).

Thanks for the great script and the support you give. Both for the games and of course the Linux community :)
avatar
myconv: I thought I mentioned earlier that I solved those issues. Not saying there isn't other issues but mostly it's working.

HOF=hall of fame mod? What does it do?
Sorry. I missed this post earlier, maybe because it was on the bottom of page 1.

BUFFY is indeed the Hall of Fame mod. Nobody outside of its designers know exactly what it does, but there are various measures in place to prevent or detect cheating. Everybody who submit games for various competitive games must use this mod. For normal play you of course don't have to. Though I would suggest to use a mod called BUG (BtS Unaltered Gameplay). As its name suggestw, it doesn't change any gameplay or balancing issues, but provides much improved information. For instance a better scorecard with various diplo and warning for AIs who are plotting war. I'd feel naked without it :)

Here is a link to it if you haven't heard about it and want to try it out.
http://civ4bug.sourceforge.net/BUGMod.html
Post edited February 18, 2019 by Pangaea666
The wrapper has now been updated with the new registry entries :)
avatar
adamhm: The wrapper has now been updated with the new registry entries :)
Is there a way I can get this registry edit to work on Windows 10? Quite certain I have the same registry issue that Pangaea was first reporting. Maybe there is another thread about it somewhere here. I'll check now, haha
Post edited February 21, 2019 by ajf21
avatar
ajf21: Is there a way I can get this registry edit to work on Windows 10? Quite certain I have the same registry that Pangaea was first reporting. Maybe there is another thread about it somewhere here. I'll check now, haha
Copy+paste this into notepad or so:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Firaxis Games]

[HKEY_LOCAL_MACHINE\Software\Firaxis Games\Sid Meier's Civilization 4]
"INSTALLDIR"="C:\\Civilization IV Complete\\Civ4"

[HKEY_LOCAL_MACHINE\Software\Firaxis Games\Sid Meier's Civilization 4 - Beyond the Sword]
"INSTALLDIR"="C:\\Civilization IV Complete\\Civ4\\Beyond the Sword"

[HKEY_LOCAL_MACHINE\Software\Firaxis Games\Sid Meier's Civilization 4 - Warlords]
"INSTALLDIR"="C:\\Civilization IV Complete\\Civ4\\Warlords"
Modify the paths to match wherever you've installed Civ4 to, save it as something like "civ4.reg", then start regedit and import it
So just create a new text file and copy that in? Should I back something up first? Or is there not much chance I can screw things up doing this? ...I do seem to remember that messing with the registry is a good way to mess things up pretty good, haha...

I backed up my entire current registry, to an external drive, so I think that should be good enough.

Here is the best I can come up with for exactly what I should save and merge in the reg editor. I wonder about the top line? That wasn't just a notice of something I should use, but actually belongs in the file, right? It doesn't necessarily need to match some version on my machine? Also, I only placed my install path on the bottom lines in quotes, and I left double backslashes. Is this right if this is the path to my BTS in the screenshot? Is it all correct? Thanks a lot for your help!

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Firaxis Games]

[HKEY_LOCAL_MACHINE\Software\Firaxis Games\Sid Meier's Civilization 4]
"INSTALLDIR"="C:\\Program Files (x86)\\GOG Galaxy\\Games\\Civilization IV Complete\\Civ4"

[HKEY_LOCAL_MACHINE\Software\Firaxis Games\Sid Meier's Civilization 4 - Beyond the Sword]
"INSTALLDIR"="C:\\Program Files (x86)\\GOG Galaxy\\Games\\Civilization IV Complete\\Civ4\\Beyond the Sword"

[HKEY_LOCAL_MACHINE\Software\Firaxis Games\Sid Meier's Civilization 4 - Warlords]
"INSTALLDIR"="C:\\Program Files (x86)\\GOG Galaxy\\Games\\Civilization IV Complete\\Civ4\\Warlords"
Attachments:
Post edited February 19, 2019 by ajf21
avatar
ajf21: So just create a new text file and copy that in? Should I back something up first? Or is there not much chance I can screw things up doing this? ...I do seem to remember that messing with the registry is a good way to mess things up pretty good, haha...
Yes, just copy+paste that into a new text file and save it with a .reg extension, then start regedit and import it.

avatar
ajf21: Here is the best I can come up with for exactly what I should save and merge in the reg editor. I wonder about the top line? That wasn't just a notice of something I should use, but actually belongs in the file, right? It doesn't necessarily need to match some version on my machine? Also, I only placed my install path on the bottom lines in quotes, and I left double backslashes. Is this right if this is the path to my BTS in the screenshot? Is it all correct? Thanks a lot for your help!
The top line should be included & you shouldn't need to change it.

avatar
ajf21: Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Firaxis Games]

[HKEY_LOCAL_MACHINE\Software\Firaxis Games\Sid Meier's Civilization 4]
"INSTALLDIR"="C:\\Program Files (x86)\\GOG Galaxy\\Games\\Civilization IV Complete\\Civ4"

[HKEY_LOCAL_MACHINE\Software\Firaxis Games\Sid Meier's Civilization 4 - Beyond the Sword]
"INSTALLDIR"="C:\\Program Files (x86)\\GOG Galaxy\\Games\\Civilization IV Complete\\Civ4\\Beyond the Sword"

[HKEY_LOCAL_MACHINE\Software\Firaxis Games\Sid Meier's Civilization 4 - Warlords]
"INSTALLDIR"="C:\\Program Files (x86)\\GOG Galaxy\\Games\\Civilization IV Complete\\Civ4\\Warlords"
That looks right :)
avatar
adamhm: That looks right :)
Shoot. I imported that, and it said it imported the Keys and Values. But it doesn't appear to have worked. Restarted my computer, but same problems. Would I need to reinstall the mods?

Also, I wonder, do the paths that follow "HKEY_LOCAL_MACHINE" need to match something? Or maybe I should just use something like the full file that Pangaea uploaded earlier..?
avatar
ajf21: Shoot. I imported that, and it said it imported the Keys and Values. But it doesn't appear to have worked. Restarted my computer, but same problems. Would I need to reinstall the mods?

Also, I wonder, do the paths that follow "HKEY_LOCAL_MACHINE" need to match something? Or maybe I should just use something like the full file that Pangaea uploaded earlier..?
Sorry, there is something I forgot - Civ4 is 32-bit, so on 64-bit Windows the entries need to go under "Wow6432Node" - it should actually be as follows:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Wow6432Node\Firaxis Games]

[HKEY_LOCAL_MACHINE\Software\Wow6432Node\Firaxis Games\Sid Meier's Civilization 4]
"INSTALLDIR"="C:\\Program Files (x86)\\GOG Galaxy\\Games\\Civilization IV Complete\\Civ4"

[HKEY_LOCAL_MACHINE\Software\Wow6432Node\Firaxis Games\Sid Meier's Civilization 4 - Beyond the Sword]
"INSTALLDIR"="C:\\Program Files (x86)\\GOG Galaxy\\Games\\Civilization IV Complete\\Civ4\\Beyond the Sword"

[HKEY_LOCAL_MACHINE\Software\Wow6432Node\Firaxis Games\Sid Meier's Civilization 4 - Warlords]
"INSTALLDIR"="C:\\Program Files (x86)\\GOG Galaxy\\Games\\Civilization IV Complete\\Civ4\\Warlords"
avatar
adamhm: Sorry, there is something I forgot - Civ4 is 32-bit, so on 64-bit Windows the entries need to go under "Wow6432Node" - it should actually be as follows:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Wow6432Node\Firaxis Games]

[HKEY_LOCAL_MACHINE\Software\Wow6432Node\Firaxis Games\Sid Meier's Civilization 4]
"INSTALLDIR"="C:\\Program Files (x86)\\GOG Galaxy\\Games\\Civilization IV Complete\\Civ4"

[HKEY_LOCAL_MACHINE\Software\Wow6432Node\Firaxis Games\Sid Meier's Civilization 4 - Beyond the Sword]
"INSTALLDIR"="C:\\Program Files (x86)\\GOG Galaxy\\Games\\Civilization IV Complete\\Civ4\\Beyond the Sword"

[HKEY_LOCAL_MACHINE\Software\Wow6432Node\Firaxis Games\Sid Meier's Civilization 4 - Warlords]
"INSTALLDIR"="C:\\Program Files (x86)\\GOG Galaxy\\Games\\Civilization IV Complete\\Civ4\\Warlords"
avatar
adamhm:
Ah, ok. Cool. I'll give that a try this evening. Thanks for all the help and sticking with my replies!

Edit: Wooot! It worked. Thanks indeed.
Post edited February 22, 2019 by ajf21
Figured I'd pipe in here with feedback about the game using this script. It works perfectly, especially desktop thing so I can easily swap workspaces. No problems of any kind (apart from the usual laggy performance after some hours of gameplay, possibly due to memory leaks in the game itself). I've played competitive games and submitted some of them, and trying to complete another right now. Thanks for the excellent script, Adam :)


Cheers for the registry stuff too. Good to have for later if I lose the file I have saved manually.
Why does the script try to download another WINe, when WINE 4.0.2 is currently installed on my MINT 19.2?
avatar
benutzername.gog: Why does the script try to download another WINe, when WINE 4.0.2 is currently installed on my MINT 19.2?
Because it doesn't use the system's version of Wine; my wrappers are much like what you'd get with official Wine-wrapped releases.
Post edited November 06, 2019 by adamhm
avatar
benutzername.gog: Why does the script try to download another WINe, when WINE 4.0.2 is currently installed on my MINT 19.2?
avatar
adamhm: Because it doesn't use the system's version of Wine; my wrappers are much like what you'd get with official Wine-wrapped releases.
Ah thanks. Couldn't see that from the readme.txt, because it says "the script will attempt to download automatically along with Winetricks if they cannot be found" which I took to meaning that it checks for an installed WINE in the system.

Oh well then I have to double install WINE I guess.


Thank you for the work you do to make obsolescent software run on Linux. :-)
Post edited November 06, 2019 by benutzername.gog