April 23, 2019, 11:03:29 AMLatest Member: zanzo

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Ben Dyson

Pages: [1] 2
1
Research Department / Re: Screenshot notification
« on: June 26, 2011, 01:03:30 PM »
I'm new to learning lua, but would't something like this work;
Code: [Select]
self.ui.adviser:say("Screenshot Taken")Just wondering because if it did it would be a handy little notification and it didn't take much

2
Graphics / Re: random item/room ideas
« on: April 11, 2011, 04:08:21 PM »
We really need a specification for creating graphics so that any new-comers will know what format they have to be in and how to add them in corsixTH

3
Graphics / Re: random item/room ideas
« on: April 11, 2011, 12:13:38 PM »
It could be a idea to post a new topic somewhere in the fourms and get everybody's thought and ideas on having a offical website.
The other project(Openth) has a offical website with a blog and a list of all the people working on it, http://openth.wordpress.com/.

4
Graphics / Re: random item/room ideas
« on: April 11, 2011, 11:33:54 AM »
There could be a single website on the same domain as this fourm, it could be used to post updates and also include features for designers to upload images of there creation's.
It would be quite simple to set up a simple upload system using php, I know a bit of php/html and could also help set up the system.
Great Ideas though, I think a cafe would be a good idea for paitents to go and get food and drink and could improve and reputation of the hospital and the happiness of the patients.

Just a thought

5
Off Topic / Re: Learning Lua:
« on: April 03, 2011, 01:43:46 PM »
Yay, I have gotten it to work, In room.lua I have deleted line 482 which is
Code: [Select]
self.world.ui:addWindow(UIInformation(self.world.ui, _S.room_descriptions[self.room_info.id]))And it works, although I don't know if this will cause more problems.

6
Off Topic / Re: Learning Lua:
« on: April 03, 2011, 01:32:18 PM »
Back to a long error again :(, when I click finish, here is the error
Code: [Select]
Notice: LuaJIT not being used.
Consider replacing Lua with LuaJIT to improve performance. Note that there is no
t currently a 64 bit version of LuaJIT.
Error loading rooms\cafe.lua:
Non-existant string: cafe
An error has occured while running the buttonup handler.
A stack trace is included below, and the handler has been disconnected.
Non-existant string: empty
stack traceback:
        [C]: in function 'error'
        C:\Program Files\CorsixTH\Lua\strings.lua:139: in function <C:\Program F
iles\CorsixTH\Lua\strings.lua:131>
        [C]: ?
        C:\Program Files\CorsixTH\Lua\room.lua:482: in function 'roomFinished'
        C:\Program Files\CorsixTH\Lua\world.lua:580: in function 'markRoomAsBuil
t'
        C:\Program Files\CorsixTH\Lua\dialogs\edit_room.lua:228: in function 'ca
llback'
        C:\Program Files\CorsixTH\Lua\window.lua:590: in function 'handleClick'
        C:\Program Files\CorsixTH\Lua\window.lua:1287: in function 'onMouseUp'
        ...Program Files\CorsixTH\Lua\dialogs\place_objects.lua:440: in function
 <...Program Files\CorsixTH\Lua\dialogs\place_objects.lua:439>
        (tail call): ?
        C:\Program Files\CorsixTH\Lua\window.lua:1271: in function 'onMouseUp'
        C:\Program Files\CorsixTH\Lua\ui.lua:632: in function <C:\Program Files\
CorsixTH\Lua\ui.lua:619>
        (tail call): ?
        (tail call): ?
        (tail call): ?
        C:\Program Files\CorsixTH\Lua\app.lua:578: in function <C:\Program Files
\CorsixTH\Lua\app.lua:573>

I Have looked at the error and it seems to be button up again

7
Off Topic / Re: Learning Lua:
« on: April 03, 2011, 12:39:38 PM »
Hey, Im so sorry but i don't understand what I have to do

8
Graphics / Re: Custom Graphic packs
« on: April 03, 2011, 12:04:27 PM »
Is there anyway we can do what we did with the audio.lua sound extraction, something like this in graphics.lua.
Code: [Select]
--self:dumpSoundArchive[[C:\Program Files\CorsixTH\sound\]]But instead of extracting the sound, extract the graphics.
Just a thought

9
Research Department / Re: Sound file extraction
« on: April 03, 2011, 11:56:48 AM »
There is a way to extract the sound files to .wav using the audio.lua file, just scroll down to line 222 and uncomment this piece of code
Code: [Select]
--self:dumpSoundArchive[[C:\Program Files\CorsixTH\sound\]]
Remember to change the file path to where you would like it to be extracted to.

10
Off Topic / Re: Learning Lua:
« on: April 03, 2011, 10:37:24 AM »
I understand that it is line 28 of empty.lua,  but I don't understand what is wrong with it, here is line 28;
Code: [Select]
rooms_description = _S.rooms_descriptions.empty

11
Off Topic / Re: Learning Lua:
« on: April 02, 2011, 09:20:20 PM »
Ok, the error code is getting shorter,

Error loading rooms\empty.lua:
C:\Program Files\CorsixTH\Lua\rooms\empty.lua:28: assign to undeclared variable
'rooms_description'

Thank you so much for this

12
Off Topic / Re: Learning Lua:
« on: April 02, 2011, 08:45:18 PM »
Sorry, but I don't understand what I have to do, sorry?

13
Off Topic / Re: Learning Lua:
« on: April 02, 2011, 07:40:07 PM »
Notice: LuaJIT not being used.
Consider replacing Lua with LuaJIT to improve performance. Note that there is no
t currently a 64 bit version of LuaJIT.
Error loading rooms\cafe.lua:
Non-existant string: cafe
An error has occured while running the buttonup handler.
A stack trace is included below, and the handler has been disconnected.
C:\Program Files\CorsixTH\Lua\graphics.lua:284: bad argument #1 to 'sizeOf' (str
ing expected, got nil)
stack traceback:
        [C]: in function 'sizeOf'
        C:\Program Files\CorsixTH\Lua\graphics.lua:284: in function 'sizeOf'
        ...:\Program Files\CorsixTH\Lua\dialogs\information.lua:66: in function
'onChangeLanguage'
        ...:\Program Files\CorsixTH\Lua\dialogs\information.lua:56: in function
'constructor'
        C:\Program Files\CorsixTH\Lua\class.lua:73: in function 'UIInformation'
        C:\Program Files\CorsixTH\Lua\room.lua:482: in function 'roomFinished'
        C:\Program Files\CorsixTH\Lua\world.lua:580: in function 'markRoomAsBuil
t'
        C:\Program Files\CorsixTH\Lua\dialogs\edit_room.lua:228: in function 'ca
llback'
        C:\Program Files\CorsixTH\Lua\window.lua:590: in function 'handleClick'
        C:\Program Files\CorsixTH\Lua\window.lua:1287: in function 'onMouseUp'
        ...Program Files\CorsixTH\Lua\dialogs\place_objects.lua:440: in function
 <...Program Files\CorsixTH\Lua\dialogs\place_objects.lua:439>
        (tail call): ?
        C:\Program Files\CorsixTH\Lua\window.lua:1271: in function 'onMouseUp'
        C:\Program Files\CorsixTH\Lua\ui.lua:632: in function <C:\Program Files\
CorsixTH\Lua\ui.lua:619>
        (tail call): ?
        (tail call): ?
        (tail call): ?
        C:\Program Files\CorsixTH\Lua\app.lua:578: in function <C:\Program Files
\CorsixTH\Lua\app.lua:573>

14
Off Topic / Re: Learning Lua:
« on: April 02, 2011, 05:59:55 PM »
OK, Thanks
I understand both of them and what you are going one about but I can't seem to get the bottom one working,
Here is my code:
empty.lua -
Code: [Select]
local room = {}
room.id = "empty"
room.level_config_id = 25
room.class = "empty"
room.name = _S.rooms_short.empty
room.tooltip = _S.rooms_short.empty
room.description = _S.room_descriptions.empty
room.objects_additional = { "extinguisher","desk","sofa"}
room.objects_needed = {  }
room.build_preview_animation = 900
room.categories = {
  facilities = 5,
}
At the bottom of english.lua -
Code: [Select]
rooms_short.empty = "Empty Room"
room_descriptions.empty = "Empty Room"

Sorry it takes me long to get used to lua, it should be easy considering I already know a little visual basic and c#

Thank you

Ben

15
Off Topic / Re: Learning Lua:
« on: April 02, 2011, 11:48:08 AM »
Hi,
Thanks for that, I thought it was something like that and have had a look in the english.lua file and cant find the list for the rooms_short where about is it in that file?

Another thing, I am getting the room to show up in the build menu and build it but when I click on the finish button, a error comes up, I have attached a picture of the console.

Thank you so much for this help :)
Ben

Pages: [1] 2