| Author |
Message
|
| eeerlend |
Posted: Mon Feb 08, 2010 4:31 pm Post subject: |
|
|

Joined: 26 Dec 2009 Posts: 21 Location: Norway
|
| eeerlend wrote: | | pinchies wrote: | in the folder obtained from the zip, open up the "config.txt" file.
look for the line: "theme_hospital_install". Change the text within the double brackets i.e. [[ **Here** ]] to ./Hosp so it looks like
"theme_hospital_install = [[./Hosp]]"
Now, place your install folder of the old game (HOSP or Hospital folder, containing the folders like QDATA, DATA, etc,) in the same folder as CorsixTH.app is in. Should work now!
Can we have an updated prebuilt version by any chance somebody?  |
That did the trick:) My "theme_hospital_install" directory seemed to be wrong...
Thank you! |
Can I just overwrite the folders in this build with the latest source, to use the latest version of the game? Or do I need to compile the game from scratch then? _________________ eeerlend |
|
| Back to top |
|
 |
| pinchies |
Posted: Mon Feb 08, 2010 9:27 pm Post subject: |
|
|
Joined: 07 Apr 2009 Posts: 16
|
| Source code will need to be compiled before it can be run, with the exception of .lua scripting files. Updating just the lua components may break something: best to recompile to entire project, then re add the hospital files directory. |
|
| Back to top |
|
 |
| eeerlend |
Posted: Tue Feb 09, 2010 12:12 pm Post subject: |
|
|

Joined: 26 Dec 2009 Posts: 21 Location: Norway
|
Maybe this is too much to ask, but I wonder if someone can post a step-by-step guide with HOWTO on Mac OS X. I really need to get it working on Mac OS X (with Xcode, Cmake and this svn-thing), so I can do the translation-work.
The first step should be
1. Download the source
And the last step should be
20. Open CorsixTH.app
Don't misunderstand! - You people have done a great job allready helping us non-programmers, but I want to be able to play with the latest source, so I can help translating the game...
Help me:) _________________ eeerlend |
|
| Back to top |
|
 |
| pinchies |
Posted: Tue Feb 09, 2010 12:17 pm Post subject: |
|
|
Joined: 07 Apr 2009 Posts: 16
|
I think I could start a guide for most of that, I think I will add it to the wiki when I get a chance.  |
|
| Back to top |
|
 |
| eeerlend |
Posted: Tue Feb 09, 2010 12:21 pm Post subject: |
|
|

Joined: 26 Dec 2009 Posts: 21 Location: Norway
|
| pinchies wrote: | I think I could start a guide for most of that, I think I will add it to the wiki when I get a chance.  |
Thank you very much!
Maybe its a good beginning to have a downloadable xcode project (like the one posted in this thread), and "howto" update the project with the latest source? - and then how to "get it running"?
-dont know, im just thinking out loud:) _________________ eeerlend |
|
| Back to top |
|
 |
| Corsix |
Posted: Tue Feb 09, 2010 8:48 pm Post subject: |
|
|
Joined: 18 Jul 2009 Posts: 71 Location: Gloucestershire / Oxford
|
|
| Back to top |
|
 |
| pinchies |
Posted: Tue Feb 09, 2010 9:07 pm Post subject: |
|
|
Joined: 07 Apr 2009 Posts: 16
|
| Thanks, but to be honest, SVN is the easy part as the mac IDE "Xcode has a SVN client built right in - the hard part is changing a couple files and setting the compiler flags (I can never remember where they are!) |
|
| Back to top |
|
 |
| eeerlend |
Posted: Thu Feb 11, 2010 10:33 am Post subject: |
|
|

Joined: 26 Dec 2009 Posts: 21 Location: Norway
|
Tell me if I'm doing something wrong here:
1. I download the latest source
2. I run CMake, and point to the source (corsix-th-read-only/CorsixTH)
3. I select a path where to build the app (/Applications/corsix-TH)
4. I press "Configure"
5. When it asks "Specify the generator for this project", I choose "Xcode" and "Use default native compilers".
6. I press "Done"
7. I get "Error in configuration process, project files may be invalid"
The following fields are red:
CMAKE_BACKWARDS_COMPATIBILITY = 2.4
CMAKE_BUILD_TYPE
CMAKIE_CONFIGURATION_TYPES = Debug;Release;MinSizeRel;RelWithDebInfo
CMAKE_INSTALL_PREFIX = /usr/local
CMAKE_OSX_ARCHITECTURES
CMAKE_OSX_DEPLOYMENT_TARGET = 10.6
CMAKE_OSX_SYSROOT = /Developer/SDKs/MacOSX10.6.sdk
EXECUTABLE_OUTPUT_PATH
LIBRARY_OUTPUT_PATH
SDL_INCLUDE_DIR = /Library/Frameworks/SDL.framework/Headers
SDL_LIBRARY = /Library/Frameworks/SDL.framework;-framework Cocoa
The log:
| Code: | The C compiler identification is GNU
The CXX compiler identification is GNU
Checking whether C compiler has -isysroot
Checking whether C compiler has -isysroot - yes
Check for working C compiler: /usr/bin/gcc
Check for working C compiler: /usr/bin/gcc -- works
Detecting C compiler ABI info
Detecting C compiler ABI info - done
Checking whether CXX compiler has -isysroot
Checking whether CXX compiler has -isysroot - yes
Check for working CXX compiler: /usr/bin/g++
Check for working CXX compiler: /usr/bin/g++ -- works
Detecting CXX compiler ABI info
Detecting CXX compiler ABI info - done
CMake Error: File /Users/Erlend/Documents/corsix-th/corsix-th-read-only/CorsixTH/CorsixTH/Src/config.h.in does not exist.
CMake Error at CMakeLists.txt:30 (CONFIGURE_FILE):
configure_file Problem configuring file
CMake Error at CMakeLists.txt:47 (add_executable):
add_executable called with incorrect number of arguments
CMake Error at CMakeLists.txt:64 (TARGET_LINK_LIBRARIES):
Cannot specify link libraries for target "CorsixTH" which is not built by
this project.
CMake Warning (dev) in CMakeLists.txt:
No cmake_minimum_required command is present. A line of code such as
cmake_minimum_required(VERSION 2.8)
should be added at the top of the file. The version specified may be lower
if you wish to support older CMake versions for this project. For more
information run "cmake --help-policy CMP0000".
This warning is for project developers. Use -Wno-dev to suppress it.
Configuring incomplete, errors occurred! |
Can someone please point me in the right direction? _________________ eeerlend |
|
| Back to top |
|
 |
| Corsix |
Posted: Thu Feb 11, 2010 11:46 am Post subject: |
|
|
Joined: 18 Jul 2009 Posts: 71 Location: Gloucestershire / Oxford
|
| Quote: | | 2. I run CMake, and point to the source (corsix-th-read-only/CorsixTH) |
You should point it to the top-level directory, that is corsix-th-read-only rather than corsix-th-read-only/CorsixTH, i.e. the directory containing trunk/CMakeLists.txt rather than the one containing trunk/CorsixTH/CMakeLists.txt. |
|
| Back to top |
|
 |
| eeerlend |
Posted: Thu Feb 11, 2010 11:57 am Post subject: |
|
|

Joined: 26 Dec 2009 Posts: 21 Location: Norway
|
| Corsix wrote: | | Quote: | | 2. I run CMake, and point to the source (corsix-th-read-only/CorsixTH) |
You should point it to the top-level directory, that is corsix-th-read-only rather than corsix-th-read-only/CorsixTH, i.e. the directory containing trunk/CMakeLists.txt rather than the one containing trunk/CorsixTH/CMakeLists.txt. |
oh... thanks! but i still got some errors...
| Code: | The C compiler identification is GNU
The CXX compiler identification is GNU
Checking whether C compiler has -isysroot
Checking whether C compiler has -isysroot - yes
Check for working C compiler: /usr/bin/gcc
Check for working C compiler: /usr/bin/gcc -- works
Detecting C compiler ABI info
Detecting C compiler ABI info - done
Checking whether CXX compiler has -isysroot
Checking whether CXX compiler has -isysroot - yes
Check for working CXX compiler: /usr/bin/g++
Check for working CXX compiler: /usr/bin/g++ -- works
Detecting CXX compiler ABI info
Detecting CXX compiler ABI info - done
Note: Using SDL as renderer (default)
Note: SDL audio is enabled (default)
Looking for include files CORSIX_TH_HAS_STDINT_H
Looking for include files CORSIX_TH_HAS_STDINT_H - found
Looking for include files CORSIX_TH_HAS_MALLOC_H
Looking for include files CORSIX_TH_HAS_MALLOC_H - not found.
Building CorsixTH
SDL found
CMake Error at /Applications/CMake 2.8-0.app/Contents/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:70 (MESSAGE):
Could NOT find Lua51 (missing: LUA_LIBRARIES LUA_INCLUDE_DIR)
Call Stack (most recent call first):
/Applications/CMake 2.8-0.app/Contents/share/cmake-2.8/Modules/FindLua51.cmake:72 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CorsixTH/CMakeLists.txt:71 (FIND_PACKAGE)
Configuring incomplete, errors occurred! | _________________ eeerlend |
|
| Back to top |
|
 |
| Roujin |
Posted: Thu Feb 11, 2010 8:29 pm Post subject: |
|
|
Joined: 01 Nov 2009 Posts: 20
|
|
| Back to top |
|
 |
| eeerlend |
Posted: Fri Feb 12, 2010 9:39 am Post subject: |
|
|

Joined: 26 Dec 2009 Posts: 21 Location: Norway
|
| Roujin wrote: | | The relevant part of the error is that it did not find the Lua library. You have to install it and enter its library and include dir in the LUA_LIBRARIES and LUA_INCLUDE_DIR fields, as described here: http://code.google.com/p/corsix-th/wiki/HowToCompile |
...and where can I find this LUA library? I have installed LUA, but I really cant find the location where the files are:( I've searched the mac for all files containing lua, and browsed hundreds of directories...
So, can someone please tell me where those files are, after installing LUA?
help:) _________________ eeerlend |
|
| Back to top |
|
 |
| Corsix |
Posted: Fri Feb 12, 2010 1:55 pm Post subject: |
|
|
Joined: 18 Jul 2009 Posts: 71 Location: Gloucestershire / Oxford
|
| How did you install Lua - via MacPorts or compiling it in XCode? |
|
| Back to top |
|
 |
| eeerlend |
Posted: Fri Feb 12, 2010 2:07 pm Post subject: |
|
|

Joined: 26 Dec 2009 Posts: 21 Location: Norway
|
| Corsix wrote: | | How did you install Lua - via MacPorts or compiling it in XCode? |
macports. _________________ eeerlend |
|
| Back to top |
|
 |
| Corsix |
Posted: Fri Feb 12, 2010 2:24 pm Post subject: |
|
|
Joined: 18 Jul 2009 Posts: 71 Location: Gloucestershire / Oxford
|
Then I suspect that you want to set:- LUA_INCLUDE_DIR to /opt/local/include
- LUA_LIBRARIES to /opt/local/lib/liblua.a
If CMake doesn't list these properties in Simple view, change it to Grouped view. |
|
| Back to top |
|
 |
|
|