Page 1 of 1

Adding a new zone?

Posted: Mon Jul 02, 2012 2:36 pm
by marvalis
Right, I have been trying to add a new zone but I don't seem to be able to make it happen.

Can anyone help me fix this?

This is how far I got:

* Make a new addon, call it

Code: Select all

tome-armory
* Overload it with:

Code: Select all

/data/zones/armory-west/
 ./grids.lua
 ./objects.lua
 ./traps.lua
 ./npcs.lua
 ./zone.lua

/data/zones/wilderness/grids.lua

/data/maps/wilderness/eyal.lua
/data/maps/zones/armory-west.lua
I dont even think my addon is loading.
Yet I see no problem with init.lua:

Code: Select all

long_name = "Armory in the west"
short_name = "armory"
for_module = "tome"
version = {3,9,35}
weight = 100
author = { "marvalis"}
homepage = "http://tome.te4.org/"
description = [[Add the armory in the west.]]
overload = true
superload = false
hooks = false
data = false
tome-armory.zip
(19.56 KiB) Downloaded 176 times

Re: Adding a new zone?

Posted: Mon Jul 02, 2012 3:02 pm
by faustgeist
The ability to add new maps, towns and zones would be a *fantastic* element to the ADDON feature.

While I do not know the code to do it... I will start working on some projects to add one day soon!
~R

Re: Adding a new zone?

Posted: Mon Jul 02, 2012 3:10 pm
by marvalis
Turns out I forgot to change the version in init.lua, and this was preventing my addon from loading.

Now I just have to find out how to place the items and npc's I want.

Re: Adding a new zone?

Posted: Mon Jul 02, 2012 4:14 pm
by Goblinz
here this example addon loads new items and the same techique is used to load monsters
https://gitorious.org/te4/tome-example-addon