Bank="PLR" means what? (solved)

Added by sambsp over 4 years ago

I saw this sentence in database.xml, many of them were listed as one of the properties of "Branch".


Replies (3)

RE: Bank="PLR" means what? - Added by sfb over 4 years ago

sambsp,

If you look very near the top of the file you should see this:

1  <bank_superclass>
2    <bank name="PLR" 
3          class="CCDBSynchronised" />

In code/ryzom/common/src/game_share you'll find a file called generate_client_db.xslt. This file is an XSL Transform which takes the database.xml as an input and outputs new classes. One of the classes that is output is CBankAccessor_PLR which is generated from this <bank> tag above. You can find the resulting file for this in code/ryzom/server/src/entities_game_service/databse_plr.h (and .cpp).

If you ever need to regenerate these classes (which is rare/unlikely) you use the xsltproc command-line tool (in an Debian/Ubuntu package of the same name) or you can use a GUI tool like oXygen (non-free.)

example:

$ xsltproc code/ryzom/common/src/game_share/generate_client_db.xslt code/ryzom/common/data_common/database.xml

The resulting class is generated in the EGS and acts as an accessor to a CDB structure. The CDB system is a centralized shared database that the EGS keeps in sync with the client database.

HTH!

Thanks,
sfb
/s

RE: Bank="PLR" means what? - Added by sambsp over 4 years ago

Very clear and I get enough than I hope. Thank u very much.

RE: Bank="PLR" means what? (solved) - Added by sambsp over 4 years ago

For those need xsltproc on Windows, you can download these 4 zip files from ftp://ftp.zlatkovic.com/pub/libxml/ :

1, iconv-1.9.2.win32.zip;
2, libxml2-2.7.7.win32.zip;
3, libxslt-1.1.26.win32.zip;
4, zlib-1.2.5.win32.zip.

unzip all 4 files after you download, then you can new a folder "xsltproc", copy all files from "bin" of these 4 unziped folders to folder "xsltproc", DONE.

(1-3/3)