Maidens of the Kaleidoscope

~Hakurei Shrine~ => Help Me, Eirin! => Tech Support => Topic started by: Momiji on April 25, 2010, 08:39:38 AM

Title: Touhou on Linux and MacOS X, using Wine or Virtualization
Post by: Momiji on April 25, 2010, 08:39:38 AM
Note:  This also exists on Touhou Wiki here (http://en.touhouwiki.net/wiki/Running_in_Linux_and_MacOS_X).

For those of us who run Linux as our only operating system, finding functional alternatives to Windows programs can be pretty hard.  In the case where we need to run Windows programs, the Wine project (http://www.winehq.org/) has been long developing an emulation system that lets us do such a thing.  Basically, it translates Windows functionality into their respective Linux counterparts, so you can still play your Windows games, work in Photoshop, etc. under Linux and, to a certain extent, MacOS X.

Running Touhou games on Wine is hit-or-miss, but is possible.  Here I'll show how Wine works, and how to (attempt to) play Windows Touhou games under Wine.

Before we start, this does require a little familiarity with the shell (or command-line interface).  This Linux guide (http://tldp.org/LDP/intro-linux/html/) has a nice introduction to using the shell (http://tldp.org/LDP/intro-linux/html/sect_02_02.html).


Installing Wine on Linux
Ubuntu (http://www.ubuntu.com/) and Debian (http://www.debian.org/):  See Here (http://www.winehq.org/download/deb)
Fedora (http://fedoraproject.org/):  See Here (http://fedoraproject.org/wiki/Wine)
SuSE (http://www.opensuse.org/en/):  See Here (http://en.opensuse.org/Wine)
Gentoo (http://www.gentoo.org/):  See Here (http://wiki.winehq.org/Gentoo).  I recommend unmasking the git-fetching ebuild.  Adding =app-emulation/wine-9999 ** to /etc/portage/package.keywords should do the trick.  Do emerge -pv wine and check which version it wants to build (it should be app-emulation/wine-9999).  Just be aware, building from Wine's Git repository might not actually work, the code is in constant flux.

Installing Wine on MacOS X using MacPorts
See Here (http://davidbaumgold.com/tutorials/wine-mac/)

Using Wine
Wine puts a hidden directory in your home folder, called .wine, which contains a full representation of a Windows folder hierarchy and miscellaneous library and system files.  The .wine folder lives inside your home directory (~/.wine).  Inside is another folder called drive_c, which is your Wine install's C: drive folder.  If you browse inside this folder (~/.wine/drive_c) you'll probably quickly recognize it's contents from a standard Windows install.

Generally, your Linux distribution will have assigned Windows executable to automatically start within Wine, so double-clicking a Windows executable should generally just work.  But if not, you'll have to invoke Wine from your terminal.  This will be somewhat important for running Touhou games properly, but that'll come later.  Anyway, here we'll look inside a program as it's installed within Wine with your terminal, move into it's folder and run it with Wine:

~ $ ls .wine/drive_c/Program\ Files/RandomProgram
config.ini  libjpeg.dll  program.exe readme.txt
~ $ cd .wine/drive_c/Program\ Files/RandomProgram
~/.wine/drive_c/Program Files/RandomProgram $ wine program.exe


And that should start up your program.

Running Touhou games
Running a Touhou game is done the same way, only you might want to specify your locale while invoking Wine so it starts your game as a Japanese program.  Here's how my Double Spoiler install looks like, and how to run it:

~ $ ls .wine/drive_c/Program\ Files/上海アリス幻樂団/ダブルスポイラー
custom.exe  readme.txt  th125.exe  unins000.dat
omake.txt   th125.dat   thbgm.dat  unins000.exe
~ $ cd .wine/drive_c/Program\ Files/上海アリス幻樂団/ダブルスポイラー
~/.wine/drive_c/Program Files/上海アリス幻樂団/ダブルスポイラー $ LANG="ja_JP.UTF-8" wine th125.exe


The LANG="ja_JP.UTF-8" part tells Wine to run under the Japanese locale, else it will run under whatever your default Locale is (en_US.UTF-8, en_GB.UTF-8, etc.), and you'll probably experience serious mojibake (http://en.wikipedia.org/wiki/Mojibake), although you may only see it in the program window's title.  Also, you should run English patches under the Japanese locale;  at which point your English-patched executable can be run under your default locale.

Using native Windows DLLs
This is pretty much no longer necessary for Touhou games, but it's a way to fix certain missing functionality in Wine you may find with other programs.  Basically, Windows has a lot of available system interface DLLs, and it's a huge order to 100% duplicate all that functionality in Wine.  While the Wine developers are constantly at work improving the coverage of the Windows' API, there's still lots of missing gaps here and there.  One way to temporarily fix a partially-functioning DLL is to replace it with the original file from a Windows install.  Here's the steps to do so; we'll use "d3dx9_36.dll" as an example.  Also note, I have a 32-bit Vista installation mounted at /mnt/vista32.

First off, to copy the file.  Wine's Windows folder is in .wine/drive_c/windows.

~ $ cp /mnt/vista32/Windows/System32/d3dx9_36.dll .wine/drive_c/windows/system32/

This might be all you need for the new DLL to work.  To make sure programs see it, we'll configure it within Wine.  Wine has a configuration utility called winecfg, run it from your terminal and you'll see this:
(http://www.distant-mind.com/images/winetutorial/wine1sm.png) (http://www.distant-mind.com/images/winetutorial/wine1.png)
Click the Libraries tab:
(http://www.distant-mind.com/images/winetutorial/wine2sm.png) (http://www.distant-mind.com/images/winetutorial/wine2.png)
Under "New override for library", type d3dx9_36, and click Add and Apply:
(http://www.distant-mind.com/images/winetutorial/wine3sm.png) (http://www.distant-mind.com/images/winetutorial/wine3.png)
Now you can click OK to exit the utility, or peruse around the other tabs and settings.  One issue with loading native Windows DLLs, they may require original low-level Windows DLLs (i.e. ntdll.dll) that Wine is emulating, and might not work.  These are the core DLLs that Wine is emulating and cannot be replaced with native Windows DLLs, else you'll break your Wine folder.

Wine in MacOS X
Wine works similarly in OS X compared to Linux, only you need to make sure you start X11 beforehand ( Applications > Utilities > X11 ).  One issue that Mac users may encounter is incredibly slow 3D graphics performance;  this is due to Apple's X11 implementation not supporting hardware OpenGL in older versions of OS X (Tiger and below).  If you encounter this, you may want to bite the bullet and upgrade.

Using Parallels and VMWare Fusion (Virtualization)
Another alternative that works very well is to use Parallels Desktop to run the games.

Parallels Desktop version 5.0 runs the main series games very well: All of the Windows danmaku games except for PCB run without slowdown on a MacBook Pro.  PCB appears to suffer from slowdown for unknown reasons. 

Update: Version 1.00a of Ten Desires can be significantly laggy.  Patching to 1.00c resolves all issues and will run the game at 60FPS

It is important to run the games in full screen, and it is better to use the zoom function to bring the game screen to full screen, at least on a MacBook Pro.  Running the games in windowed mode often results in slowdown, and the computer appears to have real difficulties in displaying 640x480 natively (the games will run at 30fps).  You can run them in 720x480 just fine, though.

Activate the zoom function through the "Trackpad" pane in System Preferences, and zoom in by putting the mouse in the middle of the screen and holding control and scrolling up with two fingers.

The fighting games (SWR and Soku) have no slowdown during matches, but DO have a serious delay while loading for the match (close to a minute).  It has been suggested, but not yet confirmed, that placing the games on the virtual C: drive, rather than on the OSX desktop or other location in OSX, may clear this out; Parallels treats the Mac's hard drive as a network drive, which may slow access.  Netplay has yet to be tested for either the fighters or for PoFV. 

If your SWR/Soku display looks strange when run in fullscreen (usually, a bar at the bottom and right of the screen that displays the desktop), set the game to run in Windowed mode, exit out, and restart the game.  Then change it back to fullscreen in the menu.

The PC-98 games can be run through anex86 without difficulty (so yes, emulation within emulation).  There is a PC-98 emulator for OSX, but it has not been updated for several years and does not appear to accept the Touhou games.

The following fan games have been confirmed to run fine under Parallels Desktop 5 using Windows XP on a MacBook Pro:
* Megamari
* Patchcon
* Genius of Sappheiros
* Koumajou Densetsu Scarlet Symphony (both games)
* Nitroid

The following do NOT run under Parallels 5, have severe slowdown, or suffer from fatal glitches, although in some cases this may be due to the graphics card (apparently, some of the fan games don't communicate properly with NVIDIA cards.):
* Super Marisa World (runs at 30FPS)
* Mountain of Faith Phantasm (runs at 30FPS)
* Sengou Gensokyo (cannot input commands during battle, otherwise 100%)
* Touhou Labyrinth (either will not display, or overwhelming glitches)
* Touhou Soccer 2 (no display)


For unknown reasons, VMWare Fusion will not run the Touhou games properly

The games have not yet been tested with Parallels Desktop 6.  Stay tuned for information.

PC98 Games
Both T98Next and Anex86 work just fine under Wine.  Also, if you're into two-player PoDD with a gamepad, JoyToKey (http://www.electracode.com/4/joy2key/JoyToKey%20English%20Version.htm) also works under Wine.  For properly configuring your respective PC98 emulator, please see the PC98 emulator thread.

Gotchas, Troubleshooting
One issue I've seen is with joysticks.  If you plug in your joystick while your Touhou game is running, it probably won't notice it.  Make sure it's plugged in and working before running your Touhou game.

Installing English patches has been known to cause otherwise troublesome games to start working better.

For SWR and HSTS, see here (http://hisouten.koumakan.jp/wiki/Linux_support) (SWR/HSTS Wiki).

The Wine developers are constantly adding and fixing functionality, so while things are still iffy with Touhou games they're definitely improving.  See below for a list of the current Touhou bugs on the Wine Bugzilla.

Outside the official games...
Touhou doujin games are also hit-or-miss.  Danmakufu doesn't work at all.  Age of Ethanols (http://www.shrinemaiden.org/forum/index.php?topic=4795.0) is a .NET game, so it should run natively in Mono, but in my trials in getting it to run I've discovered it's coded in part C#, part C++, so it won't work without installing .NET and whatnot from within Wine.



Touhou Games in the Wine AppDB (appdb.winehq.org)
[EoSD (http://appdb.winehq.org/objectManager.php?sClass=application&iId=6020)] [PCB (http://appdb.winehq.org/objectManager.php?sClass=application&iId=5810)] [IaMP (http://appdb.winehq.org/objectManager.php?sClass=application&iId=3362)] [IN (http://appdb.winehq.org/objectManager.php?sClass=application&iId=4473)] [PoFV (http://appdb.winehq.org/objectManager.php?sClass=application&iId=3363)] [StB (http://appdb.winehq.org/objectManager.php?sClass=application&iId=5781)] [MoF (http://appdb.winehq.org/objectManager.php?sClass=application&iId=6117)] [SWR (http://appdb.winehq.org/objectManager.php?sClass=application&iId=7426)] [SA (http://appdb.winehq.org/objectManager.php?sClass=application&iId=8077)] [UFO (http://appdb.winehq.org/objectManager.php?sClass=application&iId=9362)] [HSTS (http://appdb.winehq.org/objectManager.php?sClass=application&iId=10274)] [DS (http://appdb.winehq.org/objectManager.php?sClass=application&iId=11267)] [FW (http://appdb.winehq.org/objectManager.php?sClass=application&iId=11947)] [TD (http://appdb.winehq.org/objectManager.php?sClass=application&iId=12978)]

Wine Bug Status (bugs.winehq.org)
Official Games
[421 (http://bugs.winehq.org/show_bug.cgi?id=421)] [EoSD - TD] Bad Text Part 2, DIB Engine Implementation:  Now Implemented
[13297 (http://bugs.winehq.org/show_bug.cgi?id=13297)] [EoSD - FW] Missing D3DXCreateTextureFromFileA in d3dx9_36.dll:  Now Implemented
[13490 (http://bugs.winehq.org/show_bug.cgi?id=13490)] [SWR, Patchcon] Nvidia video driver FPU bug, improper rounding causing game crash:  Fixed in Nvidia drivers 275.19
[15146 (http://bugs.winehq.org/show_bug.cgi?id=15146)] [MoF, TD] Bad Text Part 1, Mishandled rgb444 Depth Conversion:  Now Implemented
[18232 (http://bugs.winehq.org/show_bug.cgi?id=18232)] [SA, UFO] Huge framerate drop when OffscreenRenderingMode=fbo (Intel i945 graphics chips)  Driver issue resolved
[19106 (http://bugs.winehq.org/show_bug.cgi?id=19106)] [MoF] Improperly rendered backgrounds Reported fixed as of Wine 1.4-rc6
[13554 (http://bugs.winehq.org/show_bug.cgi?id=13554)] [IaMP] Broken config.exe (16-bit app), comctl32.dll not properly imported
[18394 (http://bugs.winehq.org/show_bug.cgi?id=18394)] [PoFV] Patching to 1.50a breaks game, problems with dpnet.dll
[18440 (http://bugs.winehq.org/show_bug.cgi?id=18440)] [SWR] Menu/Game select crashes, problems with GetGlyphOutline in d3dx9_33.dll
[24206 (http://bugs.winehq.org/show_bug.cgi?id=24206)] [HSTS] Ending network game causes hangup
[30538 (http://bugs.winehq.org/show_bug.cgi?id=30538)] [SA - TD] Framerate Regression due to EDID polling lag
Fangames
[30212 (http://bugs.winehq.org/show_bug.cgi?id=30212)] Koumajou Densetsu needs Scripting.Dictionary implementation.


Disclaimer
I can't guarantee that any of this won't blow up your computer, kill your waifu, etc.  Please be careful.
Also, I'm pretty bad at writing things like this, if you have any suggestions or fixes let me know.

Original Wine/Linux thread here (http://www.shrinemaiden.org/forum/index.php?topic=652.0).

Credits:  Ruro for the original sticky, Silentsword for the Virtualization on Mac info.
Title: Re: Touhou on Wine Status, Part II
Post by: Tengukami on April 25, 2010, 12:08:01 PM
Thanks for this. I have few issues running Touhou in Wine. For the most part, everything runs fine for me in Wine 1.1.33, except:

- SWR and UNL don't run at all.
- PoFV tends to freeze between stages.
- UFO's custom.exe won't open, but the game runs fine windowed.

Don't really care about the fighting games, but it would be nice to fix the UFO custom.exe thing, and get PoFV running.
Title: Re: Touhou on Wine Status, Part II
Post by: Momiji on April 25, 2010, 05:38:26 PM
Pretty much the same problems I have.  Also, a lot of the custom.exes don't work at all for me, and I don't really know if there's any fix for them.  I just don't even try to use them.

As for PoFV it freezes for me whenever I pick a character, and only certain characters in certain difficulty levels, along with random lockups between stages.  Really weird.
Title: Re: Touhou on Wine/Linux
Post by: Just a GBZero on April 26, 2010, 08:26:22 PM
This gives a bit more info for SWR and 12.3 on linux
http://hisouten.koumakan.jp/wiki/Linux_support
Title: Re: Touhou on Wine/Linux
Post by: Momiji on April 26, 2010, 09:48:54 PM
Thanks!  I'll add that to the guide.
Title: Re: Touhou on Wine/Linux
Post by: Barrakketh on April 27, 2010, 05:41:15 PM
DirectX support can be added more easily with winetricks (http://wiki.winehq.org/winetricks).  Once you have it saved and marked as executable (note that you'll need the cabextract program available):

Code: [Select]
./winetricks d3dx9
It actually makes it easier to install a lot of things you might need for Wine.  If you find yourself running Japanese applications via the command line often it might not be a bad idea to add an alias to your .bashrc or .bash_profile:

Code: [Select]
alias jwine='LANG=ja_JP.UTF-8 wine'
Last I checked the Touhou games won't run properly full-screen (even if you confine it to a window by telling Wine to use a virtual desktop), so if you want to play Touhou and have it "bigger" you can change the resolution from a script with xrandr:

Code: [Select]
xrandr -s 1024x768
Don't forget to change it back to your native resolution when the game closes.  Note that depending on your monitor you may get some display lag since it might scale the input (might very very little unless it also post-processes the image), and it would be a good idea to pick a resolution that has the same aspect ratio at your monitor's native resolution to avoid stretching.  If you want to see the resolutions your monitor says it supports:

Code: [Select]
xrandr -q


On launching Touhou properly - the reason why you need to change to the Touhou game's directory is twofold.  One, if you don't you'll have no music.  Secondly, it'll place the config file and score.dat inside whatever your current directory is.  If you experience those systems you probably forgot to do that.

Regarding locale - you might not have the needed locale (ja_JP.UTF-8) available.  On Arch Linux you can edit /etc/locale.gen and either uncomment the ja_JP.UTF-8 entry or add it to that file.  After doing so run:

Code: [Select]
sudo locale-gen
Gentoo uses the same method as Arch, Ubuntu uses (or used as of the last time I had to do this on Ubuntu) a different method that I can't recall, but the Debian wiki says (http://wiki.debian.org/Locale) that you can create the /etc/locale.gen file if it doesn't exist and what I've written above for Arch will also apply.
Title: Re: Touhou on Wine/Linux
Post by: Tengukami on April 27, 2010, 05:49:24 PM
Last I checked the Touhou games won't run properly full-screen

My experience with Touhou fullscreen on Linux has been:

EoSD and PCB: Runs a million FPS for a few seconds, crashes. Vsync does not rectify this.
UFO: Runs 72 FPS.
SA: Can run fullscreen in Linux if you open custom_e.exe and "Fast" under "Input latency".

All others, including Double Spoiler, seem to run just fine for me in fullscreen.
Title: Re: Touhou on Wine/Linux
Post by: null1024 on April 28, 2010, 09:25:30 PM
Only tested PCB so far, with nothing but a vanilla Wine 1.1.43 on Ubuntu 10.04 Alpha 2.

Just double clicked th07e.exe in Nautilus, and away I went.
Runs flawlessly for me [fullscreen even, 60fps], with only the black boxes around text problem. Also, you have to change the setting in custom.exe related to DirectInput [uncheck it], or else control will lock up, and you won't be able to navigate the menus [and selection keeps going down in circles].

Oh, and Compiz still draws the GNOME bars over the top and bottom still, so I had to switch back to Metacity before playing. Not a real problem [you should do it anyway, it takes resources away from your game!], but a bit annoying.
Title: Re: Touhou on Wine/Linux
Post by: Momiji on April 29, 2010, 01:16:15 AM
Just double clicked th07e.exe in Nautilus, and away I went.

I noticed that the English patches do tend to make things work that normally don't, especially on a 64-bit Linux install.  Hey, if you're trying out other games, post your results if you can.  It'd be nice to build a nice knowledge base here.  ^.^
Title: Re: Touhou on Wine/Linux
Post by: Barrakketh on April 29, 2010, 01:43:40 AM
I noticed that the English patches do tend to make things work that normally don't, especially on a 64-bit Linux install.  Hey, if you're trying out other games, post your results if you can.  It'd be nice to build a nice knowledge base here.  ^.^
FWIW UFO launches by clicking on it from Dolphin.  So does launching it via the vpatch.

Tested EoSD on Arch Linux (x86_64) with the Catalyst drivers (10.4), Xorg 1.7, and forced Vsync - it'll actually run full-screen at 60 FPS with and without the vpatch (notable in that FPS isn't in the hundreds or thousands).

EDIT: Forgot Wine ver, 1.1.43.
Title: Re: Touhou on Wine/Linux
Post by: null1024 on April 29, 2010, 01:57:13 AM
Just tried EoSD myself, runs at "60" fps in game, but it feels like 30, runs at "120" fps in the menu but feels like 60.

StB runs just fine [60fps and whatnot]. Thought it might crash on starting up, displayed a bit of garbage and tried to change the resolution twice, but it opened up just fine [although I didn't initially expect it to fail, I've historically been able to get it to run in Wine], ran full speed, slight text problem [weird colors and odd transparency issues for some bits of text].
Also, pictures aren't corrupt anymore [can't remember the last Wine version I tried, but at least it's gone now]! Yay!
Title: Re: Touhou on Wine/Linux
Post by: Tengukami on May 01, 2010, 01:55:19 AM
Hey guys.

Just thought I'd share something I discovered regarding making videos of replays. Many of you probably already know this, but I thought it'd be a good reference.

I use two apps: recordmydesktop and ffmpeg.

Recordmydesktop is available in Synpatic among other places and is incredibly simple to use. Just hit "Select Window", and drag the cursor over the game window, then hit record.

(http://i43.tinypic.com/v9iq1_th.png) (http://i43.tinypic.com/v9iq1.png)

When finished, hit the record button in your panel to stop it. It'll then process the recording, and output it as an .ogv file, to /home by default. Recording a spellcard in Double Spoiler produces a high quality video about 90MB in size.

If you want to keep the quality but reduce the file size, you can get ffmpeg from Synaptic. Open the directory that the video is in in Terminal and paste the following command:

$ ffmpeg -i out.ogv -target ntsc-dvd -aspect 4:3 [whateveryouwanttonameit].mpg

The output is pretty much the same quality, but at a third the size: in this case, down from 91.8MB to 33.1MB

That's all there is to it.

The one caveat I should mention is to check your sound outputs. Depends on your OS, so to make sure you record sound as well as video, have all your outpits on.
Title: Re: Touhou on Wine/Linux
Post by: Momiji on May 01, 2010, 04:11:06 AM
Oh, right.  There's two versions of this in Gentoo,  recordmydesktop (shell-only) and recordmydesktop-gtk (GTK+ based).  And having a soundcard with self-recording capability (i.e. generally none of the "intel-hda" chips) or some sort of ALSA loopback dark magic is necessary for audio recording.
Title: Re: Touhou on Wine/Linux
Post by: chejomolina on September 03, 2010, 06:22:35 AM
Hi i'n new here, thanks for all information very usefull i try it with EoSD and work fine but on stages 4 and 5 fps get down to 3 or 4 fps too bad but i can play firts stages very good that's something
Title: Re: Touhou on Wine/Linux
Post by: Momiji on September 03, 2010, 07:04:49 AM
Huh, weird.  Does it slow down on the same stages consistently, or just after a certain period of time?
Title: Re: Touhou on Wine/Linux
Post by: chejomolina on September 03, 2010, 06:37:31 PM
well is in the same stages allways dosn't matter the time it's on stages 4 and 5 also the game is windowed fullscreen get down frames
Title: Re: Touhou on Wine/Linux
Post by: Tengukami on September 03, 2010, 08:33:48 PM
Only advice I could give would be to Force 60 FPS in your config.exe, and if that doesn't work, try playing windowed mode.

I know, windowed mode isn't ideal.
Title: Re: Touhou on Wine/Linux
Post by: Tsubame on September 05, 2010, 08:10:35 PM
Um, it should be noted that the required DLLs for MoF onwards to run are in the CD's "directx" directory. However, you will need cabextract to get them.

The file usually has the name MonYYYY_d3dx9_NN_x86.cab, where "Mon" is the name of the month the DLL was released, YYYY the year, and NN the number of the file you're looking for. Of course, you could replace "x86" for "x64" if you need the 64-bit support file, but since I've never used a 64-bit OS, I don't know much about those cases  :derp:.

Taking UFO for example, the game asks for the file d3dx9_40.dll. Inside the game CD's directx folder you will find Nov2008_d3dx9_40_x86.cab, which contains the DLL we're looking for.

With this, you can avoid going to a windows install, IIRC.

P.S.: For reference, d3dx9_36.dll is inside Nov2007_d3dx9_36_x86.cab.
Title: Re: Touhou on Linux and MacOS X, using Wine
Post by: Momiji on September 05, 2010, 08:50:24 PM
Just added some info on installing Wine on OS X, lemme know if it works.
Title: Re: Touhou on Linux and MacOS X, using Wine
Post by: null1024 on September 06, 2010, 03:41:31 PM
Mmkay, tested 12.3 in Wine... it runs badly for me [slows down within the first 5 seconds of starting it, windowed or not].
A shame, because I really don't feel like rebooting into Windows every time I want to play it.
Title: Re: Touhou on Linux and MacOS X, using Wine
Post by: Momiji on September 06, 2010, 03:49:51 PM
The fighting games will definitely have more problems than the other games.  Have you tried any of the others yet?

Also, what version of Wine are you running?  And have you set up any dll overrides yet?
Title: Re: Touhou on Linux and MacOS X, using Wine
Post by: Dorian Loup on September 24, 2010, 12:09:00 PM
So!

I'm currently trying to make IN and UFO work on my new eeepc (1015 PE).

It work, but it lags a lot too much. IN is around 30-40 fps ans UFO around 10...

I'll try with Cedega during the week end, I'll update you to make you know if it worked.

If it doesn't work, I will have to boot quite often on windows to play :(
Title: Re: Touhou on Linux and MacOS X, using Wine
Post by: Momiji on September 24, 2010, 03:25:57 PM
I'm currently trying to make IN and UFO work on my new eeepc (1015 PE).

It work, but it lags a lot too much. IN is around 30-40 fps ans UFO around 10...
Looks like this has a GMA 3150 graphics chip.  Even though it supposedly supports hardware texturing, I wouldn't expect to get much more out of your netbook than you are.  It's probably also due to the slow Atom processor.
Title: Re: Touhou on Linux and MacOS X, using Wine
Post by: Momiji on October 02, 2010, 07:18:02 PM
Just a heads up, the Wine devs have finally implemented D3DXCreateTextureFromFileA in d3dx9_36.dll, closing bug 13297 (http://bugs.winehq.org/show_bug.cgi?id=13297).  There's still some Touhou-related bugs left to fix (http://bugs.winehq.org/buglist.cgi?quicksearch=Touhou), but it looks like one of the major ones has finally fallen!  Upgrade your Wine installs and test your games out!

So far, everything's pretty much working for me.  The only game I still have problems with is PoFV, which still locks up when loading certain scenarios, and the fighting games.
Title: Re: Touhou on Linux and MacOS X, using Wine
Post by: ghost333 on March 04, 2011, 09:31:42 PM
i have an installation of linux mint 9 and wine 1.2.2
i try to play PCB  but it  crashes after the main menu when i try to select anything from it,
it used to work back in the old good days of linux mint 7 and suse.
but no light here.
any help apreciated.

Title: Re: Touhou on Linux and MacOS X, using Wine
Post by: Momiji on March 04, 2011, 09:35:35 PM
First off, can you try the development version (1.3.15) as opposed to the stable version (1.2.2)?
Title: Re: Touhou on Linux and MacOS X, using Wine
Post by: ghost333 on March 04, 2011, 09:47:16 PM
ok i installed the binary.
but still it wont work.
also notes of intereste:  IN encounters the same problems while MOF ,SA , UFO seems to play
Title: Re: Touhou on Linux and MacOS X, using Wine
Post by: Romantique Tp on March 04, 2011, 10:02:06 PM
Does EoSD run properly ?
Title: Re: Touhou on Linux and MacOS X, using Wine
Post by: Tengukami on March 04, 2011, 10:05:41 PM
ok i installed the binary.
but still it wont work.
also notes of intereste:  IN encounters the same problems while MOF ,SA , UFO seems to play

I'm running Linux Mint 10, and I use WINE version 1.1.33 for my Touhou games. They all run fine except:
 - Can't get SWR to open, let alone run.
 - UFO runs at 72FPS in full screen only.

That's it. Try 1.1.33 and see if anything changes for you.
Title: Re: Touhou on Linux and MacOS X, using Wine
Post by: ghost333 on March 04, 2011, 10:44:58 PM
Does EoSD run properly ?

i dont have EOSD so i cant really try.


1.1.33?
hmn i cant find a binary and building one will require to install 32bit dev files
Title: Re: Touhou on Linux and MacOS X, using Wine
Post by: Momiji on April 15, 2011, 05:37:21 PM
I've been playing around with the Ten Desires trial, and it seems to work great in Wine.  Some of the text is still improperly rendered (due to the DIB engine issue), but outside that I haven't noticed any weird glitches yet.  Of course the custom.exe doesn't work.
Title: Re: Touhou on Linux and MacOS X, using Wine
Post by: Tengukami on April 15, 2011, 07:14:08 PM
Of course the custom.exe doesn't work.

Of course. :|

Should be noted that WINE users need to drop D3DX9_43.dll into the game directory. Runs like a dream for me in the 1.1.33 build.
Title: Re: Touhou on Linux and MacOS X, using Wine
Post by: Momiji on April 15, 2011, 07:18:02 PM
Should be noted that WINE users need to drop D3DX9_43.dll into the game directory. Runs like a dream for me in the 1.1.33 build.
I'm running 1.3.16, didn't seem to need anything.
Title: Re: Touhou on Linux and MacOS X, using Wine
Post by: Tengukami on April 15, 2011, 07:32:50 PM
Well then! Maybe it's time for an upgrade.
Title: Re: Touhou on Linux and MacOS X, using Wine
Post by: DX7.EP on April 15, 2011, 10:45:56 PM
I'll add on a few things here for Mac users.

You're not stuck to using MacPorts or Fink.

Mac-based frontends for WINE that are good for use include Wineskin (http://wineskin.doh123.com/Information.html), Winebottler (http://winebottler.kronenberg.org/) (on 1.1.44, discontinued?), and PlayOnMac (http://www.playonmac.com/en/download.html).

I have a good bit of experience with WineBottler, which integrates with the system menu for settings and allows you to turn Windows programs to simple OS X application bundles (YMMV).
Played IN, UFO, and TD via this app and they work well without other modifications or even Winetricks (though the last one requires d3dx9_43.dll in the game directory). However, depending on your system performance may not be optimal (eg. 30-40FPS for MBP5,5 (2009 13") users).

Alternatively, there's Crossover, but that's commercial-grade stuff.
Title: Re: Touhou on Linux and MacOS X, using Wine
Post by: Momiji on April 25, 2011, 11:45:54 PM
Whelp, I tried the DynaMarisa trial earlier.  Segfaults pretty hard.  =[
Title: Re: Touhou on Linux and MacOS X, using Wine
Post by: GenericTouhouFailure on May 31, 2011, 02:00:11 AM
Question: Any mac users that got 10.5 to work successfully using the mentioned method (the th105l.exe etc)? its not working for me  :ohdear:
Title: Re: Touhou on Linux and MacOS X, using Wine
Post by: DX7.EP on May 31, 2011, 02:10:12 AM
Question: Any mac users that got 10.5 to work successfully using the mentioned method (the th105l.exe etc)? its not working for me  :ohdear:
BTW by 10.5 do you mean SWR or Leopard? :colonveeplusalpha: 

I heard SWR, IaMP, and HSTS/UNL don't work well with Wine at all in Linux. Meaning that it'll do worse for us Mac users thanks to further porting of Wine.

Also, are you using the MacPorts method? I use WineBottler, personally, though I am toying with PlayOnMac as well.
Title: Re: Touhou on Linux and MacOS X, using Wine
Post by: GenericTouhouFailure on May 31, 2011, 02:21:28 AM
BTW by 10.5 do you mean SWR or Leopard? :colonveeplusalpha: 

I heard SWR, IaMP, and HSTS/UNL don't work well with Wine at all in Linux. Meaning that it'll do worse for us Mac users thanks to further porting of Wine.

Also, are you using the MacPorts method? I use WineBottler, personally, though I am toying with PlayOnMac as well.
I alternate between Crossover and CXZ Diamond wrapper. Hmmm. It looks like i got to download the entire freaking library to apply one damned patch to assemble a working wine for SWR. I got IaMP to run on CXZ though...
Sigh....  :ohdear:
Title: Re: Touhou on Linux and MacOS X, using Wine
Post by: DX7.EP on May 31, 2011, 06:40:20 AM
I alternate between Crossover and CXZ Diamond wrapper. Hmmm. It looks like i got to download the entire freaking library to apply one damned patch to assemble a working wine for SWR. I got IaMP to run on CXZ though...
Sigh....  :ohdear:
Hm, interesting.
As for Wine compilation, ouch. Might want to contact someone with Windows to apply the patch for you or use a VM...or have another system/Boot Camp.
Title: Re: Touhou on Linux and MacOS X, using Wine
Post by: Arekusu on June 22, 2011, 09:42:16 AM
Months ago I managed to port UNL to mac, but never got to see if multiplayer worked and some of the sprites were missing. I used a CXZ wrapper.

I also ported the other major touhou games to mac on september (with CXZ before, Wineskin later), but I upgraded my MacOs from 10.5 to 10.6 and their performance downgraded dramatically (they seem to get stuck at 30fps). Any idea on how to fix this? The same ports worked before the update and still do work on a recently bought iMac, so it probably has to do with some internal graphics update (well, my computer is a Macbook with GMA x3100, can't really expect much from it). However, switching from fullscreen to windowed mode doesn't affect performance, which suggests some option on wine or config change could be a solution.
Title: Re: Touhou on Linux and MacOS X, using Wine
Post by: Momiji on June 22, 2011, 06:57:35 PM
Months ago I managed to port UNL to mac, but never got to see if multiplayer worked and some of the sprites were missing. I used a CXZ wrapper.
=| (http://unl.mizuumi.net/)

...but I upgraded my MacOs from 10.5 to 10.6 and their performance downgraded dramatically (they seem to get stuck at 30fps). Any idea on how to fix this? The same ports worked before the update and still do work on a recently bought iMac, so it probably has to do with some internal graphics update (well, my computer is a Macbook with GMA x3100, can't really expect much from it).
From Wikipedia (http://link=http://en.wikipedia.org/wiki/Intel_GMA#Mac_OS):
Quote
Although the new MacBook line no longer uses the X3100, Mac OS X 10.5 (Leopard) ships with drivers supporting it that require no modifications to the kext file. Mac OS X 10.6 (Snow Leopard), which includes a new 64-bit kernel in addition to the 32-bit one, does not include 64-bit X3100 drivers. This means that although the MacBooks with the X3100 have 64-bit capable processors and EFI, Mac OS X must load the 32-bit kernel to support the 32-bit X3100 drivers. November 9's 10.6.2 update ships with 64-bit X3100 drivers.
Is your install of 10.6 fully up-to-date?  This could be a factor in your graphics performance.  Then again that paragraph had a bunch of [citation needed] so it might be moot.
Title: Re: Touhou on Linux and MacOS X, using Wine
Post by: DX7.EP on June 24, 2011, 05:27:12 AM
Months ago I managed to port UNL to mac, but never got to see if multiplayer worked and some of the sprites were missing. I used a CXZ wrapper.

I also ported the other major touhou games to mac on september (with CXZ before, Wineskin later), but I upgraded my MacOs from 10.5 to 10.6 and their performance downgraded dramatically (they seem to get stuck at 30fps). Any idea on how to fix this? The same ports worked before the update and still do work on a recently bought iMac, so it probably has to do with some internal graphics update (well, my computer is a Macbook with GMA x3100, can't really expect much from it). However, switching from fullscreen to windowed mode doesn't affect performance, which suggests some option on wine or config change could be a solution.
Is your install of 10.6 fully up-to-date?  This could be a factor in your graphics performance.  Then again that paragraph had a bunch of [citation needed] so it might be moot.

Update your SL install to 10.6.7 (.8 is coming soon, though). It is true that pre-10.6.2 Mac OS does not come with X3100 64-bit drivers, and furthermore AFAIK Intel drivers were optimized over the course of the later versions (largely due to the 2010-11 MacBook Pros' use of Intel GMAs). They also contain smaller improvements for ATI/AMD GPUs (and very few for NVIDIA ones, oddly).

Also, instead of using Apple's X11 use XQuartz for the primary X Window System.

Any idea which iMac it is under System Profiler? If it's recent (2009 or later) I don't see why it should have issues. UNLESS, that is, yours has the NVIDIA GeForce 9400M as a GPU, which I know from experience is not very good at all (30-50FPS on TD trial via Wine + horrible NVIDIA drivers).

HSTS has issues, anyways, under Wine, PlayOnMac, etc. Haven't tried CrossOver yet (I use a VM or Boot Camp anyways :P).


Title: Re: Touhou on Linux and MacOS X, using Wine
Post by: GenericTouhouFailure on July 04, 2011, 12:09:59 PM
Quick fix for frameskip since 10D's custom.exe will not start in wine.

(http://rghost.net/13423111/thumb.png) (http://rghost.net/13423111.view)
(click to view full size)
Your config fill will only appear this way if your options are default (and should be, unless you are using someone else's cfg file)
Open your th13.cfg in a hex editor.
Navigate to the byte circled. (by default it should be 01 00 00 02 64 50 00 02)
Change the byte in red to 01 and you now have 1/2 frameskip!

This works for MoF SA UFO DS and GFW. The cfg file has different lengths but the frame skip is almost always next to the 01 00 02 64 50
Useless Fact: The first 4 bytes is game number

Also games tested on CXZ:
I wanna be the shrine maiden (Crashes before running)
Sengoku Gensokyo (Can't install properly, also gives errors)
MegaMari (Works)
Super Marisa World (Lolcrash after game starts)
Story of Eastern Wind (Missing sprites, somewhat playable but with invisible players and invisible enemies, it's harder than virtue of black squares)
Mystical Chain (Same missing sprites glitch, except screen likes not rendering EVERYTHING)
Seihou Banshiryuu (Likes crashing randomly during gameplay, playing on lunatic seems to make less errors occur)

Will test some more once my nonexistant wallet refils itself
Title: Re: Touhou on Linux and MacOS X, using Wine
Post by: Tengukami on July 04, 2011, 12:57:25 PM
Would this solution also work in being able to slow the framerate of UFO fullscreen from 72 FPS to 60 FPS? Because that's the problem I'm having with UFO.
Title: Re: Touhou on Linux and MacOS X, using Wine
Post by: GenericTouhouFailure on July 05, 2011, 08:52:11 AM
Would this solution also work in being able to slow the framerate of UFO fullscreen from 72 FPS to 60 FPS? Because that's the problem I'm having with UFO.
Unfortunately, no. Frameskip only helps reduce lag or framerate drop. But i suspect that it's running at 72fps because your computer is on 72Hz.... But i might be wrong...

Also anyone has any luck at running VSync on wine?
Title: Re: Touhou on Linux and MacOS X, using Wine
Post by: Momiji on July 19, 2011, 10:04:42 PM
Bug 13490 (http://bugs.winehq.org/show_bug.cgi?id=13490) is fixed!  SWR is working fine for me now.  :D

If you have an Nvidia card, please update your drivers to 275.19 and see if it works.
Title: Re: Touhou on Linux and MacOS X, using Wine
Post by: Tengukami on July 20, 2011, 01:09:00 AM
Bug 13490 (http://bugs.winehq.org/show_bug.cgi?id=13490) is fixed!  SWR is working fine for me now.  :D

If you have an Nvidia card, please update your drivers to 275.19 and see if it works.

Wait what?? Oh man ...
Title: Re: Touhou on Linux and MacOS X, using Wine
Post by: GenericTouhouFailure on July 20, 2011, 02:28:03 PM
Bug 13490 (http://bugs.winehq.org/show_bug.cgi?id=13490) is fixed!  SWR is working fine for me now.  :D

If you have an Nvidia card, please update your drivers to 275.19 and see if it works.
ffffffffuuu
Argh, that update is only for Linux? What is this blasphemy?  :ohdear:
Now I wanna play swr even more.

Also danmakufu ph3 runs on wine but I can't get it to detect the scripts. anyone got it to work flawlessly yet?
Running on Mac and cxz diamond btw.
Title: Re: Touhou on Linux and MacOS X, using Wine
Post by: DX7.EP on July 20, 2011, 07:08:46 PM
Bug 13490 (http://bugs.winehq.org/show_bug.cgi?id=13490) is fixed!  SWR is working fine for me now.  :D

If you have an Nvidia card, please update your drivers to 275.19 and see if it works.
What NVIDIA updates on OS X? :ohdear:
Sure, NVIDIA provides them but they are for Quadro GPUs, which are only on certain Mac Pros. Plus, driver-wise they're still absolutely horrendous, especially on Mac laptops. Even Intel drivers are better optimized!

Also, what Wine consistency between the Linux, BSD, and OS X camps? >:(
(it's also doubly insulting on the Mac end since the Linux/BSD crew is terribly unwilling to port, and most of us Mac users either aren't competent with Unix or know it but cannot wrap it around OS interfaces such as Cocoa, which would speed things up)

@GenericTouhouFailure: If you haven't yet, get Lion already! :)
Title: Re: Touhou on Linux and MacOS X, using Wine
Post by: Momiji on July 21, 2011, 05:03:31 AM
Also, what Wine consistency between the Linux, BSD, and OS X camps? >:(
Wine is Wine, regardless of what platform it's on.  I'm not really sure what you're talking about with porting and Cocoa.  And anyway, this bug isn't even about Wine but Nvidia's drivers.

As for driver support on OS X, I dunno what to tell you about that.  =/
Title: Re: Touhou on Linux and MacOS X, using Wine
Post by: DX7.EP on July 21, 2011, 05:33:06 AM
Wine is Wine, regardless of what platform it's on.  I'm not really sure what you're talking about with porting and Cocoa.  And anyway, this bug isn't even about Wine but Nvidia's drivers.

As for driver support on OS X, I dunno what to tell you about that.  =/
Well, Wine is Wine, yes. From the looks of your post, though, I don't think you've used Mac for a long period of time, so it's understandable that you may be confused about how it does things.

Wine can be ported over but we'd likely use BSD-style porting, due to OS X's BSD skeleton, rather than a full native port, out of laziness. Plus the way X11/XQuartz is managed on OS X is sub-optimal at best, compared to using native interfaces such as Quartz Composer and Cocoa, and furthermore it comes with some very odd quirks, such as severe mouse/tablet input lag on GIMP and Inkscape (both of which are direct ports that rely on X11 and fail to use any native OS APIs).
Also I haven't had too good of an experience with MacPorts or Fink, and stick to WineBottler, which is stuck on the stable 1.2.2 at the current time.

OS X driver support typically comes in OS updates and is not meant to be done from the user end, exception being for certain NVIDIA GPUs (GTX 285, Quadro 4000) that aren't offered by Apple on its system customization pages. Catch is that they are quite behind both version and feature-wise (we're still waiting on a complete OpenGL 3.0 implementation while Windows and Linux drivers already cover 4.1, significantly lower performance).

As for the bug fixing NVIDIA drivers, that's nice for owners of NVIDIA-equipped systems but doesn't cover me and my HD6870, but I haven't gotten to testing yet under either OS X Lion or Linux Mint 11.
Title: Re: Touhou on Linux and MacOS X, using Wine
Post by: Tengukami on July 21, 2011, 03:55:12 PM
Updating Nvidia drivers in Linux is pretty easy - it's all terminal commands. It took some Googling for me to find the right method (and bear in mind, my system is based on Ubuntu, so these instructions may vary depending on your distro), but this is basically it:

1. Download the 275.19 driver from Nvidia (http://linux.softpedia.com/get/System/Hardware/nVidia-Linux-Display-Driver-IA32-7787.shtml) and save it to your /home directory.
2. Hit Ctrl + Alt + F1 to enter console.
3. Log in with your user name and password.
4. Enter the command: sudo service gdm stop
5. Enter the command: sudo sh [filepath of driver]
6. Follow the instructions, then type: sudo service gdm start

You should then get some sort of restart prompt, or have to hit Ctrl + Alt + F7, depending on your system, and restart with a brand spankin' new Nvidia driver.
Title: Re: Touhou on Linux and MacOS X, using Wine
Post by: DX7.EP on July 21, 2011, 07:27:17 PM
Updating Nvidia drivers in Linux is pretty easy - it's all terminal commands.
Indeed it is! Only catch is that I had to recompile the kernel driver every time the kernel got updated.
Many current mainstream-oriented distros, including Ubuntu and related, will provide NVIDIA drivers under Hardware Drivers or the sort. While they will keep through kernel updates, the major drawback is that they are typically older and don't get updated until later (usually a new OS release).

I prefer using (sudo) su before sh NVIDIA_whatever.run, though. Also your instructions, while very easy to follow and perfect for Ubuntu, Mint, and (likely) Debian as well, assumes the client uses Gnome, which may be a bit of trouble for KDE, Xfce, etc. users.
Title: Re: Touhou on Linux and MacOS X, using Wine
Post by: Tengukami on July 21, 2011, 07:32:56 PM
I prefer using (sudo) su before sh NVIDIA_whatever.run, though. Also your instructions, while very easy to follow and perfect for Ubuntu, Mint, and (likely) Debian as well, assumes the client uses Gnome, which may be a bit of trouble for KDE, Xfce, etc. users.

Naturally, you should download the Nvidia that matches your system. The rest is self-explanatory.

I'm just glad to finally get this ancient copy of SWR actually running. Everything works great, except that once I enter a dual, the sound just totally cuts out.
Title: Re: Touhou on Linux and MacOS X, using Wine
Post by: Momiji on July 21, 2011, 10:50:02 PM
Well, Wine is Wine, yes. From the looks of your post, though, I don't think you've used Mac for a long period of time, so it's understandable that you may be confused about how it does things.

Wine can be ported over but we'd likely use BSD-style porting, due to OS X's BSD skeleton, rather than a full native port, out of laziness. Plus the way X11/XQuartz is managed on OS X is sub-optimal at best, compared to using native interfaces such as Quartz Composer and Cocoa, and furthermore it comes with some very odd quirks, such as severe mouse/tablet input lag on GIMP and Inkscape (both of which are direct ports that rely on X11 and fail to use any native OS APIs).
Also I haven't had too good of an experience with MacPorts or Fink, and stick to WineBottler, which is stuck on the stable 1.2.2 at the current time.
OS X is still a *nix OS.  It still uses C and various offshoots of it, along with standard *nix-style C libraries.  I think most of the problems you may be talking about may be completely caused by Apple's reluctance to update certain "uncool" but necessary parts of the system (like, for example, holy crap Lion finally supports latest versions of OpenGL, and the last OS X release only just included hardware-accelerated OpenGL support through X11, herpityderp).  And...  Wine not using Cocoa is a sign of laziness?  I don't think you realize just how long it would take to do that.  :V

Maybe you need to pick an OS that's not so brain-damaged, or more like, given a Jobsian lobotomy.  I hear Macs run Windows pretty nicely.
Title: Re: Touhou on Linux and MacOS X, using Wine
Post by: DX7.EP on July 21, 2011, 11:39:12 PM
Of course, I am aware Mac is POSIX-compliant so a lot of *nix libraries work on it natively.

I think most of the problems you may be talking about may be completely caused by Apple's reluctance to update certain "uncool" but necessary parts of the system (like, for example, holy crap Lion finally supports latest versions of OpenGL, and the last OS X release only just included hardware-accelerated OpenGL support through X11, herpityderp).
Oh good, two more reasons to install Lion.
Apple is more attempting to push its native APIs over the common Unix ones, largely thanks to how similar the iOS ones are.

Quote
And...  Wine not using Cocoa is a sign of laziness?  I don't think you realize just how long it would take to do that.  :V
/me looks at GIMP Cocoa project
...yeah, it would.
But most of the MacPorts, Fink, and similar crew seem more bent on getting apps direct-ported over. That works...but at a hefty performance penalty thanks to shoddy OS implementations and an odd split between the Unix-based and OS X-based developer camps in most of these projects (though there are a few exceptions).

Quote
Maybe you need to pick an OS that's not so brain-damaged, or more like, given a Jobsian lobotomy.  I hear Macs run Windows pretty nicely.
Ehe, I use Windows, Mac, and Linux already. :smug:
My major reason for using OS X, other than long (~15 years) usage timespan, is for much of my audio (Logic), video (FCE4), and graphics (Pixelmator) work.
While the latter two are more debatable due to competent alternatives on Windows and Linux, for the first one OS X's Core Audio and Core MIDI APIs are very low-latency, flexible, and require very little configuration by end users. Logic, being an Apple product as well, ties with these quite well and offers a lot of content (~50GB) in addition for a cheap price.
And I technically have a Hackintosh unit ATM. Booting over to Windows and Linux isn't hard. :P

Also, I'd go ahead and give OS X a try for a few months or so at least before making a statement on it next time. It helps to know the situation firsthand, just saying ^_^
Title: Re: Touhou on Linux and MacOS X, using Wine
Post by: Tengukami on July 21, 2011, 11:58:16 PM
Just about every musician and graphic designer I know uses Macs, for example.
Title: Re: Touhou on Linux and MacOS X, using Wine
Post by: Momiji on July 22, 2011, 12:48:43 AM
Also, I'd go ahead and give OS X a try for a few months or so at least before making a statement on it next time. It helps to know the situation firsthand, just saying ^_^
I think you missed the point.  Man, I hope I don't get as arrogant as you when I get your age.
Title: Re: Touhou on Linux and MacOS X, using Wine
Post by: GenericTouhouFailure on August 15, 2011, 09:04:02 AM
10D's full ver works perfectly.
Except that for me even after 1ccing extra won't stay unlocked.
I guess it's time to search for a score.dat again...  :ohdear:
Title: Re: Touhou on Linux and MacOS X, using Wine or Virtualization
Post by: Minnakht on October 14, 2011, 06:11:23 AM
I realize I am bumping this thread from months ago. (or wait - I'm not. Just realized this is a sticky.)

I am trying to run SA on a netbook with Linux Ubuntu 11.10 or something about that. I don't have much previous experience with Linux, sadly, I took it because it's free....

SA is running at about less than 10 FPS, although the music plays just fine. SA has previously run fine on a laptop with a 1.6GHz CPU, 2GB of RAM and some Intel graphics card. This netbook also has a 1.6GHz CPU, 2GB of RAM and some Intel graphics card, so I doubt it's because it's too weak, but rather because it's Linux and Wine.

A response would be appreciated. Insulting my lack of experience would be... rude, but proper. Saying it can't be helped is okay if you give reasons.
Title: Re: Touhou on Linux and MacOS X, using Wine or Virtualization
Post by: Momiji on October 14, 2011, 07:48:08 AM
What's your exact hardware?  Can you post the output of "lspci"?
Title: Re: Touhou on Linux and MacOS X, using Wine or Virtualization
Post by: Minnakht on October 15, 2011, 02:19:38 PM
That's what I get for using Linux... I am told to do things and I can't even understand the tech talk.

After a lot of Google magic, I managed to understand what did you ask for. I'd post it if I wasn't afraid of the sheer size of the output.
You don't have spoiler tags here, do you...

'00:00.0 Host bridge: Intel Corporation N10 Family DMI Bridge
00:02.0 VGA compatible controller: Intel Corporation N10 Family Integrated Graphics Controller
00:02.1 Display controller: Intel Corporation N10 Family Integrated Graphics Controller
00:1b.0 Audio device: Intel Corporation N10/ICH 7 Family High Definition Audio Controller (rev 02)
00:1c.0 PCI bridge: Intel Corporation N10/ICH 7 Family PCI Express Port 1 (rev 02)
00:1c.1 PCI bridge: Intel Corporation N10/ICH 7 Family PCI Express Port 2 (rev 02)
00:1c.3 PCI bridge: Intel Corporation N10/ICH 7 Family PCI Express Port 4 (rev 02)
00:1d.0 USB Controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #3 (rev 02)
00:1d.3 USB Controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #4 (rev 02)
00:1d.7 USB Controller: Intel Corporation N10/ICH 7 Family USB2 EHCI Controller (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e2)
00:1f.0 ISA bridge: Intel Corporation NM10 Family LPC Controller (rev 02)
00:1f.2 SATA controller: Intel Corporation N10/ICH7 Family SATA AHCI Controller (rev 02)
00:1f.3 SMBus: Intel Corporation N10/ICH 7 Family SMBus Controller (rev 02)
01:00.0 Ethernet controller: Atheros Communications AR8152 v2.0 Fast Ethernet (rev c1)
02:00.0 Network controller: Atheros Communications Inc. AR9285 Wireless Network Adapter (PCI-Express) (rev 01)


Downsized a bit this way, at least. Also, this is where I bought it - and it was this week, so all info should be up to date.

Here (http://www.komputronik.pl/product/134744/Laptopy/Netbooki_netbooki/mini_laptopy_/Asus_Eee_PC_1001PXD_czarny_no_os_2_GB.html)

You can also have, for reference...

the Old Machine's Speccy output, which is an easy but Windows-only way to get hardware data AFAIK (http://img.ie/27cca.png)
and what the old and new look side to side (http://img.ie/0b976.jpg)

The one to the left is the one I'm typing from, as you can tell from the open... this page. The one to the right has run Touhou before, despite its hardware being about as crap as this one's. So, it must be my fault, for using Linux or not being able to use it right...
...and, if the latter, tas-ke-te
Title: Re: Touhou on Linux and MacOS X, using Wine or Virtualization
Post by: Momiji on October 15, 2011, 04:13:29 PM
Your EeePC also has an Atom N455, which is a very slow CPU.  And the CPU is definitely important since those Intel graphics chips don't do much actual 3D graphics in hardware.  That's why your older computer might run the games fine, it has a regular CPU that's much faster than the Atom (even at the same clock speed).

Your best bet if you're trying to shoehorn any sort of videogame into an Atom system is to get one with the Nvidia Ion2 chipset, which includes actual Geforce graphics hardware.
Title: Re: Touhou on Linux and MacOS X, using Wine or Virtualization
Post by: Minnakht on October 15, 2011, 04:48:31 PM
In other words, it can be only two out of three - very portable, cheap, and capable of running even the low-requirements games. Okay.

Oh well. At least I still have my big rig, which should be able to run just about every game. And SA works there just fine.
Thanks for your advice, though!
...now, should I stick around and check the forum out, or just depart as an one-timer...
Title: Re: Touhou on Linux and MacOS X, using Wine or Virtualization
Post by: unupeoky on November 01, 2011, 11:09:24 PM
Has anyone gotten Koumajou Densetsu II: Stranger's Requiem to work under Wine? It just hangs at 100% CPU on startup for me.
Title: Re: Touhou on Linux and MacOS X, using Wine or Virtualization
Post by: Agent of the BSoD on November 15, 2011, 10:14:25 AM
So, uh, this is very weird. The only Touhou I've tested Wine (using mac ports) on Lion here is Touhou 6. It's been running fine in the past, but today, out of nowhere, it's just a black screen, while the rest of the game is running fine; sound, input. However, if I choose to make it windowed, it runs fine. (although, since I tested that as I'm writing this, the menu is infinitely scrolling up, and I can't stop it :V, I've had that happen only once back on my Win98.... actually, I can't do anything at all, awesome) I've tried completely uninstalling wine and xquartz, removing the files in my library's cache and library folders, then redid the install, just like before, but the problem persists. I'm not really sure what to do now, and google isn't proving helpful with this in the slightest.

Also, it would be awesome if those darn black boxes around the font wasn't there, but I see that it's a general issue with wine and touhou.

Fake edit: There, restarted it to fix the infinite scrolling of doom. That was weird.

EDIT: So, after restarting Mac OS X, because wine apparently couldn't find allocated memory the server port: 0x0000044e (edited) so was totally useless, again, I was able to start up the game normally, and thought I was good. Then did it again, black screen was back. And now a new one: the splash screen is white sometimes, then after that, the game loads up normally. So now I'm even more lost as to what it's doing.

EDIT 2: (yet another one) Ok, so now it's starting to behave again, but still not what it used to be like. What's happening now is that the first load up fine, but each time after it is broken, but that's only if XQuartz is still open. If I close it out after the game, then immediately load back up touhou, it loads fine. It's odd, because it wasn't doing this earlier today, so I'm starting to think it's something with XQuartz handling it, if not, Wine's implementation of graphics.
Title: Re: Touhou on Linux and MacOS X, using Wine or Virtualization
Post by: Momiji on November 16, 2011, 05:37:22 AM
It could be OS X interfering with your graphics card and memory used by Wine.
Title: Re: Touhou on Linux and MacOS X, using Wine or Virtualization
Post by: andrzej on November 17, 2011, 03:57:31 PM
I tried to play touhou 12.3 on wine (linux ubuntu) but I have problem with control (selection in menu keeps going down in circles) and I can't do anything. I don't know how to disable direct input in touhou 12.3.  Please help.
Title: Re: Touhou on Linux and MacOS X, using Wine or Virtualization
Post by: Momiji on November 18, 2011, 03:50:18 AM
I've seen this before, especially on the older Win32 games.  Did you install wine1.2 or wine1.3?  You definitely want to try the development versions over the stable ones.
Title: Re: Touhou on Linux and MacOS X, using Wine or Virtualization
Post by: andrzej on November 18, 2011, 04:09:49 AM
I have wine 1.2.2-0ubuntu2-maverick2. So I need to install wine 1.3?
Title: Re: Touhou on Linux and MacOS X, using Wine or Virtualization
Post by: andrzej on November 18, 2011, 04:29:57 AM
I installed wine 1.3 but problem still appears.
Title: Re: Touhou on Linux and MacOS X, using Wine or Virtualization
Post by: _jade on December 14, 2011, 12:07:37 PM
Good day. I'm trying to run GFW on Mac under Parallels Desktop 7.0 and keep getting this error. I've looked into the properties of th128.cfg, it's not read-only, and disk is not full. Though somehow when i'm trying to uncheck the readonly property of GFW folder (there's not a checkmark, but a filled square), and then reenter the properties, it is marked again. But i'm not sure this has something to do with the problem.
So, what could that be?
http://i.imgur.com/WUdR7.png
Title: Re: Touhou on Linux and MacOS X, using Wine or Virtualization
Post by: Momiji on December 14, 2011, 08:39:20 PM
For Vista/Win7, try running it as administrator.
Title: Re: Touhou on Linux and MacOS X, using Wine or Virtualization
Post by: _jade on December 14, 2011, 08:52:27 PM
Hmmm... strange. I am the only user and have administrator rights, as i remember. Well anyway i'll look into it again tomorrow. Thanks for response!
(oh yeah, win7)
Title: Re: Touhou on Linux and MacOS X, using Wine or Virtualization
Post by: _jade on December 15, 2011, 10:12:15 AM
So yeah, i am actually the only user ? the administrator. But the strange thing that it doesn't let me in some folders anyway, for example like this (http://i.imgur.com/QSPec.png ? it says "access denied"), though i am marked as the only user and the owner of rights etc. Is there anything i am missing?
Yeah and also should have looked in win7 topic, now i see there was a similar problem, though it didn't help.
Title: Re: Touhou on Linux and MacOS X, using Wine or Virtualization
Post by: Momiji on December 15, 2011, 12:31:48 PM
Hmmm, yeah there's definitely an issue.  You may want to try creating a new user account for yourself, with full admin rights, and moving to that instead.
Title: Re: Touhou on Linux and MacOS X, using Wine or Virtualization
Post by: _jade on December 15, 2011, 01:08:49 PM
Hmmm, yeah there's definitely an issue.  You may want to try creating a new user account for yourself, with full admin rights, and moving to that instead.
It worked! I created a new user with admin rights and now it runs without any problems. Thank you very much, Momiji!
Title: Re: Touhou on Linux and MacOS X, using Wine or Virtualization
Post by: Momiji on December 15, 2011, 01:26:18 PM
Awesome, glad it worked.  <3
Title: Re: Touhou on Linux and MacOS X, using Wine or Virtualization
Post by: Agent of the BSoD on July 30, 2012, 05:08:02 AM
So, as of the development version of Wine (1.5.9), there have been some tweaks of using XRandr that hurt for Mac OS X users. Because of this, any games using fullscreen mode won't work (or some might just open windowed instead). A fix you can use for this is
Code: [Select]
xrandr
Simply type that out, in which it should spit out a list of resolutions that you can ignore, then for the next command, launch Touhou like normal, but don't close out XQuartz in between commands or else it won't work.
Pretty much what Wine is doing is using the new XRandr 1.2 and 1.3, and not using XRandr 1.1, which allows for resolution adjusting, so we're forcing it to use it. (not sure how that command is doing it but I know it works from repeated tests and different games) I don't know if Linux users are suffering from this bug, however, as I do not own a Linux dedicated machine.
Title: Re: Touhou on Linux and MacOS X, using Wine or Virtualization
Post by: Reyold on October 03, 2012, 08:15:42 PM
I'm told by the Touhou Wiki that I can run the game just by having Wine and X11 (both of which I have). When I run it, it opens a window, but an error message also pops up, and it's entirely in gibberish. Am I doing something wrong?
Title: Re: Touhou on Linux and MacOS X, using Wine or Virtualization
Post by: Momiji on October 04, 2012, 12:47:57 AM
Have you tried running it from the terminal?  Try doing so, and pastebin the logs.
Title: Re: Touhou on Linux and MacOS X, using Wine or Virtualization
Post by: Reyold on October 04, 2012, 01:53:27 AM
Have you tried running it from the terminal?  Try doing so, and pastebin the logs.

I... what?  ???

Sorry, I'm not too proficient with computer terminology. You may have to dumb it down for me.  :derp:
Title: Re: Touhou on Linux and MacOS X, using Wine or Virtualization
Post by: Momiji on October 04, 2012, 03:39:00 AM
Ok, uhm.  I assume you installed Wine via Macports, like in the howto (http://davidbaumgold.com/tutorials/wine-mac/) from above? 
Title: Re: Touhou on Linux and MacOS X, using Wine or Virtualization
Post by: Reyold on October 04, 2012, 05:24:10 AM
Ok, uhm.  I assume you installed Wine via Macports, like in the howto (http://davidbaumgold.com/tutorials/wine-mac/) from above?

Touhou Wiki provided a link to download Winebottler; that's where I got it from. X11 came with the Mac already conveniently enough.

I don't know if it helps, but I can play two other games (Iji and I Wanna Be The Guy) just fine on. It's Touhou 6 and 7 (EoSD and PCB) that are giving me trouble.
Title: Re: Touhou on Linux and MacOS X, using Wine or Virtualization
Post by: Momiji on October 04, 2012, 06:17:48 AM
The important thing about the Wine-via-MacPorts guide is it has a nice explanation on using the terminal here (http://www.davidbaumgold.com/tutorials/command-line/).  It's important to know the basics of the Unix shell for troubleshooting stuff with Wine.

Anyway, once you understand that, navigate to the folder of your Touhou game of choice (for example, PCB) and run it with Wine, like such:
$ wine th07.exe
You may or may not get a lot of stuff popping up in the terminal while running the game.  If there's anything at all, post it on Pastebin (http://pastebin.com/) and post the link here.

Also, do:
$ wine --version
in your terminal and post the output here.
Title: Re: Touhou on Linux and MacOS X, using Wine or Virtualization
Post by: Reyold on October 04, 2012, 07:15:06 PM
The important thing about the Wine-via-MacPorts guide is it has a nice explanation on using the terminal here (http://www.davidbaumgold.com/tutorials/command-line/).  It's important to know the basics of the Unix shell for troubleshooting stuff with Wine.

Anyway, once you understand that, navigate to the folder of your Touhou game of choice (for example, PCB) and run it with Wine, like such:
$ wine th07.exe
You may or may not get a lot of stuff popping up in the terminal while running the game.  If there's anything at all, post it on Pastebin (http://pastebin.com/) and post the link here.

Also, do:
$ wine --version
in your terminal and post the output here.

I tried putting the first thing in the terminal. "Command not found" it said.
Title: Re: Touhou on Linux and MacOS X, using Wine or Virtualization
Post by: Agent of the BSoD on October 04, 2012, 10:03:19 PM
I tried putting the first thing in the terminal. "Command not found" it said.
Are you typing in the $? Because you don't type that. Just type what comes after it.
Title: Re: Touhou on Linux and MacOS X, using Wine or Virtualization
Post by: Reyold on October 04, 2012, 11:09:27 PM
Are you typing in the $? Because you don't type that. Just type what comes after it.

No, I left it out.

I wonder why the other games work, but Touhou doesn't.
Title: Re: Touhou on Linux and MacOS X, using Wine or Virtualization
Post by: Tengukami on October 04, 2012, 11:20:47 PM
If the command wasn't found, it means you don't have the package. So you need to get wine first.
Title: Re: Touhou on Linux and MacOS X, using Wine or Virtualization
Post by: Reyold on October 04, 2012, 11:25:25 PM
If the command wasn't found, it means you don't have the package. So you need to get wine first.

Thing is, I already had Wine. I wish it was that simple, though.
Title: Re: Touhou on Linux and MacOS X, using Wine or Virtualization
Post by: Agent of the BSoD on October 05, 2012, 02:05:10 AM
Installing Winebottler doesn't install wine. You need to install Macports, then install wine with that.
Title: Re: Touhou on Linux and MacOS X, using Wine or Virtualization
Post by: Reyold on October 05, 2012, 10:59:12 PM
Installing Winebottler doesn't install wine. You need to install Macports, then install wine with that.

Well, I took a look at Macports, and apparently, I need to download Xcode and Command Line developer tools to run it. So that's two programs I have to install to install another program to run a game.

Good grief.

Is there a way that doesn't involve downloading stuff I probably won't need for anything else?
Title: Re: Touhou on Linux and MacOS X, using Wine or Virtualization
Post by: Agent of the BSoD on October 05, 2012, 11:21:38 PM
Not really. Winebottler was one option, which you've already tried. Plus, if you install wine with macports, then you can actually get the dev build of wine, which is more recent than the stable one, and get updates more frequently. It's better to go that route, and the page that shows steps to download wine will have you install the stable one. So you'll have to tell it to get the development one instead.

You do need xCode, but it should be on your install CD if you have it. Since I see you running SL, the CD is the way to go. There is an App Store download for it, but I believe that it's for Lion users only. xCode is free anyway. Also, you don't want to use Apple's X11, it sucks for this. You want to download XQuartz instead.

EDIT: Seems I'm mistaken. xCode can be downloaded by your version. Also, not sure what you mean by command line tools.
Title: Re: Touhou on Linux and MacOS X, using Wine or Virtualization
Post by: xForeverFanaticx on October 06, 2012, 01:48:23 PM
Was wondering:

-Does Danmakufu (0.12m) work with Wineskin? I'm guessing not.
-Anybody know how to make a working wrapper for ph3?
-I was skimming the thread and noticed someone mention that the scripts aren't being read? Is there a fix to this?
Title: Re: Touhou on Linux and MacOS X, using Wine or Virtualization
Post by: Arcorann on October 06, 2012, 11:48:55 PM
Was wondering:

-Does Danmakufu (0.12m) work with Wineskin? I'm guessing not.
-Anybody know how to make a working wrapper for ph3?
-I was skimming the thread and noticed someone mention that the scripts aren't being read? Is there a fix to this?
1. Not to my knowledge.
2. Same as the regular Touhou games.
3. Make sure to run in Japanese locale. If it doesn't work check to make sure you have Japanese locale files installed.

Speaking of which, when I run ph3 in Ubuntu 12.04 the font size is a lot smaller than in Vista (dual-booting on the same computer), to the point where when selecting a replay the text is almost unreadable. Has anyone else experienced this problem?
Title: Re: Touhou on Linux and MacOS X, using Wine or Virtualization
Post by: Sparen on November 04, 2012, 02:03:23 PM
Well, I took a look at Macports, and apparently, I need to download Xcode and Command Line developer tools to run it. So that's two programs I have to install to install another program to run a game.

The Command Line Tools are not an application. As for XCode, it is necessary, and it is over one Gigabyte is size (absurd download and install time). However, Macports is the preferred way to run wine on a mac. It will also allow you to get GIMP and other apps with ease (and thtk, all of the free libraries, and a lot of other command line apps). As for Xcode, it allows you to open pretty much any property list, language script, etc so it is useful if you want to make or read executables in different languages, but besides that, it won't be of much use.

If you seriously want to run Touhou games on a mac, however, MacPorts is still a pretty good choice (WineBottler's Wine is never up to date).
Title: Re: Touhou on Linux and MacOS X, using Wine or Virtualization
Post by: Killomatik on February 11, 2013, 11:52:28 AM
Does anyone know how to translate the "portable" scripts for the later games, like
Code: [Select]
@echo off
md "%CD%\user"
set "APPDATA=%CD%\user"
start th128
to something that can be executed in bash?
The wine documentation suggests setting variables with
Code: [Select]
export APPDATA=%CD%\user, but that doesn't seem to change the profile location, or else I'm not doing it right.
Title: Re: Touhou on Linux and MacOS X, using Wine or Virtualization
Post by: Killomatik on February 13, 2013, 03:20:08 PM
Never mind, apparently wine can execute bat files, if you run them with wine start.

On an unrelated note, the main translated dialogue font (THSpatial.ttf) in games 10 and after looks badly aliased in wine. Is it like that for everyone or just me?
Title: Re: Touhou on Linux and MacOS X, using Wine or Virtualization
Post by: Sparen on February 13, 2013, 10:22:20 PM
Never mind, apparently wine can execute bat files, if you run them with wine start.

On an unrelated note, the main translated dialogue font (THSpatial.ttf) in games 10 and after looks badly aliased in wine. Is it like that for everyone or just me?

It worked well last time I checked (Wine 1.5.20, maybe?)
Title: Re: Touhou on Linux and MacOS X, using Wine or Virtualization
Post by: Tengukami on February 13, 2013, 10:42:51 PM
Also not an issue with 1.5.19.
Title: Re: Touhou on Linux and MacOS X, using Wine or Virtualization
Post by: Killomatik on February 17, 2013, 12:38:43 AM
Here's a screenshot demonstrating my issue.

(http://i45.tinypic.com/v2ycxw.jpg)
Left side is a virtual machine with Windows 7, right side is in Ubuntu 12.10 (64-bit) with the latest wine development release. It looks worse in some of the other games. It seems it's not a problem with the wine version or the fonts installed with it, since it's exactly the same after a clean Ubuntu install with an unconfigured stable (1.4.1) wine package. Do you need to modify any of the default settings?
Title: Re: Touhou on Linux and MacOS X, using Wine or Virtualization
Post by: marukyuu on March 02, 2013, 05:51:07 PM
After a clean reinstall of Sabayon Linux, none of the Windows Touhou games runs at full 60 FPS anymore via Wine.
My PC is a three years old laptop w/ Core 2 Duo T6600 @ 2.2 GHz, 4 GB RAM, GeForce GT 240M. It might be dated hardware, but it was capable of running the games at full FPS on my previous Sabayon installation.

Fullscreen mode is unplayable due to massive FPS drops; windowed mode runs at 40 FPS on average (EoSD and PCB run at 50 FPS).
Both the Vsync Patches and the "unpatched" executables perform as stated above.
Disabling desktop effects has no impact on the framerates.
Video drivers and Wine are up-to-date.

Is there anything I can do in order to make Touhou run smoothly again?
Thanks in advance for the help.
Title: Re: Touhou on Linux and MacOS X, using Wine or Virtualization
Post by: Sparen on March 02, 2013, 06:06:06 PM
After a clean reinstall of Sabayon Linux, none of the Windows Touhou games runs at full 60 FPS anymore via Wine.
My PC is a three years old laptop w/ Core 2 Duo T6600 @ 2.2 GHz, 4 GB RAM, GeForce GT 240M. It might be dated hardware, but it was capable of running the games at full FPS on my previous Sabayon installation.

Fullscreen mode is unplayable due to massive FPS drops; windowed mode runs at 40 FPS on average (EoSD and PCB run at 50 FPS).
Both the Vsync Patches and the "unpatched" executables perform as stated above.
Disabling desktop effects has no impact on the framerates.
Video drivers and Wine are up-to-date.

Is there anything I can do in order to make Touhou run smoothly again?
Thanks in advance for the help.

Wine Version?

Also, I can't really help b/c I don't use Linux, but if you post the Wine version, I'll check to see if I have had the same problem.
Title: Re: Touhou on Linux and MacOS X, using Wine or Virtualization
Post by: Tengukami on March 02, 2013, 06:28:35 PM


Sabayon is Gentoo-based, I see, but does provide proprietary drivers for graphics cards. Have you tried different drivers? What version of Wine do you use?

I'm running Crunchbang Linux using Wine 1.4.1 and have no issues with any Touhou game.
Title: Re: Touhou on Linux and MacOS X, using Wine or Virtualization
Post by: marukyuu on March 03, 2013, 08:28:32 PM
I'm using Wine 1.5.23.
As for the GPU drivers (Nvidia Drivers v. 313.18), I'm suspecting they're the cause of the slowdowns. I'll try downgrading them and see what happens.
Thanks again for the help.

E: Downgrading the drivers did nothing.
Title: Re: Touhou on Linux and MacOS X, using Wine or Virtualization
Post by: UnGamerChico on August 02, 2013, 04:11:46 AM
Hi.
I found a "Wineskin" for EoSD.
A Wineskin is a program you can use to run an original .exe file. Or something like that. XD
Here is the link for the Wineskin: http://portingteam.com/files/file/7084-touhou-6-koumakyou-the-embodiment-of-scarlet-devil/
Also, i found a Wineskin for 1 - 5 of  the Touhou games: http://portingteam.com/index.php/files/file/7083-touhous-1-5/
And the 10th one: http://portingteam.com/files/file/2153-touhou-10-fuujinroku-mountain-of-faith/

INSTRUCTIONS:
1: Open the Wineskin of the game you want.
2: Click Install Software. It should open a window with your files.
3: Find the original .exe file for the game, highlight it, and click Choose.
The game should open in a few seconds.

Hope it helps! :3
Title: Re: Touhou on Linux and MacOS X, using Wine or Virtualization
Post by: cb5 on November 28, 2013, 12:39:07 AM
New to the forum and new to the games; and I just have a general question.  I can't seem to save replays using wine.  Anyone else have this problem?  Also I have a second mini-laptop, but it can only run the games at 30 fps; is there a way to speed it up the framerate?
Title: Re: Touhou on Linux and MacOS X, using Wine or Virtualization
Post by: Sparen on November 28, 2013, 03:25:59 AM
New to the forum and new to the games; and I just have a general question.  I can't seem to save replays using wine.  Anyone else have this problem?  Also I have a second mini-laptop, but it can only run the games at 30 fps; is there a way to speed it up the framerate?

Which version of Wine? (IMPORTANT)
Which games+version in question? (INPORTANT)
Which OS are you running? (IMPORTANT)
How much RAM do you have?
What's the speed of your processor?
Title: Re: Touhou on Linux and MacOS X, using Wine or Virtualization
Post by: Necrotek on November 28, 2013, 07:26:00 AM
I can't seem to save replays using wine.  Anyone else have this problem?  Also I have a second mini-laptop, but it can only run the games at 30 fps; is there a way to speed it up the framerate?
You mean, you have two computers, one of them with Linux and plays touhou games with wine, and another computer with windows which is quite slow, and both of them not capable to run the games with 60 FPS, right?
Title: Re: Touhou on Linux and MacOS X, using Wine or Virtualization
Post by: cb5 on November 28, 2013, 05:32:20 PM
Which version of Wine? (IMPORTANT)
Which games+version in question? (INPORTANT)
Which OS are you running? (IMPORTANT)
How much RAM do you have?
What's the speed of your processor?
Wine is 1.4
Ubuntu.
3.5 gb
3.1 ghz

Wait, I think I just found out the problem with my desktop.  According to this it's cause of my nvidia driver.
http://en.touhouwiki.net/wiki/Running_in_Linux
But the problem is my config file doesn't have a monitor section.  I think my video driver messed up again with the latest update. . . Great; that's going to be all kinds of fun to fix.

Yeah that's pretty much it.  I updated my driver to 331 and works now.  Pretty much just the video driver was the problem.
You mean, you have two computers, one of them with Linux and plays touhou games with wine, and another computer with windows which is quite slow, and both of them not capable to run the games with 60 FPS, right?
I have two linux computers, both using wine.  My desktop runs at 60 fps; my laptop at 30 fps.
Title: Re: Touhou on Linux and MacOS X, using Wine or Virtualization
Post by: Necrotek on November 28, 2013, 06:38:30 PM
Ah, I see. I got your words in a wrong way.
But how exactly "it doesn't save replays"? When you're suggested to save a replay and you accept it, in the end the replay just isn't created? Or it has some error message?
Title: Re: Touhou on Linux and MacOS X, using Wine or Virtualization
Post by: cb5 on November 28, 2013, 11:13:11 PM
Ah, I see. I got your words in a wrong way.
But how exactly "it doesn't save replays"? When you're suggested to save a replay and you accept it, in the end the replay just isn't created? Or it has some error message?
The replay button was greyed out and couldn't be clicked.  I don't know what was causing my video driver to do that, but as soon as I updated to it worked.
Title: Re: Touhou on Linux and MacOS X, using Wine or Virtualization
Post by: Phoenix_lostarr on December 10, 2013, 06:47:20 PM
Okay so

PCB seems to have the down arrow key stuck on, it's continually cycling through the main menu.

TH11-14 are all running at about 10 FPS.

How can I alleviate these problems?
Title: Re: Touhou on Linux and MacOS X, using Wine or Virtualization
Post by: Sparen on December 10, 2013, 11:33:17 PM
Okay so

PCB seems to have the down arrow key stuck on, it's continually cycling through the main menu.

TH11-14 are all running at about 10 FPS.

How can I alleviate these problems?

Uh... which version of wine? And what's your OS?
Also, which version of PCB do you have? Clicking off the window and then back onto it in older versions of Wine results in the player moving forever in the direction of the last key pressed. It might be old version specific, or it might not be.
Title: Re: Touhou on Linux and MacOS X, using Wine or Virtualization
Post by: Necrotek on December 11, 2013, 12:01:09 AM
And what are the specs of your PC? Probably it's just not enough good for them (Wine requires a little bit more resources for Touhou games than playing them natively under Windows). Second option is that you use old Wine or/and video drivers, it happens.
Title: Re: Touhou on Linux and MacOS X, using Wine or Virtualization
Post by: LadyScarlet on December 18, 2013, 01:14:51 AM
I'm trying to run Shoot the Bullet on Linux Mint in VirtualBox. I get an error when I try to boot it up saying I need Direct3D. How do I get this?
Title: Re: Touhou on Linux and MacOS X, using Wine or Virtualization
Post by: Tengukami on December 18, 2013, 01:33:08 AM
I'm trying to run Shoot the Bullet on Linux Mint in VirtualBox. I get an error when I try to boot it up saying I need Direct3D. How do I get this?
This site (http://www.virtualbox.org/manual/ch12.html#ts_d3d8-d3d9-restore) may have the solution.
Title: Re: Touhou on Linux and MacOS X, using Wine or Virtualization
Post by: NukeBird on April 05, 2018, 05:49:53 PM
I don?t know if this thread is still used?? Anyway, here?s my issue:

I used to run Touhou games with Winebottler on Mac (OS X El Capitan) without a hitch. However, since I upgraded to High Sierra, a few of my games have had framerate issues, namely Touhou 11, 12, 12.5, 12.8 and 13. No matter where in the game, the FPS drops to 40-ish every few seconds, rendering the games unplayable. Every other Touhou runs just fine, it?s just these five. I know my computer is perfectly able to run these games (since they used to be fine on El Capitan) and I?m really not sure how to go about fixing this issue.

Current version of macOS: 10.13.4 (latest)
Current version of Winebottler: 1.6.1 (latest)

Also, I tried to run the games with plain old Wine, but I?m not tech-savvy and can?t get the games to work at all. All the tutorials out there seem to skip very important steps or assume you already know what you?re doing.

Thanks for the help and let me know if you need more details.
Title: Re: Touhou on Linux and MacOS X, using Wine or Virtualization
Post by: Sparen on April 08, 2018, 03:40:17 AM
I don?t know if this thread is still used?? Anyway, here?s my issue:

I used to run Touhou games with Winebottler on Mac (OS X El Capitan) without a hitch. However, since I upgraded to High Sierra, a few of my games have had framerate issues, namely Touhou 11, 12, 12.5, 12.8 and 13. No matter where in the game, the FPS drops to 40-ish every few seconds, rendering the games unplayable. Every other Touhou runs just fine, it?s just these five. I know my computer is perfectly able to run these games (since they used to be fine on El Capitan) and I?m really not sure how to go about fixing this issue.

Current version of macOS: 10.13.4 (latest)
Current version of Winebottler: 1.6.1 (latest)

Also, I tried to run the games with plain old Wine, but I?m not tech-savvy and can?t get the games to work at all. All the tutorials out there seem to skip very important steps or assume you already know what you?re doing.

Thanks for the help and let me know if you need more details.

The current version of Wine is 3.5 and WineBottler has (afaik) not been supported for many years. 1.6.1 was released 5 years ago and Wine has progressed *significantly* since then.

What I currently do is as follows:

1. Download the official distribution from https://dl.winehq.org/wine-builds/macosx/download.html (I am a dev release maintainer for the project so I typically download the latest development tarball)
2. If using the tarball, unzip somewhere (I suggest your Desktop for the time being). In the newly created usr/ folder there will be bin/wine. This is the executable.
3. In your Terminal, first cd to the directory with the .exe file. Then run the following:
LANG="ja_JP" ~/Desktop/usr/bin/wine th06e.exe
where the executable is the relevant executable.

I personally rename the unarchived usr directory to 'wine' and move it into my hard drive under my user profile. This allows me to do the following:
Code: [Select]
cd ~/Desktop/Touhou\ Windows/Touhou\ 8\ -\ Imperishable\ Night
~/wine/bin/wine th08.exe

In this example I cd (change directory) to the folder where IN's executable is located. Then I run wine (located in ~/wine/bin/wine as noted above) and choose th08.exe as the executable to run. ~ refers to your user directory, where Documents, Desktop, etc. are located.

My directions probably aren't the best, but if this helps you any, I'm glad to be of service.

--Sparen

~~~

Edit: Whoa that was one heck of a necropost. Doesn't help that the person who created this thread has been banned for years and obviously can't edit the opening post to provide more up-to-date information.
Title: Re: Touhou on Linux and MacOS X, using Wine or Virtualization
Post by: NukeBird on April 11, 2018, 10:27:44 PM
The current version of Wine is 3.5 and WineBottler has (afaik) not been supported for many years. 1.6.1 was released 5 years ago and Wine has progressed *significantly* since then.

What I currently do is as follows:

1. Download the official distribution from https://dl.winehq.org/wine-builds/macosx/download.html (I am a dev release maintainer for the project so I typically download the latest development tarball)
2. If using the tarball, unzip somewhere (I suggest your Desktop for the time being). In the newly created usr/ folder there will be bin/wine. This is the executable.
3. In your Terminal, first cd to the directory with the .exe file. Then run the following:
LANG="ja_JP" ~/Desktop/usr/bin/wine th06e.exe
where the executable is the relevant executable.

I personally rename the unarchived usr directory to 'wine' and move it into my hard drive under my user profile. This allows me to do the following:
Code: [Select]
cd ~/Desktop/Touhou\ Windows/Touhou\ 8\ -\ Imperishable\ Night
~/wine/bin/wine th08.exe

In this example I cd (change directory) to the folder where IN's executable is located. Then I run wine (located in ~/wine/bin/wine as noted above) and choose th08.exe as the executable to run. ~ refers to your user directory, where Documents, Desktop, etc. are located.

My directions probably aren't the best, but if this helps you any, I'm glad to be of service.

--Sparen

~~~

Edit: Whoa that was one heck of a necropost. Doesn't help that the person who created this thread has been banned for years and obviously can't edit the opening post to provide more up-to-date information.
Thank you for helping me! Yeah, I didn?t really know if I should resurrect this thread or make another, but hey, it?s still on topic I guess?

So here?s exactly what I did, following your instructions:


So yeah? I?m kind of at a loss. Upon starting the game with Terminal though, a ton of error messages popped up:

Code: [Select]
MacBook-Air-2:~ user$ cd /Users/user/Games/Touhou/"Touhou 11 - Subterranean Animism"
MacBook-Air-2:Touhou 11 - Subterranean Animism user$ LANG="ja_JP" ~/Desktop/usr/bin/wine "th11e.exe"
wine: created the configuration directory '/Users/user/.wine'
0012:err:ole:marshal_object couldn't get IPSFactory buffer for interface {00000131-0000-0000-c000-000000000046}
0012:err:ole:marshal_object couldn't get IPSFactory buffer for interface {6d5140c1-7436-11ce-8034-00aa006009fa}
0012:err:ole:StdMarshalImpl_MarshalInterface Failed to create ifstub, hres=0x80004002
0012:err:ole:CoMarshalInterface Failed to marshal the interface {6d5140c1-7436-11ce-8034-00aa006009fa}, 80004002
0012:err:ole:get_local_server_stream Failed: 80004002
0014:err:ole:marshal_object couldn't get IPSFactory buffer for interface {00000131-0000-0000-c000-000000000046}
0014:err:ole:marshal_object couldn't get IPSFactory buffer for interface {6d5140c1-7436-11ce-8034-00aa006009fa}
0014:err:ole:StdMarshalImpl_MarshalInterface Failed to create ifstub, hres=0x80004002
0014:err:ole:CoMarshalInterface Failed to marshal the interface {6d5140c1-7436-11ce-8034-00aa006009fa}, 80004002
0014:err:ole:get_local_server_stream Failed: 80004002
0017:fixme:ntdll:NtLockFile I/O completion on lock not implemented yet
0017:err:mscoree:LoadLibraryShim error reading registry key for installroot
0017:err:mscoree:LoadLibraryShim error reading registry key for installroot
0017:err:mscoree:LoadLibraryShim error reading registry key for installroot
0017:err:mscoree:LoadLibraryShim error reading registry key for installroot
0017:fixme:msi:internal_ui_handler internal UI not implemented for message 0x0b000000 (UI level = 1)
0017:fixme:msi:internal_ui_handler internal UI not implemented for message 0x0b000000 (UI level = 1)
001b:fixme:ntdll:NtLockFile I/O completion on lock not implemented yet
001b:fixme:msi:internal_ui_handler internal UI not implemented for message 0x0b000000 (UI level = 1)
001b:fixme:msi:internal_ui_handler internal UI not implemented for message 0x0b000000 (UI level = 1)
0010:err:winediag:SECUR32_initNTLMSP ntlm_auth was not found or is outdated. Make sure that ntlm_auth >= 3.0.25 is in your path. Usually, you can find it in the winbind package of your distribution.
0010:fixme:dwmapi:DwmIsCompositionEnabled 0x6d5d3018
001d:fixme:iphlpapi:NotifyIpInterfaceChange (family 0, callback 0x6a0cb608, context 0xa68808, init_notify 0, handle 0x12afce8): stub
0010:fixme:winsock:set_dont_fragment IP_DONTFRAGMENT for IPv4 not supported in this platform
wine: configuration in '/Users/user/.wine' has been updated.
MacBook-Air-2:Touhou 11 - Subterranean Animism user$ 0039:fixme:wininet:InternetSetOptionW Option 77 STUB
0039:fixme:winsock:set_dont_fragment IP_DONTFRAGMENT for IPv4 not supported in this platform
003e:fixme:msvcrt:__clean_type_info_names_internal (0x3eadd0) stub
003e:fixme:msvcrt:__clean_type_info_names_internal (0x3f5344) stub
003e:fixme:msvcrt:__clean_type_info_names_internal (0x3e7694) stub
003e:fixme:msvcrt:__clean_type_info_names_internal (0xa6add0) stub
003e:fixme:msvcrt:__clean_type_info_names_internal (0xa45344) stub
003e:fixme:msvcrt:__clean_type_info_names_internal (0x3ed358) stub
003d:fixme:win:WINNLSEnableIME hwnd 0x0 enable 1: stub!
003d:fixme:msvcrt:__clean_type_info_names_internal (0x3db4a0) stub
003d:fixme:msvcrt:__clean_type_info_names_internal (0xa45344) stub
003d:fixme:msvcrt:__clean_type_info_names_internal (0x1001c474) stub
003d:fixme:msvcrt:__clean_type_info_names_internal (0x3c0344) stub
003d:fixme:msvcrt:__clean_type_info_names_internal (0x3aa364) stub
003d:fixme:msvcrt:__clean_type_info_names_internal (0x39c450) stub
0043:fixme:msvcrt:__clean_type_info_names_internal (0x3eadd0) stub
0043:fixme:msvcrt:__clean_type_info_names_internal (0x3f5344) stub
0043:fixme:msvcrt:__clean_type_info_names_internal (0x3e7694) stub
0043:fixme:msvcrt:__clean_type_info_names_internal (0xa6add0) stub
0043:fixme:msvcrt:__clean_type_info_names_internal (0xa45344) stub
0043:fixme:msvcrt:__clean_type_info_names_internal (0x3ed358) stub
0042:fixme:win:EnumDisplayDevicesW ((null),0,0x33f8a8,0x00000000), stub!
0042:fixme:d3d:wined3d_get_adapter_raster_status wined3d 0xcc2548, adapter_idx 0, raster_status 0x33fd30 semi-stub!
0048:fixme:d3d_shader:print_glsl_info_log Info log received from GLSL shader #3:
0048:fixme:d3d_shader:print_glsl_info_log     WARNING: Could not find vertex shader attribute 'vs_in2' to match BindAttributeLocation request.

Any idea what to do to fix this? Once again, thank you very much for taking the time to help. Your instructions were easy to follow, don?t worry!