[Mod] Towntest [towntest] - Grow a town in minetest.

User avatar
Echo
Member
Posts: 122
Joined: Tue Jul 31, 2012 08:11
Location: Germany

by Echo » Post

as long as the npc's don't found a union and demonstrate for more food... ;-)

User avatar
Neuromancer
Member
Posts: 958
Joined: Tue Jun 12, 2012 22:28
GitHub: Neuromancer56

by Neuromancer » Post

cornernote wrote:some ideas from IRC:
<cornernote> as a player you join a village
<cornernote> and perhaps can rob from other villages
If you rob from other villages there should be consequences like in Ultima.

Gage
Member
Posts: 45
Joined: Mon Sep 10, 2012 10:17

by Gage » Post

the init lua file wont work HELLLPPP!!!!

Gage
Member
Posts: 45
Joined: Mon Sep 10, 2012 10:17

by Gage » Post

i wanna play this so bad im using 4.3 urghhhhhhhhhhhh

cornernote
Member
Posts: 844
Joined: Wed Jul 11, 2012 15:02

by cornernote » Post

can you paste the error you get? have a look in debug.txt

User avatar
kddekadenz
Member
Posts: 323
Joined: Mon Jun 27, 2011 17:21
GitHub: tinyworlds
Location: Germany
Contact:

by kddekadenz » Post

Nice mod, but:
kddekadenz wrote:License of map: CC-BY 3.0 -> feel free to remix, but give credit in readme
I would be fine now to release it under the terms of CC0 or MIT, but I did release it as CC-BY.

Found a bug: If you walk away, they disappear, even if the are busy building something.
Last edited by kddekadenz on Mon Oct 01, 2012 16:45, edited 1 time in total.

User avatar
qwrwed
Member
Posts: 326
Joined: Sun Jul 22, 2012 20:56
In-game: qwrwed or Nitro

by qwrwed » Post

I keep getting crashes:

Code: Select all

18:11:40: VERBOSE[main]: error_message = ServerError: LuaError: error: ...games\towntest\mods\towntest\towntest_chest\init.lua:125: attempt to index local 'npc' (a nil value)
This is with the latest sfan5 build and the latest nightly package.

User avatar
kddekadenz
Member
Posts: 323
Joined: Mon Jun 27, 2011 17:21
GitHub: tinyworlds
Location: Germany
Contact:

by kddekadenz » Post

qwrwed wrote:I keep getting crashes:

Code: Select all

18:11:40: VERBOSE[main]: error_message = ServerError: LuaError: error: ...games\towntest\mods\towntest\towntest_chest\init.lua:125: attempt to index local 'npc' (a nil value)
This is with the latest sfan5 build and the latest nightly package.
Towntest, towntest_npc and towntest_chest have to be seperate folders and not in the folder towntest.

User avatar
qwrwed
Member
Posts: 326
Joined: Sun Jul 22, 2012 20:56
In-game: qwrwed or Nitro

by qwrwed » Post

kddekadenz wrote:
qwrwed wrote:I keep getting crashes:

Code: Select all

18:11:40: VERBOSE[main]: error_message = ServerError: LuaError: error: ...games\towntest\mods\towntest\towntest_chest\init.lua:125: attempt to index local 'npc' (a nil value)
This is with the latest sfan5 build and the latest nightly package.
Towntest, towntest_npc and towntest_chest have to be seperate folders and not in the folder towntest.
I did that, but it still happened. the result was the same because there was a modpack.txt in the original folder.
Last edited by qwrwed on Mon Oct 01, 2012 19:31, edited 1 time in total.

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

by Sokomine » Post

It's fun to see how the worker produces the building :-) I like the way he takes the stuff out of the chest, moves to the right destination and places the nodes there. That's close to the inhabitants I hope will one day be there to live in all those houses.

It might be a good idea to optimize the Worldedit imports first. Right now large buildings take a considerable amount of time to build because the worker runs to and fro between walls on opposite sides. That does not matter with small decorative buildings. Large buildings take extremly long.
A list of my mods can be found here.

cornernote
Member
Posts: 844
Joined: Wed Jul 11, 2012 15:02

by cornernote » Post

qwrwed wrote:I keep getting crashes:

Code: Select all

18:11:40: VERBOSE[main]: error_message = ServerError: LuaError: error: ...games\towntest\mods\towntest\towntest_chest\init.lua:125: attempt to index local 'npc' (a nil value)
This is with the latest sfan5 build and the latest nightly package.
init.lua:125 has nothing about npc in the lastest Git. Please download the version that is there now, let me know if you still have any issues.

User avatar
tkerwel
Member
Posts: 213
Joined: Fri Jan 13, 2012 07:35

by tkerwel » Post

error report:

09:37:31: ERROR[main]: ...32\bin\..\games\minetest_game\mods\towntest\init.lua:15: bad argument #1 to 'random' (interval is empty)
09:37:31: ERROR[main]: stack traceback:
09:37:31: ERROR[main]: [C]: in function 'random'
09:37:31: ERROR[main]: ...32\bin\..\games\minetest_game\mods\towntest\init.lua:15: in main chunk

the error comes in

towntest.game_id = math.random(100000000000)

when i lower this value to ..lets say to 10 or 100 it runs.... is here a difference if you start a new game or use a already running game ?




Question:
can i run towntest together with your deploy mods ?
Last edited by tkerwel on Tue Oct 02, 2012 07:49, edited 1 time in total.
++++ Kung walang tiyaga, walang nilaga. ++++

cornernote
Member
Posts: 844
Joined: Wed Jul 11, 2012 15:02

by cornernote » Post

that line used to be used to kill off old NPC's. its actually not used now, i'll remove it next update

User avatar
qwrwed
Member
Posts: 326
Joined: Sun Jul 22, 2012 20:56
In-game: qwrwed or Nitro

by qwrwed » Post

cornernote wrote:
qwrwed wrote:I keep getting crashes:

Code: Select all

18:11:40: VERBOSE[main]: error_message = ServerError: LuaError: error: ...games\towntest\mods\towntest\towntest_chest\init.lua:125: attempt to index local 'npc' (a nil value)
This is with the latest sfan5 build and the latest nightly package.
init.lua:125 has nothing about npc in the lastest Git. Please download the version that is there now, let me know if you still have any issues.
I don't know how to compile, that's why I used the dev builds.

cornernote
Member
Posts: 844
Joined: Wed Jul 11, 2012 15:02

by cornernote » Post

i mean the latest git of this mod, on the 1st post Download Zipball

User avatar
chris36202
Member
Posts: 38
Joined: Thu Sep 27, 2012 12:22

by chris36202 » Post

how do i feed the npc
chris mcleod
my windows live mesgener name is rock36202

cornernote
Member
Posts: 844
Joined: Wed Jul 11, 2012 15:02

by cornernote » Post

put apples in the chest, next time he comes to get materials he will take the food aswell

User avatar
chris36202
Member
Posts: 38
Joined: Thu Sep 27, 2012 12:22

by chris36202 » Post

thanks
chris mcleod
my windows live mesgener name is rock36202

User avatar
chris36202
Member
Posts: 38
Joined: Thu Sep 27, 2012 12:22

by chris36202 » Post

so when your are done the updating for this mod can you make a vilger mod like minecraft
chris mcleod
my windows live mesgener name is rock36202

User avatar
chris36202
Member
Posts: 38
Joined: Thu Sep 27, 2012 12:22

by chris36202 » Post

and i got the update for the mod and there is builder and lumber jack slot what is that for?
chris mcleod
my windows live mesgener name is rock36202

cornernote
Member
Posts: 844
Joined: Wed Jul 11, 2012 15:02

by cornernote » Post

builder inventory - is the stuff the NPC builder has taken from the chest and is currently using to build your structure
lumberjack inventory - does nothing, coming soon when i add new NPCs ;)

PewDiePie
Member
Posts: 26
Joined: Sat Aug 18, 2012 17:39

by PewDiePie » Post

when i try putting the towntest mod and try playing it tells me theres a mod error
There's A Reason Your Heart Is On The Left Side Because Its not Always Right.
-Wiz Khalifa

cornernote
Member
Posts: 844
Joined: Wed Jul 11, 2012 15:02

by cornernote » Post

Can you elaborate a little? Perhaps share with the rest of us the details about that error message? =)

Gage
Member
Posts: 45
Joined: Mon Sep 10, 2012 10:17

by Gage » Post

cornernote wrote:can you paste the error you get? have a look in debug.txt
i cant it wont respawn but its sumthing with the init.lua file ?
nvmd here it is its about the init lua like i suspected
20:57:05: ERROR[main]: Server: Failed to load and run C:\Users\Mary\Documents\minetest-0.4.3-win32\minetest-0.4.3-win32\bin\..\games\dwarves\mods\cornernote-minetest-towntest-db4a1be\init.lua
Last edited by Gage on Thu Oct 04, 2012 00:08, edited 1 time in total.

Gage
Member
Posts: 45
Joined: Mon Sep 10, 2012 10:17

by Gage » Post

please help im running windows7 celeron(intel) and its the lua but i dont no how to code please help!!!!!! O':

Post Reply

Who is online

Users browsing this forum: No registered users and 24 guests