Register for your free account! | Forgot your password?

Go Back   elitepvpers > Other Online Games > Browsergames > DarkOrbit
You last visited: Today at 20:58

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

Advertisement



[In-Orbit][CMS] Dark Planets edition + emu

Discussion on [In-Orbit][CMS] Dark Planets edition + emu within the DarkOrbit forum part of the Browsergames category.

Closed Thread
 
Old 01/04/2015, 21:44   #136

 
Destiny's Avatar
 
elite*gold: 2
Join Date: Jun 2012
Posts: 988
Received Thanks: 562
ok i fix chat
System: Welcome to the English chat
System: Server is running for Tests, some new updates are not applied so please keep the server discussion out of chat!
ahh old good times never back only one dp server

edit but cant login to chat tool
and why this no work
Destiny is offline  
Old 01/04/2015, 22:42   #137
 
cryz35's Avatar
 
elite*gold: 0
Join Date: Feb 2009
Posts: 1,718
Received Thanks: 2,382
Quote:
Originally Posted by edox77 View Post
ok i fix chat
System: Welcome to the English chat
System: Server is running for Tests, some new updates are not applied so please keep the server discussion out of chat!
ahh old good times never back only one dp server

edit but cant login to chat tool
and why this no work
Not implemented
cryz35 is offline  
Thanks
1 User
Old 01/05/2015, 02:53   #138
 
elite*gold: 0
Join Date: Jan 2015
Posts: 39
Received Thanks: 2
Quote:
Originally Posted by YURI-ELIADE.ITALY View Post
I give you just can not get into the home by means of the error in index 19 I eleminato all passes but nothing to do there, and good luck to those who succeeded.
check \KERNEL-DOCMS\Server.Config.php
\KERNEL-DOCMS\Class.db.php
and other config files..
underworld222 is offline  
Old 01/05/2015, 03:07   #139
 
YURI-ELIADE.ITALY's Avatar
 
elite*gold: 15
Join Date: Feb 2014
Posts: 313
Received Thanks: 78
Quote:
Originally Posted by underworld222 View Post
check \KERNEL-DOCMS\Server.Config.php
\KERNEL-DOCMS\Class.db.php
and other config files..
class.db.php <--------

server.Config.php <--------
YURI-ELIADE.ITALY is offline  
Old 01/05/2015, 07:48   #140
 
elite*gold: 0
Join Date: Jul 2013
Posts: 86
Received Thanks: 3
edox77 server link ?
katil0172 is offline  
Old 01/05/2015, 08:09   #141
 
elite*gold: 0
Join Date: Jul 2011
Posts: 20
Received Thanks: 23
Quote:
Originally Posted by edox77 View Post
i click in gg and get ammo :P in shop cant get ammo but gg can :P
this is because GG use table server_1_player_all_item and shop use table server_1_player_ammunation.

See:
GG
PHP Code:
private function addItems($args){
        
$lootIds = array('2'=>'ammunition_laser_mcb-25''3'=>'ammunition_laser_mcb-50''4'=>'ammunition_laser_ucb-100''5'=>'ammunition_laser_sab-50','12'=>'ammunition_rocket_plt-2021','11'=>'ammunition_mine_acm-01');
        foreach(
$args as $k => $r){
            if(
array_key_exists($r['id'], $lootIds)):
                
$li $lootIds[$r['id']];
                if(
self::checkExistence($li)):
                    if(!empty(
$r['q'])):
                    
$Q $r['q'];
                    
$sqli "UPDATE `server_1_player_all_items` SET Q = Q + $Q WHERE userID=? && playerID=? && lootid=?";
                    
$stmt $this->con->prepare($sqli);
                    
$stmt->bindParam(1$this->useridPDO::PARAM_INT);
                    
$stmt->bindParam(2$this->playeridPDO::PARAM_INT);
                    
$stmt->bindParam(3$liPDO::PARAM_STR);
                    
$stmt->execute();
                    endif;
                else:
                  if(!empty(
$r['q'])):
                    
$in 0;
                    
$Q $r['q'];
                    
$sql "INSERT INTO `server_1_player_all_items` (`lootid`, `Q`, `interactive`, `playerID`, `userID`) VALUES (?, ?, ?, ?, ?)";
                    
$stmt $this->con->prepare($sql);
                    
$stmt->bindParam(1$liPDO::PARAM_STR);
                    
$stmt->bindParam(2$QPDO::PARAM_INT);
                    
$stmt->bindParam(3$inPDO::PARAM_INT);
                    
$stmt->bindParam(4$this->playeridPDO::PARAM_INT);
                    
$stmt->bindParam(5$this->useridPDO::PARAM_INT);
                    
$stmt->execute();
                    endif;
                endif;
            endif;
        }
        return 
true;
    } 
Shop:
PHP Code:
private function updateAmmo($am$full){
        
$sqli "UPDATE server_1_player_ammunation SET $full = ($full+$am) WHERE playerID=:pid";
        
$stmt $this->con->prepare($sqli);
        
$stmt->bindParam(':pid'$this->pidPDO::PARAM_INT);
        if (
$stmt->execute()) {
                
$message '{"result":"success","message":"' $am 'x ammunition: \"' $name '\" purchased.<br \/><br \/>","showEquipOption":false,"userBalance":{"uridium":' $this->uridium ',"credits":' $this->credits '},"userShip":{"laserAmmunitionSpace":100000000,"rocketSpace":100000000},"isShipDumpEmpty":false,"itemId":"' $id '","category":"ammunition"}';
                return 
$message;
        }else{
                
$message '{"result":"error","message":"S.H.E.I.L.D. found a bug on your account, contact staff.","userBalance":{"uridium":' $this->uridium ',"credits":' $this->credits '},"userShip":{"laserAmmunitionSpace":0,"rocketSpace":0},"isShipDumpEmpty":false,"itemId":"' $id '","category":"ship"}';
        return 
$message;
        }
    } 
Emulator use the server_1_player_ammunation.

PD: How do you fix the chat, I start the chat emulator, I edit the xml config files but chat doesn't connect to the emu (Only the in-game chat client doesn't works, the acp chat connection works)
Davidc96 is offline  
Thanks
1 User
Old 01/05/2015, 10:31   #142
 
sveratus's Avatar
 
elite*gold: 0
Join Date: Sep 2014
Posts: 270
Received Thanks: 21
downloaded on vps ******* finally releaseee.

**** great errors , how to upload the database i get errors in phpmyadmin
sveratus is offline  
Old 01/05/2015, 15:48   #143
 
elite*gold: 0
Join Date: Jan 2015
Posts: 39
Received Thanks: 2
Quote:
Originally Posted by YURI-ELIADE.ITALY View Post
class.db.php
twice?

PHP Code:
<?php
/*
 *  FOLLOW SCRIPT WAS MADE BY BAU - MEDIANET IVS DENMARK
 */
class DB 
        public static 
$instance

        public function 
__construct() {} 
         
        public static function 
getInstance() { 
         
                if(empty(
self::$instance)) { 
                         
                        
$db_info = array( 
                                
"db_host" => "127.0.0.1"
                                
"db_port" => "3306"
                                
"db_user" => "root"
                                
"db_pass" => "Ty56DCx"
                                
"db_name" => "darkorbit"
                                
"db_charset" => "UTF-8" 
                        
); 
                         
   
// .........


        
static function safe($s '')
        {
            
$db_info = array( 
                                
"db_host" => "127.0.0.1"
                                
"db_port" => "3306"
                                
"db_user" => "root"
                                
"db_pass" => "Ty56DCx"
                                
"db_name" => "darkorbit"
                                
"db_charset" => "UTF-8" 
                        
); 
            
$con $MySQLi = new mysqli($db_info["db_host"], $db_info["db_user"], $db_info['db_pass'], $db_info['db_name']);
            
//TODO: finish this... not exactly perfect
            
return mysqli_real_escape_string($con$s);
        }
       
// .........    
?>

here try this on index.. just copy the "commented" part
PHP Code:
<?php
echo "DarkPlanets is offline for some days. <br> Thanks for your patience.";
Exit;

require 
'./KERNEL-DOCMS/Init.php';

if(isset(
$_POST['recoverTrue']) && !empty($_POST['recoverTrue'])){
    
$_SESSION['errorData'] = $unity->passwordRecovery($_POST['recoverPw']);
}
if(isset(
$_POST['loginForm_default_username'], $_POST['loginForm_default_password'], $_POST['loginForm_default_login_submit']) && $_POST['loginForm_default_login_submit'] === 'Login'):
    
$_SESSION['errorData'] = "";
    if(
preg_match('/[|]/'$_POST['loginForm_default_username']) || strlen($_POST['loginForm_default_password']) < || strlen($_POST['loginForm_default_password']) > 20 || !preg_match('`[0-9]`'$_POST['loginForm_default_password']) || $_POST['loginForm_default_password'] === '******' || strlen($_POST['loginForm_default_username']) < || strlen($_POST['loginForm_default_username']) > 40):
        
$_SESSION['errorData'] .= '<div class="singup_errorMessage signup_errorMessage">Username and password combination doesn\'t exist.<br>Please check your info and try again.</div>';
        else:        
                                    
//           05.01.15 made it pdo ~underworld
                /*$name = mysqli_real_escape_string($MySQLi, $_POST['loginForm_default_username']);
                $query = $MySQLi->query("SELECT users.pwHash, users.ID, users.Email, users.verified, users.banned, users.banned_until, users.IP, server_1_players.rank FROM users INNER JOIN server_1_players ON users.ID=server_1_players.userID WHERE users.Name = '". $name ."'");
                */
                
$n $_POST['loginForm_default_username'];
                
$q $GLOBALS['DB']->prepare("SELECT users.pwHash, users.ID, users.Email, users.verified, users.banned, users.banned_until, users.IP, server_1_players.rank FROM users INNER JOIN server_1_players ON users.ID=server_1_players.userID WHERE users.Name = :name");
                
$q->bindParam(':name'$nPDO::PARAM_STR);
                
$q->execute();
                unset(
$n);
                
                if(
$q->rowCount () === 1):
                
$row $q->fetchAll(PDO::FETCH_ASSOC); /* work done */
                
if($row['banned']!=0){
                    
header('Location: http://darkplanets.net/?calmdown=99&until=Banned%20Permanent');                    
                }else{
                
//if($row['rank']==21){
                
if(($unity->cPT($row['banned_until']))){
some below you have the same problem.
PHP Code:
                if($q->rowCount () === 1):
                
$row $q->fetchAll(PDO::FETCH_ASSOC); /* work done */
                
if($row['banned']!=0){
                    
header('Location: http://darkplanets.net/?calmdown=99&until=Banned%20Permanent');                    
                }else{
                
//if($row['rank']==21){
                
if(($unity->cPT($row['banned_until']))){
                    
header('Location: http://darkplanets.net/?calmdown=99&until='.$row['banned_until']);        
                }else{
                        if(
$Encryption->decrypt($row['pwHash'])===$_POST['loginForm_default_password']){                            
                            
$sessionId $Core::GenerateRandom(18truefalse);
                            
$MySQLi->query('UPDATE users SET sessionId = \' ' $sessionId '\', IP = \''.$unity->get_client_ip().'\' WHERE ID = ' $row['ID'] . '');
                            
$_SESSION['server1']['user']['sessionId'] = $sessionId;
                            
$_SESSION['server1']['user']['email'] = $row['Email'];
                            
$_SESSION['server1']['user']['verified'] = $row['verified'];
                            
DB::pmc($row['ID'], "User logged in from ip: ".$unity->get_client_ip(), "logins");
                            
header('Location: /indexInternal.es.php?action=internalStart');
                        }else{
                            
$_SESSION['errorData'] .= '<div>Username and password combination doesn\'t exist.<br>Please check your info and try again.</div>';
        
                        }
                        } 

just use pdo instead.
underworld222 is offline  
Old 01/05/2015, 19:38   #144
 
elite*gold: 26
Join Date: Jun 2008
Posts: 171
Received Thanks: 25
how to fix the ammo problem?
Toxicsnacht is offline  
Old 01/05/2015, 20:01   #145
 
elite*gold: 0
Join Date: Jan 2012
Posts: 1,997
Received Thanks: 3,422
Quote:
Originally Posted by Toxicsnacht View Post
how to fix the ammo problem?
Ajax/Shop.php

Code:
private function updateAmmo($am, $full){
		$sqli = "UPDATE server_1_player_ammunation SET $full = ($full+$am) WHERE playerID=:pid";
		$stmt = $this->con->prepare($sqli);
        $stmt->bindParam(':pid', $this->pid, PDO::PARAM_INT);
        if ($stmt->execute()) {
				$message = '{"result":"success","message":"' . $am . 'x ammunition: \"' . $full . '\" purchased.<br \/><br \/>","showEquipOption":false,"userBalance":{"uridium":' . $this->uridium . ',"credits":' . $this->credits . '},"userShip":{"laserAmmunitionSpace":100000000,"rocketSpace":100000000},"isShipDumpEmpty":false,"itemId":"","category":"ammunition"}';
                return $message;
		}else{
				$message = '{"result":"error","message":"S.H.E.I.L.D. found a bug on your account, contact staff.","userBalance":{"uridium":' . $this->uridium . ',"credits":' . $this->credits . '},"userShip":{"laserAmmunitionSpace":0,"rocketSpace":0},"isShipDumpEmpty":false,"itemId":"' . $id . '","category":"ship"}';
        return $message;
		}
	}
NoCheatImPGM is offline  
Thanks
1 User
Old 01/05/2015, 20:12   #146
 
elite*gold: 0
Join Date: Sep 2014
Posts: 148
Received Thanks: 73
any know why doesn't work galaxy gates? i don't receive munition, if any can tell me where i can change sql when send ammo, i can code and give the fix...

thanks and sorry for my english

test my server:
(Have 2 servers, new version(is darkplanets version) and old version(my own version)).
lCulito is offline  
Thanks
1 User
Old 01/05/2015, 20:49   #147

 
Luffa's Avatar
 
elite*gold: 61
Join Date: Oct 2010
Posts: 1,188
Received Thanks: 2,403
Quote:
Originally Posted by lCulito View Post
any know why doesn't work galaxy gates? i don't receive munition, if any can tell me where i can change sql when send ammo, i can code and give the fix...

thanks and sorry for my english

test my server:
(Have 2 servers, new version(is darkplanets version) and old version(my own version)).
Yes i know why i also know how to fix most of the bugs in this release xD

-A
Luffa is offline  
Thanks
4 Users
Old 01/05/2015, 20:53   #148
 
elite*gold: 0
Join Date: Sep 2014
Posts: 148
Received Thanks: 73
Quote:
Originally Posted by Αnonymous View Post
Yes i know why i also know how to fix most of the bugs in this release xD

-A
Can you tell me why doesn't work or where i can fix please?..

Thanks

My server:
------
Darkstars.es
lCulito is offline  
Old 01/05/2015, 21:31   #149
 
elite*gold: 0
Join Date: Jan 2015
Posts: 39
Received Thanks: 2
Quote:
Originally Posted by lCulito View Post
Can you tell me why doesn't work or where i can fix please?..

Thanks

My server:
------
Darkstars.es
server is very slow..
underworld222 is offline  
Old 01/05/2015, 21:54   #150

 
Arby's Avatar
 
elite*gold: 83
Join Date: May 2011
Posts: 11,029
Received Thanks: 6,036
Due to the main developer requesting it, I removed the links and I'm closing the thread.
If a person doesn't want his work (or a cracked version/leaked etc) on epvp, he is allowed to request the removal providing he is indeed the actual owner of that work.
Arby is offline  
Thanks
7 Users
Closed Thread


Similar Threads Similar Threads
Dark Planets?
11/05/2014 - DarkOrbit - 1 Replies
What happened with dark planets? It going to be back? I really miss it :(
Dark Planets idea
10/22/2014 - DarkOrbit - 38 Replies
Hi all :) Maybe do Dark Planets in Hamachi, i think this is good idea.. Who want, can be connected and server in security.. yes or no?
Dark Planets | Open Beta
08/17/2014 - DarkOrbit - 73 Replies
http://darkplanets.net/do_img/global/splashpage/lo goDP.png Welcome to Dark Planets first open Beta test. Before anything else please read this thread/post through. Please do not assume everything is working right away. This is a massive project and we have been working around the clock the last week to even get to this stage in the progress. This beta test is for testing our current server capacity.
Dark Orbit Remix Special Edition
11/27/2012 - DarkOrbit - 13 Replies
Hello guys. I started developing a own version off do remix. Here are the controls : Shift: Release enemy CTRL: attack Alt: Save Esc: Close 0: Vengeance test nothin important 1-5: ammo A:Jump H: Hangar
Dark Orbit Compte FR2 / Sales Account Dark Orbit
09/25/2012 - Browsergames Trading - 4 Replies
Bonjour, Serveur : France 2 Firme: EIC Equipements : 28 LF4 dont 21 lvl 16 22 boucliers 51 générateurs de vitesse 10 drones lvl 16



All times are GMT +1. The time now is 20:59.


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.