Package Details: corsix-th 0.50-3

Git Clone URL: https://aur.archlinux.org/corsix-th.git (read-only)
Package Base: corsix-th
Description: Reimplementation of the game engine of Theme Hospital
Upstream URL: https://github.com/CorsixTH/CorsixTH
Keywords: simulation
Licenses: MIT
Submitter: vesath
Maintainer: carstene1ns
Last Packager: carstene1ns
Votes: 61
Popularity: 2.200982
First Submitted: 2010-06-07 15:48
Last Updated: 2016-05-28 23:28

Latest Comments

carstene1ns commented on 2016-05-28 23:34

@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

@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. https://github.com/CorsixTH/CorsixTH/commit/9260930bd1e4721736859bee9c86aa70ecd3ddba.patch

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

I have some trouble building this package. Maybe somebody has some pointers for me?
Build log: https://nopaste.me/view/b14243b5

carstene1ns commented on 2015-11-19 15:02

@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]: https://projects.archlinux.org/svntogit/community.git/log/trunk?h=packages/luasocket

TheCycoONE commented on 2015-11-19 02:26

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

Please apply this patch: https://github.com/CorsixTH/CorsixTH/commit/4ae56e100911c1763cb9fd9a4b8647e323ecc032.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

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

@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

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 ?

Lucki commented on 2015-09-10 17:23

I'll 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

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

carstene1ns commented on 2015-09-06 10:29

This likely needs 'lua51-filesystem' package. I am going to fix this in a bit.

vesath commented on 2015-09-06 03:59

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

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 './lfs.so'
no file '/usr/lib/lua/5.1/lfs.so'
no file '/usr/lib/lua/5.1/loadall.so'

jdc commented on 2015-09-06 03:33

Here's a PKGBUILD for the latest version (0.50):
https://gist.github.com/JeffCarpenter/ffe835d2af72a2e7da0d

Ghul commented on 2014-12-29 14:46

thnx for 0.40 update!

vesath commented on 2013-12-27 10:10

Thanks a lot rayman2200!

rayman2200 commented on 2013-12-26 20:38

The code was moved from googlecode to github (https://github.com/CorsixTH/CorsixTH) and new releases are now published there.

The latest version is 0.30.
I've updated the PKGBUILD which you can find here https://gist.github.com/Rayman2200/8118205 and testet the release.

vesath commented on 2013-10-13 20:35

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

btw, i have raised the issue upstream, as the cmake script detects lua5.1, then uses lua5.2
https://code.google.com/p/corsix-th/issues/detail?id=1682

dobo commented on 2013-04-12 17:20

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

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

You can use luajit instead of lua51. Look at PKGBUILD diff https://gist.github.com/dobo90/5336363

dobo commented on 2013-04-08 12:12

You can also use luajit instead of lua51. Look at PKGBUILD diff:
https://gist.github.com/anonymous/5336351

ChemBro commented on 2013-03-25 10:43

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

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

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

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

Zann: Would you ask nicely?

Zann commented on 2012-09-21 02:56

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

vesath commented on 2012-03-24 20:37

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

rr0hit commented on 2012-03-24 19:41

version 0.01 is out

vesath commented on 2012-01-15 13:00

Thanks; I've updated the package.

Anonymous comment on 2012-01-15 12:47

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

Thanks rickdg.

Anonymous comment on 2011-09-24 16:23

Updated PKGBUILD, might be a little bit dirty but it gets the job done.
http://pastebin.com/raw.php?i=yDrqkJby

vesath commented on 2011-07-18 12:04

/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

hobarrera commented on 2011-07-18 06:00

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

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

Gilrain commented on 2011-06-25 13:14

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

Very well. :)

Gilrain commented on 2011-06-22 18:30

@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

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

Have you thought about adding a .desktop file to ease discovery?
There one already made for the Debian package here <https://code.google.com/p/corsix-th/source/browse/trunk/DebianPackage/usr/share/applications/CorsixTH.desktop>

toutoul commented on 2011-06-13 19:33

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

The variable pkgdir is set by makepkg.

toutoul commented on 2011-06-13 14:44

The variable $pkgdir is missing in PKGBUILD

toutoul commented on 2011-05-06 07:41

Too bad there did not desktop file

vesath commented on 2010-11-13 16:15

It indeed is. :)

Anonymous comment on 2010-11-13 15:36

Beta4 is already there

vesath commented on 2010-06-24 16:29

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