HELP! What could stop an allEntities search? diagnosing bug

Talk about creating Grimrock 1 levels and mods here. Warning: forum contains spoilers!
User avatar
Xanathar
Posts: 629
Joined: Sun Apr 15, 2012 10:19 am
Location: Torino, Italy
Contact:

Re: HELP! What could stop an allEntities search? diagnosing

Post by Xanathar »

@Komag
I think the best solution is to spawn a hidden pressure plate like this:

Code: Select all

	spawn("pressure_plate_hidden", party.level, party.x, party.y, 0)
		:setTriggeredByParty(true)
		:setTriggeredByMonster(false)
		:setTriggeredByItem(false)
		:setActivateOnce(true)
		:setSilent(true)
		:addConnector("activate", self.id, "init")
this way there is no delay whatsoever. (now, to advertise a bit: the really best option is to use grimq and name the function autoexec().. it takes care of this detail for you once and for all ;) :twisted: - except for the fact that I need to revise grimq as it uses allEntities extensively :( )

The code in the chests didn't do that basically because there was never the need to.
Waking Violet (Steam, PS4, PSVita, Switch) : http://www.wakingviolet.com

The Sunset Gate [MOD]: viewtopic.php?f=14&t=5563

My preciousss: http://www.moonsharp.org
User avatar
Xanathar
Posts: 629
Joined: Sun Apr 15, 2012 10:19 am
Location: Torino, Italy
Contact:

Re: HELP! What could stop an allEntities search? diagnosing

Post by Xanathar »

@Marble Mouth : interesting that the order of initialization seems to be the one in the dungeon.lua which also seems to be the one of creation in the editor. I would say this very dangerous to rely upon but surely comes handy when debugging :)
Waking Violet (Steam, PS4, PSVita, Switch) : http://www.wakingviolet.com

The Sunset Gate [MOD]: viewtopic.php?f=14&t=5563

My preciousss: http://www.moonsharp.org
Grimfan
Posts: 369
Joined: Wed Jan 02, 2013 7:48 am

Re: HELP! What could stop an allEntities search? diagnosing

Post by Grimfan »

I wouldn't worry too much about grimq Xanathar. Petri and the rest of the AH team are sure to fix the allEntities bug when the next patch comes around (especially if they know it can crash peoples games). :)

And I decided to leave the chestmanager alone as you suggested.

One more little thing I have noticed however (though this should go in your chest thread perhaps). When I placed a mimic in a destructible chest object, the party was damaging the chest with their weapons instead of the mimic. Spells worked fine, but their melee attacks were just hitting the chest. It could have been just a glitch with my editor or a problem with my placement of the chest object, but I thought I'd let you know anyhow.
User avatar
Xanathar
Posts: 629
Joined: Sun Apr 15, 2012 10:19 am
Location: Torino, Italy
Contact:

Re: HELP! What could stop an allEntities search? diagnosing

Post by Xanathar »

Interesting the destructible+mimic. Will check it and I'll also get a check at the destroying of chests (as in removing from the world). Don't know when though :oops: :?
Waking Violet (Steam, PS4, PSVita, Switch) : http://www.wakingviolet.com

The Sunset Gate [MOD]: viewtopic.php?f=14&t=5563

My preciousss: http://www.moonsharp.org
Marble Mouth
Posts: 52
Joined: Sun Feb 10, 2013 12:46 am
Location: Dorchester, MA, USA

Re: HELP! What could stop an allEntities search? diagnosing

Post by Marble Mouth »

This appears to be fixed in the latest version. Can anyone confirm or deny this?
User avatar
Komag
Posts: 3658
Joined: Sat Jul 28, 2012 4:55 pm
Location: Boston, USA

Re: HELP! What could stop an allEntities search? diagnosing

Post by Komag »

what latest version? are you talking about the chests?
Finished Dungeons - complete mods to play
Marble Mouth
Posts: 52
Joined: Sun Feb 10, 2013 12:46 am
Location: Dorchester, MA, USA

Re: HELP! What could stop an allEntities search? diagnosing

Post by Marble Mouth »

For some reason, I thought that there was another patch released since Feb 13, 2013, but apparently not. I guess I just didn't notice the new features from that update immediately. I tried to reproduce the bug by placing map markers and then calling allEntities, but I was unable to reproduce it. But then again, I never experienced the bug in the first place. Sorry for jumping the gun.
Post Reply