Package Details: corsix-th 0.66_beta2-1

Git Clone URL: (read-only, click to copy)
Package Base: corsix-th
Description: Reimplementation of the game engine of Theme Hospital
Upstream URL:
Keywords: game game-engine simulation theme-hospital
Licenses: MIT
Submitter: vesath
Maintainer: MarsSeed (carstene1ns)
Last Packager: MarsSeed
Votes: 71
Popularity: 0.21
First Submitted: 2010-06-07 15:48 (UTC)
Last Updated: 2022-06-09 19:59 (UTC)

Pinned Comments

MarsSeed commented on 2022-04-09 10:43 (UTC) (edited on 2022-06-04 15:32 (UTC) by MarsSeed)

I've updated this. Please kindly check if it works correctly. I don't have the game so I cannot test it.

Latest Comments

MarsSeed commented on 2022-04-09 10:43 (UTC) (edited on 2022-06-04 15:32 (UTC) by MarsSeed)

I've updated this. Please kindly check if it works correctly. I don't have the game so I cannot test it.

SebinNyshkim commented on 2022-03-01 17:52 (UTC)

@TheCycoONE I had a hunch it might be connected to the recent major release of FFmpeg, but wasn't certain. I also had the ffmpeg4.4 package installed but it would still error out.

This package still breaks upon build, as it is still pulling in 0.64 but I also just tested it with the corsix-th-git package and it compiled like a charm! Thanks for the quick fix :D

TheCycoONE commented on 2022-03-01 16:04 (UTC)

The patch is now upstream ^

TheCycoONE commented on 2022-03-01 03:03 (UTC)

I see ffmpeg 5.0 was just released with API breaking changes. ArchLinux is carrying an ffmpeg 4.4 package ( which probably works better until we can incorporate the required changes.

TheCycoONE commented on 2022-03-01 00:15 (UTC) (edited on 2022-03-01 00:16 (UTC) by TheCycoONE)

@SebinNyshkim I haven't seen that yet, but if this is a problem with the latest ffmpeg I'll have it patched soon in git.

In the mean time you should be able to add -DWITH_MOVIES=off to the cmake line to get it to build - without cinematics of course.

SebinNyshkim commented on 2022-02-28 17:49 (UTC) (edited on 2022-02-28 17:50 (UTC) by SebinNyshkim)

The package doesn't build anymore (and FWIW neither does the corsix-th-git package)

It aborts at around this step:

/home/sebin/.cache/yay/corsix-th/src/CorsixTH-0.64/CorsixTH/Src/th_movie.cpp: In member function 'bool movie_player::load(const char*)':
/home/sebin/.cache/yay/corsix-th/src/CorsixTH-0.64/CorsixTH/Src/th_movie.cpp:434:52: error: invalid conversion from 'AVCodec**' to 'const AVCodec**' [-fpermissive]
  434 |                                            -1, -1, &m_pVideoCodec, 0);
      |                                                    ^~~~~~~~~~~~~~
      |                                                    |
      |                                                    AVCodec**
In file included from /home/sebin/.cache/yay/corsix-th/src/CorsixTH-0.64/CorsixTH/Src/th_movie.h:46,
                 from /home/sebin/.cache/yay/corsix-th/src/CorsixTH-0.64/CorsixTH/Src/th_movie.cpp:23:
/usr/include/libavformat/avformat.h:2165:41: note:   initializing argument 5 of 'int av_find_best_stream(AVFormatContext*, AVMediaType, int, int, const AVCodec**, int)'
 2165 |                         const AVCodec **decoder_ret,
      |                         ~~~~~~~~~~~~~~~~^~~~~~~~~~~
/home/sebin/.cache/yay/corsix-th/src/CorsixTH-0.64/CorsixTH/Src/th_movie.cpp:445:52: error: invalid conversion from 'AVCodec**' to 'const AVCodec**' [-fpermissive]
  445 |                                            -1, -1, &m_pAudioCodec, 0);
      |                                                    ^~~~~~~~~~~~~~
      |                                                    |
      |                                                    AVCodec**
In file included from /home/sebin/.cache/yay/corsix-th/src/CorsixTH-0.64/CorsixTH/Src/th_movie.h:46,
                 from /home/sebin/.cache/yay/corsix-th/src/CorsixTH-0.64/CorsixTH/Src/th_movie.cpp:23:
/usr/include/libavformat/avformat.h:2165:41: note:   initializing argument 5 of 'int av_find_best_stream(AVFormatContext*, AVMediaType, int, int, const AVCodec**, int)'
 2165 |                         const AVCodec **decoder_ret,
      |                         ~~~~~~~~~~~~~~~~^~~~~~~~~~~
[33/35] Building CXX object CorsixTH/CMakeFiles/CorsixTH_lib.dir/Src/th_map.cpp.o
ninja: build stopped: subcommand failed.
==> ERROR: A failure occurred in build().
 -> error making: corsix-th

I also tried using the updated 0.65.1 tarball, but that aborts for pretty much the same reasons. Not sure how to proceed here to get it to build...

ydrolet commented on 2021-01-02 03:12 (UTC)

Hi! Just a reminder not to forget to update to version 0.64 that was released on June.

culebra_solida commented on 2020-07-14 02:32 (UTC)

Hi, i have no music, even enabling timidity as explained here doesnt work

TheCycoONE commented on 2019-05-27 13:09 (UTC)

For what it's worth, I was able to get working midi by adding fluidsynth and setting the environment variable SDL_SOUNDFONTS=/usr/share/soundfonts/default.sf2

Not sure if there is a better mechanism.

TheCycoONE commented on 2019-05-17 12:35 (UTC)

sdl2_mixer has an optional dependency on an external fluidsynth, does that work better?

carstene1ns commented on 2019-03-09 22:25 (UTC)

@raneon, @Lucki: As said, the soundfont version does not work. I will update this to use my freepats-legacy package.

raneon commented on 2019-03-08 21:15 (UTC)

corsix-th depends from timidity-freepats, which is not available anymore. Package seems to need an update. I could build the game without this.

Lucki commented on 2019-02-25 11:23 (UTC)

Hm, did a quick test and announcements and sounds were normal. But actually there's no music playing for me, maybe a configuration error on my side.

Right now it's difficult to build because the dependency does not exist.

carstene1ns commented on 2019-02-23 13:05 (UTC) (edited on 2019-02-23 13:05 (UTC) by carstene1ns)

@Lucki: Using freepats-legacy here, did you try it works with the soundfont version? Last time I tried sdl2_mixer with fluidsynth (is used for soundfonts), it sounded bad.

Lucki commented on 2019-02-23 00:59 (UTC)

freepats-general-midi is replacing timidity-freepats.

TheCycoONE commented on 2018-07-25 00:57 (UTC)

Nice work with the update.

Lucki commented on 2018-07-24 23:04 (UTC) (edited on 2018-07-24 23:23 (UTC) by Lucki)

Why are you converting the logo? Should be possible to place it directly as svg into ${pkgdir}/usr/share/icons/hicolor/scalable/apps/${pkgname}.svg.

Maybe you need to depend on hicolor-icon-theme or gtk-update-icon-cache but i'm not sure about that.

Rhinoceros commented on 2016-06-13 23:53 (UTC)

Has anyone got this to build with 0.60? TH is on sale at gog at the moment…

carstene1ns commented on 2016-05-28 23:34 (UTC)

@gothmog.todi: Sorry, did not have time back then to fix it and have forgotten since. I have replaced the outdated FFMPEG stuff now based on the upstream patch. This should fix it. @TheCycoONE: Thanks for your support. I hope to have a "real" 0.60 release soon to update to, but currently this package will stay at 0.50, because I like to have my packages at stable versions (even if this means I need to fix compilation after changes to dependency packages :D).

TheCycoONE commented on 2016-05-02 12:19 (UTC)

@gothmog.todi It looks like this package needs another patch from our repository to work with the version of ffmpeg that archlinux is currently using. There are other movie related changes though, and at this point it might be better to bump the package to 0.60-rc1.

gothmog.todi commented on 2016-03-23 19:50 (UTC)

I have some trouble building this package. Maybe somebody has some pointers for me? Build log:

carstene1ns commented on 2015-11-19 15:02 (UTC)

@TheCycoONE: Thanks for the patch! It fixes the intro movie. About lua-socket: it was the 3.0-rc1 release at that time, but the Arch package is now built from git[1], so it should be resolved as well. [1]:

TheCycoONE commented on 2015-11-19 02:26 (UTC)

As for the lua-socket problems, does this occur with the latest lua-socket in the Arch Linux repositories? The 3.0-rc1 'release' version is known to be broken, but I haven't encountered problems with newer git versions of the library.

TheCycoONE commented on 2015-11-19 02:19 (UTC)

Please apply this patch: It fixes a bug with the movie code that causes it to crash with ffmpeg 2.8+

Lucki commented on 2015-09-14 15:27 (UTC)

Thank you, lua-socket wasn't used by any package, so I removed it and it works again, thank you again!

carstene1ns commented on 2015-09-13 16:36 (UTC)

@Lucki: I actually had this error too when testing. It seems there is some incompatibility between the lua socket package that arch ships and corsix-th expects. I will contact upstream and create a patch that disables the autoupdater for now. Do you need the package 'lua-socket' at all? If no, just remove it and corsix-th will work, if yes, you can rebuild corsix-th with lua51 or lua52 in the meanwhile until this is sorted out.

Lucki commented on 2015-09-10 17:23 (UTC)

I get this error and the game quits: An error has occured in CorsixTH: /usr/share/lua/5.3/socket/http.lua:189: use of undeclared variable 'PROXY' stack traceback: [C]: in function 'socket.http.request' /usr/share/CorsixTH/Lua/app.lua:1355: in method 'checkForUpdates' /usr/share/CorsixTH/Lua/app.lua:443: in method 'loadMainMenu' /usr/share/CorsixTH/Lua/app.lua:299: in local 'callback_after_movie' /usr/share/CorsixTH/Lua/app.lua:327: in method 'init' /usr/share/CorsixTH/CorsixTH.lua:135: in main chunk [C]: in ?

carstene1ns commented on 2015-09-06 12:41 (UTC)

Package adopted and updated! As Corsix-TH is now compatible with lua5.1, 5.2 and 5.3, I updated the dependencies a bit.

vesath commented on 2015-09-06 03:59 (UTC)

Anyhow, I do not have the time to properly maintain this package anymore, so I'm going to orphan it. Good luck to the new maintainer!

vesath commented on 2015-09-06 03:58 (UTC)

jdc: That's what I came up with too but when I start CorsixTH I get: An error has occured in CorsixTH: /usr/share/CorsixTH/Lua/strict.lua:66: module 'lfs' not found: no field package.preload['lfs'] no file './lfs.lua' no file '/usr/share/lua/5.1/lfs.lua' no file '/usr/share/lua/5.1/lfs/init.lua' no file '/usr/lib/lua/5.1/lfs.lua' no file '/usr/lib/lua/5.1/lfs/init.lua' no file './' no file '/usr/lib/lua/5.1/' no file '/usr/lib/lua/5.1/'

jdc commented on 2015-09-06 03:33 (UTC)

Here's a PKGBUILD for the latest version (0.50):

Ghul commented on 2014-12-29 14:46 (UTC)

thnx for 0.40 update!

vesath commented on 2013-12-27 10:10 (UTC)

Thanks a lot rayman2200!

rayman2200 commented on 2013-12-26 20:38 (UTC)

The code was moved from googlecode to github ( and new releases are now published there. The latest version is 0.30. I've updated the PKGBUILD which you can find here and testet the release.

vesath commented on 2013-10-13 20:35 (UTC)

LordAro: Thanks for reporting this, and please let me know if a solution comes up. Otherwise, I can always remove the lua dependency and use lua51 instead. That will solve the problem for anyone who compiles in clean chroots (or on systems without lua installed).

LordAro commented on 2013-10-13 20:06 (UTC)

btw, i have raised the issue upstream, as the cmake script detects lua5.1, then uses lua5.2

dobo commented on 2013-04-12 17:20 (UTC)

vesath: Actually it wasn't my intention make you change this PKGBUILD. I just wanted to inform other people that it is also possible. I didn't test performance between lua51 and luajit but luajit is recommended by Corsix-TH developers. Have a nice day :).

vesath commented on 2013-04-10 08:46 (UTC)

dobo: Would you care telling us why one would choose luajit over lua51? I've compiled corsix-th against luajit but I see no improvement on CPU usage...

dobo commented on 2013-04-08 12:15 (UTC)

You can use luajit instead of lua51. Look at PKGBUILD diff

ChemBro commented on 2013-03-25 10:43 (UTC)

Version 0.20 is out. Besides that: Shouldn't there be an optional dependency for "timidity-freepats", because otherwise, the music won't play (at least not for me).

vesath commented on 2012-12-16 22:57 (UTC)

ChemBro: Next time when reporting bugs prepend "LANG=C" to the build command; this way you will get the original English compiler messages that everyone can understand.

ChemBro commented on 2012-12-16 13:49 (UTC)

Okay, this is how it worked for me: Completely scrapped the package, edited in PKGBUILD lua51 instead of lua (dep) and removed lua (corsix-th needs lua51, but can't build, if lua is installed). After that, it worked. Lua 5.2 isn't supported by corsix-th at the moment.

ChemBro commented on 2012-12-15 13:24 (UTC)

Can't build it. I get this: /home/christian/aur/corsix-th/src/CorsixTH-0.11-Source/CorsixTH/Src/th_lua.cpp:59:29: Fehler: »lua_getenv« wurde in diesem Gültigkeitsbereich nicht definiert (Error: »lua_getenv« was not defined in this "range of validity") /home/christian/aur/corsix-th/src/CorsixTH-0.11-Source/CorsixTH/Src/th_lua.cpp: In Funktion »int luaT_setfenv52(lua_State*, int)«: /home/christian/aur/corsix-th/src/CorsixTH-0.11-Source/CorsixTH/Src/th_lua.cpp:94:29: Fehler: »lua_setenv« wurde in diesem Gültigkeitsbereich nicht definiert (Error: »lua_setenv« was not defined in this "range of validity") make[2]: *** [CorsixTH/CMakeFiles/CorsixTH.dir/Src/th_lua.cpp.o] Fehler 1 (error 1) make[1]: *** [CorsixTH/CMakeFiles/CorsixTH.dir/all] Fehler 2 (error 2) make: *** [all] Fehler 2 (error 2)

vesath commented on 2012-09-21 03:07 (UTC)

Zann: Would you ask nicely?

Zann commented on 2012-09-21 02:56 (UTC)

0.01b have been released for a long time now. Would you update?

vesath commented on 2012-03-24 20:37 (UTC)

Thanks but no need to flag out-of-date *and* post a comment.

rr0hit commented on 2012-03-24 19:41 (UTC)

version 0.01 is out

vesath commented on 2012-01-15 13:00 (UTC)

Thanks; I've updated the package.

commented on 2012-01-15 12:47 (UTC)

this change will help to choose additional laguages cmake \ -D CMAKE_INSTALL_PREFIX=/usr/share/ \ -D CMAKE_BUILD_TYPE=Release \ -D WITH_FREETYPE2=ON \ -Wno-dev . depends=('sdl_mixer' 'lua' 'timidity++' 'sdl_ttf')

vesath commented on 2011-09-25 10:08 (UTC)

Thanks rickdg.

commented on 2011-09-24 16:23 (UTC)

Updated PKGBUILD, might be a little bit dirty but it gets the job done.

vesath commented on 2011-07-18 12:04 (UTC)

/usr/share/CorsixTH/CorsixTH is part of the upstream bundle; it's better not to move it. There's a helper script: /usr/bin/CorsixTH

whynothugo commented on 2011-07-18 06:00 (UTC)

Placing the executable file inside /usr/share in VERY bad practice. No-one has that directory in their PATH, I needed to start searching for the file to run with no luck. I had to check pacman -Ql and PKGBUILD in order to find that I needed to run /usr/share/CorsixTH/CorsixTH Please fix this by creating a symlink in /usr/bin/CorsixTH Cheers!

vesath commented on 2011-06-25 16:34 (UTC)

Argh... Thanks again for noticing the typo. :)

Gilrain commented on 2011-06-25 13:14 (UTC)

I see that you found a better way to integrate the desktop file. Unfortunately (yeah, again ;-) the path is still not right (blame Debian). Could you add this line just before the CorsixTH.desktop install command ? sed -i 's/games/share/g' DebianPackage/usr/share/applications/CorsixTH.desktop

vesath commented on 2011-06-22 18:47 (UTC)

Very well. :)

Gilrain commented on 2011-06-22 18:30 (UTC)

@vesath: thank you but... the files are not in /usr/games/CorsixTH/ but in /usr/share/CorsixTH/ ;-)

vesath commented on 2011-06-19 22:26 (UTC)

No I haven't, since I don't use a desktop manager. But I'm in a good mood so enjoy this update. :)

Gilrain commented on 2011-06-19 20:43 (UTC)

Have you thought about adding a .desktop file to ease discovery? There one already made for the Debian package here <>

koromerzhin commented on 2011-06-13 19:33 (UTC)

Ok, i'm sorry, i write corsix and not CorsixTH, that's why I could not find the file

vesath commented on 2011-06-13 15:06 (UTC)

The variable pkgdir is set by makepkg.

koromerzhin commented on 2011-06-13 14:44 (UTC)

The variable $pkgdir is missing in PKGBUILD

koromerzhin commented on 2011-05-06 07:41 (UTC)

Too bad there did not desktop file

vesath commented on 2010-11-13 16:15 (UTC)

It indeed is. :)

commented on 2010-11-13 15:36 (UTC)

Beta4 is already there

vesath commented on 2010-06-24 16:29 (UTC)

Bump to Beta3 - note that config.txt has become irrelevant and you now have to download the game data files yourself.