[MOD 1.1.x] Pixels
Posted: Tue Feb 14, 2017 12:30 am
by axtox
Pixels
last update 5 June 2020
- Name: Pixels
- Version: 3.0.0
- Factorio-Version: 1.1
- Description: Display your pictures and indicators in real-time directly on the map using Pixels.
- License: GPL-3.0
- Release: 2017-02-14
- Download-Url: Download
- Website: https://github.com/axtox/pixels
- Dependencies: "base"
- Category: Helper
Description
Factorio mod (previously named as Lamps On Map) that shows Pixels on the map with enabled circuit colors, tracking any changes in real-time. Mod adds new entity to the game called Pixel and a set of different color Tiles. When placed, Pixel will also place colored Tile under itself to be able to show the color on the map directly. Updates happening every 3-4th tick, but be careful and don't spam a lot of Pixels - maximum value depends on your PC hardware.
WARNING: There's no iterational checkup implemented yet, meaning that all pixels are being processed at a time. So it is not recommended to create more than 15000 Pixels for now.
WARNING: There's no iterational checkup implemented yet, meaning that all pixels are being processed at a time. So it is not recommended to create more than 15000 Pixels for now.
PICTURES
Dynamic change of 2800 pixels:
5000 red lamps when coal is less then 500:
5000 yellow lamps when coal is less then 2000:
5000 green lamps when coal is more then 2000:
Updating digits:
- Dynamic change demo (2800 pixels at a time)
- ezgif-3-208875771ea5.gif (4.42 MiB) Viewed 2050 times
- Pixels are red when coal is less then 500
- coal_red.jpg (217.82 KiB) Viewed 2051 times
- Pixels are yellow when coal is less then 2000
- coal_yellow.jpg (57.47 KiB) Viewed 2051 times
- Pixels are green when coal is more then 2000
- coal_green.jpg (57.34 KiB) Viewed 2051 times
- Updating digits
- out%04d.gif (9.51 MiB) Viewed 2779 times
0.5.x pre-release notes
This mode is under construction (in pre-release state), and you CAN NOT use it in multiplayer (wait for future releases). However, this mode is usable in singleplayer mode, so feel free to give it a shot! But be aware that current implementation of mod uses 'saving' function, which saves current state of lamps each 2000 ticks (to save states in your game save!). So if you added some lamps in last 1-2 mins of playing, don't hurry and wait few mins before exiting to let mod run savings (I will add "saved!" message to pop-up when savings are complete in nearest pre-release).
If you're mod-developer please feel free to leave suggestions here (see TODO section)
Download old versions for Factorio 0.14:
Factorio mod that shows basic vanilla lamps on the map with enabled circuit colors (real-time). This can be used as notification system or informational board. You can adjust updates timing and quantity (increase quantity of lamps per tick, or change updates frequency) by changing config.lua. Default values are tested on minimal-required hardware PC and calculated to keep fps at base value (without mod). Note that config file must be same on each client if you play online!
Currently the mod iterates over all lamps, seeking changes in circuits (no matter how much do you have, it has minimal limit 70 lamps in each 4 ticks, which is default and tested with minimal-required hardware, but you can increase those values in config) and redraws them accordingly in next tick after update. Drawing process consists of replacing tiles under lamps, so they can be shown on map with chosen color (based on circuit signal, if "use colors" enabled), i'm currently using "concrete" base tile as draw instrument, but you can use ANY tile that you like (thats why i have so much 'not required' mods with tiles - just change 'defined_base_tile' in config.lua) and it will be automatically placed under lamps to show them on map.
Updating 1500 lamps with minimal update-rate :
(red signal = coal is below 100, yellow signal = coals is below 1000, green signal = coal is 1000 or more. Can be used to notify you when coal is running low in your storage or belts). Minimal update rate is 70 lamps per each 4th tick, which you can see below - iterating over all 1500 lamps by 70 lamps chunks
If you're mod-developer please feel free to leave suggestions here (see TODO section)
Download old versions for Factorio 0.14:
- Lamps On Map_0.5.0.zip
- Old 0.5.0 pre-release
- (19.74 KiB) Downloaded 115 times
- Lamps On Map_0.5.1.zip
- Old 0.5.1 pre-release
- (20.38 KiB) Downloaded 98 times
Factorio mod that shows basic vanilla lamps on the map with enabled circuit colors (real-time). This can be used as notification system or informational board. You can adjust updates timing and quantity (increase quantity of lamps per tick, or change updates frequency) by changing config.lua. Default values are tested on minimal-required hardware PC and calculated to keep fps at base value (without mod). Note that config file must be same on each client if you play online!
Currently the mod iterates over all lamps, seeking changes in circuits (no matter how much do you have, it has minimal limit 70 lamps in each 4 ticks, which is default and tested with minimal-required hardware, but you can increase those values in config) and redraws them accordingly in next tick after update. Drawing process consists of replacing tiles under lamps, so they can be shown on map with chosen color (based on circuit signal, if "use colors" enabled), i'm currently using "concrete" base tile as draw instrument, but you can use ANY tile that you like (thats why i have so much 'not required' mods with tiles - just change 'defined_base_tile' in config.lua) and it will be automatically placed under lamps to show them on map.
Updating 1500 lamps with minimal update-rate :
(red signal = coal is below 100, yellow signal = coals is below 1000, green signal = coal is 1000 or more. Can be used to notify you when coal is running low in your storage or belts). Minimal update rate is 70 lamps per each 4th tick, which you can see below - iterating over all 1500 lamps by 70 lamps chunks
- Updating 1500 lamps with minimal update-rate
- out%04d_cropped.gif (477.11 KiB) Viewed 2779 times
todo
- Create iterational checkup (in replace of Coroutines) with editable update-rate (problem is desync)
- Add more tile choices
- Add auto-update of the map when player is faraway
Known issues
- No updates when there's no player/or radar near the pixels
Change log
v3.0.0:
- Updated mod to Factorio 1.1
- Multiplayer tested and it works
- Added a new Pixel property 'id' to access unit_number directly without calling entity.unit_number to avoid invalid calls
- Entity validation added to checkup to fix game crash trying accessing invalid objects
- Updated mod to 0.18.x
- Reworked the whole codebase
- Multiplayer fixed (no desync message)
- Color is read from lamp instead of circuit (performance boost)
- All lamps checkup instead of chunk-based (downgrade for multiplayer work)
- New Item introduced - Light Emitting Diode
- Mod Settings introduced
- Old tile is not stored anymore, using "Backing Tile" API-property instead (performance boost)
- Small fixes to tile placement and loading mechanism, now you can use any tile that you want (if it can be placed on ground) without exceptions
- Basic functionality with updating lamps, refreshing colors, redraw mechanism and saving each 2000 ticks to global (to be removed).
last update 5 June 2020