![]() |
Re: Loading other bot wayponts (standard format?) & Standardized directory structure?
I'd say, lets first get to know what information we need to store for PMB, because this is about his extra data. If we don't use that we would not need any luxurious format.
So, PMB, what do you need? If you can give it in a list like: int numleafs; vector corners[]; etc... we know atleast how to get it done, i mean, we could simply do this as a format, and skip this whole XML thingy, which is bloatware imo for this thing: Code:
; Vector #1, general information for all bots |
Re: Loading other bot wayponts (standard format?) & Standardized directory structure?
I also have an ini parser ready to use, anyway:
I use 2 sorts of nav files. .map files which hold the world data, that is, the global navmesh, that all bots know. .nav files, which are the LINKS to different nodes of this navmesh, along with particular info about them, which are specific for each bot. The more a bot discovers links between nodes, the more it knows the map, and the better it navigates. I propose not to worry about this separation, and in order to simplify things I'll sacrify the per-bot autonomy (only in this project, not in my bot code). I can also rebuild the topology hashtable myself out of the walkfaces pool, so it's OK if I drop it. The file will need to have the following information, a minima. Arranged or not like this, anyway this one is the format I use - I can't simplify it more. Quote:
|
Re: Loading other bot wayponts (standard format?) & Standardized directory structure?
Quote:
Possible? |
Re: Loading other bot wayponts (standard format?) & Standardized directory structure?
I think RACC would eventually not even need nav data from us, as his bots are capable of learning maps more quickly then bots plotting nodes. Actually, RACC should know what surfaces are walkable already, it just needs some confirmation for that. That would mean, only 1 round to play and you already have data to play with.
I see why it is difficult to port navmesh to nodes and vice-versa, so i think we should focus on this standard format? Do we agree on the following format? Code:
; A walkable vector |
Re: Loading other bot wayponts (standard format?) & Standardized directory structure?
Quote:
It may be harder to read (for a human, that is) and it surely is bulky, but what universal applicability concerns, it is hard to beat. It's a world standard and you can use techniques like DTD to let your webbrowser verify the files - VERY convenient. You might have guessed it, but I would go with XML... |
Re: Loading other bot wayponts (standard format?) & Standardized directory structure?
yes,its nice you can read it with a browser, but whats the use of that?
|
Re: Loading other bot wayponts (standard format?) & Standardized directory structure?
Not only read, but verify. If (for whatever reason) one coordinate is missing in your Ini-file, your reader will go havoc. If you load an XML-file with a missing coordinate in your browser, it will print out something like "Error in line xxx" - at least if you are using DTDs.
|
Re: Loading other bot wayponts (standard format?) & Standardized directory structure?
Why would the readed go havoc ? If it's correctly written it should check for such cases...
I understand your concern for XML but elitism is no good for me, and I'd never sacrify the readability of the data to some obscure universal standard, however these are only my cent and a half. |
Re: Loading other bot wayponts (standard format?) & Standardized directory structure?
It appears that PMB's method of navigation should in theory be better than all the others. If this is so, then why not adopt his method as the standard? I suppose one problem will be that the method assumes a certain type of map structure is to be parsed, so it may not be universally applied - I may be wrong about this however. What do you guys think about this one?
As for using XML or not, it really boils down to knowing if using it will provide more advantages than disadvantages over other potential formats. XML is an accepted standard format, and web browsers can read it and look for syntax errors. While this is true, many errors cannot be detected by a generic XML reader because the generic reader cannot do anything with XML other than verfiy that the XML syntax looks ok. The XML tags are all customizable and a special interpreter is needed to make sense out of the supplied XML code. Is there a BIG advantage that XML will give us? If I understood coorectly what XML is all about, it is clear the idea is potentially a good one because the basic infrastructure for defining new mark up languages is agreed on universally as a standard. However, any new markup language that is created out of XML remains useless unless a special reader is developed for it. For example the MathML(tm) specification won't help anyone unless a special reader is aquired and installed for your browser. If it is not installed, you won't get any thing usefull from it. Essentially XML is about as much of a standard to web browsers as ascii/unicode is to text processors. The world has only agreed that a certain format is to be used, but what the content represents is up to the individual application. So, no matter if XML is used or not, the only advantages we'll see is that a web browser can read it, and if a special interpreter is installed for the browser, the browser may be able to do something more with it. Is having a web browser read and interpret the XML data something we want, or need? |
Re: Loading other bot wayponts (standard format?) & Standardized directory structure?
Quote:
Quote:
[NAVMESH_INFO] ... [/NAVMESH_INFO] [WAYPOINT_INFO] ... [WAYPOINT_INFO] |
All times are GMT +2. The time now is 10:46. |
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.