BlizzLib


Basic lightweight library I made for myself that I decided to make public. Does not change the game in any way. Documentation on the mod portal.

Internal
10 days ago
2.0
4
Owner:
HeatedBlizzard
Source:
N/A
Homepage:
N/A
License:
MIT
Created:
11 days ago
Latest Version:
1.1.0 (10 days ago)
Factorio version:
2.0
Downloaded by:
4 users

Introduction

BlizzLib is a personal library that I made to remove some of the more tedious aspects of Factorio modding, or just shorten specific syntaxes to make it faster. This library is very lightweight, as I'm not good at Lua, and the only mods I would make are more lightweight ones anyway. This is a tool for myself that I simply made public in case anyone else wanted to use it, too. If you have issues with it, I most likely won't change it. Feel free to suggest features still, I read EVERYTHING!

Setting up

In your mods data.lua file, put these 2 lines at the top:

mod_name = "your_mod_name"
local Blizz = require("__blizzlib__/lib-funcs")

You can choose to your mod's write code in data.lua or in other files. If you do other files, you need to put them in a folder named prototypes, it must start with

local Blizz = require("__blizzlib__/lib-funcs")

and in data.lua, you must put

require("prototypes.file_name")

(example: require("prototypes.items"))


Icon Referral

In systems that use icons, the format depends on if you wanna use vanilla icons or your own.

Vanilla Icons

icon = BASE.iron-plate

Your Own Icons

You need to put a 64x64 .png image in a folder in your mod named "graphics".

icon = "icon_name"

THIS DOCUMENTATION IS A WORK IN PROGRESS. MORE WILL BE ADDED LATER.