change macro.cmake for install default.xml in simplix

git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@2650 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 5ad22b7b2de731713f2087fb5d8802eb761591a6
Former-commit-id: a2b51c308d1a69e79c4def10586352e33f403ddc
This commit is contained in:
torcs-ng 2010-08-12 17:52:27 +00:00
parent 268bd3f20f
commit 69b6bdbf61
4 changed files with 59 additions and 7 deletions

View file

@ -227,21 +227,21 @@ MACRO(ROBOT_DATA)
MESSAGE(FATAL_ERROR "Cannot install data for a robot module with no specified name")
ENDIF(NOT HAS_ROBOTNAME)
SET(REAL_SHIPFILES) # Reset the list (remember, it's a CMakeLists.txt global variable :-()
IF(HAS_SHIPFILES)
IF(HAS_EXTRA_SHIP)
IF(HAS_SHIPPREFIX)
FOREACH(SHIP_FILE ${SHIPFILES})
FOREACH(SHIP_FILE ${EXTRA_SHIP})
LIST(APPEND REAL_SHIPFILES ${SHIPPREFIX}/${SHIP_FILE})
ENDFOREACH(SHIP_FILE ${SHIPFILES})
ENDFOREACH(SHIP_FILE ${EXTRA_SHIP})
ELSE(HAS_SHIPPREFIX)
SET(REAL_SHIPFILES ${SHIPFILES})
SET(REAL_SHIPFILES ${EXTRA_SHIP})
ENDIF(HAS_SHIPPREFIX)
ENDIF(HAS_SHIPFILES)
ENDIF(HAS_EXTRA_SHIP)
IF(HAS_SHIPPREFIX)
LIST(APPEND REAL_SHIPFILES ${SHIPPREFIX}/${ROBOTNAME}.xml)
ELSE(HAS_SHIPPREFIX)
LIST(APPEND REAL_SHIPFILES ${ROBOTNAME}.xml)
ENDIF(HAS_SHIPPREFIX)
#MESSAGE(STATUS "Files to install for ${ROBOTNAME} robot: ${REAL_SHIPFILES}")
MESSAGE(STATUS "Files to install for ${ROBOTNAME} robot: ${REAL_SHIPFILES}")
TORCS_INSTALL_FILES(DATA drivers/${ROBOTNAME} FILES ${REAL_SHIPFILES})
IF(HAS_SHIPSUBDIRS)

View file

@ -76,7 +76,7 @@ ROBOT_MODULE(NAME ${ROBOT_NAME} INTERFACE ${ROBOT_INTERFACE} SOURCES ${ROBOT_SOU
CLONENAMES ${ROBOT_CLONES})
# The data associated to the ubiquitous robot module and its clones.
SET(ROBOT_SHIP logo.rgb readme.txt)
SET(ROBOT_SHIP logo.rgb readme.txt default.xml)
SET(ROBOT_SHIPSUBDIRS 0 trb1-cavallo-360rb tracks
ls1-archer-r9 ls1-cavallo-570s1 ls1-newcastle-fury ls1-taipan-ltsr ls1-toro-rgt ls1-vulture-v6r ls1-zentek-z7r

View file

@ -0,0 +1,26 @@
// simplix readme.txt 03. Dez. 2008
//
// Hints
Skilling:
The skilling is used to define the range of lap times for the gamers opponents.
This can be done on two separate levels.
The first level is the global level defined by Andrew Sumner and used for the Career mode of Mart Kelder.
If the supercarpackage of Andrew is installed, there is the file ...\torcs\config\raceman\extra\skill.xml.
It contains one parameter to be set in the range of 0.0 (fast) to 10.0 (slow).
To Enable/Disable the skilling for all cars of a robot there is a file
...\drivers\robotname\default.xml.
Here you can enable skilling (1) or disable it (0).
If needed, the individual skill of a car can be set in the
...\drivers\robotname\cartype\default.xml.
The parameter skill in "simplix private" can be set to
-1 (disable skilling for this car),
0.0 (normal skilling as defined in extra\skill.xml) or
values up to 10.0 (make car drive slower).
The individual skilling isn't needed here, the trb1 carset is balanced!

View file

@ -0,0 +1,26 @@
// simplix readme.txt 03. Dez. 2008
//
// Hints
Skilling:
The skilling is used to define the range of lap times for the gamers opponents.
This can be done on two separate levels.
The first level is the global level defined by Andrew Sumner and used for the Career mode of Mart Kelder.
If the supercarpackage of Andrew is installed, there is the file ...\torcs\config\raceman\extra\skill.xml.
It contains one parameter to be set in the range of 0.0 (fast) to 10.0 (slow).
To Enable/Disable the skilling for all cars of a robot there is a file
...\drivers\robotname\default.xml.
Here you can enable skilling (1) or disable it (0).
If needed, the individual skill of a car can be set in the
...\drivers\robotname\cartype\default.xml.
The parameter skill in "simplix private" can be set to
-1 (disable skilling for this car),
0.0 (normal skilling as defined in extra\skill.xml) or
values up to 10.0 (make car drive slower).
The individual skilling isn't needed here, the trb1 carset is balanced!