Re: [Release]The cerebrum Heavenly Palace - 大 闹天宫 ONLINE
what file translater jinjiedan003 ?
what file translater jinjiedan003 ?
Attachments
You must be registered for see attachments list
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!https://mega.nz/#!3d5m3QbT!qYzuZ96ShG5h_uPZsCbWLQx7cZu7Em9KdLvIC6piPVY
Does anyone have the mini client for this game? Or point me to a chinese site that has a mini client for download?
I dunno, but i would like to ask you, what about the database, have you fond anyway to interact with it,
Im look forward this server, i got it working online and found it beautiful and very promissing, but, without a database access is useless...
Did anyone made this one work? Is it for D5 or D6? Nonetheless the server fails to start although I do all the steps correctly as I use to do for D5.
Its strange, I wanted to test this.
So far D5 is very nice, didnt test D6 at all yet, as I see some links are dead about some fixes for D5, can anyone re-up those? Because D5 bugged when I bought a primordial, i cant enter the game anymore, it loads and then hangs there. and maybe those fixes were about that.
https://mega.nz/#!RYhgiDzA!0gRziYMhtVi23j5H_taU_wQW0Y3GhzrvF7H48oImvMc
https://mega.nz/#!MAQFQL5T!SDYcMgE5Ulu7VBZLfapMwSodAKpqEgkgqrYFTowRcoA
tuan565.blogspot.com
Thanks
I use phpmyadmin to interact with the database. I also integrated the game.php page with phpbb. I kinda gave up on this though. I can't translate the flash files or anything in the game config folder on the client side. Plus there are many bugs and glitches. This game is just a headache. The only way this game will be worth sharing is if everyone in this thread joins up together on a single SVN repository and works on it together and upload the files they fix and so we can fix everything together..instead of having all these people working solo having the same old problems and whatnot.
D5 is very buggy, it's best to use D6 Files.
To reiterate on which is the newest version available:
Tuan565's rip;
Server
Code:https://mega.nz/#!RYhgiDzA!0gRziYMhtVi23j5H_taU_wQW0Y3GhzrvF7H48oImvMc
Server Fix(Just copy the contents into the server folder)
Code:https://mega.nz/#!MAQFQL5T!SDYcMgE5Ulu7VBZLfapMwSodAKpqEgkgqrYFTowRcoA
Password for both Archives:
Code:tuan565.blogspot.com
Also, r2games' Monkey King is a way newer version than what is available on this forum. So using any files from the English mainstream game with these files will only break the game.
Also, to help EVERYONE OUT..and avoid the crappy websites that come with this game. Here's a simple tutorial to integrate the Game client with PHPBB 3.1
Here is the new Game.php File
Code:<?php define('IN_PHPBB', true); $phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './'; $phpEx = substr(strrchr(__FILE__, '.'), 1); include($phpbb_root_path . 'common.' . $phpEx); // Start session management $user->session_begin(); $auth->acl($user->data); if($user->data['is_registered']) { //your PHP and/or HTML code goes here $roleid=md5($user->data['username']); $time = time(); $sign = md5($roleid.'xianlingkey'.$time); $webdomain="http://yourdomainhere.com"; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Cache-Control" content="no-cache" /> <link rel="shortcut icon" href="" type="image/x-icon" /> <title>Monkey King Online - Play</title> <style type="text/css"> html,body{ margin:0; height:100%; padding:0; overflow:hidden; background-color: #000; } #container { position:relative; margin:auto; color:#3f3; text-align:center; font-size:30px; height:100%; } #MPlayer{ width:10px; height:1px; margin:0 auto; margin-left:150px; position:absolute; z-index: 10; background-color:#000; } </style> <script type="text/javascript" src="xjs/swfobject.js"></script> <script type="text/javascript"> function $g(id) { return document.getElementById(id); } var unloadFlag = true; var unloadStr = ""; function setUnloadString(str) { unloadStr = str; } function setUnloadFlag() { unloadFlag = false; } window.onbeforeunload = function(event){ if(unloadFlag) { if(addfavorite('Monkey King Online','<?=$webdomain;?>')==false){ return unloadStr; } } } function addfavorite(title,url){ if (document.all){ // window.external.addFavorite(url,title); }else if (window.sidebar){ // window.sidebar.addPanel(title, url, ""); }else{ return false; } return true; } var swfVersionStr = "10.0.0"; var xiSwfUrlStr = ""; var params = { menu: "false", scale: "noScale", allowFullscreen: "true", allowScriptAccess: "always", wmode:"direct" }; var attributes = { id:"Main" }; var flashvars = { lcid:(new Date()).valueOf().toString(16) + (Math.random() * 1000 >>0).toString(16), pay:escape('<?=$webdomain;?>/pay.php'), cm:escape(''), uid:'<?=$roleid;?>', pid:'gmthai', t:'<?=$time;?>', seid:'fu0', sport:'8008', ip:'24.184.14.97', who:'null', sign:'<?=$sign;?>', cminfo:'null', bbsurl:escape('<?=$webdomain;?>'), homeurl:escape('<?=$webdomain:?>'), infourl:escape(''), shownav:escape('0'), bugurl:escape(''), suggesturl:escape(''), saveUrl:escape(''), pl:'null', client:'1', microClientURL:escape(''), gmpanel:'0', server: 'null', gameid: 'null' }; var domain = "<?=$webdomain:?>/res/"; if(domain) { var base = document.createElement("base"); var head = document.getElementsByTagName("head")[0]; base.href = domain; head.appendChild(base); } var swf = domain + "Main.swf?" + (new Date()).valueOf().toString(16); function load() { swfobject.embedSWF( swf, "Main", "100%", "100%", swfVersionStr, xiSwfUrlStr, flashvars, params, attributes); swfobject.embedSWF( domain + "MPlayer.swf","MPlayer","10","2", swfVersionStr,xiSwfUrlStr,flashvars); } </script> </head> <body onload="load()"> <div id="container"> <div id="MPlayer"></div> <!-- When you get enough JavaScript and Flash plug-in support, the dynamic embedding method SWFObject of this alternative HTML content replaced by the Flash content. --> <div id="Main"> <a href="http://www.adobe.com/go/getflash">Click here to download the latest version of Flash Player</a> <p>This page requires Flash Player version 10.0.0 or later.</p> </div> </div> <script type="text/javascript"> this.blankwin = function(){ var dlists = new Array(); dlists[0] = 'forum.ragezone.com'; var hostname = window.location.hostname; hostname = hostname.replace("www.","").toLowerCase(); var a = document.getElementsByTagName("a"); this.check = function(obj){ var href = obj.href.toLowerCase(); var dbopcount = 0; if (href.indexOf("http://")!=-1) { for (jdi = 0; jdi <= dlists.length; jdi++) { if (href.indexOf(dlists[jdi]) == -1) { //alert("NO MATCH " + dlists[jdi] + " " + href); dbopcount = dbopcount; //Do nothing } else { //alert("match " + dlists[jdi] + " " + href); dbopcount++; } } if (dbopcount > 0) return true; //If this link URL was an internal URL else //there were no matches to any internal domain, so leave it external return false; } else { return false; } //return (href.indexOf("http://")!=-1 && href.indexOf(hostname)==-1) ? false : true; }; this.set = function(obj){ obj.target = "_self"; }; for (var i=0;i<a.length;i++){ if(check(a[i])) set(a[i]); }; }; // script initiates on page load. this.addEvent = function(obj,type,fn){ if(obj.attachEvent){ obj['e'+type+fn] = fn; obj[type+fn] = function(){obj['e'+type+fn](window.event );} obj.attachEvent('on'+type, obj[type+fn]); } else { obj.addEventListener(type,fn,false); }; }; addEvent(window,"load",blankwin); </script> <script type="text/javascript"> this.blankwin = function(){ var dlists = new Array(); dlists[0] = 'forum.ragezone.com'; var hostname = window.location.hostname; hostname = hostname.replace("www.","").toLowerCase(); var a = document.getElementsByTagName("a"); this.check = function(obj){ var href = obj.href.toLowerCase(); var dbopcount = 0; if (href.indexOf("http://")!=-1) { for (jdi = 0; jdi <= dlists.length; jdi++) { if (href.indexOf(dlists[jdi]) == -1) { //alert("NO MATCH " + dlists[jdi] + " " + href); dbopcount = dbopcount; //Do nothing } else { //alert("match " + dlists[jdi] + " " + href); dbopcount++; } } if (dbopcount > 0) return true; //If this link URL was an internal URL else //there were no matches to any internal domain, so leave it external return false; } else { return false; } //return (href.indexOf("http://")!=-1 && href.indexOf(hostname)==-1) ? false : true; }; this.set = function(obj){ obj.target = "_self"; }; for (var i=0;i<a.length;i++){ if(check(a[i])) set(a[i]); }; }; // script initiates on page load. this.addEvent = function(obj,type,fn){ if(obj.attachEvent){ obj['e'+type+fn] = fn; obj[type+fn] = function(){obj['e'+type+fn](window.event );} obj.attachEvent('on'+type, obj[type+fn]); } else { obj.addEventListener(type,fn,false); }; }; addEvent(window,"load",blankwin); </script> <script type="text/javascript"> this.blankwin = function(){ var dlists = new Array(); dlists[0] = 'forum.ragezone.com'; var hostname = window.location.hostname; hostname = hostname.replace("www.","").toLowerCase(); var a = document.getElementsByTagName("a"); this.check = function(obj){ var href = obj.href.toLowerCase(); var dbopcount = 0; if (href.indexOf("http://")!=-1) { for (jdi = 0; jdi <= dlists.length; jdi++) { if (href.indexOf(dlists[jdi]) == -1) { //alert("NO MATCH " + dlists[jdi] + " " + href); dbopcount = dbopcount; //Do nothing } else { //alert("match " + dlists[jdi] + " " + href); dbopcount++; } } if (dbopcount > 0) return true; //If this link URL was an internal URL else //there were no matches to any internal domain, so leave it external return false; } else { return false; } //return (href.indexOf("http://")!=-1 && href.indexOf(hostname)==-1) ? false : true; }; this.set = function(obj){ obj.target = "_self"; }; for (var i=0;i<a.length;i++){ if(check(a[i])) set(a[i]); }; }; // script initiates on page load. this.addEvent = function(obj,type,fn){ if(obj.attachEvent){ obj['e'+type+fn] = fn; obj[type+fn] = function(){obj['e'+type+fn](window.event );} obj.attachEvent('on'+type, obj[type+fn]); } else { obj.addEventListener(type,fn,false); }; }; addEvent(window,"load",blankwin); </script> <script type="text/javascript"> this.blankwin = function(){ var dlists = new Array(); dlists[0] = 'forum.ragezone.com'; var hostname = window.location.hostname; hostname = hostname.replace("www.","").toLowerCase(); var a = document.getElementsByTagName("a"); this.check = function(obj){ var href = obj.href.toLowerCase(); var dbopcount = 0; if (href.indexOf("http://")!=-1) { for (jdi = 0; jdi <= dlists.length; jdi++) { if (href.indexOf(dlists[jdi]) == -1) { //alert("NO MATCH " + dlists[jdi] + " " + href); dbopcount = dbopcount; //Do nothing } else { //alert("match " + dlists[jdi] + " " + href); dbopcount++; } } if (dbopcount > 0) return true; //If this link URL was an internal URL else //there were no matches to any internal domain, so leave it external return false; } else { return false; } //return (href.indexOf("http://")!=-1 && href.indexOf(hostname)==-1) ? false : true; }; this.set = function(obj){ obj.target = "_self"; }; for (var i=0;i<a.length;i++){ if(check(a[i])) set(a[i]); }; }; // script initiates on page load. this.addEvent = function(obj,type,fn){ if(obj.attachEvent){ obj['e'+type+fn] = fn; obj[type+fn] = function(){obj['e'+type+fn](window.event );} obj.attachEvent('on'+type, obj[type+fn]); } else { obj.addEventListener(type,fn,false); }; }; addEvent(window,"load",blankwin); </script> </body> </html> <?php } ?>
Just replace the "yourdomain.com" with the URL that your game client will be hosted on.
The ONLY folders from the Website folder that needs to stay with the game.php file is the "res" folder(for the client) and the "gameconfig" folder(for the server)
So when you download and install phpbb 3.1, put the new Game.php file(code pasted above), "res" folder, and "gameconfig" folder in your phpbb3.1 forum directory. (ie.You must be registered to see links)
Then point your browser toYou must be registered to see links
To those getting difficult of translating swf files, someone posted the unpacked d5 files, just refer r2 swf files to those who can't read chinese or spanish.
We rather prefer a stable base even in chinese than half working things in english.
I revamped my script for the game client integration with phpbb 3.1.9
The zip includes 3 php files, the client's swjobject.js and a readme guide. Please follow the steps in the readme guide in order to set up the new client.
You must be registered to see links
Any issues with the new game client code, please post them here.
edit: Fixed a small issue with pay.php