Centurian52 Posted November 17, 2021 Share Posted November 17, 2021 I am in the process of migrating from Windows 10 to Linux Mint. I've just migrated my laptop so that I could have an environment to sort out game compatibility issues while still being able to play my games without issues on my desktop. Obviously I can't migrate my desktop until I've confirmed I can get Combat Mission working in Linux. I downloaded the Windows installer for CMCW (1.01). I am running Linux Mint 20.2 with Cinnamon 5.0.7. My version of Wine reads as: wine-5.0 (Ubuntu 5.0-3ubuntu1), and I am using PlayOnLinux 4.3.4. I installed CMCW on a 64bit virtual drive on PlayOnLinux. I was able to complete installation and licensing without issues. When I attempted to run CMCW I got the error message "Could not initialize OpenGL graphics. Please update your OpenGL drivers.". Does anyone know how I would update OpenGL drivers on Wine or PlayOnLinux? Or are there configuration changes I need to make? Or is there a patch somewhere I can download? Has anyone been known to successfully run CM2 on Linux? And is there any possibility of official support for Linux in the future like there is currently for Mac? 0 Quote Link to comment Share on other sites More sharing options...
Redwolf Posted November 17, 2021 Share Posted November 17, 2021 First step is to find out whether you OpenGL in Wine is working at all, as in with hardware acceleration. Does other 3D stuff run? You need the equivalent of `glxinfo` as a Windows executable. 0 Quote Link to comment Share on other sites More sharing options...
Schrullenhaft Posted November 17, 2021 Share Posted November 17, 2021 There is some documentation for PlayOnLinux and Grahics Card Drivers that you may need to look over. Do you know what video chip your laptop has (Intel being the most common) ? I'm not sure who may have been successful in getting any of the CM2 series to work with Linux. It MIGHT have happened in the past, but I didn't keep track of who may have been successful under what version/distro of Linux and Wine. I personally doubt that Battlefront will officially support any of the current Linux distros and the compatibility programs (WINE) to allow the use of the Windows versions of the game to run under Linux. Supporting Windows and Mac platforms is hard enough (with dedicated versions for each platform). With Linux there are a lot more "moving parts" that make supporting the games more of a crap shoot. With the huge number of Linux distros and patches; changes to WINE and its support in each of those distros; the limited number of video drivers it just becomes a massive support headache. You might get the games running with a particular distro and version of Wine with certain hardware, but then some update or changed libraries can suddenly makes things non-functional. Admittedly similar things can happen with Windows with certain video driver updates, but it is usually limited to that (and occasional issues with the licensing system). I don't think Battlefront will make a dedicated Linux version of any of the CM series either, just a bit too much work for the current/potential size of the audience. 0 Quote Link to comment Share on other sites More sharing options...
Centurian52 Posted November 21, 2021 Author Share Posted November 21, 2021 Well I don't have it working yet, but I feel like I'm making progress. It turns out there is a patch for Wine or Proton that will make it work: So now all I need to do is...figure out how the heck to apply a patch to Wine. Which it turns out is way more work than it should be. Apparently I have to actually recompile the source code. I sincerely hope that someday there will be an easier way to do this. 0 Quote Link to comment Share on other sites More sharing options...
Redwolf Posted November 21, 2021 Share Posted November 21, 2021 If you point me to the patch I can give it a spin. 0 Quote Link to comment Share on other sites More sharing options...
Bufo Posted November 21, 2021 Share Posted November 21, 2021 (edited) 1 hour ago, Redwolf said: If you point me to the patch I can give it a spin. Guess he's talking about this one: https://bugs.winehq.org/show_bug.cgi?id=9378 But this is only for the demo. Getting the DRM to work is another issue that AFAIK remains unsolved. Edited November 21, 2021 by Bufo 0 Quote Link to comment Share on other sites More sharing options...
Centurian52 Posted November 21, 2021 Author Share Posted November 21, 2021 At least one person has apparently successfully used that patch to run CMBS on Steam using Proton, https://www.protondb.com/app/1502380. They refer to using the cAlphaShift patch, and then provide this link: https://www.winehq.org/pipermail/wine-bugs/2017-May/470327.html 0 Quote Link to comment Share on other sites More sharing options...
Kevin2k Posted November 21, 2021 Share Posted November 21, 2021 Yeah it is the same thing. The patch sets cAlphaShift to 24 for all OpenGL video modes (like dozens). Without a doubt that works like a charm for CM games. But on real hardware cAlphaShift should only be set to 24 for certain particular modes, and remain 0 for most others. 0 Quote Link to comment Share on other sites More sharing options...
Redwolf Posted November 21, 2021 Share Posted November 21, 2021 My compile environment for wine seems to have broken in the years I didn't use it. Shocking. 0 Quote Link to comment Share on other sites More sharing options...
Centurian52 Posted November 21, 2021 Author Share Posted November 21, 2021 5 minutes ago, Kevin2k said: Yeah it is the same thing. The patch sets cAlphaShift to 24 for all OpenGL video modes (like dozens). Without a doubt that works like a charm for CM games. But on real hardware cAlphaShift should only be set to 24 for certain particular modes, and remain 0 for most others. So you're saying this should solve my CM woes, but could break other games that I install using Wine or Proton? 0 Quote Link to comment Share on other sites More sharing options...
Redwolf Posted November 21, 2021 Share Posted November 21, 2021 1 minute ago, Centurian52 said: So you're saying this should solve my CM woes, but could break other games that I install using Wine or Proton? It is certainly incorrect for other games. Whether they care or not is a different matter. 0 Quote Link to comment Share on other sites More sharing options...
Centurian52 Posted November 21, 2021 Author Share Posted November 21, 2021 1 minute ago, Redwolf said: It is certainly incorrect for other games. Whether they care or not is a different matter. I think I can work with that. I can run the Battlefront versions of the CM games in PlayOnLinux, with most of the rest of the games I play running on Steam using Proton, which I believe have two separate Wines underneath. Or I can keep an unpatched backup of Wine that I can restore when I play a game that the patched version causes problems with. So that leaves the million dollar question. Can you or someone you know (or someone who reads this later down the line) actually compile the patch? I think I can figure it out myself eventually, but it will be so much easier if I can just mooch off of the work of someone who already knows what they're doing. 0 Quote Link to comment Share on other sites More sharing options...
Redwolf Posted November 21, 2021 Share Posted November 21, 2021 35 minutes ago, Centurian52 said: I think I can work with that. I can run the Battlefront versions of the CM games in PlayOnLinux, with most of the rest of the games I play running on Steam using Proton, which I believe have two separate Wines underneath. Or I can keep an unpatched backup of Wine that I can restore when I play a game that the patched version causes problems with. So that leaves the million dollar question. Can you or someone you know (or someone who reads this later down the line) actually compile the patch? I think I can figure it out myself eventually, but it will be so much easier if I can just mooch off of the work of someone who already knows what they're doing. I'll try to repair my wine compile env later today or tomorrow. It seems the person making CMBS work was on the real game, not the demo. So that would mean the DRM works. Does BS even have a demo? 0 Quote Link to comment Share on other sites More sharing options...
Redwolf Posted November 21, 2021 Share Posted November 21, 2021 No, doesn't work with the patch. Tried CMCW, got an unhandled exception with no further useful info. 0 Quote Link to comment Share on other sites More sharing options...
Artkin Posted November 21, 2021 Share Posted November 21, 2021 Sad, I have contemplated learning Linux now that windows is cucked. 0 Quote Link to comment Share on other sites More sharing options...
Centurian52 Posted November 21, 2021 Author Share Posted November 21, 2021 Well that's a shame. I've been able to sort things out for pretty much all of my other games, with about a quarter of my games on Steam running natively on Linux and most of the rest running without insurmountable issues with Proton (and most of my non-Steam games working fine in PlayOnLinux). CM is the one outlier for me preventing a full transition to Linux. I suppose I can still figure out how to compile the patch myself and see if I can't tweak something. But if it really doesn't work then the only thing I can think of is to pray to @BFCElvisthat perhaps the cAlphaShift issue is something that isn't too difficult to solve on their end with engine 5 (perhaps just overlooked because no one realized it needed solving? It didn't look like a very large patch after all, but perhaps there are too many calls to cAlphaShift in the CM code for it to be easily fixed without breaking something else?) without taking too much time away from modules or other greater priorities? 1 Quote Link to comment Share on other sites More sharing options...
Sgt.Squarehead Posted November 21, 2021 Share Posted November 21, 2021 2 hours ago, Artkin said: Sad, I have contemplated learning Linux now that windows is cucked. Me too. Fekkin Microsoft need nuking. 3 Quote Link to comment Share on other sites More sharing options...
Kevin2k Posted November 22, 2021 Share Posted November 22, 2021 3 hours ago, Redwolf said: No, doesn't work with the patch. Tried CMCW, got an unhandled exception with no further useful info. If you want to test the full games, start with the 'Matrix' editions. Like Cold War and Black Sea. I just tested those two, and it gets all the way to "Could not initialize OpenGL graphics..". That is the cAlphaShift=24 related message. I am confident that by making it pass this cAlphaShift check, things will run fine after that. Can you send me your compiled Wine binary? Can I just use it to replace mine and test it maybe? 0 Quote Link to comment Share on other sites More sharing options...
Redwolf Posted November 22, 2021 Share Posted November 22, 2021 Good point about trying the Matrix versions. My binary is a /opt/wine tree for Debian testing, will that work for you? 0 Quote Link to comment Share on other sites More sharing options...
Kevin2k Posted November 22, 2021 Share Posted November 22, 2021 I don't know, not familiar with the wine file structure. I use Solus Mate https://getsol.us/home/ 0 Quote Link to comment Share on other sites More sharing options...
Centurian52 Posted May 27, 2022 Author Share Posted May 27, 2022 BTW someone has actually managed to solve this. At the very least, it worked for me (running Mint) and Andriko (running Manjaro). https://www.gamingonlinux.com/forum/topic/5207/ 0 Quote Link to comment Share on other sites More sharing options...
Kevin2k Posted May 8, 2023 Share Posted May 8, 2023 I got a notification that there is a fix in, in the official Wine code-base. But it may take some time to get included in particular staging and main distributions. Will look for a portable wine distribution that has this fix. Wine Commit and Code details, commit 01c59b3f18dca1f4db42425eda2f95296da61a63, by Paul Gofman. https://winehq.org/mailman3/hyperkitty/list/wine-commits@winehq.org/message/JV224IVSA7BRDTU4BYFICNWHZ3VBC4PY/ Combat Mission on Wine - Bug-tracker messages: https://bugs.winehq.org/show_bug.cgi?id=9378 0 Quote Link to comment Share on other sites More sharing options...
Bufo Posted May 8, 2023 Share Posted May 8, 2023 Nice! 0 Quote Link to comment Share on other sites More sharing options...
Kevin2k Posted May 9, 2023 Share Posted May 9, 2023 (edited) Seems my Linux distribution already has the Wine 8.7.something update available. Installed it and tried some things. The fatal startup error "Could not initialize OpenGL graphics.." no longer occurs. The current CM games display and run fine for me, using Linux AMD GPU driver. Great! Edit: Since the recent Wine update I can now also run ArmA 2 properly, that game had mouse input issues before. Stalker CoC now runs at reasonable speed, it was very slow with older wine versions (or was it because I upgraded the Graphics card slightly and switched it to AMD GPU driver?). Good stuff. Edited May 9, 2023 by Kevin2k 2 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.