Page 1 of 1

[b42] Problems adding events to a zone

Posted: Mon Nov 12, 2012 6:08 pm
by drayath
I have a new event which i am trying to add to the ID without notable success.

Event has been tested in isolation (via shortcut key to manually add to zone)

But adding the event to the \data\zones\infinite-dungeon\events.lua (as {name="forge-of-gods", minor=true, percent=100},) seems to have little effect.

Log files shows that before adding:
Assigned events list [31] = {

And after adding
Assigned events list [31] = {

Even deleting all the existing events from this file seem to leave the available event list the same size.

Note 1) If i add the event into \data\general\events\groups\majeyal-generic.lua it will correctly show up.

Note 2) Presently adding the files directly to the tome-0.9.42.team file to ensure nothing to do with addon loading, but see the same issue with both.

Any ideas?

Re: [b42] Problems adding events to a zone

Posted: Mon Nov 12, 2012 7:40 pm
by darkgod
Hum this looks good though, are you sure your file parses correctly ?

Re: [b42] Problems adding events to a zone

Posted: Mon Nov 12, 2012 10:40 pm
by drayath
Tracked down the issue.

Looks like i needed to begin a new game (or at least leave and re-enter the zone if it wasn't the Infinite Dungeon) before changes to zone events are picked up.

Zone events loaded from tome\Zone.onLoadZoneFile()
Called from Engine\Zone.load() but only if not loading the zone from the players save file.

Re: [b42] Problems adding events to a zone

Posted: Tue Nov 13, 2012 12:30 am
by darkgod
Cool! Now go post an addon for your event !