thefox6 / factory Goto Github PK
View Code? Open in Web Editor NEWA mod that adds factory like machines
Home Page: https://content.minetest.net/packages/theFox/factory/
License: MIT License
A mod that adds factory like machines
Home Page: https://content.minetest.net/packages/theFox/factory/
License: MIT License
The industrial miner and upgraded industrial miner cause a crash almost immediately after placement when areas protection is installed (and probably other protection mods). It crashes regardless of whether or not the miner is in a protected region.
2018-05-24 13:01:14: ERROR[Main]: ServerError: AsyncErr: ServerThread::run Lua: Runtime error from mod '' in callback LuaABM::trigger(): Invalid position (expected table got nil).
2018-05-24 13:01:14: ERROR[Main]: stack traceback:
2018-05-24 13:01:14: ERROR[Main]: [C]: in function 'get_areas_for_pos'
2018-05-24 13:01:14: ERROR[Main]: /home/user/.minetest/mods/areas/api.lua:22: in function 'getAreasAtPos'
2018-05-24 13:01:14: ERROR[Main]: /home/user/.minetest/mods/areas/api.lua:76: in function 'canInteract'
2018-05-24 13:01:14: ERROR[Main]: /home/user/.minetest/mods/areas/interact.lua:4: in function 'is_protected'
2018-05-24 13:01:14: ERROR[Main]: /home/user/.minetest/mods/factory/machines/miner.lua:100: in function </home/user/.minetest/mods/factory/machines/miner.lua:88>
2018-05-24 13:01:14: ERROR[Main]: stack traceback:
2018-05-24 13:01:14: ERROR[Main]: [C]: in function 'get_areas_for_pos'
2018-05-24 13:01:14: ERROR[Main]: /home/user/.minetest/mods/areas/api.lua:22: in function 'getAreasAtPos'
2018-05-24 13:01:14: ERROR[Main]: /home/user/.minetest/mods/areas/api.lua:76: in function 'canInteract'
2018-05-24 13:01:14: ERROR[Main]: /home/user/.minetest/mods/areas/interact.lua:4: in function 'is_protected'
2018-05-24 13:01:14: ERROR[Main]: /home/user/.minetest/mods/factory/machines/miner.lua:100: in function </home/user/.minetest/mods/factory/machines/miner.lua:88>
This crash falls a little outside my scope of understanding and I will not be available to attempt to fix this crash for a few days so I just thought I'd open an issue for now.
Is your feature request related to a problem? Please describe.
It is a bit limiting that the only source of power is fuel, also it's rather monotone.
Describe the solution you'd like
It would be nice to have some alternative power sources, like biofuel/biogas, wind, water or solar.
Describe alternatives you've considered
The electricity could also be transformed from other mods electricity.
There could also be a fuel that is generated with different sources, but that would be kind of weird and unintuitive.
Additional context
The idea stems from Nielzie's forum post.
Describe the bug
Starting Miner machine caused minetest to exit with error
To Reproduce
If known, steps to reproduce the behavior:
Expected behavior
The the miner would do its thing and mine
Screenshots
If applicable, add screenshots to help explain your problem.
Log
from error screen on exit:
AsyncErr: Lua: Runtime error from mod 'factory' in callback LuaABM::trigger(): D:\Games\Minetest\bin..\mods\factory/machines/miner.lua:253: attempt to index local 'registered' (a nil value)
stack traceback:
D:\Games\Minetest\bin..\mods\factory/machines/miner.lua:253: in function <D:\Games\Minetest\bin..\mods\factory/machines/miner.lua:228>
from debug.txt:
2023-11-24 13:11:37: ERROR[Main]: stack traceback:
2023-11-24 13:11:37: ERROR[Main]: D:\Games\Minetest\bin..\mods\factory/machines/miner.lua:253: in function <D:\Games\Minetest\bin..\mods\factory/machines/miner.lua:228>
2023-11-24 13:11:37: ACTION[Server]: [doc] Wrote player data into D:\Games\Minetest\bin..\worlds\Mining Town/doc.mt.
2023-11-24 13:11:37: ACTION[Server]: singleplayer leaves game. List of players:
2023-11-24 13:11:38: ACTION[Main]: Server: Shutting down
2023-11-24 13:11:38: ACTION[Main]: [doc] Server shuts down. Player data is about to be saved.
2023-11-24 13:11:38: ACTION[Main]: [doc] Wrote player data into D:\Games\Minetest\bin..\worlds\Mining Town/doc.mt.
2023-11-24 13:11:38: ACTION[Main]: [Tubelib] Store data...
2023-11-24 13:11:38: ACTION[Main]: [Tubelib] Data stored. t=297us
Desktop (please complete the following information):
There seems to be a problem with the movers: somehow they either make items become more or they make them become less.
I don't really know what the problem is right now, but I'll try to find out...
please give me a hint if you have got an idea, what might be the problem.
machines/crafting.lua should contain a recipe for factory:stp; it doesn't currently.
This old code is not really handsome, someone ought to fix it up.
Some details what is not up to good coding standards are given in the log of the last luacheck.
The industrial miner crash when starting to work, if the minecart mod is loaded.
2020-09-24 19:00:03: ERROR[Main]: ServerError: AsyncErr: ServerThread::run Lua: Runtime error from mod 'factory' in callback LuaABM::trigger(): Invalid position (expected table got nil). 2020-09-24 19:00:03: ERROR[Main]: stack traceback: 2020-09-24 19:00:03: ERROR[Main]: [C]: in function 'get_node' 2020-09-24 19:00:03: ERROR[Main]: /home/user/.minetest/mods/minecart/protection.lua:45: in function 'is_protected' 2020-09-24 19:00:03: ERROR[Main]: /home/user/.minetest/mods/factory/machines/miner.lua:88: in function </home/user/.minetest/mods/factory/machines/miner.lua:78>
I don't know, which of the two should/could fix it.
joe7575/minecart#4 (comment)
Is your feature request related to a problem? Please describe.
Why does the factory:combustion_generator
use a ABM (Line 64) rather than a nodetimer?
Describe the solution you'd like
I feel the ABM works but so would using the nodetimer. (Just a dev looking at another persons code)
Describe alternatives you've considered
The only difference between the 2 is all factory:combustion_generator
s consume fuel and produce energy at the same time, where as the nodetimer would vary the energy as each fire at different times (since it would be almost impossible to place and activate them within a second).
Additional context
This is just a question, not an issue and/or really not even a feature request. (Just a dev looking at another persons code, that's all)
If you remove the smoketube from a burning furnace the fuel consumption is stopped and it stays in the burning animation
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.