I see the game is on offer now, and I wonder about buying it, despite having an ancient version of it. I've currently got it set up with POL and Wine 3.6. Very old, I know, but it works and since I play the game competitively I didn't want to mess around right now (just picked it up again, after a year or so off). That means I need a mod called Buffy, which requires a shortcut. Is it easy to set up that after using your script?
Currently I have it in POL with a custom shortcut/argument, as seen in the attachment. I also need to run the mod (an exe) to set it up. Is this easy as well? In POL I use the "Run a .exe..." in Misc tab.
Link to the mod in question: http://hof.civfanatics.net/civ4/mod.php
I don't think there would be any problems... you can run the mod installer using the script's menu, under "Advanced options..." --> "Run...", or you can use the terminal:
./start.sh runwine="<executable to run>"
You should then be able to start the mod by running the script with a command like this:
./start-bts.sh play : /mod= 'Mods\BUFFY-3.19.005'
(everything after the : is passed through to the executable)
You can create a shortcut for it using the script's menu - see the attached screenshot for an example of how to set it up. Or you can use the terminal to do it:
./start-bts.sh -s scn="Civ4 Test" sfn="civ4-buffy" sca="play : /mod= 'Mods\BUFFY-3.19.005'" scl="</path/for/shortcut>"
Thank you so much for the explanation. However, it doesn't appear to be working quite right, and I get a warning about the BUFFY mod not being able to save data, and therefore games won't be legal. See the screenshot.
I had to change the path when installing the mod to get it in the right tree, as otherwise it was put in an empty tree. But it still doesn't work. I don't know why, but it may have something to do with how that mod is made. The intent is to check for cheating and various such things. It works when set up through POL, though, so it should be possible to get it working with your set up too. I'm just not sure how.
The game itself started, and the mod appears to be loading correctly. But as suspected I get a warning in-game as well, about the save not being legal for Hall of Fame play. Usually it explains what the issue is, but this time there is just the warning.
Another small thing, which may be due to how wine has developed, or my version of Mint (I'm still on 18.2). I like to have the game in one workspace and the browser in another. That way I can quickly swap between them. However, for some reason that doesn't work with this game. It used to work before, but that was when using an even older version of wine. Version 2.something. Now, when I switch back to the workspace where the game is (using Ctrl+right arrow) the game is minimised, and typically some windows in the game itself are set up too, like the log window. I hoped this would work properly on the newest version of wine, but sadly it does not. Probably a very long shot, but do you have any idea what is causing this?
Same with the mod issue. Admittedly not how most people play the game, but I almost only play these competitive games, so if the BUFFY mod is out of commission, I'll have to stick with the POL setup instead. I swap in and out of the game quite frequently, to change music, to check some information, to take a break, to take screenshots, so it's actually fairly annoying that the game is minimised and its log window removed every time.
Installing the game worked like a charm, though, and it started up first-time without any issues :)
Have thought about upgrading to the newest Mint, but I don't know if these things will get sorted, and after running 18.2 for such a long time, it's quite possible I've put in solutions that I have no idea how to re-do, so I'm worried about starting over so to speak. Kinda like this classic :P https://xkcd.com/349/