Talk:External Services and Tools/API Documentation

From BattleMaster Wiki
Jump to navigation Jump to search

I noticed the following with regional data:

  • The population value seems to be the region's max population, not the current population value. The current pop for every region is shown on the region listing for each island, and available from the region details by clicking any realm icon on the dynamic map, so it's not like this is privileged information.
  • The "lord" value provides only the character's first name, and not the family name.

--Indirik 14:21, 25 March 2009 (UTC)

The first is intentional, see dev list. The second is simply a ton easier right now, and might be sufficient. At least for the moment, let's leave it at that. We can always improve it later. :-) --Tom 14:26, 25 March 2009 (UTC)
The first is intentional, see dev list. Sorry, I'm not on that one. But apparently the pop values on the region list should not be showing actual population? --Indirik 14:29, 25 March 2009 (UTC)
Correct. That would allow automatic monitoring of damage/recovery cycles of realms. --Tom 18:00, 25 March 2009 (UTC)
In terms of the second, you can use the world ID already supplied and the first name of the character to find out about them using noble.php. --Flightwing 18:57, 25 March 2009 (UTC)
Good point. When the noble.php script is official, I'll have to see if I can do something with that. Shouldn't be too difficult. --Indirik 19:21, 25 March 2009 (UTC)

There's no indication of a realm a noble is in, only their continent. And can there be a tag for their position(s)?' --Flightwing 18:53, 25 March 2009 (UTC)

I have been told that will be added when the new version of the noble.php script is approved. --Indirik 19:21, 25 March 2009 (UTC)

Name instead of ID

No guarantee that this remains available. A string comparison is more expensive than accessing a numeric primary key. --Tom 19:46, 25 March 2009 (UTC)

If you get rid of the name link, then we won't be able to dynamically link to characters from, for example, the region lord's name on region pages, or council member's names on realm pages. Unless you added character ID data to the region and realm data sets. --Indirik 21:30, 25 March 2009 (UTC)
Err, what? What would you need the ability to fetch character data from a name from? All character names on this wiki have a string type anyways, because there is no consistent naming that we could link to. --Tom 23:25, 25 March 2009 (UTC)


Diplomatic Relations

Would be useful, especially if you add the date modified to the info. --Jmadsen 22:27, 25 March 2009 (UTC)

Impossible as the game engine doesn't keep track. Also, wait for the new treaty system before adding anything like that. --Tom 23:25, 25 March 2009 (UTC)
I don't understand the first part. All of this data is coming from the db, is it not? For the second part, under the new system, how will other realms know when two realms are at war?