readme.txt 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. # China Set: Trains README
  2. 1. General Information
  3. 2. Building
  4. 3. Credits
  5. 4. License
  6. ## 1. General Information
  7. China Set: Trains is the train sector of the China set of OpenTTD.
  8. China Set: Trains is licensed under GPL v2.
  9. Everything in this set is Mainland China rolling stock, in addition of
  10. several wagon types from international/interregional connections.
  11. Locomotives and multiple units featuring refitting are for liveries.
  12. The default setting should be build year livery, which means that
  13. locomotive, multiple unit or coach will remain on the livery scheme as
  14. built. Another option is to manually choose a livery from liveries
  15. already introduced.
  16. Wagon refitting behaves as in normal OpenTTD, there is cargo-specific
  17. graphics on major part of wagons.
  18. List of available parameters:
  19. Loading speed: change wagon loading speed; default to be Normal.
  20. Purchase cost: change purchase cost; default to be 25%.
  21. Running cost: change running cost; default to be 25%.
  22. Cargo age period: change the rate cargo gets aged; default to be 100%.
  23. Cargo age period for freight wagons: change the rate cargo in mail and freight wagons gets aged; independent from the parameter above; default to be 100%.
  24. 25-Series coaches built after 2014 default to be green: change whether the Type 25 Series Coaches purchased after 2014 default to be olive green. In reality, before 2014, they had different colours. Default to be Yes.
  25. ## 2. Building
  26. The source is available on [GitHub](https://github.com/OpenTTD-China-Set/China-Set-Trains). These tools are required to build the GRF:
  27. - nml
  28. - make
  29. - gcc
  30. - gorender, or renderobject
  31. You would need to render all models first, then you can build the GRF.
  32. > [!NOTE]
  33. > The first build will be slow since all models have to be rendered, which is a slow process.
  34. > You can use `make -j n` to speed up the process by running multiple tasks at once where `n` is the task limit.
  35. Using Linux or WSL:
  36. ```bash
  37. #!/bin/bash
  38. # you'll have to install gorender from https://github.com/mattkimber/gorender
  39. # here we use apt for demo
  40. # dependencies
  41. sudo apt install python3
  42. sudo apt install python3-pip
  43. sudo apt install make
  44. pip3 install nml
  45. # we would also need gcc, but that should be already included in most distros
  46. # compiling
  47. make
  48. # alternatively, you could use "make -j n" where n is the total number of parallel tasks you want to run at once.
  49. ```
  50. Using Windows (Scoop is advised here, but non-scoop compilations are also possible):
  51. ```powershell
  52. # we suggest you to use scoop; you can get scoop @ https://scoop.sh
  53. # dependencies
  54. scoop bucket add main
  55. scoop bucket add openttd https://github.com/WenSimEHRP/OpenTTD-Bucket
  56. scoop install python
  57. scoop install make
  58. scoop install openttd/nml
  59. scoop install openttd/gorender
  60. # we would need the gcc compiler in from mingw
  61. scoop install mingw
  62. # compiling
  63. make
  64. # alternatively, you could use "make -j n" where n is the total number of parallel tasks you want to run at once.
  65. ```
  66. ## 3. Credits
  67. Contributors (in alphabetical order):
  68. - Ahyangyi
  69. - babel
  70. - ctx
  71. - DF43110
  72. - EMB190
  73. - FJZer0ich
  74. - Haiyan
  75. - huanfeng
  76. - John Franklin
  77. - Mikhail
  78. - NACHN
  79. - nengyeqing
  80. - shentie106
  81. - WenSim
  82. - wuwu (kaitokiwa)
  83. Thanks to:
  84. - andythenorth
  85. - Belaja Lilija
  86. - dP
  87. - Emperor Jake
  88. - Garlic_Bread42
  89. - KeepinItRail
  90. - peter1138
  91. - planetmaker
  92. - Simo333
  93. - Timberwolf
  94. - 2cc Trainset Team
  95. - Finnish Trainset Team
  96. - JP+ Team
  97. - xUSSR Team
  98. Special thanks to everyone whom thanks is due;
  99. Patch Pack Developers, especially JGR;
  100. OpenTTD Developers; and Chris Sawyer.
  101. ## 4. License
  102. China Set: Trains
  103. Copyright (C) 2024 China Set Team
  104. This program is free software; you can redistribute it and/or modify
  105. it under the terms of the GNU General Public License as published by
  106. the Free Software Foundation; either version 2 of the License, or
  107. (at your option) any later version.
  108. This program is distributed in the hope that it will be useful,
  109. but WITHOUT ANY WARRANTY; without even the implied warranty of
  110. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  111. GNU General Public License for more details.
  112. You should have received a copy of the GNU General Public License along
  113. with this program; if not, please check
  114. https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html