-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Caravan interrupts and more #296
base: master
Are you sure you want to change the base?
Conversation
… functioins to support that. More work needs to be done
…always openeing the caravan
… fulfilled" instead of min/max. But load and unload are still separate actions
Thank you! This is amazing! |
|
||
-- Increase fuel inventory sizes | ||
local old_inventory = caravan_data.fuel_inventory | ||
local new_inventory = game.create_inventory(#old_inventory * 2) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will cause issues. Caravans in previous versions had different inventory sizes than 1. I would recommend to instead import caravan-prototypes.lua
from within the migration and set this value directly to prototype.fuel_size
elseif not only_outpost then | ||
local position = event.cursor_position | ||
schedule[#schedule + 1] = { | ||
localised_name = {"caravan-gui.map-position", math.floor(position.x), math.floor(position.y)}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be entity.gps_tag
Using gps_tag allows this code to display the caravan's current planet, which is necessary for pySEx.
Added interrupts to caravans and made many improvements to caravan GUI.

Added and replaced some actions, which should make scheduling more versatile.
Fixed graphics being incorrect and adjusted selection boxes.
Complete with migrations and locale for EN, RU and UK languages
Also needs a new GUI style in PyCP (PR: pyanodon/pycoalprocessing#390)