Is there any hierarchy to events, or are all event/eventList names available in every context?
For instance, if I add a quest, can I attach anything from a flat list of every top-level name in all events*.xml files?
Are those xml files essentially concatenated together, or are some files ignored based on circumstance?
And eventLists are completely interchangeable with events and vice versa, right?
I'm pondering an interface for event manipulation in the Profile/SavedGame Editor (v12's officially out btw)...
...
Hmm more weirdly, could a normally anonymous event within a choice tag be given a name and referenced from elsewhere? (seems unlikely)
Questions About Event Namespaces
-
- Posts: 792
- Joined: Thu Oct 25, 2012 12:01 pm
Questions About Event Namespaces
Last edited by Vhati on Wed Jan 23, 2013 11:12 am, edited 1 time in total.
- Kieve
- Posts: 944
- Joined: Tue Sep 18, 2012 2:21 pm
Re: Questions About Event Namespaces
I'm not 100% clear on what you're asking, but as I understand it, Events.xml is shared across all sectors and instances. Events_ships.xml is likewise universal, but tied to ship (defeat) events - escape, deadcrew, destroyed, and the like. Any calls to an eventlist from those instances should point towards events.xml.
Events_[sector].xml are called only within that sector, IE rock/mantis/engi/... specific events and aren't loaded until you hit that particular sector.
Also, while it's my understanding that event and eventlist names are independent and won't cause naming conflicts with each other, it's probably best to differentiate them by name anyway.
Events_[sector].xml are called only within that sector, IE rock/mantis/engi/... specific events and aren't loaded until you hit that particular sector.
Also, while it's my understanding that event and eventlist names are independent and won't cause naming conflicts with each other, it's probably best to differentiate them by name anyway.
-
- Posts: 792
- Joined: Thu Oct 25, 2012 12:01 pm
Re: Questions About Event Namespaces
I'm trying to distinguish mod convention from what is technically possible.Kieve wrote:I'm not 100% clear on what you're asking, but as I understand it, Events.xml is shared across all sectors and instances. Events_ships.xml is likewise universal, but tied to ship (defeat) events - escape, deadcrew, destroyed, and the like. Any calls to an eventlist from those instances should point towards events.xml.
Events_[sector].xml are called only within that sector, IE rock/mantis/engi/... specific events and aren't loaded until you hit that particular sector.
For instance, are names in events_rock.xml inaccessible when you're not currently in a rock sector (preventing a custom engi sector event from spawning a quest beacon with "ROCK_LOOTING")?
If they're all universal, the xml files are essentially concatenated together within the engine, and I won't have to add code to hide illegal names in my interface. The separate xml files would only have amounted to an organizational convenience in that case.
What I meant there was "Can an eventList reference be substituted wherever an event is required, and vice versa?"Kieve wrote:Also, while it's my understanding that event and eventlist names are independent and won't cause naming conflicts with each other, it's probably best to differentiate them by name anyway.Vhati wrote:And eventLists are completely interchangeable with events and vice versa, right?
Can eventLists be nested within eventLists, etc?
It's good to know events' and lists' names don't collide though. I forgot to ask that.
- Kieve
- Posts: 944
- Joined: Tue Sep 18, 2012 2:21 pm
Re: Questions About Event Namespaces
For that, you'd want to turn your attention to sector_data.xmlVhati wrote:I'm trying to distinguish mod convention from what is technically possible.
For instance, are names in events_rock.xml inaccessible when you're not currently in a rock sector (preventing a custom engi sector event from spawning a quest beacon with "ROCK_LOOTING")?
Seems that's the one controlling which events appear in which sectors. What I can't find in that file is anything that connects "Mantis Sector" exclusively with "events_Mantis" - or anything to that effect - which leads me to believe the event files are all loaded up at the same time, and only divided up / named for the sake of convenience and organization, not out of a specific need on the game engine's part.
You can definitely load a second eventList from within the first. I don't know if you can directly nest them.Vhati wrote:What I meant there was "Can an eventList reference be substituted wherever an event is required, and vice versa?"
Can eventLists be nested within eventLists, etc?
Code: Select all
<eventList name="meep">
<event> <!--Definitely works-->
<text>Meep?</text>
<choice>
<text>Meep!</text>
<event load="No_Meep"/>
</choice>
</event>
<event load="Maybe_Meep"/> <!--Not sure -->
</eventList>
There's a lot of possibility there I haven't explored or experimented with yet.
I was mistaken. I just double-checked and <event load=""> will call whatever name you give it, event or eventList. Haven't tested it fully but just from that I'd say definitely keep them separated name-wise.It's good to know events' and lists' names don't collide though. I forgot to ask that.
-
- Posts: 194
- Joined: Fri Nov 16, 2012 11:45 pm
Re: Questions About Event Namespaces
Kieve - the default sectorData.xml muddies this argument a little bit.Kieve wrote:I'm not 100% clear on what you're asking, but as I understand it, Events.xml is shared across all sectors and instances. Events_ships.xml is likewise universal, but tied to ship (defeat) events - escape, deadcrew, destroyed, and the like. Any calls to an eventlist from those instances should point towards events.xml.
Events_[sector].xml are called only within that sector, IE rock/mantis/engi/... specific events and aren't loaded until you hit that particular sector.
Also, while it's my understanding that event and eventlist names are independent and won't cause naming conflicts with each other, it's probably best to differentiate them by name anyway.
Most of the events in sectorData.xml actually aren't referenced from events.xml - they mainly reference eventLists in newEvents.xml. And newEvents.xml DEFINITELY calls events across sectors - for example, a sector may include "HOSTILE1", which references an eventsList in newEvents.xml, which references "AUTO_ASTEROID" in events.xml as well as "PIRATE_CHOICE" in events_pirate.xml.
It's possible that newEvents is treated specially and can cross-load, but I think it's way more likely that you can cross-load events from pretty much wherever you want.
You are the weak, and I am the tyranny of evil men - but I'm trying, I'm trying real hard to be the shepherd.
"Wow, that Kieve guy is one angsty nerd eh."
Sonata - "Best use of Common Lisp in an indie space roguelike!"
"Wow, that Kieve guy is one angsty nerd eh."
Sonata - "Best use of Common Lisp in an indie space roguelike!"
- Kieve
- Posts: 944
- Joined: Tue Sep 18, 2012 2:21 pm
Re: Questions About Event Namespaces
Yeah, I'm finding myself mistaken about a number of things regarding events. Shows how much I really work with them, eh?
Guess I'll stick to the shipbuilding for now.
Guess I'll stick to the shipbuilding for now.

-
- Posts: 194
- Joined: Fri Nov 16, 2012 11:45 pm
Re: Questions About Event Namespaces
Events are hilarious because there are a bunch of red herrings, and not everything in vanilla works. One file only exists because Justin was dicking around with some stuff that doesn't work yet, and another was probably developed specifically for a trade show or something. SectorData calls event lists from events and newEvents pretty indiscriminately.Kieve wrote:Yeah, I'm finding myself mistaken about a number of things regarding events. Shows how much I really work with them, eh?
Guess I'll stick to the shipbuilding for now.
All that's true and yet I love them because this is the area where the most is possible!
You are the weak, and I am the tyranny of evil men - but I'm trying, I'm trying real hard to be the shepherd.
"Wow, that Kieve guy is one angsty nerd eh."
Sonata - "Best use of Common Lisp in an indie space roguelike!"
"Wow, that Kieve guy is one angsty nerd eh."
Sonata - "Best use of Common Lisp in an indie space roguelike!"
-
- Posts: 792
- Joined: Thu Oct 25, 2012 12:01 pm
Re: Questions About Event Namespaces
Confirmed.thashepherd wrote:I think it's way more likely that you can cross-load events from pretty much wherever you want.
I just edited a saved game at sector 1, to add a quest that triggered "CRYSTAL_FIGHT" from events_crystal.xml, which spawned a Crystal Bomber in civilian space. ^_^
-
- Posts: 792
- Joined: Thu Oct 25, 2012 12:01 pm
Re: Questions About Event Namespaces
The Profile/SavedGame Editor (v13) can add/edit Quests now.
You can plant arbitrary events anywhere on the sector map.
It only shows event names (no <text> excerpts),
so if you're unsure what a given event does, have the xml open in a text editor.
You can plant arbitrary events anywhere on the sector map.
It only shows event names (no <text> excerpts),
so if you're unsure what a given event does, have the xml open in a text editor.
-
- Posts: 245
- Joined: Mon Oct 08, 2012 4:24 pm
Re: Questions About Event Namespaces
Sry if this was already answered, but yes they are all concatenated together in data.dat. You can reference eventList in "another eventList", as they are just lists of events. You can call an event in any of the files for any of the sectors.