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!

Carbon V2.10 BETA - Fluent NHibernate - C# - SAEA - From Scratch

Status
Not open for further replies.
Joined
Oct 26, 2012
Messages
2,357
Reaction score
1,086
Hello. My laptop didn't work anymore (couldn't backup anything, couldn't make files in Visual Studios) so I lost my old source. I've made a new source, which works on new crypto off course.

Features:
- Packet ids in SQL (easy to be managed by your staff members), cached in beginning
- Habbo Encryption (RSA, DH, RC4)
- SocketAsyncEventArgs Socket Network (only Game, not Remote)
- Fluent NHibernate MySQL Mapping
- Logging in with SSO
- Navigator frontpage shows up, with recommended choosing from a list (random 1 item)

Screens:
OIq2EtI - Carbon V2.10 BETA - Fluent NHibernate - C# - SAEA - From Scratch - RaGEZONE Forums

QdrvdYD - Carbon V2.10 BETA - Fluent NHibernate - C# - SAEA - From Scratch - RaGEZONE Forums

3W2VPgZ - Carbon V2.10 BETA - Fluent NHibernate - C# - SAEA - From Scratch - RaGEZONE Forums

Downloads:
- SWF + Logs
- Database
- Emulator

How to add new packets:

1. Make sure you have the incoming header AND the outgoing header.
2. Open PHPMyAdmin, go to your database and insert the header in table `packet_ids_incoming` (give it the same name as your class is gonna be)
3. In C#, add a new class with the same name as your entry in SQL had
4. Let it implement IMessageEvent.
5. Go to table `packet_ids_outgoing`, insert the outgoing header and give it a name.
6. Use ServerMessage Message = new ServerMessage(Application.GetOutgoingHeader("NAME"));
7. Change NAME into the name you gave in SQL and add structure. When your structure is done, end with Session.send(Message);

How to add new SQL poop:

1. Go to C# -> go to the Mappings folder and add 2 files:
1 file you call w/e you want (for example Rooms.cs) and the other file you call FIRSTNAMEMap, so if my first name was Rooms.cs, the name of the other file is RoomsMap.cs.
2. Add properties in Rooms.cs, always declare it as public virtual, for example:
public virtual int Id{get;set;}
3. Make sure you add at least one ID
4. Go to ....Map.cs (for example RoomsMap.cs)
5. Make it extend ClassMap<FIRSTNAME>, so for me it will be:
public class RoomsMap : ClassMap<Rooms>
{
}
6. Add a constructor (public CLASSNAME(){})
7. In the constructor, add Table(""); and insert the table name of SQL (for examlpe: Table("rooms");)
8. Add an id, doing in this way:
Id(x => x.PROPERTYNAME).GeneratedBy.Identity().Column("COLUMN NAME");
PROPERTYNAME is the name of the public virtual ...
COLUMN NAME is the name of the column in SQL
9. Add Map(...) methods
Map(x => x.PROPERTYNAME).Column("COLUMN NAME");

I know it can be messy. This is not finished. Please like if you like, and rep up if you show some respect, please leave if you have unhelpful flame comments.
 

Attachments

You must be registered for see attachments list
Banned
Banned
Joined
Feb 14, 2007
Messages
1,405
Reaction score
220
Thanks for this you're the best.

Ps off topic i never knew you listened dire straights.
 
Zephyr Studios
Member
Joined
Feb 18, 2012
Messages
1,877
Reaction score
724
Your pro <3
I like this, thanks! :):
 
Elite Diviner
Joined
Nov 25, 2012
Messages
494
Reaction score
44
How do i config this to my cms and where is the db sql?
 
Elite Diviner
Joined
Nov 25, 2012
Messages
494
Reaction score
44
oh, i found the sql but the other i didnt
 
Joined
Oct 26, 2012
Messages
2,357
Reaction score
1,086
How do i config this to my cms and where is the db sql?

For the config, go to Application.cs in Visual Studios, and change this line;
.Database(MySQLConfiguration.Standard.ConnectionString("Server=localhost;Database=carbon;Uid=root;Pwd=123;"))
Into your own settings, Server= the host, Uid = username, Pwd = Password.

The SQL is in the thread if you read
 
Elite Diviner
Joined
Nov 25, 2012
Messages
494
Reaction score
44
Where is the application.css located, and i dont think i have visual studios
 
Elite Diviner
Joined
Nov 25, 2012
Messages
494
Reaction score
44
What SWFs is it compable with, and what should i do with the swf folder i got?
 
Skilled Illusionist
Joined
Sep 22, 2012
Messages
300
Reaction score
65
mmmm. Definitely will try this out. Thanks!
 
Status
Not open for further replies.
Back
Top