Page 1 of 2

Empty space OR wall function missing?

Posted: Thu Oct 11, 2012 11:02 pm
by BeNNyBiLL
I'm hitting my head against the wall here. I cannot find a single sensible way to test a tile at (x,y) whether there is space drawn there or whether its just a wall. I can't see it here http://www.grimrock.net/modding/scripting-reference/, so does it exist? I'd expect a function as simple as this to be at the top of said document in the link. Help would be much appreciated!

Re: Empty space OR wall function missing?

Posted: Thu Oct 11, 2012 11:37 pm
by Neikun
Are you testing visuals?
I'm confused by what exactly you're trying to test.

Re: Empty space OR wall function missing?

Posted: Thu Oct 11, 2012 11:40 pm
by BeNNyBiLL
You know how you paint floor tiles in the editor, I.e create empty space for walking on. I need to be able to test if a coordinate is actual dungeon space is whether it is a void area. Without a test like this I am unable to spawn things safely in the knowladge that it will be in the dungeon and not stuck somewhere impossible between rooms.

Re: Empty space OR wall function missing?

Posted: Thu Oct 11, 2012 11:44 pm
by Neikun
viewtopic.php?f=14&t=3631
Does this help at all?

Re: Empty space OR wall function missing?

Posted: Thu Oct 11, 2012 11:58 pm
by BeNNyBiLL
As I feared. I was hoping for a sensible approach. Spawning enitites and checking for their existance in tiles is such an ugly way of doing things, although I cannot deny an approach such as that would work. What is the best way to get in contact with the developers about small function additions such as this? I'm going to be making this floor availability check literally hundreds of times on startup, not including how many more times I may want to call this check during runtime of the scripts. Thanks for clarifying this to me anyhow

Re: Empty space OR wall function missing?

Posted: Fri Oct 12, 2012 3:48 pm
by petri
Added this to my todo list.

Re: Empty space OR wall function missing?

Posted: Fri Oct 12, 2012 3:55 pm
by Blichew
petri wrote:Added this to my todo list.
Could we see your to-do list by any chance :P ?

Re: Empty space OR wall function missing?

Posted: Fri Oct 12, 2012 7:14 pm
by BeNNyBiLL
Excellent petri :). +1 to see the todo list aswell!

Re: Empty space OR wall function missing?

Posted: Fri Oct 12, 2012 7:26 pm
by Kuningas
BeNNyBiLL wrote:Excellent petri :). +1 to see the todo list aswell!
Nonono, surprise us. : D

Re: Empty space OR wall function missing?

Posted: Fri Oct 12, 2012 7:51 pm
by petri
Some things are best kept secret ;)