Register for your free account! | Forgot your password?

Go Back   elitepvpers > Other Online Games > Browsergames > DarkOrbit
You last visited: Today at 03:37

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

Advertisement



[Tutorial] Netty Based Server

Discussion on [Tutorial] Netty Based Server within the DarkOrbit forum part of the Browsergames category.

Reply
 
Old 08/11/2016, 01:32   #16
 
ItsTequila's Avatar
 
elite*gold: 0
Join Date: Jun 2015
Posts: 647
Received Thanks: 956
Tomorrow evening I will be doing some tests on server load and aliens. Everyone who wants to come is welcome. Saturday I will add the link to the main thread so you can come and help me testing.
The test will begin at 10:00 PM GMT+2
ItsTequila is offline  
Thanks
1 User
Old 08/12/2016, 01:02   #17
 
elite*gold: 0
Join Date: Dec 2014
Posts: 341
Received Thanks: 224


We are just Turkish people.

ΉΛDΣS_PЯO[DΣV] / LEJYONER
LEJYONER(DS) is offline  
Old 08/12/2016, 01:57   #18
 
ItsTequila's Avatar
 
elite*gold: 0
Join Date: Jun 2015
Posts: 647
Received Thanks: 956
Tomorrow's test will be basic testings so don't expect too many features ^^


Quote:
Originally Posted by LEJYONER(DS) View Post


We are just Turkish people.

ΉΛDΣS_PЯO[DΣV] / LEJYONER
Just keep the credits as they are, you are free to add but not remove =)
ItsTequila is offline  
Thanks
1 User
Old 08/12/2016, 06:57   #19


 
Requi's Avatar
 
elite*gold: 3570
The Black Market: 244/0/0
Join Date: Dec 2012
Posts: 13,044
Received Thanks: 8,252
I still prefer my generic reading and writing for netty stuff. Because Netty (the "encoding") isn't much more then reversing the byte array.

Source:
PacketParser/PacketReader
PacketBuilder/PacketWriter

Quote:
Code:
public static void Handle(byte[] bytes, Client client)
        {
            var read = new ByteParser(bytes);
            switch (read.CMD_ID)
            {
                case 666:
                    Out.WriteLine("Received", "666");
                    var userId = read.Int();
                    var sid = read.UTF();
                    Console.WriteLine("UserID " + userId);
                    Console.WriteLine("Session-ID " + sid);
                    new handlers.ShipInitalizationHandler(client, userId, sid);
                    break;
                case LegacyModule.ID:
                    // This will dump all the old packets.
                    Dumper.Dump(read.UTF());
                    break;
                default:
                    // This will dump all the commands that aren't defined
                    // You can define a command by adding 'case CMDID:'
                    new Dumper(read);
                    break;
            }
        }
You should create a real handler.
PoC:
Code:
Dictionary<int, Function> CommandHandler = new Dictionary<int, Function>();
CommandHandler.Add(666, HandleVersionRequest);
if(CommandHandler.KeyExists(packet.Id))
CommandHandler[packet.Id](); //or .Invoke(); not sure
else
DumpCommand(packet);
Requi is offline  
Old 08/12/2016, 08:47   #20
 
elite*gold: 0
Join Date: Dec 2014
Posts: 341
Received Thanks: 224
Quote:
Originally Posted by NUMANDERBUHMAN View Post
Tomorrow's test will be basic testings so don't expect too many features ^^




Just keep the credits as they are, you are free to add but not remove =)
Dont worry, we are keep credits, Thank you.
LEJYONER(DS) is offline  
Old 08/12/2016, 10:37   #21
 
elite*gold: 0
Join Date: Aug 2016
Posts: 18
Received Thanks: 3
Quote:
Originally Posted by LEJYONER(DS) View Post
Dont worry, we are keep credits, Thank you.
Learn english,it's spelled we are going to keep the credits.

How do you get so much success with this grammar ****,I have no idea...
Gatmann is offline  
Old 08/12/2016, 13:44   #22
 
manulaiko3.0's Avatar
 
elite*gold: 0
Join Date: May 2014
Posts: 663
Received Thanks: 1,154
Quote:
Originally Posted by Gatmann View Post
Learn english,it's spelled we are going to keep the credits.

How do you get so much success with this grammar ****,I have no idea...
Did you seriously create an account for this? Your doing something wrong in life...
manulaiko3.0 is offline  
Thanks
1 User
Old 08/12/2016, 18:02   #23
 
elite*gold: 0
Join Date: Dec 2014
Posts: 341
Received Thanks: 224
Quote:
Originally Posted by manulaiko3.0 View Post
Did you seriously create an account for this? Your doing something wrong in life...
You're just a people(?) smug.
LEJYONER(DS) is offline  
Old 08/14/2016, 12:00   #24
 
elite*gold: 0
Join Date: Jun 2014
Posts: 4
Received Thanks: 4
Hello Iam ΉΛDΣS_PЯO[DΣV],

DroneFormation.cs Code

Thanks..


Netty Emulator: Shock[DEV]
Edited and Updated: ΉΛDΣS_PЯO[DΣV]

NOTE: This emulator (NeetyBase) created by Shock and edited by ΉΛDΣS_PЯO[DΣV].


Code:
 
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NettyBase.Net.netty.commands
{
    class DroneFormationCommand
    {
        public static byte[] CMD(List<int> availableFormations)
        {
            ByteArray enc = new ByteArray(4479);
            enc.Integer(availableFormations.Count);
            foreach(int f in availableFormations)
            {
                enc.Integer(f);
            }
            return enc.ToByteArray();
        }
    }
}
mustafagrlyn is offline  
Thanks
1 User
Old 08/14/2016, 12:42   #25
 
elite*gold: 0
Join Date: Dec 2014
Posts: 341
Received Thanks: 224


don't work?
LEJYONER(DS) is offline  
Old 08/14/2016, 16:35   #26
 
ItsTequila's Avatar
 
elite*gold: 0
Join Date: Jun 2015
Posts: 647
Received Thanks: 956
Quote:
Originally Posted by mustafagrlyn View Post
Hello Iam ΉΛDΣS_PЯO[DΣV],

DroneFormation.cs Code

Thanks..


Netty Emulator: Shock[DEV]
Edited and Updated: ΉΛDΣS_PЯO[DΣV]

NOTE: This emulator (NeetyBase) created by Shock and edited by ΉΛDΣS_PЯO[DΣV].


Code:
 
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NettyBase.Net.netty.commands
{
    class DroneFormationCommand
    {
        public static byte[] CMD(List<int> availableFormations)
        {
            ByteArray enc = new ByteArray(4479);
            enc.Integer(availableFormations.Count);
            foreach(int f in availableFormations)
            {
                enc.Integer(f);
            }
            return enc.ToByteArray();
        }
    }
}
Well done! You converted the command exactly as it was meant to be =)

Quote:
Originally Posted by LEJYONER(DS) View Post


don't work?
Changing hosts so it will be buggy in the next few hours.
ItsTequila is offline  
Old 08/14/2016, 18:39   #27
 
elite*gold: 0
Join Date: Dec 2014
Posts: 341
Received Thanks: 224


Dont work again
LEJYONER(DS) is offline  
Old 08/14/2016, 19:47   #28
 
ItsTequila's Avatar
 
elite*gold: 0
Join Date: Jun 2015
Posts: 647
Received Thanks: 956
Quote:
Originally Posted by LEJYONER(DS) View Post


Dont work again
Should be working now perfectly
ItsTequila is offline  
Old 08/14/2016, 19:57   #29
 
-=Flavio=-'s Avatar
 
elite*gold: 0
Join Date: Jul 2012
Posts: 612
Received Thanks: 268
emu for testing offline?
seems to be a good job will wait so that I can test.
-=Flavio=- is offline  
Old 08/14/2016, 20:20   #30
 
ItsTequila's Avatar
 
elite*gold: 0
Join Date: Jun 2015
Posts: 647
Received Thanks: 956
Quote:
Originally Posted by -=Flavio=- View Post
emu for testing offline?
seems to be a good job will wait so that I can test.
Actually is made for localhost testing but if you want to test with me new features I do message me on skype. I will do a testing session tonight so you're free to come :3
ItsTequila is offline  
Reply


Similar Threads Similar Threads
Speed Sro (Online) [130Cap-Coin System- (Job based) - Pvp Server - (Play2Win Server -
07/25/2014 - SRO PServer Advertising - 3 Replies
http://i.epvpimg.com/HN59f.jpg http://i.epvpimg.com/TQNrf.jpg http://i.epvpimg.com/HaDKd.png •Website : Speed http://i.epvpimg.com/HaDKd.png •Reg Link : Speed http://i.epvpimg.com/HaDKd.png
Hello, I'm looking for a card based game botting tutorial.
04/02/2014 - AutoIt - 4 Replies
Hello epvpers, I just registered and would like first of all to thank you for the opportunity to learn some coding. Secondly, I'd like to apologize in advance if I'm breaking any forum rules that I might have not seen. And thirdly, here is my request: I would like to know if there is any tutorials on how to make a game bot. The particulars are that its a card based game and from what I read so far a pixel search approach its recommended. I'd like to know if there are other approaches...
server based on taiwan server files (give me your opinion) Fast ^_^
12/09/2013 - SRO PServer Advertising - 4 Replies
I got a TW Server files and i launched it , and fixed all bugs and problems its now 100% working So what do u think i have to open it (PvP Or PvE) & The Cap ! But remember that there's no any bot works with it except Kbot i think btw give us your opinion ! Thanks :)
[C#] DarkOrbit Encoding/Decoding from Netty
05/18/2013 - DarkOrbit - 5 Replies
Hello, today i bring you how to encode and decode the packets of the new darkorbit(which uses netty). Dictionary: Short - 2 bytes Int - 4 bytes Bool - 1 byte Str or UTF - Short Length of String + String The structure of the packets are: 1 - Short Length of all packet
Ecsro Based Server 90SKILL And 90 Cap first realy oldschool server + Beginner Event
08/14/2012 - SRO PServer Advertising - 375 Replies
hey guys, After a long downtime we are now back online would be finde to see You again Stall Is Disabled In Gameserver so Dupe Unable To Use Events for beginning : 20.08.2012 Have fun :) First account Gets 200free silk Normal Events :



All times are GMT +1. The time now is 03:37.


Powered by vBulletin®
Copyright ©2000 - 2025, 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 ©2025 elitepvpers All Rights Reserved.