Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

C# Habbo structures

Skilled Illusionist
Joined
Oct 19, 2010
Messages
391
Reaction score
70
Hey,

I don't know if this is usefull for someone.
This is a little program for getting the structures out of the SWF.

I'll release it open source, because it's still a little bit buggy with getting loops or new objects.
Hopefully someone can go further with this:eek:tt1:

Emerica - C# Habbo structures - RaGEZONE Forums

Emerica - C# Habbo structures - RaGEZONE Forums


PHP:
internal void FillHeader()
        {
            var Operation = Parallel.ForEach(Lines, (line, option) =>
            {
                bool match = Regex.IsMatch(line, "\\[[0-9]*\\]");

                if (match && line.Contains(Program.ComposerNamespace))
                {
                    try
                    {
                        line = line.Replace(" ", "");

                        int Header = int.Parse(line.Split('[')[1].Split(']')[0]);
                        string Class = line.Split('=')[1].Split(';')[0];

                        if (Header > 0 && Class != String.Empty)
                        {
                            HeaderWithClasses.Add(Header, Class);
                        }
                    }
                    catch{ }
                }
            });

            if (Operation.IsCompleted)
            {
                Console.WriteLine("Found {0} headers to work with..", HeaderWithClasses.Count);
            }
        }

This isn't really great code, I made this in 1 hour..

(To download the latest version go to the git: )
Download:

Quick fix for the XMLConverter:

just place a habbo_scripts file into the debug folder, change some const vars in the program class and thats it :eek:tt1:

You need to find out the namespace for messages in your file. Should look like this:
Emerica - C# Habbo structures - RaGEZONE Forums

------------------------------------------------------------------------------------------------------- UPDATED


I added the automatic detection for the function names :)

Emerica - C# Habbo structures - RaGEZONE Forums



-Emerica
 
Last edited:
Skilled Illusionist
Joined
Oct 19, 2010
Messages
391
Reaction score
70
Re: Habbo structures

Well...
just place a habbo_scripts file into the debug folder, change some const vars in the program class and thats it :eek:tt1:

You need to find out the namespace for messages in your file. Should look like this:
Emerica - C# Habbo structures - RaGEZONE Forums
 
Hakuna Matata
Joined
Sep 5, 2012
Messages
804
Reaction score
137
Re: Habbo structures

This is great, very great!
Thank you so much!
 
Custom Title Activated
Loyal Member
Joined
Jun 27, 2009
Messages
1,571
Reaction score
170
Re: Habbo structures

I keep getting 0 Headers to work with yet I search for packet ID and it says not found... What's the problem
 
Hakuna Matata
Joined
Sep 5, 2012
Messages
804
Reaction score
137
Re: Habbo structures

I keep getting 0 Headers to work with yet I search for packet ID and it says not found... What's the problem

internal const string ComposerNamespace = "NAMESPACE";
You need to input the correct namespace.
 
Skilled Illusionist
Joined
Jul 4, 2009
Messages
363
Reaction score
65
Re: Habbo structures

I keep getting 0 Headers to work with yet I search for packet ID and it says not found... What's the problem

same issue here,

nvm fixed it.
 
Last edited:
Master Summoner
Joined
Dec 1, 2013
Messages
547
Reaction score
694
Re: Habbo structures

You guys above can't even setup some easy poop <.<

Only thing that i'm facing is that it keeps crashing when I set _-6Ov // floor editor and try to find 522. Going hopefully to fix it tonight :)
 
Skilled Illusionist
Joined
Oct 19, 2010
Messages
391
Reaction score
70
Re: Habbo structures

Thanks guys for the feedback. The reason why I made this in a short time is, that I needed this yesterday for myself :D
And it's not really bad coded, there just some parts which could be better (Like some parts which are two times coded)

same issue here

Maybe you guys toke the MessageComposer namespace. You have to insert the MessageEvent namespace

----------------------------------
Example that its working with loops and objects:
Emerica - C# Habbo structures - RaGEZONE Forums
 
Skilled Illusionist
Joined
Jul 4, 2009
Messages
363
Reaction score
65
Re: Habbo structures

Thanks guys for the feedback. The reason why I made this in a short time is, that I needed this yesterday for myself :D
And it's not really bad coded, there just some parts which could be better (Like some parts which are two times coded)



Maybe you guys toke the MessageComposer namespace. You have to insert the MessageEvent namespace

Yes that was the problem thanks.

the program is very helpfull. Now we wait for the auto header updater haha :thumbup1:
 
Joined
Aug 10, 2011
Messages
7,398
Reaction score
3,301
Re: Habbo structures

Yes that was the problem thanks.

the program is very helpfull. Now we wait for the auto header updater haha :thumbup1:

Wouldn't be that hard in all honesty however there is a bit more than just structures that have to match as some packets have the same structures so there must be some second check implemented too.
 
Skilled Illusionist
Joined
Oct 19, 2010
Messages
391
Reaction score
70
Re: Habbo structures

Yes that was the problem thanks.

the program is very helpfull. Now we wait for the auto header updater haha :thumbup1:

Wouldn't be that hard in all honesty however there is a bit more than just structures that have to match as some packets have the same structures so there must be some second check implemented too.

Writing some kind of search algorithm which compares the parse methods could help :)
 
Back
Top