audun / factorio-closestfirst Goto Github PK
View Code? Open in Web Editor NEWFactorio mod that makes construction bots build near the player instead of random entities
License: The Unlicense
Factorio mod that makes construction bots build near the player instead of random entities
License: The Unlicense
As discussed here: https://mods.factorio.com/mod/ClosestFirst/discussion/5e3063fd5a9e76000b48166d
Its pretty simple to make this work with 0.18. Would you please add this?
Thank you so much for the mod, its awesome, kudus! :D
Just some notes on your use of the api: https://github.com/audun/factorio-closestfirst/blob/master/control.lua#L276
You check valid and connected here. That is useless. game.connected_players will only give you connected and valid players.
Unless you have a save from an old mod version where your on_init didnt exist, global.close_entities == nil
will never be true.
If there is an older version of the mod where the global doesnt exist, simply create it in on_configuration_changed instead of checking for it everywhere.
When accessing the player inventory or quickbar, I recommend use of LuaControl::get_[main_inventory/quickbar] because it will work for any type of controller instead of just the character controller.
Find entities filtered allows big performance gains over simply getting all entities in an area. You could filter to only find things from the player's force and the neutral force. Yes, I am aware of your modding interface request to make it even more useful for you :)
Hello,
nice idea love it.
Sadly the mod crashes on data stage with:
Error in assignID, item with name 'creative-mode-fix_super-personal-roboport-equipment-reduced-0' does not exist.
if the Creative mod (https://mods.factorio.com/mod/creative-mode-fix) is installed.
Cu, Stephan (BladesAndRazors @ Dicord, if questions arise)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.