Author Topic: XML files in region descriptors  (Read 2753 times)

Offline TechSY730

  • Core Member Mark V
  • *****
  • Posts: 4,570
XML files in region descriptors
« on: October 26, 2011, 01:29:32 pm »
I noticed that there is a good deal of logic for the region data in plain XML files (not the save files, the global region data stuff). Do these files affect generation of rooms, or behavior of region specific objects, or something else? Would they cause desyncs (whenever multiplayer comes around) if modified, even if only the stuff that affects initial room generation is touched?

Offline x4000

  • Chris McElligott Park, Arcen Founder and Lead Dev
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 31,651
Re: XML files in region descriptors
« Reply #1 on: October 26, 2011, 02:12:18 pm »
Most of this stuff just affects chunk generation, not actual gameplay once it's been generated.  Also, that sort of thing only has an effect from the server in multiplayer, since that's where everything is generated.  Kind of like how the names files in AI War only have an effect on the host, not from the clients.

In terms of what a lot of those XML files do, it's pretty much about how exteriors, interiors, and undergrounds are populated with objects.

Lastly, it's actually 100% completely impossible to get a desync in this game because of the networking model.  Same thing for any action game or FPS game or whatever -- desync has no meaning, because there is not a perfect sync to begin with, nor is a perfect sync required for play.  It's pretty much just RTS games and the like (and some puzzle games or turn-based games, probably) that have the worry of desyncs at all.
Have ideas or bug reports for one of our games?  Mantis for Suggestions and Bug Reports. Thanks for helping to make our games better!

Offline TechSY730

  • Core Member Mark V
  • *****
  • Posts: 4,570
Re: XML files in region descriptors
« Reply #2 on: October 26, 2011, 02:16:47 pm »
Cool. Since this affects mostly spawning behavior and not object behavior or room layout generation, I'm not really that interested into fiddling with it.

However, this may be useful information for someone who does. I could see it being useful for generating things like furniture showrooms or something.

Offline x4000

  • Chris McElligott Park, Arcen Founder and Lead Dev
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 31,651
Re: XML files in region descriptors
« Reply #3 on: October 26, 2011, 02:22:51 pm »
If you want to affect room layout generation, that's in the .txt files inside the RoomMaps section -- for all except the procedural rooms.  The pure procedural aspects of the game can't be tweaked in any way via the xml, and the entity behavior isn't scriptable or anything like that, either.  But yeah, for filling in various types of entities and such in the exteriors, for instance, there's a pretty good amount of flexibility.  And there's one xml file for tweaking particle effects, too.  And others for being able to add dialogue to the game, too, actually.
Have ideas or bug reports for one of our games?  Mantis for Suggestions and Bug Reports. Thanks for helping to make our games better!

Offline zebramatt

  • Master Member Mark II
  • *****
  • Posts: 1,574
Re: XML files in region descriptors
« Reply #4 on: October 26, 2011, 04:45:29 pm »
I might be interested in this, once there's a way to preserve changes over version upgrades!

Also, be careful digging around in all those text files - you never know what you might find out!