You last visited: Today at 16:55
Advertisement
Private Server Info and Support Thread
Discussion on Private Server Info and Support Thread within the DarkOrbit forum part of the Browsergames category.
03/06/2017, 16:39
#2746
elite*gold: 0
Join Date: Aug 2011
Posts: 18
Received Thanks: 3
Which is the best server file and emulator??
03/06/2017, 18:21
#2747
elite*gold: 0
Join Date: Sep 2014
Posts: 280
Received Thanks: 42
Quote:
Originally Posted by
NoCheatImPGM
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
#2748
elite*gold: 0
Join Date: May 2014
Posts: 663
Received Thanks: 1,154
Quote:
Originally Posted by
olitis1
Or with a RewriteRule in .htacces
None is smart enough to think that the easiest solution will work.
03/06/2017, 19:33
#2749
elite*gold: 0
Join Date: Sep 2014
Posts: 280
Received Thanks: 42
Quote:
Originally Posted by
manulaiko3.0
None is smart enough to think that the easiest solution will work.
Work with RewriteRule!!! Thank!!
03/06/2017, 19:35
#2750
elite*gold: 61
Join Date: Oct 2010
Posts: 1,188
Received Thanks: 2,403
PHP Code:
header ( "Content-type: text/xml" );
</div>
GG
03/07/2017, 00:21
#2751
elite*gold: 0
Join Date: Sep 2014
Posts: 280
Received Thanks: 42
[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
#2752
elite*gold: 0
Join Date: Aug 2011
Posts: 18
Received Thanks: 3
Which is the best server file and emulator??
03/07/2017, 08:03
#2753
elite*gold: 0
Join Date: Aug 2015
Posts: 803
Received Thanks: 1,359
Quote:
Originally Posted by
by_soul
Which is the best server file and emulator??
The one that you coded.
03/07/2017, 20:43
#2754
elite*gold: 0
Join Date: Dec 2016
Posts: 17
Received Thanks: 13
Quote:
Originally Posted by
Freshek
The one that you coded.
That's pretty risky...you know
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
#2755
elite*gold: 0
Join Date: Nov 2012
Posts: 32
Received Thanks: 1
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
#2756
elite*gold: 0
Join Date: Aug 2011
Posts: 18
Received Thanks: 3
Quote:
Originally Posted by
Freshek
The one that you coded.
Best server file for initial startup????
03/07/2017, 23:58
#2757
elite*gold: 0
Join Date: May 2014
Posts: 663
Received Thanks: 1,154
Quote:
Originally Posted by
by_soul
Best server file for initial startup????
For the CMS copypaste this in
index.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
#2758
elite*gold: 0
Join Date: Aug 2011
Posts: 18
Received Thanks: 3
Quote:
Originally Posted by
manulaiko3.0
For the CMS copypaste this in
index.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
#2759
elite*gold: 0
Join Date: Sep 2014
Posts: 280
Received Thanks: 42
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
#2760
elite*gold: 0
Join Date: Apr 2015
Posts: 246
Received Thanks: 398
Quote:
Originally Posted by
steppdroid
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.-
Similar Threads
Private private server :P READ FOR MORE INFO
12/01/2010 - SRO Private Server - 12 Replies
hey guys im wondering if there is anyway to make a real private server like ZSZC or SWSRO or MYSRO but to where i can only play and level a character and as if it was a real private server. but just for me, not like an emulator where im already lvl 90 or 120 or whatever. i mean one where i set the rates and i level. if not then ok u can close this. but i was just wondering.
All times are GMT +2. The time now is 16:57 .