Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Last Chaos > Last Chaos Private Server
You last visited: Today at 08:35

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Sammelthread] Emulator

Discussion on [Sammelthread] Emulator within the Last Chaos Private Server forum part of the Last Chaos category.

Reply
 
Old 05/29/2011, 17:25   #46
 
≡RockiXX≡'s Avatar
 
elite*gold: 0
Join Date: Jan 2010
Posts: 432
Received Thanks: 160
Quote:
Originally Posted by shadow52 View Post
MySql Server laufen ?
Datenbank erstellt ?
Tabellen importiert ?
Config-Dateien der beiden Server angepasst ?
Edit:
Ist eh unötig das es jetzt jeder "installiert".
Login --> Char erstellen --> Welt betreten = BlackScreen

wie krieg ich denn den mysql server zum laufen?

wenn ich nämlich den login server starte und dann also die ip+port oben im browser eingebe läd er lange und im loginserver steht das da was passiert
≡RockiXX≡ is offline  
Old 05/29/2011, 17:34   #47
 
DrBong's Avatar
 
elite*gold: 0
Join Date: Feb 2009
Posts: 676
Received Thanks: 564
Quote:
Originally Posted by Dansch View Post
wie krieg ich denn den mysql server zum laufen?

wenn ich nämlich den login server starte und dann also die ip+port oben im browser eingebe läd er lange und im loginserver steht das da was passiert
->
Quote:
EDIT: ihr müsst bei einem hoster eine MySQL Datenbank anlegen oder auf eurem pc einen MySQL Server starten und die tabelen in datenbank einfügen
DrBong is offline  
Thanks
1 User
Old 05/29/2011, 17:50   #48
 
≡RockiXX≡'s Avatar
 
elite*gold: 0
Join Date: Jan 2010
Posts: 432
Received Thanks: 160
Ich hab jetzt geschaut ich wollt mit Navicat auf
verbinden aber i-wie haut das nicht hin... er sagt mir immer Unknown MySQL Server Host: (11004)
≡RockiXX≡ is offline  
Old 05/29/2011, 17:58   #49
 
DrBong's Avatar
 
elite*gold: 0
Join Date: Feb 2009
Posts: 676
Received Thanks: 564
Quote:
Originally Posted by Dansch View Post
Ich hab jetzt geschaut ich wollt mit Navicat auf
verbinden aber i-wie haut das nicht hin... er sagt mir immer Unknown MySQL Server Host: (11004)
Es ist ja auch kein MySQL Server, sondern nur die dateien die du in einer datenbank einfügen musst..

Lass es am liebsten oder googl was ein mysql server ist
DrBong is offline  
Old 05/29/2011, 18:01   #50
 
shadow52's Avatar
 
elite*gold: 13
Join Date: May 2009
Posts: 1,314
Received Thanks: 1,483
Quote:
Originally Posted by Dansch View Post
Ich hab jetzt geschaut ich wollt mit Navicat auf
verbinden aber i-wie haut das nicht hin... er sagt mir immer Unknown MySQL Server Host: (11004)

Lad dir Xampp runter oder nur das hier --> .
Danach Installierst du ihn etc.
Dann passt du die Daten in dem Emu an!
Jetzt nimmst du Navicat und verbindest zu
host/ip= 127.0.0.1
port=3306
username=root
passwort=*deinpw*

Dann erstellst du eine neue datenbank "lcep2" und importierst die SQL von .
Dann kannst du die 2 Server starten.
Edit:
Wen du es aber nichtmal hinbekommst bzw weißt was ein My-SQL Server ist würd ich es sein lassen mit dem Emu.
shadow52 is offline  
Thanks
3 Users
Old 05/29/2011, 18:03   #51
 
elite*gold: 0
Join Date: Mar 2010
Posts: 247
Received Thanks: 102
Das ist auch ein SQL File, dass du in der Datenbank ausführen musst, nicht die Datenbank an sich...

Es geht hier aber immer noch nicht um die Files, es geht darum ein Problem zu Lösen.
Für jemanden, der dabei nicht Helfen kann bzw. der es gar nicht erst zum Laufen bekommt ist das ganze eigentlich Sinnlos.
Schiriki is offline  
Thanks
1 User
Old 05/29/2011, 18:13   #52
 
DosenFraß's Avatar
 
elite*gold: 0
Join Date: Apr 2011
Posts: 96
Received Thanks: 34
okey, um es vllt einfacher zugestallten wäre ein schritt für schritt tut machbar?

es fängt ja schon bei der installation von mysql an...
DosenFraß is offline  
Old 05/29/2011, 18:56   #53
 
doppi77's Avatar
 
elite*gold: 0
Join Date: Apr 2010
Posts: 1,275
Received Thanks: 368
Quote:
Originally Posted by DosenFraß View Post
okey, um es vllt einfacher zugestallten wäre ein schritt für schritt tut machbar?

es fängt ja schon bei der installation von mysql an...

Abwarten bis es richtig läuft?

Dieser Thread ist kein HowTo.
doppi77 is offline  
Thanks
1 User
Old 05/29/2011, 19:05   #54
 
elite*gold: 0
Join Date: Feb 2010
Posts: 28
Received Thanks: 4
Project in
From there you can recruit developers
Aquilis93 is offline  
Thanks
1 User
Old 05/29/2011, 19:09   #55
 
elite*gold: 0
Join Date: May 2008
Posts: 509
Received Thanks: 1,246
Quote:
Originally Posted by wizatek View Post
Hi Guys.

Since I'm stuck at a very shitty moment writing my LastChaos EP2 Emulator.
I decided to share what i have so far and maybe someone can pickup and guide me in the right direction.

The client used is the recent 777 client.
U can use to make the client connect to it. The Nksp.exe is modified to run without Xtrap (thanks to Dotsch_2005), and the Engine.dll is modified to use no encryption on network packets (thanks to dsfgw).
Sadly the real 777 client and server do use encryption. so there is a way around that to sniff the packages after they are decrypted by the client itself.
A example on how to do it can be found (thanks to dsfgw)

The 777Lastchaos client can be found
Just install, let it patch, apply my patch. then its ready to connect to the emulator.
Install it once more, let it patch. This is the client to sniff the packets


The server emulator source code can be found .
Its written in C#

The mySQL database can be found
Be sure to change GameServer.cfg and LoginServer.cfg before u start.

What can be done
- Login
- Make a character
- Set new characters start conditions in config (level,equipment,stats)

Where I'm stuck is.
After selecting the character. Juno will start to load.
When its loaded the screen will stay black like it is waiting for more packets.
Even if i send all the packets that the real server would also send the screen stays black like its waiting for more data. But normally the first packet should already make it show the world without the character or anything.

Another bug : only characters with a 6 letter name will show up. But i probably overseen something stupid.

From the moment the character will be able to go ingame the development will go in fast forward. just this black screen issue needs to be overwon.

Few things:
  • Consider an asynchronous socket system. Currently this only supports the one client, but whenever you do implement multiple clients, you'll find that the more clients you have connecting here, well... let's just say you'll really see the performance degradation.
  • Always assume they're trying to break your code. Meaning, if you expect an integer for input, expect you won't get one and make sure before blindly assuming it is used. The exception handler is great, but shouldn't be relied on - faster to check than have it throw an exception and run along with that. It'll also cease to accept connections after hitting, with this setup.
  • Really reconsider your database access here. Do we need to access the database server every time someone needs to login? A more efficient solution is to load them up before-hand, and regularly update your info (i.e. for account registrations, reset passwords, bans etc).
  • One last thing; your opcode handling. Though this is more evident in the game server (as below), consider at the very least using a switch (a map/dictionary would be faster though). If you absolutely INSIST on using a series of if statements, at the very least don't have it checking against every single opcode out there (after it's identified which one it is). "else if" exists for a reason. :P

As for the game server:
Same applies. With your black screen issue, I'm really.. not surprised. Identify what those packets are used for and what makes them up, and you'll probably find that solution.

PS: With your packet sniffing issue; just hook it there and have it auto-dump. Doing it manually's gotta be painful!
=Warmonger= is offline  
Thanks
4 Users
Old 05/29/2011, 20:33   #56
 
dsfgd's Avatar
 
elite*gold: 2
Join Date: Aug 2007
Posts: 599
Received Thanks: 2,934
Some Opcodes
0x06 = Send Character State
0x09 = Send Character Position
0x0A = Send Character InventoryRow
0x16 0x02 = Send Alive
0x24 0x00 = Send Character Stat Points

ALL NPC's, items and characters have an unique GUID, when you send one of these packages, it must have the same guid as the character.

You get a blackscreen, because charid does not match the packages
Your char is id 1, but packages are for id 188899.

I'm not going to help you develope your emulator, you should learn the basics. You need to know what you send and why it is send, to find errors.

And Please, call me Falo, not dsfgd, i'm just to lazy to change the name...... XD
dsfgd is offline  
Thanks
4 Users
Old 05/29/2011, 20:36   #57
 
elite*gold: 265
Join Date: Jul 2009
Posts: 735
Received Thanks: 2,147
I updated the source with a few more packets identifyd.


Thanks for the comment Warmonger, i will take those points into consideration as performance and security is not that interesting yet at this point :P


Im busy learning the basics, but i learn them faster while im jumping in the deep.
To be able to know what i send and why i send it, i send the original package and change numbers to see what happens, that way im trying to figure out what wich package does.
I have the 0x09, 0x06, 0x16, 0x24 correct now. 0x0a almost, 0x06, half

0x16 0x02 i seen that it also sends the game time to the client.

So u say if i get those 5 correct i will be able to go ingame ?
Wizatek is offline  
Thanks
3 Users
Old 05/29/2011, 20:45   #58
 
DosenFraß's Avatar
 
elite*gold: 0
Join Date: Apr 2011
Posts: 96
Received Thanks: 34
developed the emulator together?
DosenFraß is offline  
Thanks
1 User
Old 05/29/2011, 21:02   #59

 
deathcursed's Avatar
 
elite*gold: 135
Join Date: Feb 2010
Posts: 2,763
Received Thanks: 1,800
Quote:
Originally Posted by dsfgd View Post
Some Opcodes
0x06 = Send Character State
0x09 = Send Character Position
0x0A = Send Character InventoryRow
0x16 0x02 = Send Alive
0x24 0x00 = Send Character Stat Points

ALL NPC's, items and characters have an unique GUID, when you send one of these packages, it must have the same guid as the character.

You get a blackscreen, because charid does not match the packages
Your char is id 1, but packages are for id 188899.

I'm not going to help you develope your emulator, you should learn the basics. You need to know what you send and why it is send, to find errors.

And Please, call me Falo, not dsfgd, i'm just to lazy to change the name...... XD
Arbeitest du persönlich noch am Emulator?
deathcursed is offline  
Old 05/29/2011, 21:07   #60
 
dsfgd's Avatar
 
elite*gold: 2
Join Date: Aug 2007
Posts: 599
Received Thanks: 2,934
Quote:
Originally Posted by deathcursed View Post
Arbeitest du persönlich noch am Emulator?
Ich emuliere die 2005er files, ja ich arbeite am emu, aber sowas dauert normalerweise ~1 jahr, erwartet also nichts weltbewegendes.

Nur zur info, bei mir kann man schon npc's verhaun, ich arbeite aber um einiges professioneller, ich decompiler den kompletten gameserver um an die ganzen berechnungen ranzukommen und das ist viel arbeit, zudem kommen bald prüfungen usw....
Ich mache das eher für mich und nicht damit andere ihren spaß haben können, deswegen arbeite ich auch alleine, kann ich mich besser konzentrieren.
dsfgd is offline  
Thanks
6 Users
Reply




All times are GMT +1. The time now is 08:35.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.