Page 2 of 5

Re: Weird error noticed whilst throwing rocks

Posted: Wed Oct 31, 2012 2:31 pm
by SpiderFighter
Kuningas wrote:I tried replicating the situation -- works fine without any scripts. The stone lands on the pressure plate and stays there. I don't know how you've handled yours. But it has to have something to do with scripts or custom assets, methinks.

I quess the lamp you have in the middle is such an asset, since you don't have a ceiling shaft for it? Could colliding with it do something weird? Try removing and altering parts of the puzzle one by one to isolate the problem, thats all I can think of right now.

Good luck as well. : /
I've been using the lights since I started the mod (which is 8 maps deep so far) without difficulty, but just to be safe, I deleted the lights completely, and...no change. :(
I appreciate the suggestion, though. At this point, I'll entertain anything.

[EDIT @ 0836]: Ok, cloning doesn't work. In fact, it doesn't matter what I throw; it just disappears. I deleted the floor to see what would hapoen to the one that gets bumped up (I have a few completed maps below this one), and everything worked fine...no disappearring objects.

My next step is to start deleting entire rooms one at a time to see if I can isolate this.

Re: Weird error noticed whilst throwing rocks

Posted: Wed Oct 31, 2012 2:47 pm
by Grimwold
just dropped into this thread, so I'd like to clarify a few things to try and help understand the problem.

* The problem happens only on that floor?
* does it happen if you move the floor up/down? (so the level number is different)
* If you delete the floor, it doesn't happen on the replacement floor which would have the same number?
* if it happens in the other room on the floor... does it happen at the exact same row? Have you tried adding rooms that are along the same row to see if it happens there?
* if it doesn't happen when you delete the floor, have you checked all the script entities on that floor to see if something weird got added to one of them?
* have you tried copying all the code for that level from dungeon.lua into a new dungeon? or the same dungeon on a different level? Does it still happen?

Re: Weird error noticed whilst throwing rocks

Posted: Wed Oct 31, 2012 2:57 pm
by SpiderFighter
Thanks, so much, Grim! Even if we don't figure it out, it beats talking to myself. :D
To avoid a bunch of quote tags, I've answered you in living color.
Grimwold wrote:just dropped into this thread, so I'd like to clarify a few things to try and help understand the problem.

* The problem happens only on that floor? - As far as I can tell, yes.
* does it happen if you move the floor up/down? (so the level number is different) - Nope.
* If you delete the floor, it doesn't happen on the replacement floor which would have the same number? - Nope.
* if it happens in the other room on the floor... does it happen at the exact same row? Have you tried adding rooms that are along the same row to see if it happens there? - It happens, but not in the same row or column...it's everywhere on the entire map. But see below.
* if it doesn't happen when you delete the floor, have you checked all the script entities on that floor to see if something weird got added to one of them? - Yes and, as I'm no code warrior, there's nothing funky that I can see.
* have you tried copying all the code for that level from dungeon.lua into a new dungeon? or the same dungeon on a different level? Does it still happen? - Not yet. But I'm hoping it doesn't come to that!
Here's some additional news. The mobs in that particular room are those beautiful custom slugs made by wallasaurus. If I delete the slugs, the problem goes away. HOWEVER...If I add slugs to a different floor...no problem there, either! So what gives? There has to be a "perfect storm" of sorts happening on this floor; something else is happening in conjunction with the slugs to create this problem.

Admit it: Now you're really intrigued! ;)

[EDIT @ 0906:] Correction: I tried rocks with slugs in a long corridor on a different floor and the rocks worked as intended as long as they were thrown W or S. Throw them N, and they vanish and reappear to the S of the slugs. I didn't test E. It shoudl also be noted that the problem doesn't happen as long as the slugs are not near the player (not sure of the exact proximity, but slugs halfway across the map don't affect throwing items).

I then tried replicating the problem by replacing all slugs with another custom entity: this time, Neikun's spiffy camo stoneslime01, and everything works perfectly.

My next step is to go into the files and make sure nothing I did to the slugs caused this.

[EDIT @ 0922:] I overwrote the monsters.lua with the original file, and I still have the same vanishing rock problem. I then made another room, threw a bunch of slugs, rocks and blockers in it...and that room works PERFECTLY.

At this point, I'm completely stumped. I don't even know what my next step is. I really want to keep the slugs if I can, and it's clear that the problem isn't entirely with them.

Re: Weird error noticed whilst throwing rocks

Posted: Wed Oct 31, 2012 3:27 pm
by Grimwold
Definitely sounds like the slugs are the source of your problem... I'll download them and see if I can replicate the problem

Re: Weird error noticed whilst throwing rocks

Posted: Wed Oct 31, 2012 3:32 pm
by Kuningas
The slugs seem to possess strange and wonderful powers. Since Grim is onto it, I will wait and see for now. I admit: I am intrigued.

Re: Weird error noticed whilst throwing rocks

Posted: Wed Oct 31, 2012 3:41 pm
by Grimwold
Hmm. I added the slug and a rock to a relatively fresh (2 small room) test dungeon and the rock seems to behave normally. Added a couple of blockers too, and all was fine.. So I'm at a bit of a loss.

[EDIT @ 13:46] - lots more tests and still no weirdness... I tried in long corridors running NS and EW (throwing from both sides).. also in 2-wide corridors throwing the rock beside the slug instead of at it.

[EDIT @ 13:51] - no clue at the moment. You have my email address from the One Room... if you would like, you could email me your files and I would gladly see if I could duplicate the problem that way. (completely understand if you would rather not, but the offer is there).

Re: Weird error noticed whilst throwing rocks

Posted: Wed Oct 31, 2012 3:58 pm
by SpiderFighter
Grimwold wrote:Hmm. I added the slug and a rock to a relatively fresh (2 small room) test dungeon and the rock seems to behave normally. Added a couple of blockers too, and all was fine.. So I'm at a bit of a loss.

[EDIT @ 13:46] - lots more tests and still no weirdness... I tried in long corridors running NS and EW (throwing from both sides).. also in 2-wide corridors throwing the rock beside the slug instead of at it.

[EDIT @ 13:51] - no clue at the moment. You have my email address from the One Room... if you would like, you could email me your files and I would gladly see if I could duplicate the problem that way. (completely understand if you would rather not, but the offer is there).
Thanks so much to both of you for your help, testing, and comments!!

I even deleted every floor except that one, and still had the same issues. So..here's the new strangeness:

I replaced every slug on the level with a stoneslime, and things are working normally. So, I set up a simple decremental puzzle in that room (where the slugs used to be)...and it doesn't work! Recheck everything..nope, still not working. SO...just for kicks and giggles, since that room is on the edge of the map, I selected everything in the room, moved it once space to the east, and suddenly everything works!! My next step is to put the slugs back in and see if the problem is gone.

At this point, if anyone needs a copy of my mod, just so you know I'm not jerking your chains, that's completely understandable. It's so random, that I'm not sure I'd believe it entirely, either.

Back in a few.
[edit @ 0959] Lol @ Grim...great minds and all that! And I trust both of you, so I'd have no problem letting you see the files. Not like they're plans for a nuclear bomb or anything. ;) Let me see if replacing the slugs works now that I've moved the room over. brb

[EDIT @ 1005:] As soon as I replace the custom slimes with the custom slugs, the problem resurfaces. So odd. Do you still want to take a peek, Grim?

Re: Weird error noticed whilst throwing rocks

Posted: Wed Oct 31, 2012 5:37 pm
by Grimwold
Just received your email and fired up the level in the editor. It is a weird one. The rock never even looks like it flies... it just disappears.

Some observations..
* before releasing the slugs, the rock always 'teleports' to the cubicle on the right (as the party looks at the room)
* once you release them, the rock will teleport to whichever cubicle is currently opening (so once the door is fully open that room is 'safe'
* once all doors are open the rock flies as it should.

Since I doubt it's the doors that are the issue, It's possible you have discovered a weird interaction between slugs and blockers... I will setup something similar in my test dungeon and let you know the results.

[EDIT @ 15:43] - That's it... slug on a blocker and the rock instantly teleports to that space. I have duplicated it in my own dungeon... tried with a snail and it doesn't happen. Release the slug from the blocker and it stops happening too.

Re: Weird error noticed whilst throwing rocks

Posted: Wed Oct 31, 2012 5:43 pm
by SpiderFighter
Grimwold wrote:Just received your email and fired up the level in the editor. It is a weird one. The rock never even looks like it flies... it just disappears.

Some observations..
* before releasing the slugs, the rock always 'teleports' to the cubicle on the right (as the party looks at the room)
* once you release them, the rock will teleport to whichever cubicle is currently opening (so once the door is fully open that room is 'safe'
* once all doors are open the rock flies as it should.

Since I doubt it's the doors that are the issue, It's possible you have discovered a weird interaction between slugs and blockers... I will setup something similar in my test dungeon and let you know the results.
Wow...nice investigative work, Grim! I'll play around more on my end too, now that we have a more solid idea of what's going on. Thanks again for helping me through my madness!

[EDIT @ 1150:] Removing blockers does not seem to affect the problem.

Re: Weird error noticed whilst throwing rocks

Posted: Wed Oct 31, 2012 5:46 pm
by Grimwold
see my edit above.. definitely seems to be a combination of the slug on a blocker