Problem with spawning alcove where a wall was

Talk about creating Grimrock 1 levels and mods here. Warning: forum contains spoilers!
Dragomir
Posts: 12
Joined: Wed Jan 16, 2013 12:09 am

Problem with spawning alcove where a wall was

Post by Dragomir »

Ok im using a script to spawn an entire room. But when i spawn an alcove lets say on a normal plain wall .. well my alcove is there but the wall is there too and its like the alcove wall does not replace the normal wall so they are both together its weird. How can i do that ?

Image
User avatar
BuzzJ
Posts: 160
Joined: Sat Jan 12, 2013 4:06 pm

Re: Problem with spawning alcove where a wall was

Post by BuzzJ »

My way of doing alcoves is quick and dirty: I have a wall that is a normal wall with a square cut out and holed. That object is set to replace wall. A separate object not set to replace wall is dropped on top.
Dragomir
Posts: 12
Joined: Wed Jan 16, 2013 12:09 am

Re: Problem with spawning alcove where a wall was

Post by Dragomir »

Id like to find a solution without changing any texture or model. And this is not only for alcoves but for anything you put on a wall spawning them (statue - alcoves etc..)
User avatar
Komag
Posts: 3659
Joined: Sat Jul 28, 2012 4:55 pm
Location: Boston, USA

Re: Problem with spawning alcove where a wall was

Post by Komag »

You can have a secret door there first, then destroy it and spawn the alcove
Finished Dungeons - complete mods to play
Dragomir
Posts: 12
Joined: Wed Jan 16, 2013 12:09 am

Re: Problem with spawning alcove where a wall was

Post by Dragomir »

To put a secret door there dont i need another empty square behind ? And i really dont get why it does that .. an alcove is suppose to be replacing the wall no ? replaceWall = true
I might not have a choice to put a secret door + another space behind the alcove but its not good because i dont have enough place to put one square behind ;)
User avatar
Komag
Posts: 3659
Joined: Sat Jul 28, 2012 4:55 pm
Location: Boston, USA

Re: Problem with spawning alcove where a wall was

Post by Komag »

just put the secret door elsewhere then move it into place with WASD
Finished Dungeons - complete mods to play
Dragomir
Posts: 12
Joined: Wed Jan 16, 2013 12:09 am

Re: Problem with spawning alcove where a wall was

Post by Dragomir »

Will try that ;) Thx
I will post again to tell you guys if it works :)
Dragomir
Posts: 12
Joined: Wed Jan 16, 2013 12:09 am

Re: Problem with spawning alcove where a wall was

Post by Dragomir »

It seem it still doesnt work. I put a secret door on the wall at the limit of the map. Even if i destroy the secret door and spawn an alcove there its still like there is the normal wall + the alcove. Very weird. Is it possible that you cannot replace the wall when your at the limit of the map ? like the wall right beside the black border ? Seriously if someone have a solution for this let me know ;P i cant seem to find a solution to this unless i use a secret door with a space behind but when i use that i can walk right through the alcove.
Dragomir
Posts: 12
Joined: Wed Jan 16, 2013 12:09 am

Re: Problem with spawning alcove where a wall was

Post by Dragomir »

I tested with a space behind the secret door and when i destroy the door i spawn an invisible wall so that i cannot walk into the space behind the alcove. Its the only way i can see that fix the problem. :/
User avatar
Komag
Posts: 3659
Joined: Sat Jul 28, 2012 4:55 pm
Location: Boston, USA

Re: Problem with spawning alcove where a wall was

Post by Komag »

Ah, I remember better, you'll need to define a new secret door, one that replaces the wall, then it will work.
replacesWall = true,
Or just define a new wall decoration thing that uses the same model as the wall but replacesWall. Either way, if you delete it there will be a blank black hole there, perfect for sticking in an alcove
Finished Dungeons - complete mods to play
Post Reply