[b42] Problems adding events to a zone

All development conversation and discussion takes place here

Moderator: Moderator

Post Reply
Message
Author
drayath
Wayist
Posts: 22
Joined: Sat Nov 27, 2010 10:53 pm

[b42] Problems adding events to a zone

#1 Post 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?

darkgod
Master of Eyal
Posts: 10750
Joined: Wed Jul 24, 2002 9:26 pm
Location: Angolwen
Contact:

Re: [b42] Problems adding events to a zone

#2 Post by darkgod »

Hum this looks good though, are you sure your file parses correctly ?
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning ;)

drayath
Wayist
Posts: 22
Joined: Sat Nov 27, 2010 10:53 pm

Re: [b42] Problems adding events to a zone

#3 Post 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.

darkgod
Master of Eyal
Posts: 10750
Joined: Wed Jul 24, 2002 9:26 pm
Location: Angolwen
Contact:

Re: [b42] Problems adding events to a zone

#4 Post by darkgod »

Cool! Now go post an addon for your event !
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning ;)

Post Reply