Site Tools

en:database_plr

Database_plr

The database_plr.h .cpp are files generated from xml files(like all files with the remark that they are generated automatically).

To compile the files there's always a xxx.xslt and a xxx.xml.

For the database_plr.h/.cpp files they are generated from/ryzom/common/data_common/database.xml

The .xslt can be found at code/ryzom/common/src/game_share/generate_client_db.xslt

If you want to change database_plr.h/.cpp, you need to change database.xml commands:

On Linux/MacOS go to code/ryzom/common/src/game_share/ and use:

$ xsltproc --stringparam filename database --stringparam bank PLR --stringparam output header --stringparam side server --output ../../../server/src/entities_game_service/database_plr.h generate_client_db.xslt ../../data_common/database.xml
$ xsltproc --stringparam filename database --stringparam bank PLR --stringparam output cpp --stringparam side server --output ../../../server/src/entities_game_service/database_plr.cpp generate_client_db.xslt ../../data_common/database.xml

On Windows:

msxsl R:\code\ryzom\common\data_common\database.xml R:\code\ryzom\common\src\game_share\generate_client_db.xslt output=header side=server bank=PLR filename=database -o R:\code\ryzom\server\src\entities_game_service\database_plr.h
msxsl R:\code\ryzom\common\data_common\database.xml R:\code\ryzom\common\src\game_share\generate_client_db.xslt output=cpp side=server bank=PLR filename=database -o R:\code\ryzom\server\src\entities_game_service\database_plr.cpp

Based on: https://ryzomcore.atlassian.net/wiki/display/RC/Adding+Factions+and+Tribe.

en/database_plr.txt · Last modified: 2016/12/28 14:08 by Domperss