Grid Sage Forums

Cogmind => Support => Topic started by: campfly on May 20, 2015, 11:10:41 AM

Title: Any luck with Wine on OSX? [SOLUTIONS INSIDE]
Post by: campfly on May 20, 2015, 11:10:41 AM
Just wondering if anybody has tried this with Wine on a mac. It runs great in Windows 10 on my bootcamp mac, but this game is so much fun that I'd love the ability to keep it on hand throughout the day and not just when I have time to reboot into Windows.

If it will work with Wine, which engine would be recommended?

Thanks!
Title: Re: Any luck with Wine on OSX?
Post by: Karlito on May 20, 2015, 11:22:58 AM
I'd think it would work, reportedly it has no problems running under Wine on Linux. I've gotten plenty of games running on Mac with wine, but unfortunately I no longer own a mac to check out how Cogmind runs.
Title: Re: Any luck with Wine on OSX?
Post by: Phragmented on May 20, 2015, 11:56:52 AM
I've tried it with Crossover (a commercial Wine), and the first launch worked great for me. My subsequent runs have a serious problem with frequent full-screen white flashes. I haven't tracked the problem down yet.
Title: Re: Any luck with Wine on OSX?
Post by: Kyzrati on May 20, 2015, 11:23:50 PM
For the record, I have reports that "Cogmind runs fairly well under PlayOnMac once you install the VC2010 redistributable" (referring to the one mentioned in the install instructions).

Edit: Another to add to the list. Apparently "with winbottler Cogmind works better than some natively ported games in OSX." Supposedly I could use this to package the game for OSX users? If that's the case then it's definitely something I will look into and provide.
Title: Re: Any luck with Wine on OSX?
Post by: Slotos on May 21, 2015, 01:52:59 AM
(https://i.imgur.com/a38v6Pj.png)

Basically this is what you need to do with winebottler (http://winebottler.kronenberg.org/). Supposedly wineskins is as simple, though I haven't tried it myself.

Pressing install will ask for a path to save the bundle to. If you're packaging for yourself, just aim it to your Applications folder and enjoy cogmind. If you don't check "Silent install", you'll need to agree to MSVC++ 2010 EULA in its install dialog.

Feel free to remove winebottler afterwards if you don't need it for anything else.
Title: Re: Any luck with Wine on OSX?
Post by: Kyzrati on May 21, 2015, 02:16:58 AM
Thank you for the details. So aside from Mac owners being able to do this themselves, this is something I could also theoretically use to package Cogmind and distribute it as a one-step installer for OSX users?

I don't have a Mac, so I would have to set up a reliable OSX VM to take care of it. Sounds like a good possibility, though.
Title: Re: Any luck with Wine on OSX?
Post by: Slotos on May 21, 2015, 05:24:02 AM
From the technical standpoint this is all you have to do. I'm not sure about legal one though.

I've just tried bundling Cogmind without vcrun2010 and it launched without any problems, so that's one EULA off your shoulders. Still, you'd have to deal with wine and winebottler licences before bundling anything.
Title: Re: Any luck with Wine on OSX?
Post by: campfly on May 21, 2015, 07:14:21 AM
I ended up getting it running using Wineskin Winery, going with the most recent Wine engine from the list and copying the Cogmind folder and files via the "Install" phase instead of selecting an install executable. Have launched and played briefly a few times now with no problems. The window keeps the menu bar at the top which slightly spoils the dark terminal magic, but I haven't tried playing with the video settings yet.

If you could provide a Mac version, I think it would be warmly received and would especially make a difference for those who play primarily Steam games.
Title: Re: Any luck with Wine on OSX?
Post by: Phragmented on May 21, 2015, 09:19:55 AM
I just now tried the WineBottler approach. Very slick! Unfortunately, I see the following misbehaviors on my machine: 1) still getting the fairly frequent full-screen white flashes. 2) the F1 key (for bringing up the menu) doesn't work. I saw this latter behavior when I tried to run Cogmind.exe inside of a Windows XP bottle in Crossover. For some reason, I'm only getting the Fn keys to work in Windows 7 or Windows 8 Wine environments (on Crossover).

Maybe both of these issues are local to my machine - I'll try it on my home machine this weekend. I'm on latest Yosemite on a 2014 MacBook Pro.
Title: Re: Any luck with Wine on OSX?
Post by: Kyzrati on May 21, 2015, 09:43:01 AM
From the technical standpoint this is all you have to do. I'm not sure about legal one though.
I see. I'll have to look into it later.

@campfly: If what you refer to is a native Mac version, that would be quite difficult from an engine standpoint due to the large number of interconnected projects and libraries, many containing VS/windows-specific code.

It would be really nice to enable a hassle free solution for Mac users. At the same time, I wonder if it's easy to make literally one distribution that would work nicely across all OSX systems. If not, then it seems like providing clear guidance/support for Mac users to use any of multiple options that work best for them might be the better route. I'm not at all familiar with Mac development so perhaps you guys could suggest whether we could use a single method of distribution that "just works."
Title: Re: Any luck with Wine on OSX?
Post by: campfly on May 21, 2015, 01:24:15 PM
@dylanmac: I have not noticed any lack of functionality in the Wineskinned Cogmind that was there in playing the Boot Camp Windows 10 version. But I haven't played a session for more than an hour yet. My MBP is also much older than yours (2011) and maybe the hardware differences have something to do with it. If I get a white flash, I'll let you know.

@Kyzrati: Thanks for the great game and for making it so svelte that it runs fast even when run in virtual wrappers. If at some point you find a way (I don't know much about this) to package it so that mac users can just double click the application icon and go, I think nobody would care whether it was native or not unless the program gets much more bloated during development such that it would slow down on older macs when wrapped. I guess my thought is that if you are headed towards a Steam release in the next year of so, having it playable on all three OS would really get a substantially larger audience. Just a thought.
Title: Re: Any luck with Wine on OSX?
Post by: Phragmented on May 21, 2015, 10:14:25 PM
I tried Cogmind on Crossover on my other MacOS machine, which is a Hackintosh tower, and I'm seeing perfect behavior, with no white flashes or other issues, so the one problem I'm seeing is machine-specific. Oddly, I tried manually setting both the integrated and discrete GPUs, and got the white flashing behavior with both settings. Off to research more possibilities.
Title: Re: Any luck with Wine on OSX?
Post by: Slotos on May 21, 2015, 11:45:33 PM
Considering white flashes, I only get them in full screen mode during mac system OSDs fade out time. Can't attest to windowed mode, I haven't tested it specifically but I also haven't seen any flashes with it. F1 also works fine on my MBA 2013. Are you sure you're using modifier key, so it's F1, not brightness down? Funnily, that's how I first witnessed the white flash behaviour.
Title: Re: Any luck with Wine on OSX?
Post by: pcgben on May 25, 2015, 07:37:26 PM
Hi everyone,
 
Excuse my ignorance, but I am new to Wine and Winebottler in OSX.  How did you get the following to appear in Winetricks?  I followed the Winetricks link from the website, but was not able to find anything when I searched for vcrun2010.
Title: Re: Any luck with Wine on OSX?
Post by: c909 on May 25, 2015, 08:39:46 PM
I had good luck using Wineskin (http://wineskin.urgesoftware.com/tiki-index.php), here's some instructions for anyone who's having trouble getting it working.

1.) Open wineskin

2.) Hit plus to add an engine

3.) Choose whatever's the latest version of Ws9wine, right now its 1.7.40. Hit Download and install.

4.) Click on create new wrapper and name it Cogmind. This might take a few minutes. You may get some prompts from wine to install missing components. Just OK through these to install them.

5.) When it's done, click view wrapper in finder

6.) On the newly created Cogmind app, right click and go to Show Package Contents

7.) Drag your COGMIND folder into the drive_c folder here

8.) Open the Wineskin app in the same package folder

9.) Hit advanced, on windows exe, click browse and find the COGMIND folder and choose COGMIND.EXE

10.)  Go to options and check option key works as alt

11.) Close the Wineskin app

The wrapped game is now ready.
Title: Re: Any luck with Wine on OSX?
Post by: pcgben on May 27, 2015, 02:28:02 AM
Worked an absolute treat -runs as cleanly as on my desktop PC.  Thank you!
Title: Re: Any luck with Wine on OSX?
Post by: GlennEhrlich on June 09, 2015, 07:49:32 AM
I ended up getting it running using Wineskin Winery... The window keeps the menu bar at the top which slightly spoils the dark terminal magic, but I haven't tried playing with the video settings yet.

For Wineskin on Mac, you can make it true fullscreen without a Mac menu bar by opening up the wineskin app in the package contents (step 8 in c909's Wineskin directions), and do the following:

- Choose Set Screen Options

- In "Override Wine control of Screen Settings?" choose Override

- In "Override Setting" choose Fullscreen

- Leave the remaining options as is

You can then run cogmind fullscreen if it's options have fullscreen on.

Additional note for folks having problems with F1 and other function keys: make sure that in the Mac System Preferences you have in the Keyboard section "Use F1, F2, etc keys as standard function keys" selected.
Title: Re: Any luck with Wine on OSX?
Post by: ironpotato on June 10, 2015, 03:52:36 PM
From the technical standpoint this is all you have to do. I'm not sure about legal one though.
I see. I'll have to look into it later.

@campfly: If what you refer to is a native Mac version, that would be quite difficult from an engine standpoint due to the large number of interconnected projects and libraries, many containing VS/windows-specific code.

It would be really nice to enable a hassle free solution for Mac users. At the same time, I wonder if it's easy to make literally one distribution that would work nicely across all OSX systems. If not, then it seems like providing clear guidance/support for Mac users to use any of multiple options that work best for them might be the better route. I'm not at all familiar with Mac development so perhaps you guys could suggest whether we could use a single method of distribution that "just works."

Honestly it runs fine in wine for linux out of the box, so I wouldn't be too worried about that. Second, you used SDL right? So ports should be fairly easy. And third, Apple has rescinded their needing a license to develop on your own hardware! (That's mostly for iPhone devs, but I'm still really excited about it and had to share)
Title: Re: Any luck with Wine on OSX?
Post by: Kyzrati on June 10, 2015, 08:41:16 PM
you used SDL right? So ports should be fairly easy
SDL yeah, but there's a lot of VS/Windows-specific code and a mess of other libraries to deal with--that and the engine doesn't come anywhere close to compiling in gcc... I do rest easier knowing that Wine compatibility is excellent, though I'd like to find an even better solution than manual installation.
Title: Re: Any luck with Wine on OSX?
Post by: Reverie on June 15, 2015, 05:00:44 AM
I've gotten the game to run fairly well over wine on OSX! It's not perfect, specifically getting the AZERTY keyboard to play nicely with wine and your game, but it's close. Altogether the keyboard behaves like a fusion between QWERTY and AZERTY at its best.

-First, to note, I am using Wineskin Winery. Under QWERTY, the game runs perfectly, but AZERTY is evil.

-When I've tried setting the Mac driver to override that of X11 (in Wineskin screen options), I lose the use of the Alt key, even when the option is selected to make the Option key behave as Alt. It works wonderfully otherwise.

-When the X11 driver is selected, I can use the Alt key as expected but the number-row behaves oddly. After some testing at an in-game terminal's manual command prompt, where the output of keying down the num-row should be '1234567890', instead it reads as '12345\7   '. The last three numbers '890' the game refused to print and it outputs spaces instead. After some later testing it's apparent that X11 refuses to play nicely at all and keybindings are all over the place.

-When run in Windows natively, the game works as intended.

Of course, being able to use the alt key is not worth losing my sanity over broken keybindings, so I am stuck using the mouse for things that would otherwise let me play the game strictly in keyboard mode. I'd also rather not switch to Windows unless I absolutely had to.

Kyzrati, is there anything I could do to help pinpoint the issue? I'm not really savvy at this and you don't have a Mac, so it might be needlessly difficult, but I'm willing to help.



Edit: The X11 driver option is a mess. The mysteriously vanished '6' key turned up next to backspace somehow, and the contents of that key, which should be '-' and '_' turned out to be on the other side of the keyboard where QWERTY tilde would be. I'm so lost.
Title: Re: Any luck with Wine on OSX?
Post by: Kyzrati on June 15, 2015, 07:41:29 AM
Welcome Mononoke! I mean Reverie ;)

Yeah, I don't have a Mac, and use QWERTY myself (though I do use a non-English OS). For now I'd have to defer this question to our Mac experts, though honestly regardless of OS in the end any non-QWERTY layout is probably going to end up causing trouble. Anyone else have advice on this?

This is on my list of things to investigate for the next build--whether or not I can effectively translate keyboard layouts internally. Cogmind doesn't normally support key rebinds, but I might be able to work around that for specific layouts. Since using the mouse is an alternative I didn't mark it as high enough priority for Alpha 1b, but I'll see what I can do by Alpha 2.

Some other AZERTY players reported their woes as well (here (http://www.gridsagegames.com/forums/index.php?topic=70.0)), but in your case it looks like something else Mac-related could be the problem, so maybe someone familiar with the system could offer some advice. I haven't used a Mac in like... 20 years :/
Title: Re: Any luck with Wine on OSX?
Post by: Reverie on June 15, 2015, 07:50:03 AM
Welcome Mononoke! I mean Reverie ;)

Yeah, I don't have a Mac, and use QWERTY myself (though I do use a non-English OS). For now I'd have to defer this question to our Mac experts, though honestly regardless of OS in the end any non-QWERTY layout is probably going to end up causing trouble. Anyone else have advice on this?

This is on my list of things to investigate for the next build--whether or not I can effectively translate keyboard layouts internally. Cogmind doesn't normally support key rebinds, but I might be able to work around that for specific layouts. Since using the mouse is an alternative I didn't mark it as high enough priority for Alpha 1b, but I'll see what I can do by Alpha 2.

Some other AZERTY players reported their woes as well (here (http://www.gridsagegames.com/forums/index.php?topic=70.0)), but in your case it looks like something else Mac-related could be the problem, so maybe someone familiar with the system could offer some advice. I haven't used a Mac in like... 20 years :/

Thanks for your response! I think I'll wait until you provide some international keyboard support before stressing over this too much. It's not too much trouble to drag things out of my inventory with a mouse until then ;)
Title: Re: Any luck with Wine on OSX?
Post by: Kyzrati on June 15, 2015, 08:13:00 AM
Hm, well, since I'd have to do it eventually and we're talking about this now, I did a little research into the SDL 1.2 library Cogmind is built on, and apparently there is no way around this issue (on my end, anyway) without switching the entire library to an alternative (and very different) version, which I'm not sure would completely solve the problem, either.

Apparently it has to do with some special OSX behavior that is "trying to be smart" and instead ends up screwing with the number line key codes that it hands to the game. This same thing has been reported with other games using the same library.

I would like to migrate to a more modern library at some point, but that would be a huge change and I'd like to first collect a list of any possible benefits (there are actually very few right now, making it more of a trouble-ridden headache than anything else...).

This is just preliminary research--I'll look into it again, but it seems like there might not be a good solution :'(
Title: Re: Any luck with Wine on OSX? [SOLUTIONS INSIDE]
Post by: Chad on August 05, 2015, 12:24:11 AM
First of all: COGMIND runs fine for with Wine on my Mac. I've just noticed a small issue and I don't know if it's just me.
The game stucks on quitting the game. It doesn't matter if I save & quit, suicide, or just quit. Savegame creates successfully, same goes for deleting a running game. So the problem is on the quitting part.
Same goes for uploading scores. I'm not sure if it works, it just says uploading score... forever, dont know if there's a success message when the upload is finished. Haven't eseen my name on the highscores yet ;(

Anyone an idea to solve the quitting problem?
Title: Re: Any luck with Wine on OSX? [SOLUTIONS INSIDE]
Post by: Kyzrati on August 05, 2015, 12:47:01 AM
None of the Mac users have mentioned this yet, but perhaps they encountered it and it was a simple setting change? I'm unfamiliar with Macs myself; Hopefully someone else might be able to chime in on this.

I can say that regarding the score uploading system, once successful the message will change from "uploading score..." to "score uploaded to www.gridsagegames.com", which means the game is apparently unable to reach the site from your computer for some reason. I would imagine it's being blocked on your end (the site has been going down for a few minutes each day but it would be quite a coincidence if that happened exactly when you finished). If that's still a problem for you come the Alpha 3 tournament, note that I'll also be accepting score sheets sent separately via email as well. I do know that some other Mac users have had no trouble uploading scores, but there also seem to be multiple varying solutions for running Cogmind on a Mac.
Title: Re: Any luck with Wine on OSX? [SOLUTIONS INSIDE]
Post by: Chad on August 06, 2015, 11:56:55 AM
Thx for your reply Kyzrati :)

I've done some further testing. I've booted to Win7 on my Mac and got both issues under Windows. I've packed the game with Wineskin on my Macbook and both, quitting and uploading, work flawlessly!

So maybe the problem is hardware specific and not Mac specific?
Title: Re: Any luck with Wine on OSX? [SOLUTIONS INSIDE]
Post by: Kyzrati on August 06, 2015, 07:57:26 PM
Huh, that's really weird. Glad you got it working, though! (Well, not exactly ideal since the behavior on that particular machine isn't right :/)

Where those two issues are concerned, based on the way you describe them they're not even related internally (quitting and score uploading, since the latter isn't done unless you've actually finished a run). Considering you booted to two separate OS's on the same machine--even Win7--and got the same result, a logical conclusion would be it's something in the hardware, but that makes little sense...

For now we'll file this under "WTF" and see if anyone else encounters the same issue.

I assure you it's not that I want to dissuade you from quitting the game ;)

Thanks for reporting it, Chad. Eventually for Mac users I'd like to hire someone to make a professional wrapper, which I imagine would be tested across a range of systems.
Title: Re: Any luck with Wine on OSX? [SOLUTIONS INSIDE]
Post by: Kyzrati on December 30, 2015, 07:58:44 PM
We now have a step-by-step video tutorial (https://youtu.be/9ypp8giWqS0) for installing Cogmind under OSX, courtesy of alaska (http://www.gridsagegames.com/forums/index.php?topic=378.0)!
Title: Re: Any luck with Wine on OSX?
Post by: alaska on January 03, 2016, 08:29:34 PM
(https://i.imgur.com/a38v6Pj.png)

Basically this is what you need to do with winebottler (http://winebottler.kronenberg.org/). Supposedly wineskins is as simple, though I haven't tried it myself.

Pressing install will ask for a path to save the bundle to. If you're packaging for yourself, just aim it to your Applications folder and enjoy cogmind. If you don't check "Silent install", you'll need to agree to MSVC++ 2010 EULA in its install dialog.

Feel free to remove winebottler afterwards if you don't need it for anything else.

With WineBottler 1.8-rc4 on OSX 10.11.2 El Capitan the program does not seem to want to run with these settings.  The crash.log contains the following:
Code: [Select]
/Applications/Cogmind.app/Contents/Resources/wineprefix/drive_c/winebottler$ cat crash.log
Cogmind - Alpha 5c

I=0000002 Initializing resources
W=0000015 Config::init() | Unable to open user/cogmind.cfg, creating new default config
I=0000016 Initializing Rogue Engine X
I=0000016 |   Starting SDL
I=0000052 |   Importing icon
I=0000053 |   Confirmed resource initialization
I=0000053 |   Loading colors
I=0000053 |   Initializing font type data
I=0000053 |   Mapping standard ASCII values
I=0000053 |   Loading fonts
F=0000054 |   |   REX::loadFonts() | Unable to open config file (data/fonts/_config.xt)

I'll see if WineBottler 1.6.1-Stable suffers from these issues.
Title: Re: Any luck with Wine on OSX? [SOLUTIONS INSIDE]
Post by: Kyzrati on January 03, 2016, 08:47:53 PM
That's the very first file the game tries to open when it starts, so it could be a permissions thing, although it's only trying to read this file, not write to it, in which case maybe it's doing something odd with the path? Apparently it's working for others. Still, more evidence that it will be nice to have an official release :)
Title: Re: Any luck with Wine on OSX? [SOLUTIONS INSIDE]
Post by: andrew on April 11, 2016, 11:31:41 PM
I've had really good luck with running cogmind in under OS X (El Capitan 10.11.4) with wine installed via homebrew - http://brew.sh

I still have a few glitches, for instance, if something interrupts you while you are full screen, the game gets unhappy. but you can usually sort that out by hitting escape or CMD-tab-ing a few times.

That being said. if I run it in a window, it runs great! (It will stay in windowed mode after quitting and re-opening. so you should only have to hassle with setting it once!)

Here's what I did to get here:

note: this is all done via the command line (Terminal.app)

- Install the Homebrew package manager - http://brew.sh
- Install Xquartz `brew install Caskroom/cask/xquartz`
- Install Wine `brew install wine`
- Install Winetricks `brew install winetricks`

- cd /path/to/COGMIND.exe // this is important, you *must* cd in to the directory first for whatever reason.
- wine COGMIND.exe



Title: Re: Any luck with Wine on OSX? [SOLUTIONS INSIDE]
Post by: andrew on June 14, 2016, 09:25:34 PM
Alpha 9 seems to work just fine in full screen mode  ;D
Title: Re: Any luck with Wine on OSX? [SOLUTIONS INSIDE]
Post by: Left Empty on August 01, 2016, 04:30:42 PM
Greetings,

First post here, but I wanted to share a bit of workarounds I have found for some issues that don't seem to have been discussed yet.

First, using Wineskin, I have found the game ran more smoothly using the WS9WineCX15.0.1 engine (this is just an older Wine engine, but modified by the folks at Codeweavers with interesting compatibility patches) and checking you used the Mac Drivers instead of X11 in the Screen options.

Second, to be able to use alt+ shortcuts, I had to check the "Option key works as Alt box" in the Options tab (http://imgur.com/a/j3RJw). Thus I am able to use the command key instead - for instance, I hit Command+F4 to save and quit, instead of having to go through the menus.

Hope it helps!

Thank you for the great game. Looking forward to not be terrible at it ;D
Title: Re: Any luck with Wine on OSX? [SOLUTIONS INSIDE]
Post by: Kyzrati on August 01, 2016, 07:13:05 PM
Welcome Left Empty, and thanks for the extra info!

That Alt solution is extra useful, since I know for keyboard-using players that key can be a problem on non-Windows systems without the right options/settings. Good to know :)
Title: Re: Any luck with Wine on OSX? [SOLUTIONS INSIDE]
Post by: skymaker on August 09, 2016, 04:40:27 PM
Hey all; I recently got Cogmind working in Wine on my system, but my audio doesn't seem to want to work.  I tested in winecfg and Wine itself seems to recognize pulseaudio correctly as my audio card; and I can hear its' test sounds in the settings area.  But Cogmind itself seems to give no audio that I can hear when I run it.  (From my limited testing so far, the rest of the game seems to work fine.)

I checked Cogmind's audio settings, and audio is enabled/unmuted and set to what seem to be reasonable volume settings.

I haven't modified Wine's default settings in any way from the point of installation.  If anyone can provide some further insight on how to fix this, it'd be much appreciated!
Title: Re: Any luck with Wine on OSX? [SOLUTIONS INSIDE]
Post by: Kyzrati on August 10, 2016, 07:34:36 PM
Hm, I was waiting for a day to see if anyone would reply, but no luck yet. I don't use Macs myself, though I can say this is definitely an issue on the side of whatever Wine solution you're using, so changing Cogmind settings won't have any effect.

Did you try using one of the other solutions in this thread? There are like 3-4 different ways people are playing on OSX :P. Maybe that would help rather than changing settings in your current setup? (I've just put out the word on Twitter to see if someone might be able to offer some more advice, too.)

(Later on I'll also be distributing Cogmind with a Wine wrapper that should "just work" so that everyone doesn't have to use their own solution.)
Title: Re: Any luck with Wine on OSX? [SOLUTIONS INSIDE]
Post by: Chad on August 11, 2016, 03:54:16 AM
Hey folks!

Haven't been here for ages and saw Kyzratis Twitter post and I wanted to share my latest experiences with Cogmind on OSX.

First, I own an iMac and a Macbook Air, both with the lastest OSX Version (El Capitan). Using Wineskin, I was only able to play Cogmind on the Macbook. The game ran fine on the iMac, but the game kinda freezed when saving and quitting the game.  Saving worked, but the issue was very annoying, interstingly the problem also occured when bootin to Windows 7 on my iMac... also: uploading scores doesn't work... so I only played on the Macbook. A while ago I made a clean install of OSX on my Macbook and suddenly I got the  same issue on the Macbook when quitting the game. I tried everything to get the game back to a stable  This was the day where I stopped to play the game :( I think this was on Alpha6. I tried again I following releases, without success.

Let's jump to today. I saw skymakers post and installed Wineskin again on my iMac, created a wrapper (latest version for engine and Wineskin), and the game works fine on the iMac. For the Macbook I got the same issues than before.

So maybe there is a way to figure out where the problem is. Maybe Kyzrati can give a few insights what exactly happens if we click Save&Quit , Suicide/Restart and Quit, Delete Save. Or do you have some kind of debug mode, which cpuld help to narrow down the problem?

@skymaker
Could you give us some informations about your system? That would help a lot! Also: have you ever used another game/program with wine?
Title: Re: Any luck with Wine on OSX? [SOLUTIONS INSIDE]
Post by: Kyzrati on August 11, 2016, 04:06:21 AM
Hey Chad, thanks for stopping by, and for the info.

The only thing I can think of in terms of freezing when trying to quit (and the likely cause here, really), is that when you exit the game tries to save your data to disk, and my guess here is that the OS is blocking it from doing that. Insufficient permissions is the usual culprit. (Score uploading not working could be a similar issue--blocked due to limited permissions.)

Of course, one easy way to tell if this is the case is to see what files are/aren't being saved (or updated) to the game's /user/ directory. Like game.bin, tutorial.bin, cogmind.cfg, buffer.txt... Those and your /scores/ records. Was it even possible to save and resume a game later? (Though could've been blocked, too.)
Title: Re: Any luck with Wine on OSX? [SOLUTIONS INSIDE]
Post by: Chad on August 11, 2016, 04:23:24 AM
There is no problem with saving the game or saving the scores. I've also checked if there is aproblem with the OSX Firewall, but also disableing the Firewall has no effect.

In the case of Save & Quit, the game freezes just befor the exit sound.
In the case of Suicide/Restart the message (score uploaded to www.gridsagegames.com) doesn't come up and (uploading score...) stays. Restarting with SPACE works fine from here, ESC to quit freezes the game...
Title: Re: Any luck with Wine on OSX? [SOLUTIONS INSIDE]
Post by: Kyzrati on August 11, 2016, 06:01:01 AM
Hm okay, sounds like two separate issues, then.

The persistent "uploading score..." means it wasn't able to get in contact with the server for whatever reason. Could be OS-side (though you did check the firewall :/) or it could be server-side (it does sometimes take a little while to connect or be down for a minute, but really that's kinda rare overall, and won't be a frequently repeating issue).

Freezing after the exit sound is... interesting. Playing that sound is the third to last thing the game does before shutting itself down. The only processes after that are 1) delete all the game data from memory and 2) add the last line to the run.log file and close it. Perhaps there's something the OS doesn't like about the data deletion?

It closes fine in Windows itself, so if Wine is handling things properly (as in, acting like Windows), it should be okay. That this particular issue--actually both issues--don't seem to be impacting any of the other OSX users generally means it's likely interference from very specific hardware, third-party software, or OS settings, which is really hard to track down unless we get one or more other people saying they see the same thing! This is why it will presumably be good when there is one standard way that everyone plays on a Mac... I need to get on that, but can't do it with my current hardware.
Title: Re: Any luck with Wine on OSX? [SOLUTIONS INSIDE]
Post by: Chad on August 11, 2016, 10:59:37 AM
It is freezing BEFORE the exit sound!

Currently the game runs fine on the iMac and not on the Macbook, before it was vice versa, so I assume it's not a hardware nor a OS problem.
As I use the same Wineskin version and the same wrapper, there should also be no problem. So I assume it is something in the background which Wineskine uses to emulate the Windows environment. From the technical view, Wineskin creates an App (which is basicly an executable folder), which contains the wrapper and if installed the program (The wrapped cogmind app is 544.6 MB, btw!).

If run a test on both machines with a blank run.log file (thank for pointing me to that):
iMac (runs fine):
(...)
I=0032106 |   |   \---DONE
I=0032106 |   |   Saving game meta data
I=0032110 |   \---DONE
I=0032110 |   Cleaning up program before exit
I=0032330 |   GM::endGame() | Ending game
I=0032335 |   \---DONE
I=0032340 \---DONE


Macbook (freezing):
(...)
I=0036036 |   |   \---DONE
I=0036037 |   |   Saving game meta data
I=0036042 |   \---DONE


Does that narrow down where the problem is?

For the upload problem:
The log says:
(...)
I=0009428 |   Sending content...
I=0009428 |   Waiting for ACK...
(...)

But on the Macbook there seems to be no reponse (Not for uploading, nor for the Version check/News). I've created a Wine version of the Internet Explorer to check if there is a problem with internet connections and wine on the Macbook, but using IE had no problems.

Is there any chance that the problems are connected?
Title: Re: Any luck with Wine on OSX? [SOLUTIONS INSIDE]
Post by: Kyzrati on August 11, 2016, 07:40:27 PM
It is freezing BEFORE the exit sound!
Whoops, my bad! Way too busy lately :/. Thanks for pointing that out. Again :P

(The wrapped cogmind app is 544.6 MB, btw!).
Hm, the pre-wrapped one I distributed at Alpha 5 with the help of alaska was "only" 385 MB :P

Is there any chance that the problems are connected?
Okay, looks like they're connected!

According to the differences between the logs (thanks!), I can see that on game exit the hang occurs where it's trying to deinitialize the network resources, but before it can do that I have it set to wait indefinitely for any attempted connections to complete. I didn't imagine that a connection attempt could actually never complete/timeout/whatever (stupid of me! though I admit I'm terrible at anything having to do with network development :P). This calls for a fix that will time it out properly in the event of a connection block, and an appropriate message for the log.

I'm going to PM you my pre-wrapped OSX version of Cogmind and let's see if that works instead of what you have.

Thanks for helping out. I wonder where skymaker went?
Title: Re: Any luck with Wine on OSX? [SOLUTIONS INSIDE]
Post by: Chad on August 12, 2016, 03:00:09 AM
Thx for the wrapper (nice icon and .dmg folder background, btw  ;)), unfortunately it doesn't work. I'm pretty sure, that there is someting different on my two systems. But its hard to find something useful.

I think the problem lies somewhere at the window managment. The Wine logs produce an error, but I haven't figured out what causes this error. I've tested the WineskinX11 window managment system and XQuartz (which runs terrible on the Macbook and dosn't help either), the error is basically the same.

I'll try to find out what causes the error...
Title: Re: Any luck with Wine on OSX? [SOLUTIONS INSIDE]
Post by: Enno on August 12, 2016, 03:47:15 AM
Hey Chad, maybe it is a permission-thing.
i had to change the permissions for the user
here for the first time in the Cogmind-history.

When i was logged in as the root/admin i had no issues,
logged in as user with all the root-permissions i came in trouble.

then i saw that all files are own by the root and the group root.
simply change the group-owner from root to user for every file in the Cogmind-folder was the solution.

my suggestion just to be sure, log in as root/admin and start. just to exclude an permission-issue.

good luck
Title: Re: Any luck with Wine on OSX? [SOLUTIONS INSIDE]
Post by: Chad on August 12, 2016, 04:41:20 AM
Thanks for your suggestion Enno. I've already tried that. Opening the App with sudo and giving full permissions to the app. As I run Cogmind on two systems (same OSX, XQuartz, Winskin, Wrapper versions), on one successful, on one unsuccessful, there must be something very special. The error message in the Wine logs ("XIO: fatal IO error 35 (Resource temporarily unavailable) on X server") don't help. Google only provides very special solutions, or the usage of an updated wrapper, so no help there.
Title: Re: Any luck with Wine on OSX? [SOLUTIONS INSIDE]
Post by: Kyzrati on August 12, 2016, 05:11:04 AM
Thx for the wrapper (nice icon and .dmg folder background, btw  ;)), unfortunately it doesn't work.
! ... hm, worked for all the other Mac users who've tested it (though I admit no one has tested it combination with Alpha 10, the version I gave you contains Alpha 5 by default). Something very odd going on with your system then.

Wonder what it could be. When I get a new laptop, hopefully I could set up OSX in a VM and do some testing myself, though having zero experience with Macs you guys are way ahead of me already :P

Also, let me know if you want to play on the system where it's possible to do so but the internet connectivity hang thing is too bothersome. I can give you an advance hotfix that includes a timeout. (Otherwise that will be coming in Alpha 11.)

(All credit for that icon and .dmg work goes to alaska--he did that whole thing for me and just sent it over. Very nice job :D)
Title: Re: Any luck with Wine on OSX? [SOLUTIONS INSIDE]
Post by: Enno on August 12, 2016, 05:41:11 AM
error message in the Wine logs ("XIO: fatal IO error 35 (Resource temporarily unavailable) on X server"
maybe you have to install x11 again !?
Title: Re: Any luck with Wine on OSX? [SOLUTIONS INSIDE]
Post by: Chad on August 12, 2016, 05:56:46 AM
@Kyzrati:
No need for the hotfix as long as Cogmind runs on one system.
The problem is not version dependend, I've tried several Cogmind versions (all I still got on my HDD).

error message in the Wine logs ("XIO: fatal IO error 35 (Resource temporarily unavailable) on X server"
maybe you have to install x11 again !?

Wineskin uses its own version of XQuartz (which is the successor of Apples X11). But I've also tried to reinstall XQuartz and even forced the reinstalled XQuartz instead of Winskins version, without effect.
Title: Re: Any luck with Wine on OSX? [SOLUTIONS INSIDE]
Post by: skymaker on August 16, 2016, 12:41:43 AM
Hey all (and @Chad in particular); pardon my delayed response.  Life got a bit busy there for a while with a summer course I was finishing up, among other things.

Revisiting this thread, it may not have been the best place to post my issue; I'm running a full Linux system (Arch Linux, more-or-less), rather than a Mac, but I posted here because I was seeing some mention of similar sound issues if I recall right.  My hardware is a Lenovo laptop, basically.  I installed Wine fresh on here when I wanted to try Cogmind, and I haven't run any other programs in Wine to date.  Would any more information help, or should I go find/start a Linux specific thread?

Cheers.

Title: Re: Any luck with Wine on OSX? [SOLUTIONS INSIDE]
Post by: Kyzrati on August 16, 2016, 12:58:38 AM
Ah, well, hehe, this being the OSX thread we had made that assumption xD. Wine may very well behave differently depending on the architecture.

There is a Linux thread here (http://www.gridsagegames.com/forums/index.php?topic=182.0) where others have been talking about their approaches--haven't heard of anyone with this issue before, though. So far it's mostly a bunch of players reporting in that their particular setup works.

I'd suggest checking out the posts in that thread (there are some details), and if you're still having trouble try asking over there. Having not used Wine before, it's possible you're encountering a settings issue on that end.
Title: Re: Any luck with Wine on OSX? [SOLUTIONS INSIDE]
Post by: skymaker on August 16, 2016, 06:39:06 PM
Thanks Kyzrati; I'll give that thread a look. =)
Title: Re: Any luck with Wine on OSX? [SOLUTIONS INSIDE]
Post by: 16161d on August 24, 2016, 06:30:35 PM
I've had no problems with Cogmind on Wine besides that the mouse cursor is very choppy and drags a bit. I have a feeling like theres a setting somewhere when creating the wine config that will remedy this as I've faced the issue with other wine builds and resolved it, but I'm not aware of a solution right now.


EDIT: Tried another build using the step by step guide in this thread and the mouse now works smoothly again. Glad I found this thread. I hope we can get a wrapper included in the Steam release eventually!
Title: Re: Any luck with Wine on OSX? [SOLUTIONS INSIDE]
Post by: Kyzrati on August 24, 2016, 08:04:15 PM
Yep, a wrapper is definitely planned! The main reason it hasn't happened already is it's not something I can easily do myself, so will probably rely on outside help...
Title: Re: Any luck with Wine on OSX? [SOLUTIONS INSIDE]
Post by: Chad on September 01, 2016, 01:31:34 PM
Status update about my "special" problem.
Had a partial success two weeks ago using "Set Maxfiles to 10240", but it worked just twice...

But today I just randomly started the game on my Macbook and all problems were gone! I haven't done anything on the Macbook (haven't even rebooted...). Finally, I can play Cogmind on both, my iMac and Macbook. But where the probelm was? I don't know. I hope it will be gone forver!

Thx for the support Kyzrati (can't wait for the next patch)!
Title: Re: Any luck with Wine on OSX? [SOLUTIONS INSIDE]
Post by: Kyzrati on September 01, 2016, 06:33:45 PM
Okay, well, that's odd, wonder what changed xD. I always try to help when I can!--or get someone else to help :P

Next release will take a little longer, but it'll be a nice one!
Title: Re: Any luck with Wine on OSX? [SOLUTIONS INSIDE]
Post by: FisherMUN on August 27, 2017, 05:01:34 AM
TLDR: Cogmind still works flawlessly in wineskin in 2017.

I thought it might provide some peace of mind to know that c909's original wineskin instructions and GlennEhrlich's subsequent fullscreen for wineskin instructions work flawlessly on a Early 2011 MacBook Pro in OSX 10.11.3 (El Capitan) running Cogmind V2.1.

I primarily use the mouse and some original keybindings. When I say flawlessly I do mean flawlessly.

@Kyzrati, I wouldn't waste any time developing or even thinking about developing a cross-platform solution. I fully agree with your plan, if an official wrapper is going to exist find somebody else to do it for you.
Title: Re: Any luck with Wine on OSX? [SOLUTIONS INSIDE]
Post by: Kyzrati on August 27, 2017, 07:35:24 AM
Thanks for the update and vote of confidence, FisherMUN!

I've certainly postponed even the wrapper simply because it's so easy to get setup now, though I imagine I'll still want to do one eventually. For now anyway I decided it's more important to do Steam first, since that involves learning about their installer system which I don't even understand in Windows yet :P

When I say flawlessly I do mean flawlessly.
:D
Title: Re: Any luck with Wine on OSX? [SOLUTIONS INSIDE]
Post by: vodkat on October 18, 2017, 06:20:39 PM
Just wanted to chip in and say that on High Serra that wineskin still works fine but I needed to go into Cogmind.app > Wineskin.app > Set Screen Options and then disable 'Auto Detect GPU Info for Direct3D' to get the game to work.

In a totally unrelated note, it would be very helpful to be able to increase the fontsize in game, I had to downscale my screen to 1152x720 to be able to easily read what was happing onscreen!
Title: Re: Any luck with Wine on OSX? [SOLUTIONS INSIDE]
Post by: Kyzrati on October 19, 2017, 05:50:08 AM
Thanks for the info vodkat, that setting requirement makes sense since Cogmind doesn't use Direct3D or the GPU at all :P

Very interesting that downscaling actually helped you! I've never heard of anyone actually using that approach since it would generally make things more unreadable. Since that doesn't increase the number of rows on the screen, but you find it more readable, perhaps you should instead use your native resolution and switch to a different font, like Terminus? Or did you try that?

As per this page (http://www.gridsagegames.com/cogmind/ui_preview.html) linked from the System Requirements, you can't increase the font size beyond what your resolution supports, but that's not really what determines true cell size anyway--physical screen dimensions are what matters, so everything will be larger on a larger display.
Title: Game Crashes in OSX High Sierra
Post by: leoleez on October 07, 2018, 03:05:35 PM
I understand the game is currently in development, and seemingly focused on Windows.
But I've been trying to get the game working on OSX High Sierra and have had no luck with the latest version of Wine.
I'll attach a log of the crash on Wine, as it's a little esoteric of myself. Let me know if this issue is something that we can troubleshoot. It looks like it's either missing some permissions or some library.

Leo
Title: Re: Game Crashes in OSX High Sierra
Post by: Kyzrati on October 08, 2018, 12:35:19 PM
Yeah this'll be something that other Mac users will have to help with since I don't have/use one (this is part of why there's no official non-Windows version since I can't personally offer the same personal system support and suggestions that I can on Windows :/).

Since it's an issue with your specific OSX/Wine setup rather than a bug in the game. I'll move it to the Support board thread where all the OSX solutions/walkthroughs are (https://www.gridsagegames.com/forums/index.php?topic=29.msg405#msg405) (not sure if you've checked that thread yet, but in any case it's where someone might be able to help--I'll ask other Mac users what they think, as we have several on the Discord server).
Title: Re: Any luck with Wine on OSX? [SOLUTIONS INSIDE]
Post by: Kyzrati on September 29, 2019, 09:19:10 PM
Warning to macOS users: The latest version from Apple, Catalina/10.15, is incompatible with Cogmind, so the only option to play Cogmind or other 32-bit games (or other games through Wine) is to not upgrade, or dual boot, as suggested by Valve (https://support.steampowered.com/kb_article.php?ref=1055-ISJM-8568).

I've written more about my stance on macOS here (https://www.gridsagegames.com/blog/2019/09/sorry-mac-users-apple-doesnt-care-about-us-devs/) on the blog. Apple's moves and general behavior in recent years have killed any chance of releasing a click-to-play version on that platform.
Title: Re: Any luck with Wine on OSX? [SOLUTIONS INSIDE]
Post by: Kyzrati on December 18, 2019, 12:02:37 AM
Additional update on the Catalina situation: the official Crossover 19 release reportedly runs Cogmind on Catalina just fine, even though it's 32-bit on a 64-bit system :)
Title: Re: Any luck with Wine on OSX? [SOLUTIONS INSIDE]
Post by: Kyzrati on July 04, 2022, 02:57:04 AM
Update for M1 users: See this thread (https://www.gridsagegames.com/forums/index.php?topic=1610.0) for how to get it running fine there, courtesy of Luigi.