Jump to content

Question

Posted

Hi, i found interesting things for me that call RoBrowser. and try to setup it but i dont know why it still dont connect to server.

this is my step by step in setup RoBrowser:
1. i get the source code then place it to web server.
2. i place data.ini,custom.grf,data.grf, and rdata.grf to resources.
3. i created web client with api.js. the web client source code like this.

 

<!DOCTYPE html>
<html>
<head>
<title>ROBrowser's App from http://www.robrowser.com</title>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<script type="text/javascript" src="../api.js"></script>
<script type="text/javascript">
function initialize() {
var ROConfig = {
target:        document.getElementById("robrowser"),
type:          ROBrowser.TYPE.FRAME,
application:   ROBrowser.APP.ONLINE,
remoteClient:  "http://127.0.0.1/client/",
width:          800,
height:         600,
development:    false,
servers: [{
display:     "Demo Server",
desc:        "roBrowser's demo server",
address:     "127.0.0.1",
port:        6900,
version:     51,
langtype:    0,
packetver:   20141022,
packetKeys:  true,
adminList:   [2000000]
}],
skipServerList:  true,
skipIntro:       false,
};
var RO = new ROBrowser(ROConfig);
RO.start();
}
window.addEventListener("load", initialize, false);
</script>
</head>
<body>
<h1>Ragnarok Online in the browser </h1>
<div id="robrowser">Initializing roBrowser...</div>
</body>
</html>

is there something miss it?

 

2 answers to this question

Recommended Posts

  • 0
Posted (edited)

you remote client is set to your localhost,

If you're not hosting the client in your localhost, be sure to change it.

Edited by benching
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...