[Help] Some Weird Bugs I got.

08/29/2010 19:07 killersub#1
alright so I don't spam the whole forum with my stupid threads Ill post some bugs Im having with my source in this thread...

1. when I Announce(to bc a message in a guild) in like my guild and click OK it doesn't update and Im pretty sure that's very much fixed in the source...in Guilds.cs

2. Im gettin a weird attack and ss/fb delay...like when I ss/fb and I click again it wont ss/fb u gotta click it twice for it to do it again...no its not my host becuz I also have tried this with myself(localhost) and still get that...so it has to be the source...and also for the attack...I gotta click once and then to attack again I gotta click twice to attack which is really gay lol...

I'll post more bugs once I see them...anyways I wuld really appreciate it if sum1 culd help me with any one of these 2 bugs :D...
08/29/2010 19:56 _DreadNought_#2
Guild Bulletin, is just a saving problem
08/29/2010 20:44 killersub#3
Quote:
Originally Posted by Eliminationn View Post
Guild Bulletin, is just a saving problem
it's saved everywhere in guilds.cs lmao...idk if dats it...

Code:
public void SaveThis(BinaryWriter BW)
in there is this:

Code:
BW.Write(Bulletin);
Code:
public Guild(BinaryReader BR)
In there is this:

Code:
Bulletin = BR.ReadString();
and then in Guilds.cs is this Bulletin void:

Code:
public void NewBulletin(COPacket Data, string B)
        {
            Bulletin = B;
            foreach (Hashtable H in Members.Values)
            {
                foreach (MemberInfo M in H.Values)
                {
                    if (World.H_Chars.Contains(M.MembID))
                    {
                        Character C = (Character)World.H_Chars[M.MembID];
                        C.MyClient.AddSend(Data);
                    }
                }
            }
        }
I dont see anythin wrong wit dat lol?
08/29/2010 20:49 _DreadNought_#4
Then it's not saving right?
08/29/2010 21:15 teroareboss1#5
is chat type

Code:
case (ushort)Extra.ChatType.ChatTypes.GuildBulletin:
                                            {
                                                if (GC.MyChar.MyGuild != null && GC.MyChar.GuildRank == Features.GuildRank.GuildLeader)
                                                {
                                                    GC.MyChar.MyGuild.GuildMsg(Packets.ChatMessage(GC.MyChar.MyClient.MessageID, From, To, Message, (ushort)ChatType, 0, System.Drawing.Color.White), GC.MyChar.EntityID);
                                                    GC.MyChar.MyGuild.Bulletin = Message;
                                                    GC.MyChar.MyClient.SendPacket(Packets.ChatMessage(GC.MyChar.MyClient.MessageID, "SYSTEM", GC.MyChar.Name, GC.MyChar.MyGuild.Bulletin, 2111, 0, System.Drawing.Color.White));
                                                    Features.Guilds.SaveGuilds();
                                                }
                                                break;
                                            }
08/29/2010 21:24 killersub#6
Quote:
Originally Posted by Eliminationn View Post
Then it's not saving right?
where do u suggest I save it as then XD? cant save it anywhere else BUT Guilds.cs lmao...and tbh imo I think its saving pretty right :D

@teroareboss

haha alwayz here wen I need him :D...

where shuld I add that code bro? XD
08/29/2010 23:49 µ~Xero~µ#7
above whisper
08/30/2010 00:15 killersub#8
u~xero~u

I kno ur smart...mind telling me in wat .cs file I might find that ^_^.

anyways,

any 1 got any other ideas about my other problem XD?
08/30/2010 00:25 teroareboss1#9
in word.cs , at chat
you need some changes
08/30/2010 12:00 Korvacs#10
I thought we went over this in the previous thread, BinaryReader.ReadString() REQUIRES you to write the length of the string first, otherwise it doesnt know how long the string is and wont read it.
08/30/2010 22:26 killersub#11
Quote:
Originally Posted by Korvacs View Post
I thought we went over this in the previous thread, BinaryReader.ReadString() REQUIRES you to write the length of the string first, otherwise it doesnt know how long the string is and wont read it.
OKAY I fixed it lmao...now about my other bug =/...

anyone :D?