Giter Site home page Giter Site logo

ignizh / ragna.robrowser Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mrantares/robrowserlegacy

0.0 0.0 0.0 9.71 MB

This is a fork of the original robrowser tailored to the Ragna.ro server. All credits to the original creators

License: GNU General Public License v3.0

JavaScript 97.75% PHP 0.14% Java 0.04% CSS 1.23% HTML 0.84%

ragna.robrowser's Introduction

This is a fork of roBrowser tailored to my server and expanded with some features.

If you wish to discuss anything related to this project, or you want to join, contact us on Discord: https://discord.gg/8JdHwM4Kqm

For info on how to setup the client read the contents of this readme or our Getting Started doc. For the original branche's docs please visit the https://www.robrowser.com/ site.

All credits to the original owners/creators.

Installing

Prerequisites

To run roBrowser you will need a browser that supports WebGL and is OpenGL ES 2.0 compatible. We've tested the following browsers:

  • Chrome
  • FireFox
  • Opera
  • IE11

If you don't run roBrowser in a Chrome App, you will need a Java plugin installed instead.

Quickstart

  1. Install and run an HTTP server on your PC/Device. Take note of the port you run the server on, this guide assumes you use port 8000.

  2. Download roBrowser and extract the files to the folder that will be the root of your HTTP Server.

  3. Open your browser and go to http://TypeYourHTTPServerIPhere:8000/tools/build/index.html - replace "TypeYourHTTPServerIPhere" with the PC/Device HTTP Server address that is hosting the Ragna.roBrowser files you extracted. Here you will compile scripts to reduce loading times.

    3a. To get the client compiled for playing, click/tap Online then Thread and place the Online.js and ThreadEventHandler.js to the root of your Ragna.roBrowser folder.

    3b. [Optional] Compile any of these; GRF Viewer, STR Viewer, Model Viewer, Map Viewer if you want to look through the game files.

  4. [Convert DB] Go to http://TypeYourHTTPServerIPhere:8000/tools/converter/index.html to get custom content to roBrowser.

  5. Setup your client version: Copy your .grf and DATA.INI(Note DATA.INI is case sensitive so make sure it's capitalized or edit the name in configs.php) to the /client/resources/ folder. Also double check that your DATA.INI file has all the .grf files you intend to use.

    5a. Copy your BGM folder mp3's to the /client/BGM/.

    5b. Copy your data folder contents to /client/data/.

    5c. Copy your AI files to the /AI/folder then open each *.lua file then find and replace: require "AI\\Const" with dofile "./AI/Const.lua" require "AI\\Util" with dofile "./AI/Util.lua"

  6. Create a new text file and name it index.html

    6a. Copy the following and paste it into your index html file. Edit your Game Server address, packet version and other settings:

function initialize() {
      var ROConfig = {
          target:        document.getElementById("robrowser"),
          type:          ROBrowser.TYPE.FRAME,
          application:   ROBrowser.APP.ONLINE,
          width:          800,
          height:         600,
          development:    false,
          servers: [{
              display:     "Demo Server",
              desc:        "roBrowser's demo server",
              address:     "127.0.0.1",
              port:        6900,
              version:     30,
              langtype:    1,
              packetver:   20120410,
              packetKeys:  false,
              socketProxy: "ws://127.0.0.1:5999/",
              adminList:   [2000000]
          }],
          skipServerList:  true,
          skipIntro:       false,
      };
      var RO = new ROBrowser(ROConfig);
      RO.start();
  }
  window.addEventListener("load", initialize, false);
  1. Install the websocket proxy on your Game Server and edit the parameter socketProxy: "ws://127.0.0.1:5999/", to socketProxy: "ws://TypeYourHerculesOrRathenaServerHere:5999/", in your index.html .

    7a. Run websocket proxy: wsproxy -a 127.0.0.1:6900,127.0.0.1:6121,127.0.0.1:5121 replace 127.0.0.1 with your Game Server IP.

    Note: Most of the browsers nowadays don't support mixed security, so either use https & wss everywhere or http & ws. Some browsers recently started to disable non-secure websocket calls, so https & wss is highly recommended if you are using roBrowser on a non-local/open server.

  2. Configure and customize roBrowser - documentation and some examples.

  3. Go to http://YourHTTPServerIP/index.html and enjoy!

Checkout getting started guide

Plugins

For available plugins and information on how to install them please visit the Ragna.roBrowser-plugins repository.

Contributing

roBrowser was started by this awesome team and we continue it. We also manually add content from other forks that didn't made it back to the original branch, huge shoutout to them! If you wish to contribute then check out the documentation or the code itself and submit a pull request!

Contact

Original branch:

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.