Private Server Info and Support Thread

03/01/2015 15:57 bobn171#1486
Quote:
Originally Posted by ChemosS View Post
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.

[Only registered and activated users can see links. Click Here To Register...]
Check the maps.php into the spacemap folder
03/01/2015 17:26 ChemosS#1487
Quote:
Originally Posted by bobn171 View Post
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
03/01/2015 17:31 bobn171#1488
Quote:
Originally Posted by ChemosS View Post
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
03/01/2015 17:54 ChemosS#1489
Anyone Have one good emulator some working perfectly.Smart bomb, ish, repair bot, backup shield etc etc. ?
03/02/2015 18:45 goodegoode#1490
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 :)
03/03/2015 00:03 TufanTR#1491
Hi! I'm programming a new emulator, but can not enter the game. Please help
[Only registered and activated users can see links. Click Here To Register...]
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
03/03/2015 00:05 bobn171#1492
Quote:
Originally Posted by TufanTR View Post
Hi! I'm programming a new emulator, but can not enter the game. Please help
[Only registered and activated users can see links. Click Here To Register...]
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")
03/03/2015 00:13 TufanTR#1493
Quote:
Originally Posted by bobn171 View Post
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
03/03/2015 00:19 bobn171#1494
Quote:
Originally Posted by TufanTR View Post
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
03/03/2015 00:25 TufanTR#1495
Quote:
Originally Posted by bobn171 View Post
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.
03/03/2015 00:34 bobn171#1496
Quote:
Originally Posted by TufanTR View Post
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
03/03/2015 00:49 TufanTR#1497
Quote:
Originally Posted by bobn171 View Post
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
03/03/2015 00:55 bobn171#1498
Quote:
Originally Posted by TufanTR View Post
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
03/03/2015 01:05 TufanTR#1499
Quote:
Originally Posted by bobn171 View Post
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
03/03/2015 10:30 bobn171#1500
Quote:
Originally Posted by TufanTR View Post
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.