Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

How to use files from xnova 0.x versions for legancie versions

Status
Not open for further replies.
Skilled Illusionist
Joined
Oct 28, 2008
Messages
379
Reaction score
47
Hello, on this forum a lot of mods are posted for Xnova 0.9 or lower. I personaly have Xnova legancies 2009.2. If you use the files from xnova 0.9 in the legancies versions you'll get an error. This error is very easy to fix.
Ok, in the Xnova 0.9 versions include is still written in PHP 4.0 style while in Xnova legancies they have updated it to PHP 5.3 style.This means that including is now easier.

So you'll have to search for these lines (always on top of the file)
PHP:
$xnova_root_path = './';
include($xnova_root_path . 'extension.inc');
include($xnova_root_path . 'common.' . $phpEx);
These lines are always under the lines that define the file.
Now you'll simply have to replace those lines with this line and you've fixed it.
PHP:
require_once dirname(__FILE__) .'/common.php';

press the thank you button if i helped :D
 
Status
Not open for further replies.
Back
Top