Invisible Mobs

03/22/2013 14:57 .guy.#1
I'm currently using this source: [Only registered and activated users can see links. Click Here To Register...]

All mobs are invisible, however they can still attack me.

I don't know if this is helpful but here is MonsterTable.cs: [Only registered and activated users can see links. Click Here To Register...]

I would post more information but I really don't know what else to say.

Thanks
03/22/2013 19:49 pro4never#2
You need to update the packets as the offsets are wrong if it's not showing the meshes properly.
03/22/2013 21:08 .Kinshi#3
Fang lists some common spawning problems at the bottom:
[Only registered and activated users can see links. Click Here To Register...]
03/22/2013 21:20 .guy.#4
Well I got them to appear, however now it just doesn't show their names.

Code:
public string Name
        {
            get { return _Name; }
            set
            {
                _Name = value;
                SpawnPacket = new byte[8 + 235 + Name.Length];
                WriteUInt16((ushort)(235 + Name.Length), 0, SpawnPacket);
                WriteUInt16(10014, 2, SpawnPacket);
                WriteString(_Name, 234, SpawnPacket);
            }
        }
I've read through these threads:
[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]

Further help would be great! Thanks
03/22/2013 22:05 pro4never#5
That means the strings are also in the wrong position if they are not showing their name.


... You're writing the name length at 235 and then the Name at 234? Thatttt'sss a problem.
03/22/2013 23:08 .guy.#6
I used this:
Code:
SpawnPacket = new byte[8 + 235 + Name.Length];
                WriteUInt16((ushort)(235 + Name.Length), 0, SpawnPacket);
                WriteUInt16(10014, 2, SpawnPacket);
                SpawnPacket[232] = 4;
                SpawnPacket[233] = (byte)_Name.Length;
                WriteStringList(new List<string> { _Name }, 230, SpawnPacket);
and it worked
is there something wrong with this code?
03/22/2013 23:38 pro4never#7
You don't need to write the name.length if you're already writing a string list.

TQ Handles variable length/count strings as..

byte numStrings
for(numStrings)
byte stringLength
byte[] encodedString


The WriteStringList code you're using would be doing this for you. No need to do the same thing twice within the same method :P