Giter Site home page Giter Site logo

starblast-modding-plus's Introduction

Modding+

Modding+ is a WIP extension to the default modding engine for Starblast.

Table of contents

How to use

Contents

Documentation

How to contribute

Still confused?

How to use

There 2 methods available:

Method 1: Background initialization

Step 1: Initialize

Copy the code below and paste at the end of your current modding code. See the file

$.ajax("https://raw.githubusercontent.com/dpleshkov/starblast-modding-plus/master/config.js")
.done(function (data) {
  eval(data);
})
.fail(function (e) {
  game.modding.terminal.error("An error occured while loading the Modding+ extensions!");
});

Test Run

Step 2: Check for errors

Type start in the modding console to run your mod.

if you get the error below:

Error 1

Try these action below + running the mod again after each try (from the top to bottom):

  • Reload the Modding
  • Empty-cache and Hard-reload the Modding:
    • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
    • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
    • Internet Explorer: Hold Ctrl while clicking Refresh, or press Ctrl-F5
    • Opera: Go to Menu → Settings (Opera → Preferences on a Mac) and then to Privacy & security → Clear browsing data → Cached images and files.
  • Relaunch your browser
  • Restart your device

If the errors still occur, contact me to report the problem.

Or if you get the error below:

Error 2

Contact me as soon as possible as this error was caused by our resources, which will affect all users.

If you're still getting problems, consider using method 2 instead.

If the terminal shows the result like the this:

Success

Then it works.

Pros

  • Automatically updates when new features are available.
  • Short and concise.

Cons

  • Sometimes fails to work due to CORS policies.

If this method fails to work or you want to import the mod code manually, then do this:

Method 2: Template Mod

Initialize

Open up the main.js file, use the code in there as a starting template for your next mod.

Pros

  • No CORS problems

Cons

  • Cannot be automatically updated when new features are available
  • Too long to implement
  • Can cause problems if not implemented correctly

Documentation

For more instructions and information, see the documentation.

How to contribute

Fork this repo, add your changes, then make a pull request.

Still confused?

DM Dank Dmitron#4593 on Discord, or ping me on the official Discord.

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.