Coder Social home page Coder Social logo

corsixth / corsixth Goto Github PK

View Code? Open in Web Editor NEW
3.9K 126.0 354.0 31.87 MB

Open source clone of Theme Hospital

License: Other

CMake 0.76% C++ 16.43% C 0.63% Lua 74.88% Shell 0.08% CSS 0.08% Java 6.30% Python 0.16% NSIS 0.53% Yacc 0.04% Lex 0.04% Roff 0.05% HTML 0.01% Ruby 0.01%
remake opensource game strategy-game theme-hospital

corsixth's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

corsixth's Issues

Nurse in Pharmacy bug

An error has occured!
Almost anything can be the cause, but the detailed information below can help th
e developers find the source of the error.
Running: The timer handler.
A stack trace is included below, and the handler has been disconnected.
E:\CorsixTH\Lua\rooms\pharmacy.lua:76: attempt to index local 'staff' (a nil val
ue)
stack traceback:
E:\CorsixTH\Lua\rooms\pharmacy.lua:76: in function 'commandEnteringPatie
nt'
E:\CorsixTH\Lua\room.lua:351: in function 'onHumanoidEnter'
E:\CorsixTH\Lua\humanoid_actions\walk.lua:347: in function 'on_next_tile
_set'
E:\CorsixTH\Lua\humanoid_actions\walk.lua:142: in function <E:\CorsixTH
Lua\humanoid_actions\walk.lua:129>
(tail call): ?
E:\CorsixTH\Lua\entity.lua:166: in function 'tick'
E:\CorsixTH\Lua\world.lua:1023: in function 'onTick'
E:\CorsixTH\Lua\app.lua:789: in function <E:\CorsixTH\Lua\app.lua:786>
(tail call): ?
E:\CorsixTH\Lua\app.lua:690: in function <E:\CorsixTH\Lua\app.lua:685>

Warning: No event handler for timer

step to reproduce:

  1. a patient need to use Pharmacy but no nurse inside.
  2. a nurse (Nurse A) open the door and go in to Pharmacy.
  3. right before (or around) the Nurse A close the door, hire a new nurse (Nurse B) and drop her in to Pharmacy. (so two nurse in pharmacy)
    3a. (I guess) Nurse A is trying to go out the room, because Nurse B is drop in to the room.
  4. before Nurse A go out the room, drag and drop Nurse B out of the room.
    --- bug happens ---

the result:
Nurse A stuck in the room cannot go out. Patients in queue cannot go in the room.

Dynamic info showing incorrect information

I first noticed this with #99 then again tonight I saw one patient with queuing for blood machine when she was on her way to the decontamination clinic and then this one who is fed up and leaving and it says she is queuing for GP office
7
I am testing epidemics, so it may be related to that branch only, but as I have also seen this in the master recently I will assume for now this is a general issue.

Error report

I just copy the log, not sure if this help.

An error has occured!
Almost anything can be the cause, but the detailed information below can help the developers find the source of the error.
Running: The timer handler.
A stack trace is included below, and the handler has been disconnected.
E:\CorsixTH\Lua\entities\patient.lua:134: attempt to perform arithmetic on field 'fatigue' (a nil value)
stack traceback:
E:\CorsixTH\Lua\entities\patient.lua:134: in function 'completeDiagnosticStep'
E:\CorsixTH\Lua\room.lua:162: in function 'dealtWithPatient'
E:\CorsixTH\Lua\rooms\blood_machine_room.lua:75: in function 'after_use'
...:\CorsixTH\Lua\humanoid_actions\multi_use_object.lua:264: in function
'timer_function'
E:\CorsixTH\Lua\entity.lua:166: in function 'tick'
E:\CorsixTH\Lua\entities\staff.lua:145: in function 'tick'
E:\CorsixTH\Lua\world.lua:1023: in function 'onTick'
E:\CorsixTH\Lua\app.lua:789: in function <E:\CorsixTH\Lua\app.lua:786> (tail call): ?
E:\CorsixTH\Lua\app.lua:690: in function <E:\CorsixTH\Lua\app.lua:685>

Warning: No event handler for timer

Cannot load or create saves with 0.30RC

If I try and create a save with the rc I get a persistance error and the same error if I try and load any saves I have (created in the trunk or 0.21) (this was from using the installer)

Cannot check for updates since LuaSocket is not available.
Current value:Error while loading game: C:\Program Files\Corsi
xTH\Lua\persistance.lua:90: bad argument #1 to '(for generator)' (table expected
, got userdata)

Patient is heading to one room but sent to another.

During diagnosis patient goes to the GP and then is sent to a new room as shown in the debug action queue:

Put the seek_room action finds a different room even though the cardiogram is available (albeit the other side of the hospital).

And the patient ends up in the ward.

I can understand why a new room might be chosen if the other was not available but there seems to be some form of randomisation going on when seeking a room. https://github.com/CorsixTH/CorsixTH/blob/master/CorsixTH/Lua/humanoid_actions/seek_room.lua#L21 The room being sought isn't always the one found!

This probably has little effect for gameplay but for game logic can produce unexpected behaviour with available treatment rooms. I noticed this because it gets in the way when I was trying to implement something. Any idea why this randomisation happens?

Health graph for patients missing

When clicking on a patient. it is possible to see his/her profile but even if the health graph background is being shown, there is no value. I guess this is not implemented but it could as well be a graphic bug.

Adding english names to all languages in the menu

As I mentioned in issue 1719 in the Google Project page:

Should we maybe add the english name for the languages to the menu so that everyone can easily identify the languages?
For example I can't tell chinese from korean, but it could sometimes be handy to know which is which.

Example of what the menu might would look like:
Castellano (Spanish)
Dansk (Danish)
Deutsch (German)
Etc..

What do you think?

SDL_Mixer2: Music plays in the background while cutscenes play

When you are about to start a campaign you'll notice that background music is played while you look at the first cutscene.

From an initial investigation it seems to be that OnMusicOver is called also when stopping music, which it was not in 0.30. I don't know if the code has been changed on our side or if SDL_Mixer has changed.

Upgrade equipment for free

There is a bug that lets you upgrade 'upgradable' equipment for free.
Steps to reproduce:

  1. Create any room with an equipment that is able to change it's strength.
  2. Research 'improvement' for it.
  3. Click to change the room twice, that drops you to a stage where you can reset the location of the door, windows etc.
  4. Put stuff to any position and save.

The equipment will now be upgraded for free. The program should remember the original state of the equipment unless you destroy the room completely and rebuild it from scratch.

attempt to compare number with nil

if you try and open the save in #56 and then open the progress report you get the following error. You can open the screen with 0.21, but with the trunk this was the error I got.

...\CorsixTH\Lua\dialogs\fullscreen\progress_report.lua:82: attempt to compare number with nil
stack traceback:
...\CorsixTH\Lua\dialogs\fullscreen\progress_report.lua:82: in function 'constructor'

[sdl2] staff member picture too long

In the staff hire window (and in the window of a staff member), the picture of the staff member is not displayed correctly. Instead it is drawn all the way to the bottom of the screen. See attached image.

SHA: 86e314d
Uploading bad_hire_display.png . . .

Hospital never gets dirty

If ones never adds bins to the hospital, it still stays very clean contrary to the original version. I guess this is just not implemented but given that I have not seen that mentioned, I guess it's better to open an issue.

walk.lua:281: assertion failed!

Odd error, if you look at the image it says she is queuing for inflation, but has sleeping illness.

Error in timer handler:
...xTH-epidemics\CorsixTH\Lua\humanoid_actions\walk.lua:281: assertion failed!
stack traceback:
[C]: in function 'assert'
...xTH-epidemics\CorsixTH\Lua\humanoid_actions\walk.lua:281: in function <...xTH-epidemics\CorsixTH\Lua\humanoid_actions\walk.lua:209>
(tail call): ?
...xTH-epidemics\CorsixTH\Lua\humanoid_actions\walk.lua:187: in function 'timer_function'
...\corsixth\CorsixTH-epidemics\CorsixTH\Lua\entity.lua:178: in function 'tick'
...p\corsixth\CorsixTH-epidemics\CorsixTH\Lua\world.lua:1039: in function 'onTick'
...top\corsixth\CorsixTH-epidemics\CorsixTH\Lua\app.lua:839: in function <...top\corsixth\CorsixTH-epidemics\CorsixTH\Lua\app.lua:836>
(tail call): ?
...top\corsixth\CorsixTH-epidemics\CorsixTH\Lua\app.lua:740: in function <...top\corsixth\CorsixTH-epidemics\CorsixTH\Lua\app.lua:735>
a

Counting dates in CorsixTH

Currently world.lua and possibly other files track the date in months (this stems from the original level files operating in months) meaning all over the code base there is explicit conversion of date in months to the actual month something like actual_months = 1 + ((months - 1) mod 12) i.e.

  • months = 12 = actual_months = 12 and
  • months = 32 = actual_months = 8 (August of year 2)

Ideas for solving this would be one of:

  1. Track the actual_months separately either keep them updated or introduce functions to calculate them on the fly get_actual_months(months)
  2. Rework how counting is done either count years and month separately so
    we always have the actual month, or just count in months and work out what
    year it is when required (currently knowing the year isn't a very common operation but a necessary one)

The second way is my preferred way but this is really an open discussion.

Unable to compile CorsixTH 0.30 on Fedora

Hello,

I'm using Fedora last version (3.12.5-302.fc20.x86_64.)
Upon compiling CorsixTH, I get the below errors.

Ihave checked the dependencies, here are the versions I use:
SDL_mixer-1.2.12-5.fc20.x86_64
cmake-2.8.12.1-1.fc20.x86_64
SDL-devel-1.2.15-12.fc20.x86_64
lua-devel-5.2.2-5.fc20.x86_64
SDL_mixer-devel-1.2.12-5.fc20.x86_64
ffmpeg-devel-2.1.1-1.fc20.x86_64
freetype-devel-2.5.0-4.fc20.x86_64

Any help will be appreciated :)
Piratmac

Error log upon "make":
Scanning dependencies of target CorsixTH
[ 2%] Building CXX object CorsixTH/CMakeFiles/CorsixTH.dir/SrcUnshared/main.cpp.o
[ 5%] Building C object CorsixTH/CMakeFiles/CorsixTH.dir/SrcUnshared/SDL_main_win32.c.o
[ 8%] Building CXX object CorsixTH/CMakeFiles/CorsixTH.dir/Src/sdl_core.cpp.o
/path/to/CorsixTH-0.30/CorsixTH/Src/sdl_core.cpp: In function ‘int l_mainloop(lua_State_)’:
/path/to/CorsixTH-0.30/CorsixTH/Src/sdl_core.cpp:227:48: erreur: invalid conversion from ‘int’ to ‘lua_State_’ [-fpermissive]
if(lua_resume(dispatcher, nargs) != LUA_YIELD)
^
/path/to/CorsixTH-0.30/CorsixTH/Src/sdl_core.cpp:227:48: erreur: too few arguments to function ‘int lua_resume(lua_State_, lua_State_, int)’
In file included from /path/to/CorsixTH-0.30/CorsixTH/Src/lua.hpp:27:0,
from /path/to/CorsixTH-0.30/CorsixTH/Src/lua_sdl.h:26,
from /path/to/CorsixTH-0.30/CorsixTH/Src/sdl_core.cpp:24:
/usr/include/lua.h:274:13: note: declared here
LUA_API int (lua_resume) (lua_State L, lua_State *from, int narg);
^
/path/to/CorsixTH-0.30/CorsixTH/Src/sdl_core.cpp:238:40: erreur: invalid conversion from ‘int’ to ‘lua_State
’ [-fpermissive]
if(lua_resume(dispatcher, 1) != LUA_YIELD)
^
/path/to/CorsixTH-0.30/CorsixTH/Src/sdl_core.cpp:238:40: erreur: too few arguments to function ‘int lua_resume(lua_State_, lua_State_, int)’
In file included from /path/to/CorsixTH-0.30/CorsixTH/Src/lua.hpp:27:0,
from /path/to/CorsixTH-0.30/CorsixTH/Src/lua_sdl.h:26,
from /path/to/CorsixTH-0.30/CorsixTH/Src/sdl_core.cpp:24:
/usr/include/lua.h:274:13: note: declared here
LUA_API int (lua_resume) (lua_State L, lua_State *from, int narg);
^
/path/to/CorsixTH-0.30/CorsixTH/Src/sdl_core.cpp:254:44: erreur: invalid conversion from ‘int’ to ‘lua_State
’ [-fpermissive]
if(lua_resume(dispatcher, 1) != LUA_YIELD)
^
/path/to/CorsixTH-0.30/CorsixTH/Src/sdl_core.cpp:254:44: erreur: too few arguments to function ‘int lua_resume(lua_State_, lua_State_, int)’
In file included from /path/to/CorsixTH-0.30/CorsixTH/Src/lua.hpp:27:0,
from /path/to/CorsixTH-0.30/CorsixTH/Src/lua_sdl.h:26,
from /path/to/CorsixTH-0.30/CorsixTH/Src/sdl_core.cpp:24:
/usr/include/lua.h:274:13: note: declared here
LUA_API int (lua_resume) (lua_State L, lua_State *from, int narg);
^
/path/to/CorsixTH-0.30/CorsixTH/Src/sdl_core.cpp: At global scope:
/path/to/CorsixTH-0.30/CorsixTH/Src/sdl_core.cpp:332:1: erreur: elements of array ‘const luaL_reg sdllib []’ have incomplete type
};
^
/path/to/CorsixTH-0.30/CorsixTH/Src/sdl_core.cpp:332:1: erreur: storage size of ‘sdllib’ isn’t known
/path/to/CorsixTH-0.30/CorsixTH/Src/sdl_core.cpp:339:1: erreur: elements of array ‘const luaL_reg sdllib_with_upvalue []’ have incomplete type
};
^
/path/to/CorsixTH-0.30/CorsixTH/Src/sdl_core.cpp:339:1: erreur: storage size of ‘sdllib_with_upvalue’ isn’t known
make[2]: *
* [CorsixTH/CMakeFiles/CorsixTH.dir/Src/sdl_core.cpp.o] Erreur 1
make[1]: *** [CorsixTH/CMakeFiles/CorsixTH.dir/all] Erreur 2
make: *** [all] Erreur 2

Screenshot in DX is wrong in window mode

Take a screenshot using DirectX in a window mode and you get a screen dump of the entire desktop when you should get a screenshot of only the game window. OpenGL and SDL work correctly

Machines can be repaired even if it is in use

If a patient is using a machine, a handyman can still repair this machine (like the scanner) and this gives a strange animation (of a not-working and a working machine in one.)

Of course the handyman should wait with repairing until the machine is not in use.

SDL2: Map Editor does not compile

The map editor depended on the OpenGL back end which is no longer part of SDL2. Because of this it doesn't compile in the SDL2 branch.

Psychiatrist Chair can overlap bookcase

When playing CorsixTH trunk with demo files, there's a rendering bug in which if a psychiatrist sits in an armchair, and it's located behind another object, that armchair is rendered over all near objects.

Use arrow keys to navigate trough staff listing

In the original version, it is quite easy to navigate trough the staff listing, down and up arrows would do that. With CorsixTH, it is required to click on every single person, it gets a bit tedious. It would be nice if the arrow keys could be binded to navigating the list instead of moving the view of the hospital in that situation.

cmake uses wrong include directory when lua 5.2 is available

Many distributions package both lua5.1 and lua5.2.

As a convention the include directory for lua5.1 is typically placed under /usr/include/lua5.1
cmake however finds lua5.2 and fills in the lua include directory as /usr/include

It should check the more specific directory first.

Suggestion: reputation cheat

When I want to test level 12, It is very hard to have your reputation above the 450. Especially with testing this is very irritating. Couldn't we add an reputation cheat that highers your reputation with a value like 25, 50 or 100?

SDL2: Music is sometimes too fast or too slow

The music is sometimes to slow, fast or it stutters or it sounds completely different as it should.

This issue has so far only been verified on virtual machines..

hallo

hallo

hallo

hallo

Game crashes if showing a patient at the map edge

This issue was opened on googlecode http://code.google.com/p/corsix-th/issues/detail?id=1730 and relates to 0.30.

Load the save in that issue and watch the patient leave the map. The game then crashes with no error report.
For me this only happens in DX for 0.30, other two exe's work fine and DX works for me in trunk.

Windows event log
Faulting application name: CorsixTH_DirectX.exe, version: 0.0.0.0, time stamp: 0x529b5ed4
Faulting module name: CorsixTH_DirectX.exe, version: 0.0.0.0, time stamp: 0x529b5ed4
Exception code: 0xc0000005
Fault offset: 0x0000000000036c3c
Faulting process id: 0xc58
Faulting application start time: 0x01cf0bdbac2e9cb4
Faulting application path: C:\Program Files\CorsixTH\CorsixTH_DirectX.exe
Faulting module path: C:\Program Files\CorsixTH\CorsixTH_DirectX.exe
Report Id: f0cf6841-77ce-11e3-8e87-8c89a5160b8f

Stuck in Operating Theatre

I don't know how to reproduce this bug, and there is no error message.

In the save, there are two Operating Theater. The one has issue is one the right hand side.

This is what happened to me:

  1. some people in queue but can't get in.
  2. two doctor inside, they are very sleeping but look like can't go out to take a rest. They are wearing operating cloth (green cloth).
    --- as a result, no one go in and doctor can't come out --
  3. When i notice this, I drag and drop the doctors from inside to outside. So they can take a rest.
  4. I drag and drop another two doctors inside the room, they change the cloth, but patient not go in....
    --- room stuck ---

Similar issue happened a few times in GP office too, the doctor is very very sleepy but keep working.

save:
https://drive.google.com/file/d/0B05D0Cat5usfYUQwa0NDX3prUEE/edit?usp=sharing

Patients fall off the queue

I have noticed that patients just hanging around, sometimes it is because you notice them getting closer to death and other times like in this picture I noticed someone waiting when the nearest room is actually free.
She has the dynamic info of queuing for x-ray, the door shows no one is waiting or on the way. The queue dialog for that room is also empty.

Only solutions are either send home or clicking on guess at cure.

4

As with the other issue I have just opened, I am testing the epidemic branch, but I have seen this happen in 0.30 and not just with this room.

bad argument #4 to 'findDistance'

An error has occured!
Almost anything can be the cause, but the detailed information below can help th
e developers find the source of the error.
Running: The timer handler.
A stack trace is included below, and the handler has been disconnected.
E:\CorsixTH\Lua\world.lua:1486: bad argument #4 to 'findDistance' (number expect
ed, got nil)
stack traceback:
        [C]: in function 'findDistance'
        E:\CorsixTH\Lua\world.lua:1486: in function 'getPathDistance'
        E:\CorsixTH\Lua\hospital.lua:1624: in function 'searchForHandymanTask'
        E:\CorsixTH\Lua\entities\staff.lua:892: in function 'searchForHandymanTa
sk'
        E:\CorsixTH\Lua\calls_dispatcher.lua:232: in function 'answerCall'
        E:\CorsixTH\Lua\humanoid_actions\answer_call.lua:24: in function '?'
        E:\CorsixTH\Lua\entities\humanoid.lua:547: in function 'Humanoid_startAc
tion'
        E:\CorsixTH\Lua\entities\humanoid.lua:639: in function 'finishAction'
        E:\CorsixTH\Lua\humanoid_actions\use_object.lua:317: in function 'action
_use_object_tick'
        E:\CorsixTH\Lua\humanoid_actions\use_object.lua:128: in function 'action
_use_phase'
        E:\CorsixTH\Lua\humanoid_actions\use_object.lua:320: in function 'action
_use_object_tick'
        E:\CorsixTH\Lua\humanoid_actions\use_object.lua:128: in function 'action
_use_phase'
        E:\CorsixTH\Lua\humanoid_actions\use_object.lua:320: in function 'action
_use_object_tick'
        E:\CorsixTH\Lua\humanoid_actions\use_object.lua:128: in function 'action
_use_phase'
        E:\CorsixTH\Lua\humanoid_actions\use_object.lua:387: in function '?'
        E:\CorsixTH\Lua\entities\humanoid.lua:547: in function 'Humanoid_startAc
tion'
        E:\CorsixTH\Lua\entities\humanoid.lua:639: in function 'timer_function'
        E:\CorsixTH\Lua\entity.lua:166: in function 'tick'
        E:\CorsixTH\Lua\entities\staff.lua:145: in function 'tick'
        E:\CorsixTH\Lua\world.lua:1023: in function 'onTick'
        E:\CorsixTH\Lua\app.lua:789: in function <E:\CorsixTH\Lua\app.lua:786>
        (tail call): ?
        E:\CorsixTH\Lua\app.lua:690: in function <E:\CorsixTH\Lua\app.lua:685>

After the error, I save the game.
Then I open the save (see attachment), it show this error.

Warning: No event handler for timer
An error has occured!
Almost anything can be the cause, but the detailed information below can help th
e developers find the source of the error.
Running: The timer handler.
A stack trace is included below, and the handler has been disconnected.
E:\CorsixTH\Lua\humanoid_actions\use_object.lua:31: attempt to perform arithmeti
c on local 'phase' (a nil value)
stack traceback:
        E:\CorsixTH\Lua\humanoid_actions\use_object.lua:31: in function 'action_
use_next_phase'
        E:\CorsixTH\Lua\humanoid_actions\use_object.lua:284: in function 'timer_
function'
        E:\CorsixTH\Lua\entity.lua:166: in function 'tick'
        E:\CorsixTH\Lua\entities\staff.lua:145: in function 'tick'
        E:\CorsixTH\Lua\world.lua:1023: in function 'onTick'
        E:\CorsixTH\Lua\app.lua:789: in function <E:\CorsixTH\Lua\app.lua:786>
        (tail call): ?
        E:\CorsixTH\Lua\app.lua:690: in function <E:\CorsixTH\Lua\app.lua:685>

save:
https://drive.google.com/file/d/0B05D0Cat5usfcUtWbG5PTlZ1Zm8/edit?usp=sharing

Vomit in a room (editing it causes an error)

I think this is already reported here: http://code.google.com/p/corsix-th/issues/detail?id=1338&q=vomit%20in%20room But I now also know how to reproduce this:

1.Make a blueprint of a room and make sure a patient which is going to vomit is already standing at the blueprint or will stand (walk to the blueprint) at the blueprint after you made the selection of the blueprint, but before you confirmed it.
2. Confirm the blueprint.
3. The patient will vomit at the blueprint and the room can be builded over it.

And when I want to edit the room, I get this nice error:
Savegame version is 78 (0.30), originally it was 78 (0.30)
Error in buttonup handler:
C:\Program Files\CorsixTH\Lua\dialogs\place_objects.lua:227: attempt to index field 'orientations' (a nil value)
stack traceback:
[C]: in function 'sort'
C:\Program Files\CorsixTH\Lua\dialogs\place_objects.lua:226: in function 'addObjects'
C:\Program Files\CorsixTH\Lua\dialogs\edit_room.lua:603: in function 'returnToDoorPhase'
C:\Program Files\CorsixTH\Lua\dialogs\edit_room.lua:187: in function 'callback'
C:\Program Files\CorsixTH\Lua\window.lua:645: in function 'handleClick'
C:\Program Files\CorsixTH\Lua\window.lua:1406: in function 'onMouseUp'
C:\Program Files\CorsixTH\Lua\dialogs\place_objects.lua:449: in function 'onMouseUp'
C:\Program Files\CorsixTH\Lua\window.lua:1390: in function 'onMouseUp'
C:\Program Files\CorsixTH\Lua\ui.lua:703: in function 'dispatch'
C:\Program Files\CorsixTH\Lua\app.lua:739: in function <C:\Program Files\CorsixTH\Lua\app.lua:734>

Attached save: https://drive.google.com/file/d/0Bwc5O5IR0pMpUkE1NExSTW9DQWc/edit?usp=sharing

This bug can be reproduced especially since version 0.30, because of the vomit tweaking, which causes much more vomit.

Cold hospital has low consequences

I played the first level of the game with barely no heating and patients such as doctors where quite upset. Nearly every patient had a frowny face and doctors were asking for raises/bonuses very often.

The same scenario applied to CorsixTH does not go that bad. Patients will be cold but not too upset and doctors will barely complain. Also, the heat indicator will be at ~15-25% even though there is not one single heater in the hospital. It was quite close to 0% in the original game.

TEST ISSUE

This issue is just to see if I have the correct permissions to edit issues at the moment, like editing them and closing them. Others can also experiment with this issue if they want. This issue can be deleted after we all know how everything works here.

Editing room causes an error

Load the save and edit the slack tongue clinic and you get this error

Error in buttonup handler:
...pidemics\CorsixTH\Lua\humanoid_actions\seek_room.lua:110: attempt to index field 'hospital' (a nil value)
stack traceback:
...pidemics\CorsixTH\Lua\humanoid_actions\seek_room.lua:110: in function 'action_seek_room_no_treatment_room_found'
...pidemics\CorsixTH\Lua\humanoid_actions\seek_room.lua:287: in function '?'
...imental-epidemics\CorsixTH\Lua\entities\humanoid.lua:551: in function 'Humanoid_startAction'
...imental-epidemics\CorsixTH\Lua\entities\humanoid.lua:618: in function 'setNextAction'
...orsixTH-experimental-epidemics\CorsixTH\Lua\room.lua:95: in function 'callback'
...orsixTH-experimental-epidemics\CorsixTH\Lua\room.lua:808: in function 'deactivate'
...orsixTH-experimental-epidemics\CorsixTH\Lua\room.lua:815: in function 'tryToEdit'
...ixTH-experimental-epidemics\CorsixTH\Lua\game_ui.lua:520: in function <...ixTH-experimental-epidemics\CorsixTH\Lua\game_ui.lua:481>
(tail call): ?
(tail call): ?
...CorsixTH-experimental-epidemics\CorsixTH\Lua\app.lua:740: in function <...CorsixTH-experimental-epidemics\CorsixTH\Lua\app.lua:735>

https://www.dropbox.com/s/2umrgixkwf81hkg/Autosave7.sav

there may be a connection to http://code.google.com/p/corsix-th/issues/detail?id=794, although with that issue it is usually diag rooms

Fire Doctor when he is working in X-ray

Warning: No event handler for timer
An error has occured!
Almost anything can be the cause, but the detailed information below can help th
e developers find the source of the error.
Running: The timer handler.
A stack trace is included below, and the handler has been disconnected.
E:\CorsixTH\Lua\entities\patient.lua:134: attempt to perform arithmetic on field
'fatigue' (a nil value)
stack traceback:
E:\CorsixTH\Lua\entities\patient.lua:134: in function 'completeDiagnosti
cStep'
E:\CorsixTH\Lua\room.lua:162: in function 'dealtWithPatient'
E:\CorsixTH\Lua\rooms\x_ray_room.lua:70: in function 'after_use'
E:\CorsixTH\Lua\humanoid_actions\use_object.lua:315: in function 'timer_
function'
E:\CorsixTH\Lua\entity.lua:166: in function 'tick'
E:\CorsixTH\Lua\world.lua:1023: in function 'onTick'
E:\CorsixTH\Lua\app.lua:789: in function <E:\CorsixTH\Lua\app.lua:786>
(tail call): ?
E:\CorsixTH\Lua\app.lua:690: in function <E:\CorsixTH\Lua\app.lua:685>

Save:
https://docs.google.com/file/d/0B05D0Cat5usfSFJRbTN3S2txaHc/edit?usp=sharing

Multiple handymen repair x-ray

a
I don't know if this is general or just the epidemic branch, but I have noticed that when the x-ray needs repair that more than one handyman turns up.
In the second picture you will see there are two handymen, only one call for repair and having clicked on each of them you will see in the console that they have both answered the call.
As I have only been testing epidemics for the last few weeks I don't know whether this is specific to that branch or a general issue. Sadger is pretty sure he has not done anything that could cause this.

Has anyone else seen this?
7

Crash on sacking staff during diagnosis process

A stack trace is included below, and the handler has been disconnected.
E:\CorsixTH\Lua\entities\patient.lua:134: attempt to perform arithmetic on field
'fatigue' (a nil value)
stack traceback:
E:\CorsixTH\Lua\entities\patient.lua:134: in function 'completeDiagnosti
cStep'
E:\CorsixTH\Lua\room.lua:162: in function 'dealtWithPatient'
E:\CorsixTH\Lua\rooms\x_ray_room.lua:70: in function 'after_use'
E:\CorsixTH\Lua\humanoid_actions\use_object.lua:315: in function 'timer_
function'
E:\CorsixTH\Lua\entity.lua:166: in function 'tick'
E:\CorsixTH\Lua\world.lua:1023: in function 'onTick'
E:\CorsixTH\Lua\app.lua:789: in function <E:\CorsixTH\Lua\app.lua:786>
(tail call): ?
E:\CorsixTH\Lua\app.lua:690: in function <E:\CorsixTH\Lua\app.lua:685>

Warning: No event handler for timer

save:
https://docs.google.com/file/d/0B05D0Cat5usfWW9nbGJDOWo2dHM/edit?usp=sharing

SDL2: Shadows rendered outside viewport

When looking at doctors in the staff management screen shadows are drawn outside the viewing area as shown on the attached screenshot. In the example you can clearly see that it's the shadow on the north wall. It is in the correct place relative to the doctor.

wrong_shadow

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.