Private Server Info and Support Thread

03/06/2017 16:39 by_soul#2746
Which is the best server file and emulator??
03/06/2017 18:21 steppdroid#2747
Quote:
Originally Posted by NoCheatImPGM View Post
You cannot execute a php code inside a .xml file.
Change the .xml file to .php and make the changes needed in the main.swf.
i changed main.swf

Code:
package net.bigpoint.darkorbit

     private function loadGameXML() : void
      {
         var _loc1_:URLRequest = null;
         if(this.antStart)
         {
            _loc1_ = new URLRequest("xml/game.xml");
         }
         else
         {
            _loc1_ = new URLRequest(Settings.basePath + "xml/game.php?__cv=" + this.revisions["gameXML"]);
         }
         var _loc2_:URLLoader = new URLLoader();
         _loc2_.addEventListener(Event.COMPLETE,this.handleGameXMLLoaded);
         _loc2_.addEventListener(IOErrorEvent.IO_ERROR,this.handleXMLLoadingError);
         _loc2_.load(_loc1_);
      }
      
      private function loadProfileXML() : void
      {
         var _loc1_:URLRequest = null;
         if(this.antStart)
         {
            _loc1_ = new URLRequest("xml/profile.xml");
         }
         else
         {
            _loc1_ = new URLRequest(Settings.basePath + "xml/profile.xml?__cv=" + this.revisions["profileXML"]);
         }
         var _loc2_:URLLoader = new URLLoader();
         _loc2_.addEventListener(Event.COMPLETE,this.handleProfileXMLLoaded);
         _loc2_.addEventListener(IOErrorEvent.IO_ERROR,this.handleXMLLoadingError);
         _loc2_.load(_loc1_);
      }
      
     
      
      private function handleGameXMLLoaded(param1:Event) : void
      {
         var _loc2_:URLRequest = null;
         gameXML = new XML((param1.currentTarget as URLLoader).data);
         PatternManager.parsePatterns(gameXML);
         var _loc3_:ResolutionPattern = PatternManager.resolutionPatterns[Settings.resolutionID];
         this.screenManager.setScreenWidth(_loc3_.width);
         this.screenManager.setScreenHeight(_loc3_.height);
         TooltipControl.getInstance().setBounds(new Rectangle(0,0,_loc3_.width,_loc3_.height));
         this.screenManager.showSimpleMessage(BPLocale.getText("loadingClaim"),"quickloader");
         var _loc4_:* = "maps_dev.xml";
         if(this.environment != ENV_LOCAL_SERVER)
         {
            _loc4_ = "maps.php";
         }
         if(this.environment == ENV_LOCAL_SERVER)
         {
            _loc2_ = new URLRequest("xml/" + _loc4_);
         }
         else
         {
            _loc2_ = new URLRequest(Settings.dynamicHost + Settings.basePath + "xml/" + _loc4_);
         }
         var _loc5_:URLLoader = new URLLoader();
         _loc5_.addEventListener(Event.COMPLETE,this.handleMapsXMLLoaded);
         _loc5_.addEventListener(IOErrorEvent.IO_ERROR,this.handleXMLLoadingError);
         _loc5_.load(_loc2_);
      }
but not load :(
03/06/2017 19:21 manulaiko3.0#2748
Quote:
Originally Posted by olitis1 View Post
Or with a RewriteRule in .htacces
None is smart enough to think that the easiest solution will work.
03/06/2017 19:33 steppdroid#2749
Quote:
Originally Posted by manulaiko3.0 View Post
None is smart enough to think that the easiest solution will work.
Work with RewriteRule!!! Thank!!
03/06/2017 19:35 Luffa#2750

GG
03/07/2017 00:21 steppdroid#2751
[SLOVED]
but in game.php not run any server functions.... :(
Code:
<?php
$res = $unity->getResolution($Users->DataRow['playerID']);
if ($res == 6){
$width = 1920;
$height = 974;
}
else{$width = 1920;
$height = 1080;
}
header('Content-type: text/xml');
?>
i have this error:

Code:
Warning: require(KERNEL-DOCMS/Init.php): failed to open stream: No such file or directory in D:\xampp\htdocs\spacemap\xml\game.php on line 4

Fatal error: require(): Failed opening required 'KERNEL-DOCMS/Init.php' (include_path='.;D:\xampp\php\PEAR') in D:\xampp\htdocs\spacemap\xml\game.php on line 4
03/07/2017 05:33 by_soul#2752
Which is the best server file and emulator??
03/07/2017 08:03 Freshek#2753
Quote:
Originally Posted by by_soul View Post
Which is the best server file and emulator??
The one that you coded.
03/07/2017 20:43 ***NOMAD***#2754
Quote:
Originally Posted by Freshek View Post
The one that you coded.
That's pretty risky...you know :rolleyes:

But really, what people want to do on the server and what features they would like to have. By answering those questions one can find the best way to create their server.
03/07/2017 21:50 darkorbit26410#2755
Guys i host my server hamachi its ready i need now put chat i have files but i do not know how work can say me steps pls?
03/07/2017 22:36 by_soul#2756
Quote:
Originally Posted by Freshek View Post
The one that you coded.

Best server file for initial startup????
03/07/2017 23:58 manulaiko3.0#2757
Quote:
Originally Posted by by_soul View Post
Best server file for initial startup????
For the CMS copypaste this in index.php:

PHP Code:
<?php
For the emulator in java copypaste this in Main.java:

Code:
public class Main
{
    public static void main(String[] args)
    {
    }
}
Rest is up to what features you want and what kind of PS you want.
03/08/2017 10:06 by_soul#2758
Quote:
Originally Posted by manulaiko3.0 View Post
For the CMS copypaste this in index.php:

PHP Code:
<?php
For the emulator in java copypaste this in Main.java:

Code:
public class Main
{
    public static void main(String[] args)
    {
    }
}
Rest is up to what features you want and what kind of PS you want.

I do not want to write from scratch

Which is the best I can edit

Sample server: uberorbit
03/09/2017 11:03 steppdroid#2759
Hi guys, what's the package that pushes the level of enemies in minimap on Maps basics? (the yellow bars in the minimap)
03/09/2017 13:32 S7K Yuuki#2760
Quote:
Originally Posted by steppdroid View Post
Hi guys, what's the package that pushes the level of enemies in minimap on Maps basics? (the yellow bars in the minimap)
I guess you mean the packet.. I took a quick look to main.swf and if I'm not wrong should be
Code:
0|n|w|(int value) -> 0|n|w|2 (for example)
Regards.-