[Q] Entity Remove not working.

10/16/2013 17:08 Y u k i#1
[Only registered and activated users can see links. Click Here To Register...]

It´s driving me crazy. Everything on the General Data Packet works as it should, so the packet is correct. I also send the remove packet as soon as the mob dies and faded out.

[Only registered and activated users can see links. Click Here To Register...]

Thats how I try to remove the mob.
Here is the way Fang recommended:
[Only registered and activated users can see links. Click Here To Register...]

Here´s the packet. Dont mind the useless casting from long to short.

[Only registered and activated users can see links. Click Here To Register...]
10/16/2013 21:09 Spirited#2
I'm not sure if that's the way I recommended it. You might have read my post about screen systems, but this isn't what I would recommend doing. Anyways, it looks like the fade effect has been properly added, but the entity still remains alive. Make sure your alive method returns false.
10/16/2013 21:38 Y u k i#3
Quote:
Originally Posted by Fang View Post
I'm not sure if that's the way I recommended it. You might have read my post about screen systems, but this isn't what I would recommend doing. Anyways, it looks like the fade effect has been properly added, but the entity still remains alive. Make sure your alive method returns false.
It isnt alive, yes the packet gets sent.
10/16/2013 21:41 Spirited#4
Quote:
Originally Posted by Y u k i View Post
It isnt alive, yes the packet gets sent.
This looks like an older patch... what patch is this? The subtype might be different, depending on what patch it is.
10/16/2013 21:43 Y u k i#5
Quote:
Originally Posted by Fang View Post
This looks like an older patch... what patch is this? The subtype might be different, depending on what patch it is.
5017, as far as i know its 132
10/16/2013 21:49 CptSky#6
It should work... But I remember having the same issue at some point...


Code:
        public void Die(Int32 KillerUID)
        {
            Brain.Sleep();

            LastDieTime = Environment.TickCount;
            LastKillerUID = KillerUID;
            Disappeared = false;

            Timer.Start();

            CurHP = 0;

            Flags = (Int64)Monster.Flag.None;
            AddFlag(Monster.Flag.Die);
            AddFlag(Monster.Flag.Frozen);
            World.BroadcastRoomMsg(this, MsgUserAttrib.Create(this, Flags, MsgUserAttrib.Type.Flags));
        }

        public void Disappear()
        {
            Disappeared = true;
            World.BroadcastRoomMsg(this, MsgAction.Create(this, 0, MsgAction.Action.LeaveMap));

            X = StartX;
            Y = StartY;

            if (RespawnSpeed == -1)
            {
                Timer.Stop();

                Map CMap = World.AllMaps[Map];
                CMap.DelEntity(this);

                lock (World.AllMonsters)
                {
                    if (World.AllMonsters.ContainsKey(UniqId))
                        World.AllMonsters.Remove(UniqId);
                }
            }
        }
10/16/2013 22:24 Y u k i#7
Quote:
Originally Posted by CptSky View Post
It should work... But I remember having the same issue at some point...


Code:
        public void Die(Int32 KillerUID)
        {
            Brain.Sleep();

            LastDieTime = Environment.TickCount;
            LastKillerUID = KillerUID;
            Disappeared = false;

            Timer.Start();

            CurHP = 0;

            Flags = (Int64)Monster.Flag.None;
            AddFlag(Monster.Flag.Die);
            AddFlag(Monster.Flag.Frozen);
            World.BroadcastRoomMsg(this, MsgUserAttrib.Create(this, Flags, MsgUserAttrib.Type.Flags));
        }

        public void Disappear()
        {
            Disappeared = true;
            World.BroadcastRoomMsg(this, MsgAction.Create(this, 0, MsgAction.Action.LeaveMap));

            X = StartX;
            Y = StartY;

            if (RespawnSpeed == -1)
            {
                Timer.Stop();

                Map CMap = World.AllMaps[Map];
                CMap.DelEntity(this);

                lock (World.AllMonsters)
                {
                    if (World.AllMonsters.ContainsKey(UniqId))
                        World.AllMonsters.Remove(UniqId);
                }
            }
        }
hmm sadly it didnt work. I added the flags but nothing changed (besides that they didnt fade anymore)

oh, might be the screen system >.<
10/16/2013 23:23 Super Aids#8
Am I the only one laughing at Brain.Sleep()?
10/16/2013 23:34 Y u k i#9
Quote:
Originally Posted by Super Aids View Post
Am I the only one laughing at Brain.Sleep()?
Well it gave me cance... a smile too!

Anyway, it was indeed my screen system. I didnt really remove the entity from the screen... thanks for the help :)
10/17/2013 03:36 CptSky#10
Quote:
Originally Posted by Super Aids View Post
Am I the only one laughing at Brain.Sleep()?
The state of most people... But I think the naming is fine :p Just special to read...
10/17/2013 03:38 Super Aids#11
Yeah I'm sure it's something serious, was just kinda hilarious :3
10/17/2013 13:12 Mr_PoP#12
it's your monster Ids it shouldn't be > 499999 :) , and it will work fine!
10/17/2013 13:44 Y u k i#13
Quote:
Originally Posted by Mr_PoP View Post
it's your monster Ids it shouldn't be > 499999 :) , and it will work fine!
No its not. Seriously stay away with your "solutions" if you dont even know what you´re talking about or failed to read everything that contains information. I already stated that the problem was the screen system.

I know this post will look rude, but its the truth. This Thread can be closed, as it is resolved. Thanks for all your help!
10/17/2013 15:12 CptSky#14
Quote:
Originally Posted by Y u k i View Post
No its not. Seriously stay away with your "solutions" if you dont even know what you´re talking about or failed to read everything that contains information. I already stated that the problem was the screen system.

I know this post will look rude, but its the truth. This Thread can be closed, as it is resolved. Thanks for all your help!
By the way, he's still right with the UID, although it's not the problem.
10/17/2013 22:18 Mr_PoP#15
Quote:
Originally Posted by Y u k i View Post
No its not. Seriously stay away with your "solutions" if you dont even know what you´re talking about or failed to read everything that contains information. I already stated that the problem was the screen system.

I know this post will look rude, but its the truth. This Thread can be closed, as it is resolved. Thanks for all your help!
-your question doesn't involve any info that says "your problem is in your screen system " does it?
-also my solution is valid , if you passed the range Id , this prob will happen, if you didn't know that , that doesn't mean am wrong or am saying shits!
-if you already stated that the prob is in your screen system then, what the point of your question?
-about being rude you are , which means you aren't getting any contribution from me anymore :)