Talk:Running in Linux and Mac OS X
Hello. I'm trying to run th06 and it's working well except the music isn't functioning. I'm sure I'm setting the options to play wave files, and I even have the wave files in the appropriate folder. I configured Wine to use OSS as the article suggested. "Test Sound" in Wine configuration seems to function... unless I'm running th06 at the time. However, sound effects such as bullets and bombs and what-not are functioning. Please advise; thank you.
- Make sure you applied all patches for th06 first.
--- Hello all. I was just wondering if this situation is the same in FreeBSD? I mean, does anyone have any experience trying to get Touhou to run in any FreeBSD(aka 6.2 REL or 7 CURRENT etc)?
Hi! I was wondering, I followed theese instructions and started compiling, and nearing the end, I got this error:
make: Entering directory `/home/greg/winex/dlls/kernel' LD_LIBRARY_PATH="../../unicode:$LD_LIBRARY_PATH" ../../tools/wmc/wmc -i -H /dev/null -o messages/winerr_enu.mc.rc messages/winerr_enu.mc LD_LIBRARY_PATH="../../unicode:$LD_LIBRARY_PATH" ../../tools/wrc/wrc -I. -I. -I../../include -I../../include -o kernel.res -r kernel.rc nls/jpn.nls:1:2179: Error: syntax error make: *** [kernel.res] Fel 1 make: Leaving directory `/home/greg/winex/dlls/kernel' make: *** [kernel/libkernel32.so] Fel 2 make: Leaving directory `/home/greg/winex/dlls' make: *** [dlls] Fel 2 Compilation failed, aborting install.
How can I solve this? Thanks! //Greg
Hetdegon: Seems like the lastest CVS is broken, if you check the CVS tree, it's months old. It's been abandoned, I think. WINE standard doesn't work AFAIK yet, at least 0.9.2, I have 0.9.4 but I had no time to check. However, seems like Shoot the Bullet does work.
Has anyone else followed these instructions, but then had glitches with the menu system disappearing, but the game being otherwise playable?
Touhou games almost work in recent versions of Wine, but severe texture corruption is caused by Bug 6976 http://bugs.winehq.org/show_bug.cgi?id=6976 If you think fixing this bug is important please get a Bugzilla account and vote for it. The hack mentioned in comment 6 fixes the first level of PCB, but not the 2nd.
- This bug is now fixed, see comment 9. 184.108.40.206 16:06, 16 September 2007 (PDT)
- 1 Thanks for the rewrite
- 2 all of the Touhou games run nearly flawlessly in Linux
- 3 Touhou games won't run in Wine here
- 4 PC98 emulator for Linux
- 5 Text unreadable in MoF, TH11
- 6 SWR in Linux
- 7 Mac
- 8 WinE 1
- 9 Subterranean Animism
- 10 My Experiences:
- 11 Another possible solution
- 12 Update from my sm.org Wine thread
- 13 Possible Solution for Running Hopeless Maquerade
Thanks for the rewrite
Thanks to ExodusC, even relative Linux noobs like me can get Touhou games to run. The old guide didn't exactly fill me with confidence, with its comments like "Now you hopefully have something not entirely dissimilar to a working game that doesn't crash, freeze, or otherwise bug out for no reason." 220.127.116.11 16:00, 16 September 2007 (PDT)
I'm getting some weirdness with Shoot The Bullet. Basically, the photos don't show up - not in the levels, not at the level select. I'm trying to grab someone else's best shot files to try to find the problem, but can anyone replicate this? 18.104.22.168 00:41, 4 October 2007 (PDT)
- I finally got around to messing around with this on Windows. My best shot files show up black; shots taken under Windows display fine under Wine. So, there's something wine doesn't like with the way STB does its screen grabs.
- That wasn't so bad. To make photos work comment out line 2116 (or 2113-2117 to shut up the error too) in wine-0.9.48/dlls/wined3d/surface.c and rebuild. According to the comments that file STB is doing something it shouldn't (using a scratch texture as a render target) and under Windows it just works. Somehow I don't think the Wine maintainers will want this in the main tree. For other versions of wine search for WINED3DPOOL_SCRATCH and comment out the return statement or the whole if block.
And another thing, Embodiment of Scarlet Devil runs at ~500fps, even if I try to make it run at 60fps using the config program. Again, anybody else seeing this?
- I can confirm this with wine 0.9.46 on fedora 7. 22.214.171.124 19:10, 17 October 2007 (PDT)
- For EoSD, you can run it in a window, and change your screen resolution to whatever your window size is (or just play it in a window and leave it at that). If you are using a good WM without much window decoration (1 pixel borders here), it'll work fine. 126.96.36.199 01:19, 21 October 2007 (PDT)
- This works at first, but after a level or two the game logic gets out of sync with the display and things get very choppy. Fixable by pausing and resuming, but that is too annoying for a practical solution.
- I also experienced this. Not much of a problem unless you get thousands of fps, which i did with an 8800gt making the game unplayable. The solution is to sync opengl to vblank; this option appears in the nvidia driver settings. You could also set to 1 the env variable __GL_SYNC_TO_VBLANK, example to run the game: __GL_SYNC_TO_VBLANK=1 wine 102h.exe Artemis3 22:53, 17 January 2008 (PST)
- This of course relies on a 60Hz display, so it's not acceptable for CRTs.
This is not working for me. No matter what my refresh rate is, EOSD tells me it's running at 85fps and the cursor constantly moves up. I have not seen this problem with the cursor reported anywhere else, and I have no such problem with other games. So I'm at a loss. I'm running Wine wine-1.1.39. Is anyone else experiencing the same issues? 188.8.131.52 01:13, May 2, 2010 (UTC)
all of the Touhou games run nearly flawlessly in Linux
I tested with Ubuntu 7.04 using wine 0.9.45 from getdeb.net and th6, th7, th8 work fine. However, th9 loads, but crashes if you try to play or wait for the demo to load. Using nvidia driver with a gforce2 64MiB Ram, wine set to w2k.
- I can confirm that th9 is broken. 184.108.40.206 19:10, 17 October 2007 (PDT)
- Try entering the options menu before playing, makes the game work for me (although it sometimes crashes on level change). 220.127.116.11 08:07, 22 December 2007 (PST)
- It is now working fine with wine 0.9.53, thanks! Artemis3 22:37, 17 January 2008 (PST)
Touhou games won't run in Wine here
While others are enjoying their Touhou games with Wine, I'm left out. Every Touhou game crashes when I try to launch them, and this happens on both my Dell laptop and my newly built desktop. EoSD, however, runs pretty much perfectly, but only when using the English patched version. The original won't launch, just like the rest of the games. The same thing happens to me in Windows, but not when I use AppLocale, so I assume this is a problem with encodings. Am I the only one experiencing this? --keito 10:21, 24 January 2008 (PST)
- Try launching with LANG=ja_JP so at least we can read the error message. The game might run as well. 18.104.22.168 03:22, 12 February 2008 (PST)
PC98 emulator for Linux
Xnp2 (Neko Project 2) is a PC98 emulator that runs in Linux. There are native Windows, Linux and MacOS versions. You'll have to build the Linux version from the source though. It works a bit worse than the Windows version (more graphical glitches and CPU load is higher), but the overall quality is very good.
- I haven't been able to run any of the Touhou games on this emulator. The Highly Responsive to Prayers starts, but dumps me to an A> prompt. Mystic Square just shows me 3 lines of red '~'. The other games have other strange problems. These same .hdi images all worked in t98-next under wine.
- Is there any configuration I need to do to get these to work?
- Just use Anex86 in Wine, works just fine. Need a decent machine though, but any machine within the last 2-3 years should be fine. 22.214.171.124 22:21, November 25, 2009 (UTC)
Text unreadable in MoF, TH11
Is there anyone more that has had problems with dialogue text in Mountain of Faith and Subterranean Animism being nearly impossible to read? Is there an easy walkaround that I have missed, or is it time to file a bug report? On my system (Ubuntu 8.04, wine 1.0rc2) text looks like below when playing. Tyle 12:31, 27 May 2008 (PDT)
- Confirmed: running MoF on Kubuntu 8.04 (Wine 1.1.3) gives me the same problem, though I forget if it's any better when you run it natively. --TCK 03:53, 28 August 2008 (UTC)
SWR in Linux
Has anyone gotten Scarlet Weather Rhapsody to work at all in Linux? Running Ubuntu 8.04, Wine 0.9.59, and all I get is a black screen. Can't find any other info through google, either.
- There is a bug report on it in winehq. SWR AppDB entry. This is probably related to bug 13297 affecting for example PatchCon. In contrast to MoF, PatchCon and SWR are not runnable with a native d3dx9_36.dll. For now there seems to be nothing to do but vote for the bugs, and hope that a kind developer eventually fixes them. Tyle 15:33, 31 May 2008 (PDT)
Well I've been messing around with Embodiment of Scarlet Devil in CrossOver games and seems to run well with the same usual problems like the black boxes behind text and it not respecting the 60FPS limiter in full screen. I was wondering if anyone had tested it in Darwine and if anyone was willing to make a Mac compatibility section as well. Psycho13in308 00:20, 2 July 2008 (UTC)
Didn't work in Darwin. Also, if you don't mind splitting your hard drive space in half, you can run Boot Camp, it runs Windows natively on Intel Macintosh. In Boot Camp, the Touhou Games run flawlessly. --ArseneLupin3 17:52, 17 July 2008 (UTC)
I finally got Perfect Cherry Blossom working on an Intel MacBook. Took the latest XQuartz release, the latest wine release, and running wine with env DYLD_FALLBACK_LIBRARY_PATH=/usr/X11/lib preceeding it. Does the job, though I've occasionally had input problems; if I switch out, it thinks I have an arrow key continuously pressed down when I return, and doesn't allow any other inputs, and occasionally during gameplay it pauses and doesn't stop - probably a related issue. Besides these occasional problems, it's working well and is pretty fun. - Gullwhacker 25 July 2009
I'm trying to run PoFV and PCB under WinE 1.0 and Ubuntu 8.04, but all I get is the load screen, then back to Linux at 640x480 with no error messages :( ¿Are there any known issues with WinE 1.0? Kitsune Inari 16:42, 17 July 2008 (UTC)
According to AppDB SA works with Wine providing you place d3dx9_36.dll in the SA folder. I've had nothing but miserable failure trying to get it running on Kubuntu 8.04 (KDE4) under both Wine 1.0.0 and 1.1.3. Out of two test machines one blottos and goes to the login prompt while the other black screens and requires a hard reset. Is this the distro or just me? --TCK 06:16, 28 August 2008 (UTC)
- Worked fine for me on Ubuntu with the dx_36.
I have all the other Touhou games in the main series working except th11. (Didn't try 7.5/9.5/10.5) The custom.exe does not work at all, so I went into windows and put it on windowed mode 640x480. (I tried the bigger ones as well, but only the bottom left showed.) Though it doesn't matter which mode I use, the loading screen comes up but before the menu pops up the screen turns black. 126.96.36.199 22:47, 2 October 2008 (UTC)
For me, it works, but it's at about 10fps. So the stage 1 music repeats about 6 or so times by the time I reach Kurodani. Basically it's unplayable. I put in the d3dx9_36.dll in the folder, and there seems to be a d3dx9_37.dll in there already, but it still doesn't work. Is there a windowed option that might work?
I managed to get it working (along with UFO, which has similar problems) in Kubuntu 9.04 with Wine 1.1.26, but the FPS is around 70-75 for both games, which makes it a bit faster than normal. I also run it in a virtual desktop because doing otherwise will freeze the OS and require a hard reset. The question is: I read that it might have to do with vertical refresh or something, so does anyone know any possible solutions?
- Same person here. I managed to get it working after I reinstalled my graphics driver. The game still freezes up upon exiting, but I can still manage to play it with little or no actual game problems. Kadou 05:08, 4 August 2009 (UTC)
I run Debian Sid, and have had fun getting various Touhous to work. This is all so far. I'm on a laptop with the NVIDIA binary driver and ALSA, and Wine 1.1.11
My Touhou stuff is in ~/wine/touhou/th### (~/wine is a symbolic link to the Wine program files)
Global: Require export LANG="ja_JP.UTF-8", has problem with non-transparent text background.
Embodiment of Scarlet Devil (1.02f): Works fine. But it has the uncapped framerate issue in fullscreen, fixed with v-sync option in NVIDIA driver.
Perfect Cherry Blossom (1.00b): Fine.
Immaterial and Missing Power (1.11): Fine. Config doesn't do anything.
Imperishable Night (1.00d): Fine.
Phantasmagoria of Flower View (1.50a): Needs d3dx9_36.dll, works, but tends to crash now and again.
Shoot the Bullet (1.02a): Fine.
Mountain of Faith (1.00a): Needs d3dx9_36.dll, works fine.
Scarlet Weather Rhapsody (1.06): Needs d3dx9_36.dll, does not work with it.
Subterranean Animism (1.00a): Needs d3dx9_36.dll, works fine, but sometimes refuses to start with GL errors. Don't know why.
PatchCon: Needs d3dx9_36.dll, does not work with it.
Other Stuff: (Note the following may differ between distros. This applies to Debian)
Assuming the appropriate encoding is installed, the command is:
$ export LANG="ja_JP.UTF-8"
You'll very likely need this set to install or run any of the games. Keep note of your default setting. :)
It's a lot easier if you use aliases. Add this line to your ~/.bash_aliases file:
alias th06="cd ~/wine/touhou/th06 ; wine ./th##.exe"
Edit this as appropriate, since you're probably using a different path and all. You may also want to make it set LANG, keymap changes, or other stuff. For that matter, aliasing the language setting stuff helps too.
alias expjajp="export LANG="ja_JP.UTF-8"
And one for your own locale.
And Most Important
Enjoy the games. That's the most important thing. :)
188.8.131.52 17:58, 29 December 2008 (UTC)
Another possible solution
VirtualBox 3.0 added support for hardware Direct3D. I'm currently using a Windows XP x86 VM to play SWR which hasn't sorted itself under Wine just yet, at least not on Debian.
Using a VM is not a perfect solution. Obviously, you need to be running a highly proprietary OS under another OS with a speed penalty. Some block animations don't display properly, eg: Marisa's. A few other animations aren't black eg: Yukari's borders and Iku's lightning. It hitched a fair bit on mine, and is very slow at skipping cutscenes. The XP OS itself seemed quite stable except switching it off doesn't work very well, sometimes requiring VirtualBox to be killed manually. Erg.
The guest was set to 1GB RAM, 128MB VRAM, 3D acceleration on, hardware virtualization on, PAE on, IO APIC on, 1 processor, and the rest defaults. I installed XP (Japanese locale), then service packs, then Guest Additions (in safe mode!) then the DX9 redist. Then played SWR and enjoyed doing so. :)
Wine will eventually get it correctly. Until then, this is a viable alternative. It should also work for PatchCon, and TH123 if it has the same problem.
184.108.40.206 15:52, 30 July 2009 (UTC)
Update from my sm.org Wine thread
I updated the article a bit with my sm.org Wine thread. The issue-specific fixes are now in Misc fixes. I'll continue to wikify and rewrite it so it reads more like a wiki article instead of a forum post. Momiji 19:03, 23 February 2011 (UTC)
Possible Solution for Running Hopeless Maquerade
I just tested playing HM after installing d3dx9_36.dll via winetricks, using wine 1.6.2 (current stable) on Ubuntu 14.04 x64. The frame rate seems slow, but that may have more to do with my outdated computer more than anything else. Can anyone else give it a try to see if it runs without issue or not? Bluewolf963 (talk) 15:46, 29 June 2014 (UTC)
- I'm not sure if this is related or not, but when I upgraded from Ubuntu 14.04 x64 to Ubuntu 14.10 x64, which had wine 1.6.2, almost every Touhou game before MoF that I owned started having problems. EoSD was running at 10fps; PCB, IN, PoFV, and StB froze on the loading screen. For whatever reason, IaMP was fine. I got the games working again by switching the colors to 16-bit in each of their respective custom.exe's. The graphics look lousy, but I'd rather have that then not be able to play at all...I guess? I had my fingers crossed that the next stable version of wine might clear this up, but then I saw reports of the newer games taking performance hits under wine 1.7.20. Ps (talk) 05:40, 20 December 2014 (UTC)