/Factorio-Utils

Utility lua scripts common in my mods

Primary LanguageLuaOtherNOASSERTION

Factorio-Utils

A mix of helper libraries and scripts used in many of my mods. Tries to be backwards compatible, but does sometimes have breaking changes made to it, flagged by minor (middle) version number changes. The major version relates to which Factorio version its for. 18 is for Factorio v0.18, 19 for v1.0, 20 for v1.1.

The utility folder is dumped whole in to mods root folder and then built, tested and distributed as part of the mod. This is to make each mod generally self contained that utilise these libraries.

Many of the libraries include using core game events, i.e. on_tick, on_gui_XXX. This means these can't be mixed with other uses of those core game events. No player or entity type events are used.

Mod Template Files

The files I use as templates when starting new mods.

Utility folder

A bunch of managers, related utility functions and lists of common things. Put this folder directly in the root of the mod's workspace.

VSCode Extensions

Copy of VSCode settings file is stored in "VS CODE BITS\vscode extenstions settings". It's location for deployment is: %APPDATA%\Code\User\settings.json

Extensions currently used:

Extra things added to VSCode:

  • NOT REQURIED ANY MORE - Factorio API (data stage typedefs): https://github.com/Nexela/factorio-api 1: Download the repo and put the files in a created folder: C:\FactorioModding\factorio-api 2: Add the folder to Sumneko (per workspace not per user) library paths: setting name "Library", path to add: C:\FactorioModding\factorio-api