I think I already added this function, since the handmill works in a more simple way. But mostly I spent time on fixing the threshing floor UI bug, which I found when I went to test the mill. You might wanna pull the current repo state.ThorfinnS wrote:Truth. We were just waiting to see if anyone was interested in the expanded function. If not, there wasn't much point in making a general use case if it was only for us. If you are, I'd be happy to cut the crew loose on the mill API. Odds are it's only a couple hours, including testing.h-v-smacker wrote:The same change should happen to the stone mill now, since they are soft of yin-and-yang of farming in cottages.
[Mod] cottages [cottages] (medieval, farming, country life)
- h-v-smacker
- Member
- Posts: 115
- Joined: Wed Nov 29, 2017 23:04
- GitHub: h-v-smacker
- In-game: Smacker
Re: [Mod] cottages [cottages] (medieval, farming, country li
Linux Forks, the Best Forks: linux-forks.de // Play @ LinuxWorks Next Generation
Re: [Mod] cottages [cottages] (medieval, farming, country li
Thought so. Looks like you already did it, assuming the examples like grinding cobble into gravel work. But haven't done much more than give it a cursory glance. Reason we got started on the threshing floor api was because it did pretty much what we wanted to do, then ran into your fork that accepts more than just wheat. Sweet!
- h-v-smacker
- Member
- Posts: 115
- Joined: Wed Nov 29, 2017 23:04
- GitHub: h-v-smacker
- In-game: Smacker
Re: [Mod] cottages [cottages] (medieval, farming, country li
Oh, those things most certainly work, the reason they are disabled is mostly because these functions are relegated to (also forked) technic devices on the linuxforks server. In fact, the fork of technic I'm running has an electrical threshing machine, which was largely inspired by the threshing floor from cottages. Since we have both mods (and I run both forks), the way it's set up is that cottages is the "little brother" of technic equipment-wise: the most basic farming stuff comes from cottages, then goes the non-powered machine set from technic, then proper power machines.ThorfinnS wrote:Thought so. Looks like you already did it, assuming the examples like grinding cobble into gravel work. But haven't done much more than give it a cursory glance. Reason we got started on the threshing floor api was because it did pretty much what we wanted to do, then ran into your fork that accepts more than just wheat. Sweet!
Linux Forks, the Best Forks: linux-forks.de // Play @ LinuxWorks Next Generation
Re: [Mod] cottages [cottages] (medieval, farming, country li
h_v_smacker, I don't recall whether I mentioned this in the PR, but if I didn't, here's all a mod maker need do to register his products with that function call.
Our tweaks mod has an optional depend on cottages, and in the init.lua the following three lines to fully integrate farming_redo:
Each of the outputs has equal probability, though we are in the middle of testing a variant where you can specify frequencies, so you can return rarer seeds on occasion.
We have a farmable marram grass we are about ready to release, and wanted to make sure it was easy to incorporate into the game. It works without the threshing floor, but I think it's going to work better with it. And there are other farm products in the chain, and this way we don't have to do a PR for each.
Our tweaks mod has an optional depend on cottages, and in the init.lua the following three lines to fully integrate farming_redo:
Code: Select all
cottages:add_threshing_product("default:grass_1",{"farming:seed_wheat", "farming:seed_oat"})
cottages:add_threshing_product("default:dry_grass_1",{"farming:seed_barley", "farming:seed_rye"})
cottages:add_threshing_product("default:junglegrass",{"farming:seed_rice", "farming:seed_cotton"})
We have a farmable marram grass we are about ready to release, and wanted to make sure it was easy to incorporate into the game. It works without the threshing floor, but I think it's going to work better with it. And there are other farm products in the chain, and this way we don't have to do a PR for each.
- h-v-smacker
- Member
- Posts: 115
- Joined: Wed Nov 29, 2017 23:04
- GitHub: h-v-smacker
- In-game: Smacker
Re: [Mod] cottages [cottages] (medieval, farming, country li
Actually no. As long as said functionality is not present in upstream, you need to introduce a mod version check as well:ThorfinnS wrote:h_v_smacker, I don't recall whether I mentioned this in the PR, but if I didn't, here's all a mod maker need do to register his products with that function call.
Our tweaks mod has an optional depend on cottages, and in the init.lua the following three lines to fully integrate farming_redo:
Each of the outputs has equal probability, though we are in the middle of testing a variant where you can specify frequencies, so you can return rarer seeds on occasion.Code: Select all
cottages:add_threshing_product("default:grass_1",{"farming:seed_wheat", "farming:seed_oat"}) cottages:add_threshing_product("default:dry_grass_1",{"farming:seed_barley", "farming:seed_rye"}) cottages:add_threshing_product("default:junglegrass",{"farming:seed_rice", "farming:seed_cotton"})
We have a farmable marram grass we are about ready to release, and wanted to make sure it was easy to incorporate into the game. It works without the threshing floor, but I think it's going to work better with it. And there are other farm products in the chain, and this way we don't have to do a PR for each.
Code: Select all
if minetest.get_modpath("cottages") and cottages.mod and cottages.mod == "linuxforks" then
cottages:add_threshing_product("default:dry_grass_1", {"farming:seed_barley", "farming:seed_rye"})
...
end
Linux Forks, the Best Forks: linux-forks.de // Play @ LinuxWorks Next Generation
Re: [Mod] cottages [cottages] (medieval, farming, country li
Oh, you mean in Sokomine's mod. Truth.
Yeah, going straight to baker changes stuff, sort of. There's nothing stopping the player from placing the grass he's dug, then digging it again, and repeat until you get lucky and harvest a seed. Using the floor is just a shortcut to wearing out the mouse. But it's why we are testing the version we are. It usually just generates a straw. Rarely it will generate the seed. I can't think we will run into any issues with it; it's pretty basic. Those who want to get 100% conversion of grass to seeds can still wear out the mouse. Those who aren't as patient have to settle for what they get. The trick is making it just good enough to make it worthwhile NOT to do the clickfest. Which is basically all we are testing now.
Yeah, going straight to baker changes stuff, sort of. There's nothing stopping the player from placing the grass he's dug, then digging it again, and repeat until you get lucky and harvest a seed. Using the floor is just a shortcut to wearing out the mouse. But it's why we are testing the version we are. It usually just generates a straw. Rarely it will generate the seed. I can't think we will run into any issues with it; it's pretty basic. Those who want to get 100% conversion of grass to seeds can still wear out the mouse. Those who aren't as patient have to settle for what they get. The trick is making it just good enough to make it worthwhile NOT to do the clickfest. Which is basically all we are testing now.
Re: [Mod] cottages [cottages] (medieval, farming, country li
I'm away from my coding machine at the moment, so I haven't pulled the most recent code, but on either your fork or Sokomine's, if you have a threshable product in the second slot, but not in the first, it crashes to main menu. It works properly if you run out in the first slot, but not if you start with nothing there.
- h-v-smacker
- Member
- Posts: 115
- Joined: Wed Nov 29, 2017 23:04
- GitHub: h-v-smacker
- In-game: Smacker
Re: [Mod] cottages [cottages] (medieval, farming, country li
I remember seeing a bug like that. Also I tested the current state of my fork, and it doesn't crash. So if my memory serves me right here, this issue was one of those I fixed when I tried to add the same API for mill as you did for threshing floor and went to test the result.ThorfinnS wrote:I'm away from my coding machine at the moment, so I haven't pulled the most recent code, but on either your fork or Sokomine's, if you have a threshable product in the second slot, but not in the first, it crashes to main menu. It works properly if you run out in the first slot, but not if you start with nothing there.
Linux Forks, the Best Forks: linux-forks.de // Play @ LinuxWorks Next Generation
Re: [Mod] cottages [cottages] (medieval, farming, country li
I'm guessing that's why the mill has only one input slot? That seems to be the easiest fix. Yeah, there's a lot of extra code that will never be used, but not much of an inconvenience to have to add only one stack at a time.
- h-v-smacker
- Member
- Posts: 115
- Joined: Wed Nov 29, 2017 23:04
- GitHub: h-v-smacker
- In-game: Smacker
Re: [Mod] cottages [cottages] (medieval, farming, country li
The mill has one slot because it's output ratio is lower. With a threshing floor, you'll be through one stack of wheat in like three hits of a stick, while a mill will go through one stack in 5 or 7 or something like that.ThorfinnS wrote:I'm guessing that's why the mill has only one input slot? That seems to be the easiest fix. Yeah, there's a lot of extra code that will never be used, but not much of an inconvenience to have to add only one stack at a time.
Linux Forks, the Best Forks: linux-forks.de // Play @ LinuxWorks Next Generation
Re: [Mod] cottages [cottages] (medieval, farming, country li
Depends on what kind of game you play, I guess.
One stack of wheat makes enough bread to play a day or two real time. Even if you increase the rate that the hunger mod goes through food to the point that early game survival is unlikely unless you start in an apple grove. If you were trying to feed a city, sure, having to take another few seconds to add the next stack would be something of a pain, though I think the better way to handle it is like the (I forget who started it; most recently updated by bell07, iirc) compost mod, where left click with a valid input in hand places the stack into the device, left click with empty hand retrieves whatever is in the first output slot.
TenPlus1's mortar and pestle (farming redo) is a LITTLE more balanced, as it takes four input grains to make one output of flour, which makes one loaf of bread, but its still trivial to produce insane amounts of food.
One stack of wheat makes enough bread to play a day or two real time. Even if you increase the rate that the hunger mod goes through food to the point that early game survival is unlikely unless you start in an apple grove. If you were trying to feed a city, sure, having to take another few seconds to add the next stack would be something of a pain, though I think the better way to handle it is like the (I forget who started it; most recently updated by bell07, iirc) compost mod, where left click with a valid input in hand places the stack into the device, left click with empty hand retrieves whatever is in the first output slot.
TenPlus1's mortar and pestle (farming redo) is a LITTLE more balanced, as it takes four input grains to make one output of flour, which makes one loaf of bread, but its still trivial to produce insane amounts of food.
- h-v-smacker
- Member
- Posts: 115
- Joined: Wed Nov 29, 2017 23:04
- GitHub: h-v-smacker
- In-game: Smacker
Re: [Mod] cottages [cottages] (medieval, farming, country li
Look, it's not that hard to add a second slot to the mill as well. I just thought that the disparity of input capacity was due to different output rate. Also if you want to feed a city, you basically need technic and digtron )))ThorfinnS wrote:Depends on what kind of game you play, I guess.
One stack of wheat makes enough bread to play a day or two real time. Even if you increase the rate that the hunger mod goes through food to the point that early game survival is unlikely unless you start in an apple grove. If you were trying to feed a city, sure, having to take another few seconds to add the next stack would be something of a pain, though I think the better way to handle it is like the (I forget who started it; most recently updated by bell07, iirc) compost mod, where left click with a valid input in hand places the stack into the device, left click with empty hand retrieves whatever is in the first output slot.
TenPlus1's mortar and pestle (farming redo) is a LITTLE more balanced, as it takes four input grains to make one output of flour, which makes one loaf of bread, but its still trivial to produce insane amounts of food.
Linux Forks, the Best Forks: linux-forks.de // Play @ LinuxWorks Next Generation
Re: [Mod] cottages [cottages] (medieval, farming, country li
How is it used? Is the citybuilder mod needed? I have tried to use it and could not figure it out.Sokomine wrote: ↑Fri Jun 30, 2017 23:39The latest addition to cottages is a rope copied from Bas080's fine vines and rope mod plus a special rail with a rope on top. They're needed for the mines in my citybuilder mod for the central shaft (climb up+down, walk, ride through with a cart).
-
- Member
- Posts: 4287
- Joined: Sun Sep 09, 2012 17:31
- GitHub: Sokomine
- IRC: Sokomine
- In-game: Sokomine
Re: [Mod] cottages [cottages] (medieval, farming, country life)
The rope as such is just a node that you can craft, place and climb up/down. If you want some serious climbing, take the vines and rope mod with its great ropebox.Merak wrote: How is it used? Is the citybuilder mod needed? I have tried to use it and could not figure it out.
The combination of rope and rail is used for the mineshafts in the larger mines. I needed a node where a cart can travel through (thus, rail) and where players could climb up and down (thus, rope) for the middle of the mineshaft. It's part of my citybuilder mod and can even be crafted there. Looks like this:
- Attachments
-
- rope_rail.jpg (111.29 KiB) Viewed 2291 times
A list of my mods can be found here.
Re: [Mod] cottages [cottages] (medieval, farming, country life)
Any ideas what's going on here?
Minetest 5.3.0.
Happens to many of the dofiles that define nodes, Anvil and pitchfork seems to load fine.
Code: Select all
2020-10-14 10:01:06: ERROR[Main]: ModError: Failed to load and run script from \\STEVE-PC\Inbox\mt\bin\..\mods\cottages\init.lua:
2020-10-14 10:01:06: ERROR[Main]: \\STEVE-PC\Inbox\mt\bin\..\builtin\game\register.lua:182: bad argument #5 to 'register_item_raw' (table expected, got function)
2020-10-14 10:01:06: ERROR[Main]: stack traceback:
2020-10-14 10:01:06: ERROR[Main]: [C]: in function 'register_item_raw'
2020-10-14 10:01:06: ERROR[Main]: \\STEVE-PC\Inbox\mt\bin\..\builtin\game\register.lua:182: in function 'register_item'
2020-10-14 10:01:06: ERROR[Main]: \\STEVE-PC\Inbox\mt\bin\..\builtin\game\register.lua:208: in function 'register_node'
2020-10-14 10:01:06: ERROR[Main]: ...EVE-PC\Inbox\mt\bin\..\mods\cottages/nodes_furniture.lua:54: in main chunk
2020-10-14 10:01:06: ERROR[Main]: [C]: in function 'dofile'
2020-10-14 10:01:06: ERROR[Main]: \\STEVE-PC\Inbox\mt\bin\..\mods\cottages\init.lua:121: in main chunk
Happens to many of the dofiles that define nodes, Anvil and pitchfork seems to load fine.
-
- Member
- Posts: 4287
- Joined: Sun Sep 09, 2012 17:31
- GitHub: Sokomine
- IRC: Sokomine
- In-game: Sokomine
Re: [Mod] cottages [cottages] (medieval, farming, country life)
Are you using the latest version? I'm more or less on latest MT and don't have any problems there. Can't see any obvious errors there either.ThorfinnS wrote: Happens to many of the dofiles that define nodes, Anvil and pitchfork seems to load fine.
Cottages currently has a problem with the well. If you punch it with just one empty bucket in your inventory, it will place and immediately take the bucket away, not giving you a filled one. It works if you have two buckets in your inventory. Need to find out what causes that bug.
A list of my mods can be found here.
Re: [Mod] cottages [cottages] (medieval, farming, country life)
My bad. We were using someone else's fork of your mod. So while I confirmed through git pull that we had the latest copy, it wasn't pulling from your repo.
Re: [Mod] cottages [cottages] (medieval, farming, country life)
The rope rails are a neat idea. I like that the anvil works and doesn't dupe the item like the castle plus anvil does. I think the anvil mod did the same.
I'm getting a rendering problem with the hay floor mat thing. It shows as a half box that's solid black. Does anyone know of a fix for this error?
I'm getting a rendering problem with the hay floor mat thing. It shows as a half box that's solid black. Does anyone know of a fix for this error?
-
- Member
- Posts: 4287
- Joined: Sun Sep 09, 2012 17:31
- GitHub: Sokomine
- IRC: Sokomine
- In-game: Sokomine
Re: [Mod] cottages [cottages] (medieval, farming, country life)
Sounds strange. The "some hay" node is similar to snow. It uses a slightly dyed straw texture. Can you see the textures of the hay block?HighPopes wrote: I'm getting a rendering problem with the hay floor mat thing. It shows as a half box that's solid black. Does anyone know of a fix for this error?
A list of my mods can be found here.
Re: [Mod] cottages [cottages] (medieval, farming, country life)
Yeah, that texture works. I'm having trouble getting the rope rail to work. How do you use it? The cart doesn't pass through it just stops.
-
- Member
- Posts: 4287
- Joined: Sun Sep 09, 2012 17:31
- GitHub: Sokomine
- IRC: Sokomine
- In-game: Sokomine
Re: [Mod] cottages [cottages] (medieval, farming, country life)
The rope rail allows you to climb up and down like with a ladder (or with the rope). In addition it acts like a rail node for a cart. You can build mineshafts like this one:HighPopes wrote: Yeah, that texture works. I'm having trouble getting the rope rail to work. How do you use it?
As a player, you can climb up and down in the shaft, and the cart can travel from one side of the shaft to the other without having to stop due to lack of rails.
The diffrent stages of mines in my citybuilder mod make use of it (not that they're of much use yet...citybuilder needs much more work).
- Attachments
-
- rope_and_rail.jpg (116.59 KiB) Viewed 2291 times
A list of my mods can be found here.
Re: [Mod] cottages [cottages] (medieval, farming, country life)
I have this problem with version 5.4.1 of minetest
2021-05-08 19:00:59: ERROR[Main]: ServerError: AsyncErr: environment_Step: Runtime error from mod 'cottages' in callback environment_Step(): ...inetest-5.4.1-win64\bin\..\mods\cottages/nodes_anvil.lua:233: bad argument #1 to 'hud_remove' (number expected, got nil)
2021-05-08 19:00:59: ERROR[Main]: stack traceback:
2021-05-08 19:00:59: ERROR[Main]: [C]: in function 'hud_remove'
2021-05-08 19:00:59: ERROR[Main]: ...inetest-5.4.1-win64\bin\..\mods\cottages/nodes_anvil.lua:233: in function 'func'
2021-05-08 19:00:59: ERROR[Main]: D:\minetest-5.4.1-win64\bin\..\builtin\common\after.lua:20: in function <D:\minetest-5.4.1-win64\bin\..\builtin\common\after.lua:5>
2021-05-08 19:00:59: ERROR[Main]: D:\minetest-5.4.1-win64\bin\..\builtin\game\register.lua:422: in function <D:\minetest-5.4.1-win64\bin\..\builtin\game\register.lua:406>
2021-05-08 19:00:59: ERROR[Main]: stack traceback:
is it known ?
this happens when a player uses anvil
2021-05-08 19:00:59: ERROR[Main]: ServerError: AsyncErr: environment_Step: Runtime error from mod 'cottages' in callback environment_Step(): ...inetest-5.4.1-win64\bin\..\mods\cottages/nodes_anvil.lua:233: bad argument #1 to 'hud_remove' (number expected, got nil)
2021-05-08 19:00:59: ERROR[Main]: stack traceback:
2021-05-08 19:00:59: ERROR[Main]: [C]: in function 'hud_remove'
2021-05-08 19:00:59: ERROR[Main]: ...inetest-5.4.1-win64\bin\..\mods\cottages/nodes_anvil.lua:233: in function 'func'
2021-05-08 19:00:59: ERROR[Main]: D:\minetest-5.4.1-win64\bin\..\builtin\common\after.lua:20: in function <D:\minetest-5.4.1-win64\bin\..\builtin\common\after.lua:5>
2021-05-08 19:00:59: ERROR[Main]: D:\minetest-5.4.1-win64\bin\..\builtin\game\register.lua:422: in function <D:\minetest-5.4.1-win64\bin\..\builtin\game\register.lua:406>
2021-05-08 19:00:59: ERROR[Main]: stack traceback:
is it known ?
this happens when a player uses anvil
Re: [Mod] cottages [cottages] (medieval, farming, country life)
I got a tree trunk water well used in a setup to make ice. Basically I have an ice machine that hits the well with a bucket and sends a bucket of water to the freezer for ice.
It worked for a day, but now the tree trunk water well doesn't fill water anymore (bug). Because there's an empty bucket in the well, I can't remove it either.
Pointing this out as a player (not the admin of a server).
It worked for a day, but now the tree trunk water well doesn't fill water anymore (bug). Because there's an empty bucket in the well, I can't remove it either.
Pointing this out as a player (not the admin of a server).
- Attachments
-
- screenshot_20210907_195542.png (930.96 KiB) Viewed 2291 times
Re: [Mod] cottages [cottages] (medieval, farming, country life)
It happens when trying to repair a tool that has no damage. I have not looked into it more than that.Baobab2 wrote: ↑Sat May 08, 2021 17:10I have this problem with version 5.4.1 of minetest
2021-05-08 19:00:59: ERROR[Main]: ServerError: AsyncErr: environment_Step: Runtime error from mod 'cottages' in callback environment_Step(): ...inetest-5.4.1-win64\bin\..\mods\cottages/nodes_anvil.lua:233: bad argument #1 to 'hud_remove' (number expected, got nil)
2021-05-08 19:00:59: ERROR[Main]: stack traceback:
2021-05-08 19:00:59: ERROR[Main]: [C]: in function 'hud_remove'
2021-05-08 19:00:59: ERROR[Main]: ...inetest-5.4.1-win64\bin\..\mods\cottages/nodes_anvil.lua:233: in function 'func'
2021-05-08 19:00:59: ERROR[Main]: D:\minetest-5.4.1-win64\bin\..\builtin\common\after.lua:20: in function <D:\minetest-5.4.1-win64\bin\..\builtin\common\after.lua:5>
2021-05-08 19:00:59: ERROR[Main]: D:\minetest-5.4.1-win64\bin\..\builtin\game\register.lua:422: in function <D:\minetest-5.4.1-win64\bin\..\builtin\game\register.lua:406>
2021-05-08 19:00:59: ERROR[Main]: stack traceback:
is it known ?
this happens when a player uses anvil
- Lupercus
- Member
- Posts: 30
- Joined: Tue Jan 03, 2017 02:08
- GitHub: lupercus13
- IRC: Lupercus-Server
- In-game: Lupercus
Re: [Mod] cottages [cottages] (medieval, farming, country life)
here is rooster from xdecor i added, and scarecrow added from decoblocks.
- Attachments
-
- Screenshot from 2022-04-08 18-31-39.png (757.66 KiB) Viewed 1954 times
Who is online
Users browsing this forum: No registered users and 9 guests