Log 1 : destroy()

Talk about anything Legend of Grimrock 1 related here.
Post Reply
trancelistic
Posts: 275
Joined: Sat Jun 16, 2012 5:32 am

Log 1 : destroy()

Post by trancelistic »

Hey. I've noticed my old MOD for LoG1 is going well. I worked most of the bugs out.

However I've stumbeld upon a new problem. ( it didn't happend before or ever really)


The basic thing is this: ( my work arround) An alcove accept the item. Triggers a script that destroys the item. Places a new item next to in a new alcove. Destorys the alcove the item was put in and places a secret door in its place.

It works fine. No biggy. But if the player later has to trackback from lower level to the topper floors again. The ground texture is missing ( onyl 1 quare where the alcove used to be before I've destoryed it) . Seeing a "hole" As in a totaly open black floor.

What could do this?
Image
minmay
Posts: 2790
Joined: Mon Sep 23, 2013 2:24 am

Re: Log 1 : destroy()

Post by minmay »

you probably spawned an object that has replacesFloor, then destroyed it
Grimrock 1 dungeon
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.
trancelistic
Posts: 275
Joined: Sat Jun 16, 2012 5:32 am

Re: Log 1 : destroy()

Post by trancelistic »

Thanks for the feedback. I'm 99.99% sure its not a destroy to the floor. I destroy the alcove only and put a wall there.
This happens on all places in me dungeon with both, destroy an alcolve and spawn a wall ( secret door)

Edit: I did never before. The dungeon decided to "think for itself later on

im started to guess. when i started to build this mod back in previous version and update it later in late 2012 and 2013.. Maybe thats why its all buggy?


EDit. You are as usely right.

But you are just to advanced to me. ( Know alot more of coding as me)

I replace all my scripts anyhows with: NOT destroy anything at all. DO not spawn a wall to cover it up and destory an alcove behind it...

Now I use the i:destroy in the script it self.. Yup no more black holes<3


If only 1 would tell me. It could saved me alot of stress.

Thanks anyhows<3
trancelistic
Posts: 275
Joined: Sat Jun 16, 2012 5:32 am

Re: Log 1 : destroy()

Post by trancelistic »

minmay wrote:you probably spawned an object that has replacesFloor, then destroyed it
Well that didnt help me at all.

But after spending tons of hours searching on the forum, I did managed to fix it.
I do appreciate your help, as always. You always reply to all. Respect for you dude>3

Am just glad that I fix it while I had no idea what u was trying to tell me:P

love ya anyhows Minmay.
Post Reply