Giter VIP home page Giter VIP logo

yorg.io-3-modding-docs's Introduction

YORG.io 3 Modding Documentation

This documentation is supposed to teach you how to write mods for YORG.io 3.

Writing Mods

Getting started

An example mod is located in sample_mod/mod.js. It contains a very basic example on how to setup a mod. I recommend cloning this repository.

To start with your own mod, I recommend copying the sample_mod folder somewhere. You can then start by modifying the mod.js to your needs.

While there is very basic API documentation, I strongly recommend to join the official discord (http://discord.yorg3.io) and get in contact with me (tobspr#5407). I am very happy to help out, and I can also add new features to the mod api if you need them.

There is also a documentation of all classes available which can be helpful: https://docs.yorg3.io

Testing your own mod

Since I manually publish all mods (See below), you can not directly test your mod. However, I have added some helper script which makes it possible to test local mods:

  1. Install node.js, or alternatively python 3.7 or higher
  2. Open a terminal shell in the folder your mod is located in (It needs to be called mod.js)
  3. Run node mod_testing_server.js (The script is located in this repository). If you installed python run python mod_testing_server.py
  4. Ensure with a browser that you can reach http://localhost:8000/mod.js
  5. Visit https://beta.yorg3.io/?xdev_modDeveloper=1
  6. There should now be a dummy mod installed, which will load your javascript file.
  7. Make sure to reload the page when doing any changes

Publishing your mod

Right now I manually publish all mods to ensure they have a certain quality (This might change in the future). Steps to publish your mod:

  1. Ensure it works locally for you

  2. DM me on discord (tobspr#5407) with the following information about your mod:

    • Name
    • Author
    • Description (Should describe what your mod does, but not too long)
    • Website (I recommend creating a github repository)
    • Some link where I can download your mod
    • Version (If you want to push an update)
  3. Wait until I tested and approved your mod.

  4. I will upload and publish your mod on https://beta.yorg3.io first. You can test it there and ask people to try it out.

  5. Once your mod has been tested by at least a few persons (Simply ask in the discord), I will add your mod to the mod gallery.

yorg.io-3-modding-docs's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

yorg.io-3-modding-docs's Issues

Typo at readme

  1. Run node mod_testing_server.js (The script is located in this repository). If you installed python run python mode_testing_server.py
    should be mod_testing_server.py

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.