[Mod] Villages for Minetest [mg_villages]

User avatar
nirasa
Member
Posts: 19
Joined: Fri Jun 10, 2016 10:11
GitHub: nirasa1957
IRC: nirasa1957
In-game: nirasa
Location: Czech republic

Re: [Mod] Villages for Minetest [mg_villages]

by nirasa » Post

AndroBuilder wrote:After a few adjustments with my villagers mod, everything seems good. EXCEPT that my villagers felt some momentary pain when you moved the mob spawner deeper. LOL. I updated my LBM spawn code to use the village height to spawn instead of the mob spawner height. :p
Same Error still existing? How can it be fixed?
Yes! I have the same error.
Sorry for my english :(

jakab
Member
Posts: 88
Joined: Mon Aug 15, 2016 17:19
IRC: jakab
In-game: jakab

Re: [Mod] Villages for Minetest [mg_villages]

by jakab » Post

hi! im intrested about this mod, but i had an error what i could not find to fix it :P

and a question: are they mooving, or just standing there in small groups.
Attachments
screenshot_20180228_082609.png
screenshot_20180228_082609.png (836.22 KiB) Viewed 2769 times

Mr. Xenon
Member
Posts: 38
Joined: Thu Feb 08, 2018 16:37

Re: [Mod] Villages for Minetest [mg_villages]

by Mr. Xenon » Post

With the 0.5 dev the NPCs are positioned correctly. With 0.4.16, what you see in the screenshots is happening. Did I change the coordinates of player placement in 0.5 dev? I do not know but I definitely went close.

KCoombes
Member
Posts: 427
Joined: Thu Jun 11, 2015 23:19
In-game: Knatt
Location: SW Florida, USA

Re: [Mod] Villages for Minetest [mg_villages]

by KCoombes » Post

jakab wrote:hi! im intrested about this mod, but i had an error what i could not find to fix it :P

and a question: are they mooving, or just standing there in small groups.
This issue was addressed in the Villagers mod, as that is where the spawn location of the villagers is determined. In that mod, open spawn.lua and change line 346 (where it says "pos.y = village_data.vh + 0.5") to 1.5 instead - your villagers will spawn correctly.

Once they spawn on the ground (not in the ground), they will move around on their own.

User avatar
TechNolaByte
Member
Posts: 465
Joined: Wed May 10, 2017 21:00
GitHub: TechNolaByte

Re: [Mod] Villages for Minetest [mg_villages]

by TechNolaByte » Post

is there a way to adjust the y level where all villages spawn? i want to use this(or the villages modpack) in skyfactory and need to bump the spawning level to a few thousand blocks up so it appears in one of the separate dimensions
The great quest of alchemy neither failed nor attained gold; programmers are those great alchemists who transmute caffeine into code.

User avatar
captpete
Member
Posts: 134
Joined: Fri Nov 25, 2016 03:02

Re: [Mod] Villages for Minetest [mg_villages]

by captpete » Post

First run of a fresh install of 0.4.16 (fresh download from minetest.net) in SinglePlayer mode creative, only mods mob_world_interaction and villages-for-minetest-modpack (all updated per your 2017 post in the forum).
Image
mg_villages error
mg_villages error
An Error mg_villages.jpg (95.26 KiB) Viewed 2769 times

User avatar
csirolli
Member
Posts: 133
Joined: Mon Jan 15, 2018 21:46
GitHub: HeyITGuyFixIt
IRC: CSirolli
In-game: CSirolli
Location: Florida, USA
Contact:

Re: [Mod] Villages for Minetest [mg_villages]

by csirolli » Post

<Deleted by author>

User avatar
zero1976
New member
Posts: 1
Joined: Mon Jul 02, 2018 22:01
GitHub: zero1976
IRC: zero1976
In-game: zero1976

Re: [Mod] Villages for Minetest [mg_villages]

by zero1976 » Post

very nice mod thank you
Life certainly involves all the practical things of daily living but is this really what life is all about!

SteveGer
Member
Posts: 13
Joined: Tue Oct 09, 2018 14:17
In-game: onePlayer SteveG
Location: In the Valley

Re: [Mod] Villages for Minetest [mg_villages]

by SteveGer » Post

Hey

I want to use this Mod, but got an Error.

My Installation of MT is fresh, and only the Mods biome_lib, handle_shematics, intllib, mg and mg_villages are activated. Here the Log:

Code: Select all

...
2018-10-09 16:10:34: WARNING[Main]: Assignment to undeclared global "value" inside a function at /home/steve/.minetest/mods/mg/we.lua:45.
2018-10-09 16:10:36: WARNING[Main]: get_mapgen_params is deprecated; use get_mapgen_setting instead (at /home/steve/.minetest/mods/mg/init.lua:49)
2018-10-09 16:10:36: WARNING[Main]: set_mapgen_params is deprecated; use set_mapgen_setting instead (at /usr/share/minetest/builtin/game/register.lua:569)
2018-10-09 16:10:36: WARNING[Main]: get_mapgen_params is deprecated; use get_mapgen_setting instead (at /home/steve/.minetest/mods/mg/init.lua:120)
2018-10-09 16:10:36: WARNING[Main]: Assignment to undeclared global "wseed" inside a function at /home/steve/.minetest/mods/mg/init.lua:121.
2018-10-09 16:10:36: WARNING[Main]: Undeclared global variable "DEBUG" accessed at /home/steve/.minetest/mods/mg/init.lua:861
2018-10-09 16:10:36: WARNING[Main]: get_mapgen_params is deprecated; use get_mapgen_setting instead (at /home/steve/.minetest/mods/mg_villages/mapgen.lua:35)
2018-10-09 16:10:37: ERROR[Main]: ServerError: AsyncErr: Lua: finishGenRuntime error from mod 'mg' in callback environment_OnGenerated(): /home/steve/.minetest/mods/mg_villages/villages.lua:27: attempt to call method 'get_2d' (a nil value)
2018-10-09 16:10:37: ERROR[Main]: stack traceback:
2018-10-09 16:10:37: ERROR[Main]: 	/home/steve/.minetest/mods/mg_villages/villages.lua:27: in function 'villages_at_point'
2018-10-09 16:10:37: ERROR[Main]: 	/home/steve/.minetest/mods/mg/init.lua:414: in function 'mg_generate'
2018-10-09 16:10:37: ERROR[Main]: 	/home/steve/.minetest/mods/mg/init.lua:785: in function </home/steve/.minetest/mods/mg/init.lua:783>
2018-10-09 16:10:37: ERROR[Main]: 	/usr/share/minetest/builtin/game/register.lua:420: in function </usr/share/minetest/builtin/game/register.lua:400>
MT 0.4.17.1 and Ubuntu 16.10 LTS

How can i handle this? or is there already a solution?

Edit 1:
I tried to run the World without the mod mg and got a slightly different Error:

Code: Select all

...
2018-10-09 16:37:20: WARNING[Main]: get_mapgen_params is deprecated; use get_mapgen_setting instead (at /home/steve/.minetest/mods/mg_villages/mapgen.lua:35)
2018-10-09 16:37:22: ERROR[Main]: ServerError: AsyncErr: Lua: finishGenRuntime error from mod 'mg_villages' in callback environment_OnGenerated(): /home/steve/.minetest/mods/mg_villages/villages.lua:27: attempt to call method 'get_2d' (a nil value)
2018-10-09 16:37:22: ERROR[Main]: stack traceback:
2018-10-09 16:37:22: ERROR[Main]: 	/home/steve/.minetest/mods/mg_villages/villages.lua:27: in function 'villages_at_point'
2018-10-09 16:37:22: ERROR[Main]: 	/home/steve/.minetest/mods/mg_villages/mapgen.lua:81: in function 'villages_in_mapchunk'
2018-10-09 16:37:22: ERROR[Main]: 	/home/steve/.minetest/mods/mg_villages/mapgen.lua:1293: in function </home/steve/.minetest/mods/mg_villages/mapgen.lua:1273>
2018-10-09 16:37:22: ERROR[Main]: 	/usr/share/minetest/builtin/game/register.lua:420: in function </usr/share/minetest/builtin/game/register.lua:400>
Edit 2:
I've tried the Mod "Villages" including mg_villages and handle_shematics and got same Error described at Edit 1, only the paths are different.
The standalone Mods mg_villages and handle_shematics are disabled.

All builtin Mapgenerators are tested with the same Result.

Thanks and
LG, Steve

roggebanda
New member
Posts: 1
Joined: Sat Dec 01, 2018 01:05

Village of Chesterfield

by roggebanda » Post

mg_villages+ethereal+furniture
singleplayer
I came across a town who's main crop is field after field of sofas (aka Chesterfields)
Image
At first I found it kind of creepy weird. Later, I paid 2 bars of my hard earned gold and bought the largest house in the town, hoping to open a furniture store.
Then disaster struck! Thanks to a nearby lava flow.
Image
Even the zombies were awestruck. This one stood there staring for a few moments, then walked into the flames. Poor thing.

Well, it's back to the mines for me!

Thanks for a wonderful mod!
Attachments
rps20181130_211133.jpg
rps20181130_211133.jpg (34.88 KiB) Viewed 2769 times
rps20181130_211027.jpg
rps20181130_211027.jpg (32.87 KiB) Viewed 2769 times

Meaty
New member
Posts: 4
Joined: Wed May 15, 2019 03:37

Re: [Mod] Villages for Minetest [mg_villages]

by Meaty » Post

Hello, and thank you for this awesome mod!

I was in the process of setting up a new server with 5.0.1 version and discovered that the content of the chests is rather OP. Please check the screenshot attached. Is there any way to influence the rates at which chest content is spawned?
Attachments
OPChests.JPG
OPChests.JPG (104.18 KiB) Viewed 2769 times

Baerbeisser
New member
Posts: 5
Joined: Sun May 12, 2019 19:07

Re: [Mod] Villages for Minetest [mg_villages]

by Baerbeisser » Post

Would it be possible to add support for the Torches Mod?
viewtopic.php?id=6099
Their torches don't melt snow, too. But fit better with HD texture-packs.

I found the handler for your torches in nodes.lua but am not fit enough with Lua to implement it miself (just copy-replacing generates no error but no torches either).

User avatar
FreeGamers
Member
Posts: 650
Joined: Sat May 25, 2019 00:15
GitHub: is proprietary I use NotABug
Location: United States
Contact:

Re: [Mod] Villages for Minetest [mg_villages]

by FreeGamers » Post

Meaty wrote:Hello, and thank you for this awesome mod!

I was in the process of setting up a new server with 5.0.1 version and discovered that the content of the chests is rather OP. Please check the screenshot attached. Is there any way to influence the rates at which chest content is spawned?
I'm evaluating using this mod myself and saw your post.

I looked through the source and determined that that must be a function of the individual building schematics of which you found it in. its a ".mts" (Minetest schematics) files and perhaps could be edited with either handle_schematics or WorldEdit but I currently haven't used either of these tools so I can't help you beyond this.

In "village_types.lua" there are functions for which village type to spawn, a workaround could be figuring out which type of builing you found that in and adjusting it not to spawn.
FreeGamers.org has moved to MeseCraft.net | FreeGamers on this forum is now MeseCraft

ShadMOrdre
Member
Posts: 1118
Joined: Mon Dec 29, 2014 08:07
Location: USA

Re: [Mod] Villages for Minetest [mg_villages]

by ShadMOrdre » Post

Regarding the schematics, I provide some of the buildings found in these villages also in my ShadMOrdre_DevWord download. Inside of the various "Towns" mods, I have translated many of these buildings into Lua tables, which does make the editing somewhat easier. You can also find a tool I cobbled together that allows you to easily import schematic mts files, or to transpose them into Lua schematics, for easier editing. This tool is found in the Instabuild mod, in the above download.

User avatar
Miniontoby
Member
Posts: 616
Joined: Fri Mar 01, 2019 19:25
GitHub: Miniontoby
IRC: Miniontoby
In-game: Miniontoby
Location: The Netherlands

Re: [Mod] Villages for Minetest [mg_villages]

by Miniontoby » Post

Cool mod
Working on mtctl ---- Check my mod "Doorbell" -- Stay safe

Sokomine
Member
Posts: 4276
Joined: Sun Sep 09, 2012 17:31
GitHub: Sokomine
IRC: Sokomine
In-game: Sokomine

Re: [Mod] Villages for Minetest [mg_villages]

by Sokomine » Post

Oh. Er. Have I really not answered this long to the thread? Well, there's still been work going on in the background...
RSLRedstonier wrote: is there a way to adjust the y level where all villages spawn? i want to use this(or the villages modpack) in skyfactory and need to bump the spawning level to a few thousand blocks up so it appears in one of the separate dimensions
First of all, mg_villages would have to learn to take those chunks much higher up into consideration for village placement. That could be done. However, there're still some factors where a ground level of 0 or 1 is assumed. Perhaps I ought to take the heightmap into consideration. It grew really helpful in past years and is supported by most mapgens.
Meaty wrote: I was in the process of setting up a new server with 5.0.1 version and discovered that the content of the chests is rather OP. Please check the screenshot attached. Is there any way to influence the rates at which chest content is spawned?
There really was a bug in handle_schematics (which does the spawning of the chest contents) that was introduced with the ships. It's now fixed. I've also replied in more detail in this thread about how you can change what spawns in chests in which quantity and how other things can be adjusted.

Please get newest handle_schematics and mg_villages for best results.

I'm currently working (whenever I have time to spare) on spawning of smaller villages (limited to one mapchunk) and making use of the heightmap while still using the mg_villages framework as a base (it has many needed functions).
A list of my mods can be found here.

User avatar
uwu666
Member
Posts: 45
Joined: Mon May 04, 2020 05:20
Location: Latinoamerica

Re: [Mod] Villages for Minetest [mg_villages]

by uwu666 » Post

i have 3 questions:
how can I disable lone houses?
how can I disable protection?
and how can I disable spawn player on village?
cdb_71b6f99a808c

crogonint
New member
Posts: 7
Joined: Sun Oct 11, 2020 22:40
GitHub: crogonint
In-game: NA

Re: [Mod] Villages for Minetest [mg_villages]

by crogonint » Post

Excuse me, I'm a newb at Minetest. (getting tired of devs acting like I'm stupid). This is happening, I don't know what to do, please help:

ModError: Failed to load and run script from C:\Users\James\Downloads\Games\minetest-5.3.0-win64\bin\..\mods\mg_villages\init.lua:
Unknown node: moretrees:apple_sapling_ongen
stack traceback:
[C]: in function 'get_content_id'
...\minetest-5.3.0-win64\bin\..\mods\mg_villages/config.lua:98: in main chunk
[C]: in function 'dofile'
...es\minetest-5.3.0-win64\bin\..\mods\mg_villages\init.lua:38: in main chunk
Check debug.txt for details.|

The relevant portion of debug.txt says:

2020-10-21 13:58:24: ERROR[Main]: ModError: Failed to load and run script from C:\Users\James\Downloads\Games\minetest-5.3.0-win64\bin\..\mods\mg_villages\init.lua:
2020-10-21 13:58:24: ERROR[Main]: Unknown node: moretrees:apple_sapling_ongen
2020-10-21 13:58:24: ERROR[Main]: stack traceback:
2020-10-21 13:58:24: ERROR[Main]: [C]: in function 'get_content_id'
2020-10-21 13:58:24: ERROR[Main]: ...\minetest-5.3.0-win64\bin\..\mods\mg_villages/config.lua:98: in main chunk
2020-10-21 13:58:24: ERROR[Main]: [C]: in function 'dofile'
2020-10-21 13:58:24: ERROR[Main]: ...es\minetest-5.3.0-win64\bin\..\mods\mg_villages\init.lua:38: in main chunk
2020-10-21 13:58:24: ERROR[Main]: Check debug.txt for details.
2020-10-21 13:58:24: ACTION[Main]: Server: Shutting down

crogonint
New member
Posts: 7
Joined: Sun Oct 11, 2020 22:40
GitHub: crogonint
In-game: NA

Re: [Mod] Villages for Minetest [mg_villages]

by crogonint » Post

Also, is there any way to easily get villagers wandering around the villages??

Sokomine
Member
Posts: 4276
Joined: Sun Sep 09, 2012 17:31
GitHub: Sokomine
IRC: Sokomine
In-game: Sokomine

Re: [Mod] Villages for Minetest [mg_villages]

by Sokomine » Post

uwu666 wrote: i have 3 questions:
Ups. Must have overlooked this question :-( Sorry.
uwu666 wrote: how can I disable lone houses?
mg_villages.INVERSE_HOUSE_DENSITY = 0
uwu666 wrote: how can I disable protection?
mg_villages.ENABLE_PROTECTION = false
uwu666 wrote: and how can I disable spawn player on village?
You can do that by setting a static spawnpoint.

All the config values can either be changed in config.lua or -preferably- in your own mod. Doesn't have to be anything big. The mg_villages table is public and allows access and configuration from the outside. I've never really moved to the more modern configuration options I'm afraid...
crogonint wrote: Also, is there any way to easily get villagers wandering around the villages??
Depends on what you accept as villagers. Some just take the npc from mobs_redo and let them spawn on the spawners. There are also the villagers and advanced_npc mod which try just that.

handle_schematics and mg_villages have received a lot of updates recently. Most of them are bugfixes and adjustments so that the mod runs with newer versions of MT. I've also managed to find a way to avoid the crashes that sometimes happened in the past by doing some adjustments in the cavegen griefing repair function. It might also be slightly faster.

Please update to the newest version!

RealTest (Wuzzys updated version), MineClone2 and Ethereal are supported.
A list of my mods can be found here.

User avatar
shazen
Member
Posts: 20
Joined: Sat Apr 18, 2020 18:11

Re: [Mod] Villages for Minetest [mg_villages]

by shazen » Post

Hi Sokomine,

I saw you removed obsolete functions replace_tree_trunk, replace_sapling on September 6 2020 but your villages (village_towntest, village_ruins…) still use them ?

So after updating mg_villages I got crashes :(

User avatar
daret
Member
Posts: 136
Joined: Tue Nov 12, 2019 20:36
GitHub: daretmavi
In-game: Daretmavi

Re: [Mod] Villages for Minetest [mg_villages]

by daret » Post

shazen wrote:
Wed Oct 28, 2020 10:15
Hi Sokomine,

I saw you removed obsolete functions replace_tree_trunk, replace_sapling on September 6 2020 but your villages (village_towntest, village_ruins…) still use them ?

So after updating mg_villages I got crashes :(
The same problem.
I created an issue 10 days ago on github:

User avatar
daret
Member
Posts: 136
Joined: Tue Nov 12, 2019 20:36
GitHub: daretmavi
In-game: Daretmavi

Protection issue?

by daret » Post

Hi,

if I set mg_villages.ENABLE_PROTECTION = false, then I can not but the plot, and even browse villages in /villages command. No Visit is available.

I would say it is because of

Code: Select all

	if( not( mg_villages.ENABLE_PROTECTION )) then
		return false;
	end
in plotmarker_formspec.lua / mg_villages.form_input_handler = function( player, formname, fields)

Is this intended?

cuthbertdoublebarrel
Member
Posts: 348
Joined: Tue Apr 14, 2020 16:03
GitHub: cuthbert

Re: [Mod] Villages for Minetest [mg_villages]

by cuthbertdoublebarrel » Post

mg_villages.ENABLE_PROTECTION = false
that is handy
I got stuck in a ravine partly built over by buildings and could not get out due to the protection , the question is should they be generating like that ,i have a conflct with underch and mg villages with lava appearing in the sky i think due to the working furnaces .
but i know something else is also triggering the lava too i just can trace the root cause as yet .
Project BrutalTest...hide your Petz

cuthbertdoublebarrel
Member
Posts: 348
Joined: Tue Apr 14, 2020 16:03
GitHub: cuthbert

Re: [Mod] Villages for Minetest [mg_villages]

by cuthbertdoublebarrel » Post

2020-12-06 13:26:40: ERROR[Main]: ServerError: AsyncErr: Lua: finishGenRuntime error from mod 'mg_villages' in callback environment_OnGenerated(): ...R\minetest-5.3.0-win64\bin\..\mods\mg_villages/roads.lua:146: attempt to index field 'all_villages' (a nil value)
2020-12-06 13:26:40: ERROR[Main]: stack traceback:
2020-12-06 13:26:40: ERROR[Main]: ...R\minetest-5.3.0-win64\bin\..\mods\mg_villages/roads.lua:146: in function 'get_road_list'
2020-12-06 13:26:40: ERROR[Main]: ...test-5.3.0-win64\bin\..\mods\mg_villages/inhabitants.lua:1258: in function 'assign_mobs'
2020-12-06 13:26:40: ERROR[Main]: ...\minetest-5.3.0-win64\bin\..\mods\mg_villages/mapgen.lua:1008: in function 'after_place_villages'
2020-12-06 13:26:40: ERROR[Main]: ...\minetest-5.3.0-win64\bin\..\mods\mg_villages/mapgen.lua:969: in function 'place_villages_via_voxelmanip'
2020-12-06 13:26:40: ERROR[Main]: ...\minetest-5.3.0-win64\bin\..\mods\mg_villages/mapgen.lua:1112: in function <...\minetest-5.3.0-win64\bin\..\mods\mg_villages/mapgen.lua:1067>
2020-12-06 13:26:40: ERROR[Main]: ...ER\minetest-5.3.0-win64\bin\..\builtin\game\register.lua:429: in function <...ER\minetest-5.3.0-win64\bin\..\builtin\game\register.lua:413>
2020-12-06 13:26:41: ACTION[Main]: Server: Shutting down
Project BrutalTest...hide your Petz

Post Reply

Who is online

Users browsing this forum: No registered users and 18 guests