Page 3 of 3

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

Posted: Mon Feb 18, 2013 8:41 pm
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.

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

Posted: Mon Feb 18, 2013 10:20 pm
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 :)

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

Posted: Tue Feb 19, 2013 1:48 pm
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.

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

Posted: Tue Feb 19, 2013 2:34 pm
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: :?

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

Posted: Fri Mar 01, 2013 2:33 am
by Marble Mouth
This appears to be fixed in the latest version. Can anyone confirm or deny this?

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

Posted: Fri Mar 01, 2013 3:18 am
by Komag
what latest version? are you talking about the chests?

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

Posted: Fri Mar 01, 2013 3:37 am
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.