elitepvpers

elitepvpers (https://www.elitepvpers.com/forum/)
-   DarkOrbit (https://www.elitepvpers.com/forum/darkorbit/)
-   -   [Collection Thread] Private Server Info and Support Thread (https://www.elitepvpers.com/forum/darkorbit/2830133-private-server-info-support-thread.html)

«Ice.Shock™ 02/26/2015 19:59

Quote:

Originally Posted by TufanTR (Post 31153169)
Thanks :handsdown:
How to create bonus boxes?
CREATE_BOX
Quote:

Session.SendData(PacketComposer.Compose("c", "2|1|1|1"));
is creating a cargo box :facepalm:

Did you try changing some of the packet numbers :facepalm: ?

TufanTR 02/26/2015 20:18

Quote:

Originally Posted by «Ice.Shock™ (Post 31153258)
Did you try changing some of the packet numbers :facepalm: ?

yes

oleg-19952008 03/01/2015 00:42

what package to create an NPC ?

olitis1 03/01/2015 11:23

Quote:

Originally Posted by oleg-19952008 (Post 31175221)
what package to create an NPC ?

"0|C|alienid|alienship|1||alienname|posx|posy| |-1|0|0|1|0"

ChemosS 03/01/2015 15:53

I cant connect to spacemap. I use orginial Emulator, htdocs and sql. But cant connect to spacemap. Here is the image of emulator and spacemap.

[IMG=border: 1, expandable: 0, title: Emulator]http://i.hizliresim.com/j4gGDm.png[/IMG]

bobn171 03/01/2015 15:57

Quote:

Originally Posted by ChemosS (Post 31180440)
I cant connect to spacemap. I use orginial Emulator, htdocs and sql. But cant connect to spacemap. Here is the image of emulator and spacemap.

[IMG=border: 1, expandable: 0, title: Emulator]http://i.hizliresim.com/j4gGDm.png[/IMG]

Check the maps.php into the spacemap folder

ChemosS 03/01/2015 17:26

Quote:

Originally Posted by bobn171 (Post 31180502)
Check the maps.php into the spacemap folder

Im using your emulator. I find NPC's but cant attack. And can use repait bot, backup shildes. etc etc. Cant use Smart Bomb and Ish

bobn171 03/01/2015 17:31

Quote:

Originally Posted by ChemosS (Post 31181597)
Im using your emulator. I find NPC's but cant attack. And can use repait bot, backup shildes. etc etc. Cant use Smart Bomb and Ish

That server was my first attempt to make a Darkorbit emulator... it's a bit bad and unfinished.

I'm working on a new one and better since a few days

ChemosS 03/01/2015 17:54

Anyone Have one good emulator some working perfectly.Smart bomb, ish, repair bot, backup shield etc etc. ?

goodegoode 03/02/2015 18:45

so i now that you guys are going to hate me i m new to some of this coding and old to like the java and things but in

DarkOrbit Remix PS 3.0 [Beta Release]
Instructions


they say to find something like this


DirectoryIndex index.php index.pl index.cgi index.asp index.shtml index.html index.htm \
default.php default.pl default.cgi default.asp default.shtml default.html default.htm \
home.php home.pl home.cgi home.asp home.shtml home.html home.htm

and then add this "index.es" after "DirectoryIndex and it seems to block a port but i m not sure how to reopen or what to do about the port and yes i did the other part right it says put in SetHandler application / x-httpd-php at line 20 but i m guessing it means <FilesMatch "\.es$">
SetHandler application/x-httpd-php
</FilesMatch>

so not sure what i m doing wrong sorry if this was already shown how to fix if you could point me that was then that would be great thanks :)

TufanTR 03/03/2015 00:03

establishing connection
 
Hi! I'm programming a new emulator, but can not enter the game. Please help
[IMG=expandable: 1]http://i.imgur.com/RjUVpXR.png[/IMG]
Code:

            self.sendData('<?xml version="1.0"?><!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd"><cross-domain-policy>  <allow-access-from domain="*" to-ports="*" /></cross-domain-policy>')
            self.sendData("0|A|SET|1|1|1|1|1|1|1|0|1|1|1|0|0|1|1|4|0|1|1|0|0|1|1|1|1")
            self.sendData("0|7|CLIENT_RESOLUTION|1,1024,576|1")
            self.sendData("0|7|MINIMAP_SCALE,1|8")
            self.sendData("0|7|RESIZABLE_WINDOWS,1|5,270,140,20,299,154,22,330,200")
            self.sendData("0|7|DISPLAY_PLAYER_NAMES|1")
            self.sendData("0|7|DISPLAY_CHAT|1")
            self.sendData("0|7|PLAY_MUSIC|0")
            self.sendData("0|7|PLAY_SFX|0")
            self.sendData("0|7|BAR_STATUS|23,1,24,1,25,1,26,0,27,0")
            self.sendData("0|7|WINDOW_SETTINGS,1|0,773,234,0,1,787,141,1,3,726,360,1,5,-2,42,0,10,5,288,1,13,187,50,0,20,-5,407,1,22,347,188,0,23,500,9,0,24,284,25,0")
            self.sendData("0|7|AUTO_REFINEMENT|0")
            self.sendData("0|7|QUICKSLOT_STOP_ATTACK|1")
            self.sendData("0|7|DOUBLECLICK_ATTACK|1")
            self.sendData("0|7|AUTO_START|1")
            self.sendData("0|7|DISPLAY_NOTIFICATIONS|1")
            self.sendData("0|7|SHOW_DRONES|1")
            self.sendData("0|7|DISPLAY_WINDOW_BACKGROUND|0")
            self.sendData("0|7|ALWAYS_DRAGGABLE_WINDOWS|1")
            self.sendData("0|7|PRELOAD_USER_SHIPS|1")
            self.sendData("0|7|QUALITY_PRESETTING|3")
            self.sendData("0|7|QUALITY_CUSTOMIZED|1")
            self.sendData("0|7|QUALITY_BACKGROUND|3")
            self.sendData("0|7|QUALITY_POIZONE|3")
            self.sendData("0|7|QUALITY_SHIP|3")
            self.sendData("0|7|QUALITY_ENGINE|3")
            self.sendData("0|7|QUALITY_COLLECTABLE|3")
            self.sendData("0|7|QUALITY_ATTACK|3")
            self.sendData("0|7|QUALITY_EFFECT|3")
            self.sendData("0|7|QUALITY_EXPLOSION|3")
            self.sendData("0|7|QUICKBAR_SLOT|6,7,16,17,13,23,-1,-1,-1,-1")
            self.sendData("0|7|SLOTMENU_POSITION,1|393,0PNG")
            self.sendData("0|7|SLOTMENU_ORDER,1|0")
            self.sendData("0|7|MAINMENU_POSITION,1|395,480")
            self.sendData("0|i|14")
            self.sendData("RDY|I|1|Tufan|52|300|0|150000|246000|256000|0|100|10500|1000|14|2|4|10000|10000|4|1|97880|2447|18|16000000|4970000|100|21|test|4|0")
            self.sendData("0|n|d|1|3/2-25-25,3/4-25-25-25-25,3/2-25-25")
            self.sendData("0|n|t|1|Uzay Katili")
            self.sendData("f|C|1|52|3|test|Tufan|10500|1000|2|4|21|0|0|0| 0|n|d|1|3/2-25-25,3/4-25-25-25-25,3/2-25-25|")
            self.sendData("f|C|1|52|3|test|Tufan|10500|1000|2|4|21|0|0|0| 0|n|d|1|3/2-25-25,3/4-25-25-25-25,3/2-25-25|")
            self.sendData("0|s|0|1|blueStation|2|0|10500|1000")
            self.sendData("0|p|25|1|24|18500|11500 0|p|27|1|26|10500|6500 0|p|31|1|30|2000|11500")
            self.sendData("0|B|20000|20000|20000|20000|20000")
            self.sendData("0|3|1000|1000|1000|0|0|0|0|0|100|100|0|0|0|0")
            self.sendData("0|7|HS")
            self.sendData("0|S|CFG|1")
            self.sendData("0|A|ITM|0|0|0|0|4|0|0|1|1|0|0|0|0|0|0|0")
            self.sendData("0|g|a|b,1000,1,10000,C,2,500,U,3,1000,U,5,1000,U|r,100,1,10000,C,2,50000,C,3,500,U,4,700,U")
            self.sendData("0|TX|S|1|15|0|1|15|0|1|15|0|1|15|0|1|15|0")
            self.sendData("0|m|1|1000|1000")
            self.sendData("0|POI|RDY")
            self.sendData("0|A|STD|qwe")
            self.sendData("0|c|2|1|1|1")
            self.sendData("0|A|CLD|ISH|0")
            self.sendData("0|A|CLD|SMB|0")
            self.sendData("0|CSS|1")
            self.sendData("0|SMP|1|1")
            self.sendData("0|UI|W|HW|23")
            self.sendData("0|UI|W|HW|10")
            self.sendData("0|n|t|1|Uzay Katili")
            self.sendData("0|D|105|10|1|0|0|0|0|0")

programming language: Python

bobn171 03/03/2015 00:05

Quote:

Originally Posted by TufanTR (Post 31195426)
Hi! I'm programming a new emulator, but can not enter the game. Please help
[IMG=expandable: 1]http://i.imgur.com/RjUVpXR.png[/IMG]
Code:

            self.sendData('<?xml version="1.0"?><!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd"><cross-domain-policy>  <allow-access-from domain="*" to-ports="*" /></cross-domain-policy>')
            self.sendData("0|A|SET|1|1|1|1|1|1|1|0|1|1|1|0|0|1|1|4|0|1|1|0|0|1|1|1|1")
            self.sendData("0|7|CLIENT_RESOLUTION|1,1024,576|1")
            self.sendData("0|7|MINIMAP_SCALE,1|8")
            self.sendData("0|7|RESIZABLE_WINDOWS,1|5,270,140,20,299,154,22,330,200")
            self.sendData("0|7|DISPLAY_PLAYER_NAMES|1")
            self.sendData("0|7|DISPLAY_CHAT|1")
            self.sendData("0|7|PLAY_MUSIC|0")
            self.sendData("0|7|PLAY_SFX|0")
            self.sendData("0|7|BAR_STATUS|23,1,24,1,25,1,26,0,27,0")
            self.sendData("0|7|WINDOW_SETTINGS,1|0,773,234,0,1,787,141,1,3,726,360,1,5,-2,42,0,10,5,288,1,13,187,50,0,20,-5,407,1,22,347,188,0,23,500,9,0,24,284,25,0")
            self.sendData("0|7|AUTO_REFINEMENT|0")
            self.sendData("0|7|QUICKSLOT_STOP_ATTACK|1")
            self.sendData("0|7|DOUBLECLICK_ATTACK|1")
            self.sendData("0|7|AUTO_START|1")
            self.sendData("0|7|DISPLAY_NOTIFICATIONS|1")
            self.sendData("0|7|SHOW_DRONES|1")
            self.sendData("0|7|DISPLAY_WINDOW_BACKGROUND|0")
            self.sendData("0|7|ALWAYS_DRAGGABLE_WINDOWS|1")
            self.sendData("0|7|PRELOAD_USER_SHIPS|1")
            self.sendData("0|7|QUALITY_PRESETTING|3")
            self.sendData("0|7|QUALITY_CUSTOMIZED|1")
            self.sendData("0|7|QUALITY_BACKGROUND|3")
            self.sendData("0|7|QUALITY_POIZONE|3")
            self.sendData("0|7|QUALITY_SHIP|3")
            self.sendData("0|7|QUALITY_ENGINE|3")
            self.sendData("0|7|QUALITY_COLLECTABLE|3")
            self.sendData("0|7|QUALITY_ATTACK|3")
            self.sendData("0|7|QUALITY_EFFECT|3")
            self.sendData("0|7|QUALITY_EXPLOSION|3")
            self.sendData("0|7|QUICKBAR_SLOT|6,7,16,17,13,23,-1,-1,-1,-1")
            self.sendData("0|7|SLOTMENU_POSITION,1|393,0PNG")
            self.sendData("0|7|SLOTMENU_ORDER,1|0")
            self.sendData("0|7|MAINMENU_POSITION,1|395,480")
            self.sendData("0|i|14")
            self.sendData("RDY|I|1|Tufan|52|300|0|150000|246000|256000|0|100|10500|1000|14|2|4|10000|10000|4|1|97880|2447|18|16000000|4970000|100|21|test|4|0")
            self.sendData("0|n|d|1|3/2-25-25,3/4-25-25-25-25,3/2-25-25")
            self.sendData("0|n|t|1|Uzay Katili")
            self.sendData("f|C|1|52|3|test|Tufan|10500|1000|2|4|21|0|0|0| 0|n|d|1|3/2-25-25,3/4-25-25-25-25,3/2-25-25|")
            self.sendData("f|C|1|52|3|test|Tufan|10500|1000|2|4|21|0|0|0| 0|n|d|1|3/2-25-25,3/4-25-25-25-25,3/2-25-25|")
            self.sendData("0|s|0|1|blueStation|2|0|10500|1000")
            self.sendData("0|p|25|1|24|18500|11500 0|p|27|1|26|10500|6500 0|p|31|1|30|2000|11500")
            self.sendData("0|B|20000|20000|20000|20000|20000")
            self.sendData("0|3|1000|1000|1000|0|0|0|0|0|100|100|0|0|0|0")
            self.sendData("0|7|HS")
            self.sendData("0|S|CFG|1")
            self.sendData("0|A|ITM|0|0|0|0|4|0|0|1|1|0|0|0|0|0|0|0")
            self.sendData("0|g|a|b,1000,1,10000,C,2,500,U,3,1000,U,5,1000,U|r,100,1,10000,C,2,50000,C,3,500,U,4,700,U")
            self.sendData("0|TX|S|1|15|0|1|15|0|1|15|0|1|15|0|1|15|0")
            self.sendData("0|m|1|1000|1000")
            self.sendData("0|POI|RDY")
            self.sendData("0|A|STD|qwe")
            self.sendData("0|c|2|1|1|1")
            self.sendData("0|A|CLD|ISH|0")
            self.sendData("0|A|CLD|SMB|0")
            self.sendData("0|CSS|1")
            self.sendData("0|SMP|1|1")
            self.sendData("0|UI|W|HW|23")
            self.sendData("0|UI|W|HW|10")
            self.sendData("0|n|t|1|Uzay Katili")
            self.sendData("0|D|105|10|1|0|0|0|0|0")

programming language: Python


Try changing this packet:
Code:

self.sendData("RDY|I|1|Tufan|52|300|0|150000|246000|256000|0|100|10500|1000|14|2|4|10000|10000|4|1|97880|2447|18|16000000|4970000|100|21|test|4|0")
To:
Code:

self.sendData("0|I|1|Tufan|52|300|0|150000|246000|256000|0|100|10500|1000|14|2|4|10000|10000|4|1|97880|2447|18|16000000|4970000|100|21|test|4|0")

TufanTR 03/03/2015 00:13

Quote:

Originally Posted by bobn171 (Post 31195441)
Try changing this packet:
Code:

self.sendData("RDY|I|1|Tufan|52|300|0|150000|246000|256000|0|100|10500|1000|14|2|4|10000|10000|4|1|97880|2447|18|16000000|4970000|100|21|test|4|0")
To:
Code:

self.sendData("0|I|1|Tufan|52|300|0|150000|246000|256000|0|100|10500|1000|14|2|4|10000|10000|4|1|97880|2447|18|16000000|4970000|100|21|test|4|0")

not work

bobn171 03/03/2015 00:19

Quote:

Originally Posted by TufanTR (Post 31195473)
not work

well, that packet was misspelled... if i'm not wrong you should listen port 8080, are you doing it?

EDIT: Thats what i have
Code:

0|I|playerID|username|shipID|maxSpeed|shield|maxShield|health|maxHealth|cargo|maxCargo|user.x|user.y|mapId|factionId|clanId|shipAmmo|shipRockets|expansion|premium|exp|honor|level|credits|uridium|jackpot|rank|clanTag|ggates|0|cloaked

TufanTR 03/03/2015 00:25

Quote:

Originally Posted by bobn171 (Post 31195490)
well, that packet was misspelled... if i'm not wrong you should listen port 8080, are you doing it?

EDIT: Thats what i have
Code:

0|I|playerID|username|shipID|maxSpeed|shield|maxShield|health|maxHealth|cargo|maxCargo|user.x|user.y|mapId|factionId|clanId|shipAmmo|shipRockets|expansion|premium|exp|honor|level|credits|uridium|jackpot|rank|clanTag|ggates|0|cloaked

yes, listening port is 8080.

bobn171 03/03/2015 00:34

Quote:

Originally Posted by TufanTR (Post 31195521)
yes, listening port is 8080.

let's trust that you did it great...

I've 2 ideas... first i've a different 'policy packet', i mean you're sending:
Code:

<?xml version="1.0"?><!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">ccess-from domain="*" to-ports="*" /></cross-domain-policy>
and i'm sending (and works well):
Code:

<?xml version=\"1.0\"?>\r\n<!DOCTYPE cross-domain-policy SYSTEM \"/xml/dtds/cross-domain-policy.dtd\">\r\n<cross-domain-policy>\r\n<allow-access-from domain=\"*\" to-ports=\"*\" />\r\n</cross-domain-policy>
the other idea.. can you check your 'spacemap\xml\maps.php' ? should be a host variable or whatever, check if is pointing to your localhost

TufanTR 03/03/2015 00:49

Quote:

Originally Posted by bobn171 (Post 31195554)
let's trust that you did it great...

I've 2 ideas... first i've a different 'policy packet', i mean you're sending:
Code:

<?xml version="1.0"?><!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">ccess-from domain="*" to-ports="*" /></cross-domain-policy>
and i'm sending (and works well):
Code:

<?xml version=\"1.0\"?>\r\n<!DOCTYPE cross-domain-policy SYSTEM \"/xml/dtds/cross-domain-policy.dtd\">\r\n<cross-domain-policy>\r\n<allow-access-from domain=\"*\" to-ports=\"*\" />\r\n</cross-domain-policy>
the other idea.. can you check your 'spacemap\xml\maps.php' ? should be a host variable or whatever, check if is pointing to your localhost

still does not work, thank you for everything.

edit: i am using orbit reborn cms

bobn171 03/03/2015 00:55

Quote:

Originally Posted by TufanTR (Post 31195613)
still does not work, thank you for everything.

edit: i am using orbit reborn cms

the last idea that i've for now, is that the error is in the send function, maybe if you could show us how you did it

Seems like there isn't receiving any packet

TufanTR 03/03/2015 01:05

Quote:

Originally Posted by bobn171 (Post 31195640)
the last idea that i've for now, is that the error is in the send function, maybe if you could show us how you did it

Seems like there isn't receiving any packet

send function
Code:

def sendData(self, data):
        self.conn.send(data)
        print "[SEND] "+data

with socket.
Code:

import socket
def connection(self):
        while 1:
            print "Wait for new connections.."
            self.conn, self.addr = self.s.accept()
            print 'Connected by', self.addr
            self.isConnected=True
            #send packets
def createserver(self):
        for res in socket.getaddrinfo(HOST, PORT, socket.AF_UNSPEC,
                              socket.SOCK_STREAM, 0, socket.AI_PASSIVE):
            af, socktype, proto, canonname, sa = res
            try:
                self.s = socket.socket(af, socktype, proto)
            except socket.error, msg:
                self.s = None
                continue
            try:
                self.s.bind(sa)
                self.s.listen(3)
            except socket.error, msg:
                self.s.close()
                self.s = None
                continue
            break
        if not self.s is None:   
            self.connection()

edit: 1500. post :D

bobn171 03/03/2015 10:30

Quote:

Originally Posted by TufanTR (Post 31195682)
send function
Code:

def sendData(self, data):
        self.conn.send(data)
        print "[SEND] "+data

with socket.
Code:

import socket
def connection(self):
        while 1:
            print "Wait for new connections.."
            self.conn, self.addr = self.s.accept()
            print 'Connected by', self.addr
            self.isConnected=True
            #send packets
def createserver(self):
        for res in socket.getaddrinfo(HOST, PORT, socket.AF_UNSPEC,
                              socket.SOCK_STREAM, 0, socket.AI_PASSIVE):
            af, socktype, proto, canonname, sa = res
            try:
                self.s = socket.socket(af, socktype, proto)
            except socket.error, msg:
                self.s = None
                continue
            try:
                self.s.bind(sa)
                self.s.listen(3)
            except socket.error, msg:
                self.s.close()
                self.s = None
                continue
            break
        if not self.s is None:   
            self.connection()

edit: 1500. post :D


well... i don't know python at all, but in java atleast you should tell to the 'send function' where is the end of the packet (commonly abbreviated EOF)

Try adding something like this (i don't know if is the correct syntax in python so change it if don't work):
Code:

def sendData(self, data):
        self.conn.send(data + (char)0x00)
        print "[SEND] "+data

EDIT: i just seen this in [Only registered and activated users can see links. Click Here To Register...]
Quote:

s.send is not guaranteed to send every byte you give it; use s.sendall instead.

manulaiko3.0 03/03/2015 14:55

Quote:

Originally Posted by bobn171 (Post 31196967)
well... i don't know python at all, but in java atleast you should tell to the 'send function' where is the end of the packet (commonly abbreviated EOF)

Try adding something like this (i don't know if is the correct syntax in python so change it if don't work):
Code:

def sendData(self, data):
        self.conn.send(data + (char)0x00)
        print "[SEND] "+data

EDIT: i just seen this in [Only registered and activated users can see links. Click Here To Register...]

:handsdown::handsdown::handsdown: Long live StackOverflow :handsdown::handsdown::handsdown:

bobn171 03/03/2015 14:58

Quote:

Originally Posted by manulaiko3.0 (Post 31198928)
:handsdown::handsdown::handsdown: Long live StackOverflow :handsdown::handsdown::handsdown:

Pray for it

goodegoode 03/03/2015 18:49

Quote:

Originally Posted by goodegoode (Post 31192083)
so i now that you guys are going to hate me i m new to some of this coding and old to like the java and things but in

DarkOrbit Remix PS 3.0 [Beta Release]
Instructions


they say to find something like this


DirectoryIndex index.php index.pl index.cgi index.asp index.shtml index.html index.htm \
default.php default.pl default.cgi default.asp default.shtml default.html default.htm \
home.php home.pl home.cgi home.asp home.shtml home.html home.htm

and then add this "index.es" after "DirectoryIndex and it seems to block a port but i m not sure how to reopen or what to do about the port and yes i did the other part right it says put in SetHandler application / x-httpd-php at line 20 but i m guessing it means <FilesMatch "\.es$">
SetHandler application/x-httpd-php
</FilesMatch>

so not sure what i m doing wrong sorry if this was already shown how to fix if you could point me that was then that would be great thanks :)


can someone help or at least tell me where to go ?

bobn171 03/03/2015 18:52

Quote:

Originally Posted by goodegoode (Post 31201483)
can someone help or at least tell me where to go ?

I think that manu, the stackoverflow lover is the best one to help you xD

manulaiko3.0 03/03/2015 20:32

Quote:

Originally Posted by bobn171 (Post 31201521)
I think that manu, the stackoverflow lover is the best one to help you xD

I hate StackOverflow, they always downvote my questions/answers, they're corrupts...

Quote:

Originally Posted by goodegoode (Post 31201483)
can someone help or at least tell me where to go ?

It's my fault, I though that it would print the < & > but it didn't, take a look at page's source and you'll see the right configuration.

See you!

bobn171 03/03/2015 20:34

Atleast it happens to other people too :D is not only me

Turkic 03/03/2015 21:31

How do I setup a website? my server VDS IP based on, but me I want to build on top of the website. PLEASE HELP

oleg-19952008 03/04/2015 06:46

Can't create mob, send a packet of the type "0|C|alienid|alienship|1||alienname|posx|posy| |-1|0|0|1|0" mob appears but I can't take aim at him and shoot him.
What other packages you need so that it could shoot?

bobn171 03/04/2015 15:23

Quote:

Originally Posted by Turkic (Post 31203556)
How do I setup a website? my server VDS IP based on, but me I want to build on top of the website. PLEASE HELP

I (probably we) can't understand you, try to get a better translator or even hire a teacher... English is important now at days

Quote:

Originally Posted by oleg-19952008 (Post 31205830)
Can't create mob, send a packet of the type "0|C|alienid|alienship|1||alienname|posx|posy| |-1|0|0|1|0" mob appears but I can't take aim at him and shoot him.
What other packages you need so that it could shoot?

When you select a player (or npc it doesn't matter) the server receives a packet something like..

Code:

SEL|playerID(npcID)
So you should send back another packet, with this structure:
Code:

0|N|PlayerID(or npcID)|shipID|hp|maxHp|shield|MaxShield|isCloacked(bool)
Something similar with the attack... when you click on the npc and the npc is selected correctly (the packet above) and hit Ctrl (attack button) the server receives:

Code:

a|playerID(or npcID)
and like above you should send back another packet with this structure:
Code:

0|a|playerID|targetID|laserGFX|1|1
The last 1|1 (bool) are pilotSheet skills, fat lasers or the cool shield, test it i don't remember it. And laserGFX means the graphic, ex, 0=red laser, 1=blue laser, 2=green laser, ...

Of course it won't do any damage, it's only the graphical effect, you should do all the correspondient calculations on the server, etc...


Regards

oleg-19952008 03/04/2015 19:33

Quote:

Originally Posted by bobn171 (Post 31208762)
I (probably we) can't understand you, try to get a better translator or even hire a teacher... English is important now at days



When you select a player (or npc it doesn't matter) the server receives a packet something like..

Code:

SEL|playerID(npcID)
So you should send back another packet, with this structure:
Code:

0|N|PlayerID(or npcID)|shipID|hp|maxHp|shield|MaxShield|isCloacked(bool)
Something similar with the attack... when you click on the npc and the npc is selected correctly (the packet above) and hit Ctrl (attack button) the server receives:

Code:

a|playerID(or npcID)
and like above you should send back another packet with this structure:
Code:

0|a|playerID|targetID|laserGFX|1|1
The last 1|1 (bool) are pilotSheet skills, fat lasers or the cool shield, test it i don't remember it. And laserGFX means the graphic, ex, 0=red laser, 1=blue laser, 2=green laser, ...

Of course it won't do any damage, it's only the graphical effect, you should do all the correspondient calculations on the server, etc...


Regards




Does not work, double checked everything I could, ID already substituted differently, does the position of the runoff from the packages ?
my code: c#

{
var id_moba = "89990";
var ship_id = "150";
var hp = "999";
var max_hp = "9999";
var SHD = "12333";
var max_SHD = "999999";

Send("0|C|" + id_moba + "|" + ship_id + "|1||alienname|" + Ship.x + "|" + Ship.y + "| |-1|0|0|1|0");
Send("0|N" + User.Id + "|" + ship_id + "|" + hp + "|" + max_hp + "|" + SHD + "|" + max_SHD + "|0");
//| hp | maxHp | shield | MaxShield | 0");

Send("0|a|" + User.Id + "|" + id_moba + "|4|1|1");
UpdateShip();
}

I just can't take aim at Moba, I've tried everything I could think of.

I tried to do so, put in the command line for the admins of this SEL|12 stood next mob, led SEL|89990 mob and not stand out,and when I entered SEL|12 he in my sight came from.

manulaiko3.0 03/05/2015 00:21

Quote:

Originally Posted by oleg-19952008 (Post 31211924)
Does not work, double checked everything I could, ID already substituted differently, does the position of the runoff from the packages ?
my code: c#

{
var id_moba = "89990";
var ship_id = "150";
var hp = "999";
var max_hp = "9999";
var SHD = "12333";
var max_SHD = "999999";

Send("0|C|" + id_moba + "|" + ship_id + "|1||alienname|" + Ship.x + "|" + Ship.y + "| |-1|0|0|1|0");
Send("0|N" + User.Id + "|" + ship_id + "|" + hp + "|" + max_hp + "|" + SHD + "|" + max_SHD + "|0");
//| hp | maxHp | shield | MaxShield | 0");

Send("0|a|" + User.Id + "|" + id_moba + "|4|1|1");
UpdateShip();
}

I just can't take aim at Moba, I've tried everything I could think of.

I tried to do so, put in the command line for the admins of this SEL|12 stood next mob, led SEL|89990 mob and not stand out,and when I entered SEL|12 he in my sight came from.

Don't read the code, will give you cancer.

You should try sending correct packet when the client request it u.u

Real.epvp 03/06/2015 03:19

Quote:

Don't read the code, will give you cancer.
Ohhhh Nooo Not Cancer. Dont Worry, me and epvp community will be by your side!!! Get Well Soon!!!

Sήřwy 03/06/2015 14:38

var id_moba = "89990";
var ship_id = "150";
var hp = "999";
var max_hp = "9999";
var SHD = "12333";
var max_SHD = "999999";

Jesus, why you store like this? really...

oleg-19952008 03/06/2015 21:04

Quote:

Originally Posted by Sήřwy (Post 31228374)
var id_moba = "89990";
var ship_id = "150";
var hp = "999";
var max_hp = "9999";
var SHD = "12333";
var max_SHD = "999999";

Jesus, why you store like this? really...

PSS, I kinda just started to learn c# and the fact that I have no imagination for what would be called variables more correctly I'm not guilty, what would someone told me that may be I did not like, how can you say that is still true programmers all romanul TO, tabbed all packages . And to NOT TELL WHO CAN NOT only Bobn suggested what could be wrong.And the numbers I put on the bastard, only ID I did not care and took a single value.

manulaiko3.0 03/06/2015 22:55

Quote:

Originally Posted by oleg-19952008 (Post 31232652)
PSS, I kinda just started to learn c# and the fact that I have no imagination for what would be called variables more correctly I'm not guilty, what would someone told me that may be I did not like, how can you say that is still true programmers all romanul TO, tabbed all packages . And to NOT TELL WHO CAN NOT only Bobn suggested what could be wrong.And the numbers I put on the bastard, only ID I did not care and took a single value.

There's a book called "Java How To Program" by P.J. Deitel, it will explain you the basics of object oriented programming, I recommend it. Once you've read it you can find some tutorials over there or read Micro$oft's C# documentation because from Java to C# just change little things like classes & methods names and unsigned variables.

oleg-19952008 03/06/2015 23:38

Quote:

Originally Posted by manulaiko3.0 (Post 31233754)
There's a book called "Java How To Program" by P.J. Deitel, it will explain you the basics of object oriented programming, I recommend it. Once you've read it you can find some tutorials over there or read Micro$oft's C# documentation because from Java to C# just change little things like classes & methods names and unsigned variables.

I'm interested in the c# documentation I have so much that even on the table do not have enough space for our books. And I thought from Java but no, it will be possible for Linux to write but in C# you may also soon be possible, because the source .NET framework are open now, you might come up with something for C#. Even in the plans was C++ after C# but now I need an assembler for thesis so maybe C++ would be postponed for a year or 2 because you have to go into the army.

karas17 03/07/2015 12:37

Hi everyone. Anyone know how I can secure chat against attacks? I mean writing or spaming without nick.

th0rex 03/07/2015 13:05

In the login packet the client sends a session id, a user id and a name. Check in the database wether that name really exists for the given session id and user id. If it does not just ignore his connection request.

manulaiko3.0 03/07/2015 14:48

Quote:

Originally Posted by oleg-19952008 (Post 31234121)
I'm interested in the c# documentation I have so much that even on the table do not have enough space for our books. And I thought from Java but no, it will be possible for Linux to write but in C# you may also soon be possible, because the source .NET framework are open now, you might come up with something for C#. Even in the plans was C++ after C# but now I need an assembler for thesis so maybe C++ would be postponed for a year or 2 because you have to go into the army.

What?? I won't go to army -.- I prefer to broke a leg doing parkour

WosGaming 03/07/2015 14:49

Nice thread

Best regards...


All times are GMT +2. The time now is 21:15.

Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.