This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * From version 0.51.1 the game already has this functionality | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Generated by CoffeeScript 1.12.7 | |
| (function() { | |
| var offset, partSize, | |
| modulo = function(a, b) { return (+a % (b = +b) + b) % b; }; | |
| window.NxN = 100; | |
| window.SIZE = 20; | |
| window.validSpec = function(player, spec) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sim.numSpawns = 5; | |
| sim.numComPoints = 16; | |
| sim.mapScale = 3; | |
| types.SpawnPoint.prototype["static"] = false; | |
| sim.setRallyPoint = function(player, point) { | |
| if (!player) { | |
| return; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/node | |
| var net = require('net') | |
| var sock = net.connect(process.argv[3] || 5001, process.argv[2]) | |
| process.stdin.pipe(sock) | |
| sock.pipe(process.stdout) | |
| sock.on('connect', function () { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * Load images into atlas so it can be drawn using `atlas.drawSprite()` | |
| * | |
| * Use imgloader.addImage(name, url) to add images you want to load | |
| * Use imgloader.combineImages() after adding all the images | |
| * Now you can use atlas.drawSprite(name, pos, size, rot, color) to draw the image | |
| */ | |
| if(!imgloader) { | |
| var imgloader = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // A mod loader for Istrolid | |
| // To install, download asar file from https://www.dropbox.com/sh/loia3j5gryzyoga/AACC2FOEO_rB1iacyxT1TKUga?dl=0 | |
| // then replace Steam/steamapps/common/Istrolid/resources/app.asar with that file | |
| // Alternatively, you can use whatever way you want to load this script at start up (Temper Monkey, Grease Monkey, whatever) | |
| //edited from src/challanges.js | |
| r26_modloader = window.r26_modloader || { | |
| account_signinReply: account.signinReply | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * Swapping fleet using shift + arrow up/down key. | |
| * Use alt-shift-num to select one of the first 10 fleets | |
| */ | |
| var fleetSwap = window.fleetSwap || { | |
| onkeydown: ControlsMode.prototype.onkeydown | |
| } | |
| ControlsMode.prototype.onkeydown = function(e) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // edited from original copy page so it only copies the fleets | |
| // | |
| (function() { | |
| ui.copyPage = function() { | |
| return ui.inScreen("menu", "Copy Import/Export", function() { | |
| onecup.padding_bottom(100); | |
| onecup.position("relative"); | |
| onecup.textarea("#commanderCode", function() { | |
| onecup.position("absolute"); | |
| onecup.top(70); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * From version 0.51.1, fleet tab replaces this mod | |
| * Below is a script that transfers archived fleets to a new tab | |
| */ | |
| var moveArchive = function() { | |
| if(!commander) { | |
| setTimeout(moveArchive, 1000); | |
| return; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var linemove = {}; | |
| linemove.center = function(points) { | |
| var rst = v2.create(); | |
| for(var point of points) { | |
| v2.add(rst, point); | |
| } | |
| return v2.scale(rst, 1 / points.length); | |
| } |