Overview
What is Infinity Loader?
Infinity Loader is a toolkit for developing, compiling and injecting GSC across multiple IW Engine titles. Built for developers and modders, Infinity Loader providers a modern coding experience with full Monaco Editor support.
Key features
- Monaco editor - familiar, VS Code like experience
- Project analyzer - find duplicates and help clean your code
- Syntax checker - catch errors before runtime
- Debugger - test and refine scripts
In action
Infinity Loader allows you to write flexible, cross-game scripts using conditions.
/*
* Why am I getting an Internal Script Stack Overflow Error?
* - The main reason for this would be from an undefined array.
* - If you decide to use arrays, these games are very strict on how you define them.
*/
Incorrect() //Overflow
{
self.menu["Option"] = [];
}
Correct() //No Overflow
{
self.menu = []; //YOU HAVE TO HAVE THIS
self.menu["Option"] = [];
}
//Here is a larger correct example
BigCorrect() //No Overflow
{
self.menu = [];
self.menu["Option"] = [];
self.menu["Option"]["Another"] = [];
self.menu["Option"]["Another"][0] = [];
self.menu["Option"]["Another"][0]["Array"] = "";
//Overflow is tricky because everything will work fine for a short amount of time!
//You need to make sure all your arrays are defined as an array!
}
//EXAMPLE 1:
function()
{
//This is one example of an external call
self thread maps\mp\gametypes\_gsc::call();
//These are 2 in game global field variables
self iprintln(level.xenon);
self iprintln(level.ps3);
}
//EXAMPLE 2:
#include maps\mp\gametypes\_gsc;
function()
{
//Another example of an external call
self thread call();
}Last updated on