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

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

by kddekadenz » Mon Oct 01, 2012 16:36

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: 323
Joined: Sun Jul 22, 2012 20:56
In-game: qwrwed or Nitro

by qwrwed » Mon Oct 01, 2012 17:16

I keep getting crashes:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
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

by kddekadenz » Mon Oct 01, 2012 19:01

qwrwed wrote:I keep getting crashes:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
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: 323
Joined: Sun Jul 22, 2012 20:56
In-game: qwrwed or Nitro

by qwrwed » Mon Oct 01, 2012 19:24

kddekadenz wrote:
qwrwed wrote:I keep getting crashes:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
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: 2980
Joined: Sun Sep 09, 2012 17:31

by Sokomine » Mon Oct 01, 2012 20:27

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 » Mon Oct 01, 2012 23:49

qwrwed wrote:I keep getting crashes:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
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 » Tue Oct 02, 2012 07:42

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 » Tue Oct 02, 2012 08:47

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: 323
Joined: Sun Jul 22, 2012 20:56
In-game: qwrwed or Nitro

by qwrwed » Tue Oct 02, 2012 15:24

cornernote wrote:
qwrwed wrote:I keep getting crashes:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
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 » Tue Oct 02, 2012 15:44

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 » Tue Oct 02, 2012 23:42

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 » Tue Oct 02, 2012 23:44

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 » Wed Oct 03, 2012 00:11

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 » Wed Oct 03, 2012 00:12

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 » Wed Oct 03, 2012 00:22

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 » Wed Oct 03, 2012 00:26

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 » Wed Oct 03, 2012 21:11

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 » Wed Oct 03, 2012 23:02

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 » Thu Oct 04, 2012 00:05

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 » Thu Oct 04, 2012 00:09

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

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

by cornernote » Thu Oct 04, 2012 00:11

Looks like you have an old version. Delete this folder:
C:\Users\Mary\Documents\minetest-0.4.3-win32\minetest-0.4.3-win32\bin\..\games\dwarves\mods\cornernote-minetest-towntest-db4a1be\

Then download the latest zipball from here:
https://github.com/cornernote/minetest-towntest/zipball/master

Then unzip it into your mods folder. Let me know how you go.
 

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

by Gage » Thu Oct 04, 2012 11:23

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-7d37654\towntest\init.lua
 

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

by Gage » Thu Oct 04, 2012 11:24

it seems that it just wont work UGHHH i think ill just give up ):
Last edited by Gage on Thu Oct 04, 2012 11:24, edited 1 time in total.
 

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

by tkerwel » Thu Oct 04, 2012 11:36

i am not sure but looks for me a bit confused where you put the mods...

it should be in the folder......... \games\minetest_game\mods

in this folder you put all the mods you want to add to minetest....

so i dont understand why there is \games\dwarves\mods...

you sure you put this i the right way ?
++++ Kung walang tiyaga, walang nilaga. ++++
 

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

by Gage » Thu Oct 04, 2012 18:57

i have it in swarves becouse i acsidently deleted mintest game so i have minimal and dwarves can i still put it in the regular mod folder
 

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

by cornernote » Thu Oct 04, 2012 22:19

Try redownload minetest_game
 

Nat Faulk
 

by Nat Faulk » Fri Oct 05, 2012 04:30

Awesome Mod!!

downloaded it yesterday, but it took ages to get it to work having the same error as others are reporting.

finally found that by changing the 100000000000 to a lower value in towntest\init.lua below solved the problem for me

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
-- unique game id, needed to cleanup npcs
towntest.game_id = math.random(100000000000)
 

User avatar
mauvebic
Member
 
Posts: 1550
Joined: Fri Jan 27, 2012 11:32

by mauvebic » Sat Oct 06, 2012 15:49

A few minor tweaks you could get your NPC to survey, map and repair buildings :-)
"Fuck the hat." - Paulie Gualtieri
 

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

by cornernote » Sat Oct 06, 2012 16:55

mauvebic wrote:A few minor tweaks you could get your NPC to survey, map and repair buildings :-)


PilzAdam suggested that he dig the nodes before placing them, and then return what he digs to the chest.

This would achieve the same as a repair. I'll put it in next time i'm tinkering in this mod.
 

RockerGirl4Eva
Member
 
Posts: 30
Joined: Tue Oct 09, 2012 21:13

by RockerGirl4Eva » Fri Oct 12, 2012 15:42

Is there a certain name I need to name this folder for it to work? I've tried renaming it 'towntest' and 'Towntest' but nothing is working, cause once i download the mod and put it in the correct folder the game wont load....so somthing is not right
 

PreviousNext

Return to Mod Releases

Who is online

Users browsing this forum: No registered users and 81 guests

cron