Compare commits

..

12 Commits

Author SHA1 Message Date
ZhilkinSerg e184c6a74e Disallow SDL orientation changes 2020-05-20 15:16:59 +03:00
ZhilkinSerg 1a0a534d80 Update Android precompiled dependencies (2020-04-18) 2020-05-20 15:16:05 +03:00
Qrox a07ce29fc6 Fix crash when NPC gives player equipment 2020-04-12 00:08:11 -05:00
tenmillimaster 0f1f2f2921 bp migrations & recipes 2020-04-12 00:08:11 -05:00
Tiefoone 707191c2e4 Floating point error correction. (#39230) 2020-04-12 00:08:11 -05:00
Tiefoone fc47a700b0 Prevent nearby NPC-owned items showing up in trades unless they are a shopkeeper. 2020-04-12 00:08:11 -05:00
Kevin Granade 8eafa19a41 Bypass downing immunity when knocked down due to instability. 2020-04-12 00:08:11 -05:00
ZhilkinSerg 5df5337af3 Add savegame migration for rural house 2020-04-12 00:08:11 -05:00
Tiefoone 49016c0de7 Include aluminum in TV materials to prevent cutting into plastic chunks. 2020-04-12 00:08:11 -05:00
ZhilkinSerg 3244627ef2 Misc small fixes for Android builds (2020-04-02) (#39168)
* Only build experimental flavor on Travis

* Guard unused function in Android builds

* Ignore pragmas unknown to Android compiler
2020-04-12 00:08:11 -05:00
KurzedMetal 54fe9cab04 Fix wield action costing double than it should 2020-04-12 00:08:11 -05:00
saurocyte 958d22b091 Fix negative explosion damage 2020-04-12 00:08:11 -05:00
3938 changed files with 5117381 additions and 6653901 deletions
+19 -21
View File
@@ -1,28 +1,26 @@
version: '{branch}.{build}'
image: Visual Studio 2019
configuration: Release
platform: x86
shallow_clone: true
os: Windows
clone_folder: C:\Projects\Cataclysm-DDA
shallow_clone: true
pull_requests:
do_not_increment_build_number: false
environment:
matrix:
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
PROJECT: /msvc-full-features/Cataclysm-vcpkg-static.sln
COMPILER: msvc2017
TOOLCHAIN: msvc15
PLATFORM: x64
CONFIGURATION: Release
APPVEYOR_SAVE_CACHE_ON_ERROR: true
matrix:
fast_finish: false
cache:
- c:\tools\vcpkg\installed
- c:\Users\appveyor\AppData\Local\vcpkg\
- 'c:\tools\vcpkg\installed'
install:
- cmd: cd c:\tools\vcpkg\
- cmd: git pull
- cmd: bootstrap-vcpkg.bat -disableMetrics
- cmd: vcpkg --triplet %PLATFORM%-windows-static install sdl2 sdl2-image sdl2-mixer[dynamic-load,libflac,mpg123,libmodplug,libvorbis] sdl2-ttf gettext --recurse
# Install dependency packages
- cmd: vcpkg --triplet %PLATFORM%-windows-static install sdl2 sdl2-image sdl2-mixer sdl2-ttf gettext
build:
project: /msvc-full-features/Cataclysm-vcpkg-static.sln
parallel: true
project: /msvc-full-features/Cataclysm-vcpkg-static.sln
verbosity: minimal
only_commits:
files:
- '.appveyor.yml'
- 'msvc-full-features/**'
- 'src/**'
- 'tests/**'
branches:
only:
- master
+7 -2
View File
@@ -13,7 +13,6 @@ cert-*,\
-cert-err58-cpp,\
clang-diagnostic-*,\
cppcoreguidelines-slicing,\
google-explicit-constructor,\
llvm-namespace-comment,\
misc-*,\
modernize-*,\
@@ -36,9 +35,12 @@ readability-*,\
-modernize-return-braced-init-list,\
-modernize-use-default-member-init,\
-modernize-use-emplace,\
-modernize-use-transparent-functors,\
-performance-for-range-copy,\
-performance-inefficient-vector-operation,\
-performance-noexcept-move-constructor,\
-performance-implicit-conversion-in-loop,\
-performance-inefficient-algorithm,\
-performance-inefficient-string-concatenation,\
-performance-type-promotion-in-math-fn,\
-performance-unnecessary-value-param,\
@@ -49,9 +51,12 @@ readability-*,\
-readability-isolate-declaration,\
-readability-magic-numbers,\
-readability-named-parameter,\
-readability-redundant-control-flow,\
-readability-redundant-declaration,\
-readability-redundant-preprocessor,\
"
WarningsAsErrors: '*'
HeaderFilterRegex: '(src|test|tools).*'
HeaderFilterRegex: '(src|test).*'
FormatStyle: none
CheckOptions:
- key: readability-uppercase-literal-suffix.NewSuffixes
-43
View File
@@ -1,43 +0,0 @@
# options affecting formatting
format:
# how wide to allow formatted cmake files
line_width: 100
# how many spaces to tab for indent
tab_size: 4
# if true, separate flow control names from their parentheses
separate_ctrl_name_with_space: true # currently ignored by cmake-lint
# if true, separate function names from parentheses with a
separate_fn_name_with_space: false # currently ignored by cmake-lint
# if a statement is wrapped to more than one line, than dangle
# the closing parenthesis on its own line.
dangle_parens: false # currently ignored by cmake-lint
# Format command names consistently as 'lower' or 'upper' case
# 'canonical': like in official documentation
command_case: 'canonical' # currently ignored by cmake-lint
# Format keywords consistently as 'lower' or 'upper' case
keyword_case: 'upper' # currently ignored by cmake-lint
# options affecting comment reflow and formatting
markup:
# enable comment markup parsing and reflow
enable_markup: false
# options affecting linter
lint:
# list of lint codes to disable
# C0113: Missing COMMENT in statement which allows it
disabled_codes: ['C0113']
# regular expression pattern describing valid function names
function_pattern: '[a-z_]+'
# regular expression pattern describing valid names for private variables
# WEIRD: strangely named "directory variable name" in lint output
private_var_pattern: '_[0-9A-Z_]+'
# regular expression pattern describing valid names for public variables (strangely named "directories"?)
# WEIRD: strangely named "directory variable name" in lint output
public_var_pattern: '[0-9A-Z]+'
# regular expression pattern describing valid macro names
macro_pattern: '[a-z_]+'
# regular expression pattern describing valid names for function/macro
# arguments and loop variables
argument_var_pattern: '[A-Z][A-Z0-9_]+'
# require no more than this many newlines between statements
max_statement_spacing: 2
-11
View File
@@ -1,11 +0,0 @@
[flake8]
exclude = .git,__pycache__,lang/json
ignore =
# E265 forces comments to have a space after the '#'. We have a bunch of
# optional debugging code commented out this way, and not having a space is
# a convenient way to distinguish it from proper comments. Maybe we should
# delete that code, but unless that happens leaving E265 disabled.
E265,
# W503 and W504 require line breaks after or before binary operators; you
# can only have one enabled
W504
+2 -2
View File
@@ -1,8 +1,8 @@
# Automatically normalize line endings for all files
# Automatically normalise line endings for all files
# detected as text (Convert CRLF => LF).
* text=auto
# Explicitly normalize files with these extensions in
# Explicitly normalise files with these extensions in
# case Git doesn't detect them as text for some reason.
*.c text
*.cbp text
+5 -8
View File
@@ -1,10 +1,10 @@
#Note that despite github calling these "owners", a better term would be "alerts"
#Everything in the cataclysm repository remains under a creative commons license, nobody owns the mods.
#In fact, the code "owners" designation is meant to encourage third party
#individuals to contribute to the mod, with the curators notified for reviews.
#individuals to contribute to the mod, with the maintainers notified for reviews.
/data/mods/Aftershock/ @Maleclypse @John-Candlebury @Mom-Bun
/data/mods/DinoMod/ @ephemeralstoryteller @damien @LyleSY
/data/mods/Aftershock/ @Malecypse @John-Candlebury
/data/mods/DinoMod/ @damien @ethankaminski @LyleSY
/data/mods/Graphical_Overmap/ @Kilvoctu @Larwck
/data/mods/MMA/ @Hymore246
/data/mods/No_Fungi/ @I-am-Erk
@@ -13,12 +13,11 @@
/data/mods/crt_expansion/ @Soupster89
/data/mods/desertpack/ @davidpwbrown
/data/mods/generic_guns/ @tenmillimaster
/data/mods/Magiclysm/ @KorGgenT
/data/mods/My_Sweet_Cataclysm/ @Fris0uman
/data/mods/magiclysm/ @KorGgenT
/data/mods/my_sweet_cataclysm/ @Fris0uman
/data/mods/ruralbiome/ @I-am-Erk
/data/mods/speedydex/ @KorGgenT
/data/mods/stats_through_kills/ @KorGgenT
/data/mods/Dark-Skies-Above/ @ephemeralstoryteller
magic*.cpp @KorGgenT
magic*.h @KorGgenT
@@ -27,5 +26,3 @@ magic*.h @KorGgenT
/data/json/npcs/Backgrounds/ @I-am-Erk
/data/json/snippets/ @I-am-Erk
/gfx/ @I-am-Erk
/tools/ @int-ua
/lang/ @BrettDong
+18 -49
View File
@@ -1,6 +1,6 @@
# Contribute
**Opening a new issue?** Please read [ISSUES.md](../ISSUES.md) first.
**Opening new issue?** Please read [ISSUES.md](../ISSUES.md) first.
Contributing to Cataclysm: Dark Days Ahead is easy — simply fork the repository here on GitHub, make your changes, and then send us a pull request.
@@ -65,9 +65,9 @@ int foo;
```
Helpful pages:
* [Doxygen Manual - Special Commands](https://www.doxygen.nl/manual/commands.html)
* [Doxygen Manual - Standard Markdown](https://www.doxygen.nl/manual/markdown.html#markdown_std)
* [Doxygen Manual - Frequently Asked Questions](https://www.doxygen.nl/manual/faq.html)
http://www.stack.nl/~dimitri/doxygen/manual/commands.html
http://www.stack.nl/~dimitri/doxygen/manual/markdown.html#markdown_std
http://www.stack.nl/~dimitri/doxygen/manual/faq.html
### Guidelines for adding documentation
* Doxygen comments should describe behavior towards the outside, not implementation, but since many classes in Cataclysm are intertwined, it's often necessary to describe implementation.
@@ -121,9 +121,6 @@ For further details about commit message guidelines please visit:
# gets changes from "master" branch on the "upstream" remote
* Note: If this gives you an error, it means you have committed directly to your local `master` branch. [Click here for instructions on how to fix this issue](#why-does-git-pull---ff-only-result-in-an-error).
$ git push origin master
# optionally, push the synced master state to your fork
#### Make your changes
@@ -141,53 +138,32 @@ For further details about commit message guidelines please visit:
$ git push origin new_feature
# origin was automatically set to point to your fork when you cloned it
3. Once you're finished working on your branch, and have committed and pushed all your changes, submit a pull request from your `new_feature` branch to this repository's `master` branch.
* Note: any new commits to the `new_feature` branch on GitHub will automatically be included in the pull request, so make sure to only commit related changes to the same branch.
## Drafts
If you file a PR but you're still working on it, please make it a [Draft](https://docs.github.com/en/free-pro-team@latest/github/collaborating-with-issues-and-pull-requests/creating-a-pull-request-from-a-fork).
## Pull Request Notes
If you file a PR but you're still working on it, please add a [WIP] before the title text. This will tell the reviewers that you still intend to add more to the PR and we don't need to review it yet. When it's ready to be reviewed by a merger just edit the title text to remove the [WIP].
![screenshot](https://docs.github.com/assets/images/help/pull_requests/pullrequest-send.png)
If you are also looking for suggestions then mark it with [CR] — "comments requested". You can use both [WIP] and [CR] to indicated that you need opinion/code review/suggestions to continue working (e.g. "[WIP] [CR] Super awesome big feature"). Feel free to remove [CR] when you feel you got enough information to proceed.
This will tell the reviewers that you still intend to add more to the PR and we don't need to review it yet. When it's ready to be reviewed for a merger, just click the [`Ready for review`](https://docs.github.com/en/free-pro-team@latest/github/collaborating-with-issues-and-pull-requests/changing-the-stage-of-a-pull-request) button.
![screenshot](https://docs.github.com/assets/images/help/pull_requests/ready-for-review-button.png)
Please convert all your existing PRs with `[WIP]` in the title to Drafts.
![screenshot](https://docs.github.com/assets/images/help/pull_requests/convert-to-draft-link.png)
This can help speed up our review process by allowing us to only review the things that are ready for it, and will help prevent merging in anything that isn't completely ready.
## Comment requests
If you are also looking for suggestions then add a [CR] before the title text — "comments requested". Feel free to remove [CR] when you feel you got enough information to proceed.
This can help speed up our review process by allowing us to only review the things that are ready for it, and will prevent anything that isn't completely ready from being merged in.
It is not required to solve or reference an open issue to file a PR, however, if you do so, you need to explain the problem your PR is solving in full detail.
### All PRs should have a "Summary" section with one line
Summary is a one-line description of your change that will be extracted and added to [the project changelog](../data/changelog.txt).
### All PRs should have a "Summary" line
Summary is a one-line description of your change that will be extracted and added to the project changelog at https://github.com/CleverRaven/Cataclysm-DDA/blob/master/data/changelog.txt
The format is:
```
#### Summary
Category "description"
```
The format is: ```SUMMARY: Category "description"```
The categories to choose from are: Features, Content, Interface, Mods, Balance, Bugfixes, Performance, Infrastructure, Build, I18N.
Example:
```
#### Summary
Content "Adds new mutation category 'Mouse'"
```
Example: ```SUMMARY: Content "Adds new mutation category 'Mouse'"```
Or, if you want it treated as a minor tweak that doesn't appear in the changelog:
```
#### Summary
None
```
```SUMMARY: None```
See [the Changelog Guidelines](../doc/CHANGELOG_GUIDELINES.md) for explanations of the categories.
See the Changelog Guidelines at https://github.com/CleverRaven/Cataclysm-DDA/blob/master/doc/CHANGELOG_GUIDELINES.md for explanations of the categories.
### Closing issues using keywords
@@ -206,10 +182,6 @@ The "???" is the issue number. This automatically closes the issue when the PR i
See https://help.github.com/articles/closing-issues-using-keywords/ for more.
## Keep your PR description relevant
Make sure your PR description is still relevant every time you change your branch after discussion or additional thought.
## Tooling support
Various tools are available to help you keep your contributions conforming to the appropriate style. See [the relevant docs](../doc/DEVELOPER_TOOLING.md) for more details.
@@ -261,8 +233,9 @@ You can also set the tracking information at the same time as creating the branc
There is a suite of tests built into the source tree at tests/
You should run the test suite after ANY change to the game source.
An ordinary invocation of `make` will build the test executable at tests/cata_test, and it can be invoked like any ordinary executable, or via `make check`.
Running `test/cata_test` with no arguments will run the entire test suite; running it with `--help` will print a number of invocation options you can use to adjust its operation.
An ordinary invocation of ``make`` will build the test executable at tests/cata_test, and it can be invoked like any ordinary executable, or via `make check`.
With no arguments it will run the entire test suite.
With ``--help`` it will print a number of invocation options you can use to adjust its operation.
$ make
... compilation details ...
@@ -275,10 +248,6 @@ Running `test/cata_test` with no arguments will run the entire test suite; runni
I recommend habitually invoking make like ``make YOUR BUILD OPTIONS && make check``.
If you're working with Visual Studio (and don't have `make`), see [Visual Studio-specific advice](../doc/COMPILING/COMPILING-VS-VCPKG.md#running-unit-tests).
If you want/need to add a test, see [TESTING.md](../doc/TESTING.md)
## In-game testing, test environment and the debug menu
Whether you are implementing a new feature or whether you are fixing a bug, it is always a good practice to test your changes in-game. It can be a hard task to create the exact conditions by playing a normal game to be able to test your changes, which is why there is a debug menu. There is no default key to bring up the menu so you will need to assign one first.
+13
View File
@@ -0,0 +1,13 @@
Game version:
Operating system:
Tiles or curses:
Mods active:
### Expected behavior
### Actual behavior
### Steps to reproduce the behavior
-8
View File
@@ -1,8 +0,0 @@
blank_issues_enabled: false
contact_links:
- name: Github Discussion
url: https://github.com/CleverRaven/Cataclysm-DDA/discussions
about: For nonspecific feature requests, balance concerns, and questions about the game, prefer opening a discussion to an issue.
- name: Project Forums
url: https://discourse.cataclysmdda.org/
about: For even more general discussion with the community, consider posting on the forums.
+50 -21
View File
@@ -1,33 +1,62 @@
<!-- HOW TO USE: Under each "#### Heading" below, enter information relevant to your pull request.
Leave the headings unless they don't apply to your PR, and remove the comment blocks (surrounded with <!–– and ––>) when you are done.
NOTE: Please grant permission for repository maintainers to edit your PR. It is EXTREMELY common for PRs to be held up due to trivial changes being requested and the author being unavailable to make them. -->
<!--
### How to use
Leave the headings unless they don't apply to your PR, replace commented out text (surrounded with <!–– and ––>) with text describing your PR.
NOTE: Please grant permission for repository maintainers to edit your PR.
It is EXTREMELY common for PRs to be held up due to trivial changes being requested and the author being unavailable to make them.
-->
#### Summary
Category "Brief description"
<!-- This section should consist of exactly one line, edit the one above.
Category must be one of these: Features, Content, Interface, Mods, Balance, Bugfixes, Performance, Infrastructure, Build, I18N. Or replace the whole line with just the word None for no changelog entry.
For more on the meaning of each category, see:
https://github.com/CleverRaven/Cataclysm-DDA/blob/master/doc/CHANGELOG_GUIDELINES.md
If approved and merged, your summary will be added to the project changelog:
https://github.com/CleverRaven/Cataclysm-DDA/blob/master/data/changelog.txt -->
<!--
A one-line description of your change that will be extracted and added to the [project changelog](https://github.com/CleverRaven/Cataclysm-DDA/blob/master/data/changelog.txt).
The format is (ignore the square brackets): ```SUMMARY: [Category] "[description]"```
The categories to choose from are:
* Features
* Content
* Interface
* Mods
* Balance
* Bugfixes
* Performance
* Infrastructure
* Build
* I18N
Example: ```SUMMARY: Content "Adds new mutation category 'Mouse'"```
See the [Changelog Guidelines](https://github.com/CleverRaven/Cataclysm-DDA/blob/master/doc/CHANGELOG_GUIDELINES.md) for explanations of the categories.
-->
#### Purpose of change
<!-- With a few sentences, describe your reasons for making this change. If it relates to an existing issue, you can link it with a # followed by the GitHub issue number, like #1234. If your pull request *fully* resolves an issue, include the word "Fix" or "Fixes" before the issue number, like: Fixes #1234.
If there is no related issue, explain here what issue, feature, or other concern you are addressing. If this is a bugfix, include steps to reproduce the original bug, so your fix can be verified. -->
<!--
If there's an existing issue describing the problem this PR addresses or the feature it adds, please link it like: ```#1234```
If it *fully* resolves an issue, link it like: Fixes #1234
Even if the issue describes the problem, please provide a few-sentence summary here.
Example: Fixes #1234 - XL mutants cannot wear arm/leg splints due to missing OVERSIZE flag.
If there is no related issue, please describe the issue you are addressing, including how to trigger a bug if this is a bugfix.
Don't put the backticks around the `#` and issue or pull request number to allow the GitHub automatically reference to it.
-->
#### Describe the solution
<!-- How does the feature work, or how does this fix a bug? The easier you make your solution to understand, the faster it can get merged. -->
<!--
How does the feature work, or how does this fix a bug?
The easier you make your solution to understand, the faster it can get merged.
-->
#### Describe alternatives you've considered
<!-- Explain any alternative solutions, different approaches, or possibilities you've considered using to solve the same problem. -->
<!--
A clear and concise description of any alternative solutions or features you've considered.
-->
#### Testing
<!-- Describe what steps you took to test that this PR resolved the bug or added the feature, and what tests you performed to make sure it didn't cause any regressions. Also include testing suggestions for reviewers and maintainers. -->
<!--
Describe what steps you took to test that this PR resolved the bug or added the feature, and what tests you performed to make sure it didn't cause any regressions.
Also include testing suggestions for reviewers and maintainers.
-->
#### Additional context
<!-- Add any other context (such as mock-ups, proof of concepts or screenshots) about the feature or bugfix here. -->
<!--
Add any other context (such as mock-ups, proof of concepts or screenshots) about the feature or bugfix here.
-->
-3
View File
@@ -24,9 +24,6 @@ exemptLabels:
- "(S2 - Confirmed)"
- "0.E Feature Freeze"
- "0.E Content Freeze"
- "0.F Feature Freeze"
- "0.F Content Freeze"
- "0.F String Freeze"
# Set to true to ignore issues in a project (defaults to false)
exemptProjects: true
-61
View File
@@ -1,61 +0,0 @@
name: Clang Build Analyzer
on:
push:
branches:
- master
paths:
- '**.cpp'
- '**.h'
- '**.c'
- '**/CMakeLists.txt'
- '**/Makefile'
- '**.hpp'
- '**.cmake'
pull_request:
branches:
- master
paths:
- '**.cpp'
- '**.h'
- '**.c'
- '**/CMakeLists.txt'
- '**/Makefile'
- '**.hpp'
- '**.cmake'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout repository
uses: actions/checkout@v1
with:
fetch-depth: 1
- name: install dependencies
run: sudo apt-get install libncursesw5-dev
- name: Prepare Build Analyzer
run: |
cd
git clone --recursive https://github.com/aras-p/ClangBuildAnalyzer.git buildAnalyzer
cd buildAnalyzer
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=RELEASE ..
cmake --build . -- -j3
echo "${PWD}" >> $GITHUB_PATH
- uses: ammaraskar/gcc-problem-matcher@master
- name: make
run: |
ClangBuildAnalyzer --start .
CLANG=clang++-9 CXXFLAGS=-ftime-trace make
ClangBuildAnalyzer --stop . buildAnalysis
- name: Analyze
run: ClangBuildAnalyzer --analyze buildAnalysis
- uses: actions/upload-artifact@v2
with:
name: ClangBuildAnalyzer-traces
path: "**/obj/*.json"
-31
View File
@@ -1,31 +0,0 @@
name: astyle
on:
pull_request:
paths:
- '**.cpp'
- '**.h'
- '**.c'
jobs:
astyle-code:
name: astyle check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 1
- name: install dependencies
run: sudo apt-get install astyle
- name: astyle check
run: make astyle-check
- name: Display Corrections
if: failure()
run: |
make astyle
git diff
+32
View File
@@ -0,0 +1,32 @@
name: C/C++ CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout repository
uses: actions/checkout@v1
with:
fetch-depth: 10
- name: install dependencies
run: sudo apt-get install libncursesw5-dev
- name: make
run: make
- name: run tests
run: make check
- name: upload artifacts if failed
uses: actions/upload-artifact@v1
if: failure()
with:
name: cata_test
path: tests/cata_test
-21
View File
@@ -1,21 +0,0 @@
name: Check printf format string in translations
on:
pull_request:
paths:
- 'lang/po/*.po'
- 'tools/check_po_printf_format.py'
jobs:
check-po-printf:
runs-on: ubuntu-20.04
steps:
- name: "Install dependencies"
run: |
sudo apt-get update
sudo apt-get install python3-pip
sudo pip3 install polib
- name: "Checkout"
uses: actions/checkout@v2
- name: "Check printf format string in translations"
run: ./tools/check_po_printf_format.py
-53
View File
@@ -1,53 +0,0 @@
name: Clang-tidy (clang-8, tiles)
on:
push:
branches:
- master
paths:
- '**.cpp'
- '**.h'
- '**.c'
- '**/CMakeLists.txt'
- '**/Makefile'
- '**.hpp'
- '**.cmake'
pull_request:
branches:
- master
paths:
- '**.cpp'
- '**.h'
- '**.c'
- '**/CMakeLists.txt'
- '**/Makefile'
- '**.hpp'
- '**.cmake'
jobs:
build:
runs-on: ubuntu-16.04
env:
CMAKE: 1
CLANG: clang++-8
COMPILER: clang++-8
CATA_CLANG_TIDY: plugin
TILES: 1
SOUND: 1
steps:
- name: checkout repository
uses: actions/checkout@v1
with:
fetch-depth: 1
- name: install dependencies
run: |
#sudo apt-add-repository "deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-8 main"
sudo apt-get update
sudo apt-get install libncursesw5-dev clang-8 libclang-8-dev llvm-8-dev llvm-8-tools \
libsdl2-dev libsdl2-ttf-dev libsdl2-image-dev libsdl2-mixer-dev libpulse-dev ccache \
gettext
- name: prepare
run: bash ./build-scripts/requirements.sh
- uses: ammaraskar/gcc-problem-matcher@master
- name: run clang-tidy
run: bash ./build-scripts/build.sh
-31
View File
@@ -1,31 +0,0 @@
name: cmake-format linting
on:
push:
branches:
- master
paths:
- '**/CMakeLists.txt'
- '**.cmake'
- '**.cmake.in'
pull_request:
branches:
- master
paths:
- '**/CMakeLists.txt'
- '**.cmake'
- '**.cmake.in'
jobs:
check:
runs-on: ubuntu-latest
steps:
- name: checkout repository
uses: actions/checkout@v1
with:
fetch-depth: 1
- name: install cmakelang
run: python3 -m pip install -U cmakelang
- name: run cmake-lint
run: python3 -m cmakelang.lint CMakeLists.txt src/CMakeLists.txt data/CMakeLists.txt lang/CMakeLists.txt src/chkjson/CMakeLists.txt tools/format/CMakeLists.txt tools/clang-tidy-plugin/CMakeLists.txt cmake_uninstall.cmake.in -c .cmake-format.yml
-29
View File
@@ -1,29 +0,0 @@
name: Flake8 Python linting
on:
push:
branches:
- master
paths:
- '**.py'
pull_request:
branches:
- master
paths:
- '**.py'
jobs:
check:
runs-on: ubuntu-latest
steps:
- name: checkout repository
uses: actions/checkout@v1
with:
fetch-depth: 1
- name: install dependencies
run: sudo apt-get install flake8
- name: Enable flake8 problem matcher
run: echo "::add-matcher::build-scripts/problem-matchers/flake8.json"
- name: run Flake8
run: make python-check
+4 -6
View File
@@ -1,20 +1,18 @@
name: JSON Validation
on:
pull_request:
paths:
- '**.json'
pull_request
jobs:
style-json:
name: JSON style check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 1
fetch-depth: 10
- name: JSON style check
run: make style-json
- name: Display Corrections
-139
View File
@@ -1,139 +0,0 @@
name: General build matrix
on:
push:
branches:
- master
paths-ignore:
- 'android/**'
- 'build-data/osx/**'
- 'doc/**'
- 'doxygen_doc/**'
- 'lgtm/**'
- 'msvc-full-features/**'
- 'msvc-object_creator/**'
- 'object_creator/**'
- 'tools/**'
- 'utilities/**'
pull_request:
branches:
- master
paths-ignore:
- 'android/**'
- 'build-data/osx/**'
- 'doc/**'
- 'doxygen_doc/**'
- 'lgtm/**'
- 'msvc-full-features/**'
- 'msvc-object_creator/**'
- 'object_creator/**'
- 'tools/**'
- 'utilities/**'
jobs:
varied_builds:
strategy:
matrix:
include:
- compiler: g++-9
os: ubuntu-latest
cmake: 0
tiles: 0
test-stage: 1
native: linux64
gold: 1
lto: 1
title: GCC 9, Ubuntu, Curses, LTO
- compiler: g++-7
os: ubuntu-latest
cmake: 1
tiles: 1
native: linux64
title: GCC 7, Ubuntu, Tiles, CMake
- compiler: g++-8
os: ubuntu-latest
cmake: 0
tiles: 1
sanitize: address
native: linux64
title: GCC 8, Ubuntu, Tiles, ASan
- compiler: clang++-9
os: ubuntu-latest
cmake: 0
tiles: 1
sanitize: address,undefined
native: linux64
title: Clang 9, Ubuntu, Tiles, ASan, UBSan
- compiler: clang++
os: macos-10.15
cmake: 0
tiles: 1
native: osx
title: Clang 12, macOS 10.15, Tiles
name: ${{ matrix.title }}
runs-on: ${{ matrix.os }}
env:
CMAKE: ${{ matrix.cmake }}
COMPILER: ${{ matrix.compiler }}
OS: ${{ matrix.os }}
TILES: ${{ matrix.tiles }}
SOUND: ${{ matrix.tiles }}
SANITIZE: ${{ matrix.sanitize }}
TEST_STAGE: ${{ matrix.test-stage }}
EXTRA_TEST_OPTS: --error-format=github-action
NATIVE: ${{ matrix.native }}
GOLD: ${{ matrix.gold }}
LTO: ${{ matrix.lto }}
RELEASE: 1
steps:
- name: checkout repository
uses: actions/checkout@v1
with:
fetch-depth: 1
- name: install dependencies (ubuntu)
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install libncursesw5-dev libsdl2-dev libsdl2-ttf-dev libsdl2-image-dev \
libsdl2-mixer-dev libpulse-dev ccache gettext parallel
- name: install old GCC (ubuntu)
if: runner.os == 'Linux' && (matrix.compiler == 'g++-7' || matrix.compiler == 'g++-8')
run: |
sudo apt-get install g++-7 g++-8
- name: install dependencies (mac)
if: runner.os == 'macOS'
run: |
HOMEBREW_NO_AUTO_UPDATE=yes HOMEBREW_NO_INSTALL_CLEANUP=yes brew install sdl2 sdl2_image sdl2_ttf sdl2_mixer gettext ccache parallel
- name: prepare
run: bash ./build-scripts/requirements.sh
- name: Get Date
id: get-date
run: |
echo "::set-output name=date::$(/bin/date -u "+%Y%m%d%H%M")"
shell: bash
- name: ccache cache files (ubuntu)
if: runner.os == 'Linux'
uses: actions/cache@v2
with:
path: ~/.ccache
key: ccache-linux-${{ matrix.compiler }}-${{ steps.get-date.outputs.date }}
restore-keys: |
ccache-linux-${{ matrix.compiler }}-
- name: ccache cache files (mac)
if: runner.os == 'macOS'
uses: actions/cache@v2
with:
path: /Users/runner/Library/Caches/ccache
key: ccache-mac-${{ matrix.compiler }}-${{ steps.get-date.outputs.date }}
restore-keys: |
ccache-mac-${{ matrix.compiler }}-
- uses: ammaraskar/gcc-problem-matcher@master
- name: build and test
run: bash ./build-scripts/build.sh
- name: upload artifacts if failed
uses: actions/upload-artifact@v1
if: failure()
with:
name: cata_test
path: tests/cata_test
+1 -1
View File
@@ -12,5 +12,5 @@ jobs:
- name: "Validate SUMMARY"
uses: CleverRaven/pr-validator@master
with:
description-regex: '(\n|^)#### Summary\s+`{0,3}(SUMMARY:\s+)?(None|((Features|Content|Interface|Mods|Balance|Bugfixes|Performance|Infrastructure|Build|I18N) +".*"))`{0,3}\s*(\n|$)'
description-regex: '(\n|^)\s*`{0,3}SUMMARY: +(None|((Features|Content|Interface|Mods|Balance|Bugfixes|Performance|Infrastructure|Build|I18N) +".*"))`{0,3}\s*(\n|$)'
description-regex-flags: 'i'
-121
View File
@@ -1,121 +0,0 @@
name: "Experimental Release"
on:
push:
branches:
- master
jobs:
release:
name: Create Release
runs-on: ubuntu-latest
outputs:
upload_url: ${{ steps.create_release.outputs.upload_url }}
steps:
- uses: actions/checkout@v2
- name: Push tag
id: tag_version
uses: mathieudutour/github-tag-action@v5.5
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
custom_tag: ${{ github.run_number }}
tag_prefix: experimental-
- name: Create release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.tag_version.outputs.new_tag }}
release_name: "Experimental Build #${{ github.run_number }}"
body: |
These are the outputs for the experimental build of commit [${{ github.sha }}](https://github.com/${{ github.repository }}/commit/${{ github.sha }})
draft: false
prerelease: true
builds:
needs: release
strategy:
matrix:
include:
- name: Windows Tiles x64
mxe: x86_64
artifact: windows-tiles-x64
os: windows
ext: zip
content: application/zip
- name: Windows Tiles x32
mxe: i686
artifact: windows-tiles-x32
os: windows
ext: zip
content: application/zip
- name: Linux Tiles x64
os: linux
mxe: none
tiles: 1
artifact: linux-tiles-x64
ext: tar.gz
content: application/gzip
- name: linux-curses-x64
os: linux
mxe: none
tiles: 0
artifact: linux-curses-x64
ext: tar.gz
content: application/gzip
name: ${{ matrix.name }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies (windows)
if: matrix.os == 'windows'
run: |
sudo apt install astyle autoconf automake autopoint bash bison bzip2 cmake flex gettext git g++ gperf intltool \
libffi-dev libgdk-pixbuf2.0-dev libtool libltdl-dev libssl-dev libxml-parser-perl lzip make mingw-w64 openssl \
p7zip-full patch perl pkg-config python ruby scons sed unzip wget xz-utils g++-multilib libc6-dev-i386 libtool-bin
- name: Install MXE
if: matrix.mxe != 'none'
run: |
sudo apt install software-properties-common lsb-release
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 86B72ED9
sudo add-apt-repository "deb [arch=amd64] https://pkg.mxe.cc/repos/apt `lsb_release -sc` main"
sudo apt update
sudo apt install mxe-{i686,x86-64}-w64-mingw32.static-{sdl2,sdl2-ttf,sdl2-image,sdl2-mixer,gettext}
- name: Install dependencies (Linux)
if: matrix.os == 'linux'
run: |
sudo apt-get update
sudo apt-get install libncursesw5-dev libsdl2-dev libsdl2-ttf-dev libsdl2-image-dev \
libsdl2-mixer-dev libpulse-dev ccache gettext parallel
- name: Build CDDA (linux)
if: matrix.os == 'linux'
run: |
cat >VERSION.txt <<EOL
build type: ${{ matrix.artifact }}
build number: ${{ github.run_number }}
commit sha: ${{ github.sha }}
commit url: https://github.com/${{ github.repository }}/commit/${{ github.sha }}
EOL
make -j$((`nproc`+0)) TILES=${{ matrix.tiles }} SOUND=${{ matrix.tiles }} RELEASE=1 LOCALIZE=1 LANGUAGES=all BACKTRACE=0 PCH=0 bindist
mv cataclysmdda-0.E.tar.gz cdda-${{ matrix.artifact }}-b${{ github.run_number }}.tar.gz
- name: Build CDDA (windows)
if: matrix.os == 'windows'
env:
PLATFORM: /usr/lib/mxe/usr/bin/${{ matrix.mxe }}-w64-mingw32.static-
run: |
cat >VERSION.txt <<EOL
build type: ${{ matrix.artifact }}
build number: ${{ github.run_number }}
commit sha: ${{ github.sha }}
commit url: https://github.com/${{ github.repository }}/commit/${{ github.sha }}
EOL
make -j$((`nproc`+0)) CROSS="${PLATFORM}" TILES=1 SOUND=1 RELEASE=1 LOCALIZE=1 LANGUAGES=all BACKTRACE=0 PCH=0 bindist
mv cataclysmdda-0.E.zip cdda-${{ matrix.artifact }}-b${{ github.run_number }}.zip
- name: Upload release asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.release.outputs.upload_url }}
asset_path: cdda-${{ matrix.artifact }}-b${{ github.run_number }}.${{ matrix.ext }}
asset_name: cdda-${{ matrix.artifact }}-b${{ github.run_number }}.${{ matrix.ext }}
asset_content_type: ${{ matrix.content }}
-25
View File
@@ -1,25 +0,0 @@
on:
push:
branches:
- master
paths:
- 'doc/JSON_INFO.md'
name: TOC Generator
jobs:
generateTOC:
if: github.repository == 'CleverRaven/Cataclysm-DDA'
name: Update the table of contents
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: npx doctoc doc/JSON_INFO.md --github
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
commit-message: Update the table of contents
branch: update-toc
title: Update the table of contents in doc/JSON_INFO.md
body: |
```sh
npx doctoc doc/JSON_INFO.md --github
```
-40
View File
@@ -1,40 +0,0 @@
name: "Push translation template"
concurrency: push_transifex
on:
push:
branches:
- master
paths:
- '**.json'
- 'src/**.cpp'
- 'src/**.h'
- 'lang/extract_json_strings.py'
- 'lang/strip_line_numbers.py'
- 'lang/update_pot.sh'
- 'lang/unicode_check.py'
jobs:
push-template:
runs-on: ubuntu-20.04
steps:
- name: "Install dependencies"
run: |
sudo apt-get update
sudo apt-get install gettext python3-pip
sudo pip3 install transifex-client
- name: "Checkout"
uses: actions/checkout@v2
- name: "Generate translation template"
run: |
lang/update_pot.sh
- name: "Push translation template"
env:
TOKEN: ${{ secrets.TX_TOKEN }}
run: |
export TX_TOKEN=$TOKEN
tx push --source --no-interactive --resource cataclysm-dda.master-cataclysm-dda
unset TX_TOKEN
unset TOKEN
+4 -21
View File
@@ -41,11 +41,9 @@ cataclysmdda-*
chkjson*
debug.log
logg.txt
json_formatter
# Visual Studio files
*.code-workspace
*.exp
*.ilk
*.opensdf
*.pdb
@@ -71,10 +69,6 @@ Cataclysm.exe.lastcodeanalysissucceeded
#Visual Studio 2017
/msvc-full-features/PredictedInputCache_Debug_x64.dat
#vcpkg
/msvc-full-features/vcpkg_installed
/msvc-object_creator/vcpkg_installed
# PVS Studio
/msvc-full-features/*PVS-Studio*
@@ -94,7 +88,6 @@ cscope.*
tags
# Generated translation source
/lang/po/cataclysm-dda.pot
/lang/po/en.po
# Compiled binary translations
@@ -127,20 +120,18 @@ nbproject/
# OSX
Cataclysm.app
build-data/osx/AppIcon.icns
data/osx/AppIcon.icns
Cataclysm.dmg
# Jetbrains CLion
.idea/
# test executables and generated data
/tests/obj
/tests/cata_test
/tests/line_test
/tests/map_iterator_test
/tests/shadowcasting_test
/tests/data/jsionized_overmap.sav
/test_user_dir
# temporary files generated by tools/reduce_tests.sh
/list_of_tests
@@ -163,7 +154,6 @@ cataclysm.a
# clang tooling
compile_commands.json
.clangd
# IDA database
Cataclysm.i64
@@ -171,6 +161,9 @@ Cataclysm.id*
Cataclysm.til
Cataclysm.nam
# Transifex Client
.tx/
# Snapcraft build directories
prime
snap
@@ -193,13 +186,3 @@ Xcode/
/.flatpak-builder/
/repo/
/build-dir/
# precompiled headers
/pch/pch.hpp.pch
/pch/main-pch.hpp.gch
/pch/main-pch.hpp.pch
/tests/pch/pch.hpp.pch
/tests/pch/tests-pch.hpp.gch
/tests/pch/tests-pch.hpp.pch
/tests/catch/catch.hpp.gch
/tests/catch/catch.hpp.pch
-5
View File
@@ -1,5 +0,0 @@
# Disable FIXME query, in DDA it is as likely to be a future feature as a bug.
# Disable "potentially dangerous function" warning like localtime, there is no good alternative and we aren't multithreaded.
queries:
- exclude: cpp/fixme-comment
- exclude: cpp/potentially-dangerous-function
+45 -53
View File
@@ -7,6 +7,9 @@ cache: ccache
notifications:
email: false
irc: "irc.freenode.org#Cataclysm-DDA"
use_notice: true
skip_join: true
git:
depth: 5
@@ -39,14 +42,11 @@ branches:
# - SOUND=1
# - RELEASE=1
# - CMAKE=1
# - SANITIZE=address
# - LOCALIZE=0
# - Tests with important mods enabled (Magiclysm)
# We try to minimize the number of builds subject to those constraints.
#
# The following used to be here but became too slow to run on Travis and have
# been moved to GitHub Actions:
# - A clang-tidy run
# - SANITIZE=address,undefined
# - Tests with important mods enabled (Magiclysm, RL_Classes)
# We try to minimize the number of builds subject to those constraints.
# To see what toolchains are available, consult the following:
# https://github.com/travis-ci/apt-source-safelist/blob/master/ubuntu.json
@@ -54,15 +54,15 @@ branches:
jobs:
include:
# Initial test stage, if this fails everything else is canceled.
# Initial test stage, if this fails everything else is cancelled.
- stage: Test
# Clang is consistently the fastest to build, so use it for the initial test.
env: CLANG=clang++-3.8 TEST_STAGE=1 CXXFLAGS="-Wno-error=unused-command-line-argument -D__extern_always_inline='extern __always_inline'"
name: "Clang 3.8 Make build with curses and style check"
env: CLANG=clang++-3.8 MODS=--mods=RL_Classes TEST_STAGE=1 CXXFLAGS="-Wno-error=unused-command-line-argument -D__extern_always_inline='extern __always_inline'"
name: "Clang 3.8 Make build with curses, style check and RL_Classes test"
compiler: clang
addons: &clang38
apt:
packages: ["clang-3.8"]
packages: ["clang-3.8", "g++-multilib", "libc6-dbg", "libc6-dbg:i386", "g++-6"]
sources: [*apt_sources]
# Then build different configurations and targets in parallel.
@@ -75,26 +75,22 @@ jobs:
packages: ["g++-5=5.3.1-14ubuntu2", "libstdc++-5-dev=5.3.1-14ubuntu2", "gcc-5=5.3.1-14ubuntu2", "gcc-5-base=5.3.1-14ubuntu2", "cpp-5=5.3.1-14ubuntu2", "libgcc-5-dev=5.3.1-14ubuntu2", "libasan2=5.3.1-14ubuntu2", "libmpx0=5.3.1-14ubuntu2"]
sources: [*apt_sources]
- env: COMPILER=g++-8 CXXFLAGS="-Wno-implicit-fallthrough" TILES=1 SOUND=1
name: "GCC 8 Make build with Tiles, Sound"
- env: COMPILER=g++-8 CXXFLAGS="-Wno-implicit-fallthrough" TILES=1 SOUND=1 SANITIZE=address EXTRA_TEST_OPTS="~[.] ~vehicle_efficiency"
name: "GCC 8 Make build with Tiles, Sound, astyle and address sanitization"
dist: bionic
compiler: gcc
addons: &gcc8
apt:
packages: ["g++-8", "g++-8-multilib", "libc6-dbg", "libc6-dbg:i386", "libsdl2-dev", "libsdl2-ttf-dev", "libsdl2-image-dev", "libsdl2-mixer-dev"]
packages: ["g++-8", "g++-8-multilib", "libc6-dbg", "libc6-dbg:i386", "libsdl2-dev", "libsdl2-ttf-dev", "libsdl2-image-dev", "libsdl2-mixer-dev", "astyle"]
sources: *apt_sources
- env: CLANG=clang++-10
name: "Clang 10 Make build"
- env: CLANG=clang++-8 SANITIZE=address,undefined EXTRA_TEST_OPTS="~[.] ~vehicle_efficiency ~vehicle_drag ~starting_items ~[starve] ~grenade_lethality"
name: "Clang 8 Make build with sanitizers enabled, but long-running tests disabled"
compiler: clang
dist: bionic
addons: &clang10
addons: &clang8
apt:
packages:
- clang-10
sources:
- sourceline: "deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-10 main"
key_url: "https://apt.llvm.org/llvm-snapshot.gpg.key"
packages: ["clang-8", "libc6-dbg", "libc6-dbg:i386"]
sources: [*apt_sources, llvm-toolchain-xenial-8]
- stage: "Platforms and Tidy"
# MXE variant using alternate repository http://mirror.mxe.cc/repos/apt
@@ -118,12 +114,20 @@ jobs:
directories:
- $HOME/.ccache
- env: CLANG=clang++ OSX_MIN=10.13 TILES=1 SOUND=1
name: "Xcode 10.2 Make build with Tiles and sound (macOS)"
- env: CLANG=clang++ NATIVE=osx OSX_MIN=10.13 TILES=1 SOUND=1
name: "Xcode 10.1 Make build with Tiles and sound (macOS)"
os: osx
osx_image: xcode10.2
osx_image: xcode10.1
compiler: clang
- env: CLANG=clang++-8 TILES=1 SOUND=1 CXXFLAGS=-Wno-unused-command-line-argument CMAKE=1 CATA_CLANG_TIDY=plugin
name: "Clang-tidy CMake build with Tiles and Sound"
compiler: clang
addons: &clang8
apt:
packages: ["clang-8", "libclang-8-dev", "llvm-8-dev", "llvm-8-tools", "libsdl2-dev", "libsdl2-ttf-dev", "libsdl2-image-dev", "libsdl2-mixer-dev", "libpulse-dev", "libpulse0=1:8.0-0ubuntu3.10", "libpulse-mainloop-glib0=1:8.0-0ubuntu3.10"]
sources: [*apt_sources, llvm-toolchain-xenial-8]
# Finally check the compiler variants
- stage: compilers
# GCC 5.4 is default on Xenial
@@ -149,13 +153,20 @@ jobs:
packages: ["g++-7", "g++-7-multilib", "libc6-dbg", "libc6-dbg:i386", "lcov"]
sources: *apt_sources
- env: COMPILER='g++' LDFLAGS='-static-libgcc -static-libstdc++' MXE_TARGET='i686-w64-mingw32.static' WINE='wine'
name: "Mingw-w64 Make build with Curses"
if: type != pull_request
addons: &gcc
apt:
packages: ["wine"]
- env: CLANG=clang++-3.9 CXXFLAGS='-Wno-error=unused-command-line-argument -D__extern_always_inline="extern __always_inline"'
name: "Clang 3.9 Make build with Curses"
if: type != pull_request
compiler: clang
addons: &clang39
apt:
packages: ["clang-3.9"]
packages: ["clang-3.9", "g++-multilib", "libc6-dbg", "libc6-dbg:i386", "g++-6"]
sources: *apt_sources
- env: CLANG=clang++-4.0 CXXFLAGS=-Wno-error=unused-command-line-argument
@@ -164,18 +175,21 @@ jobs:
compiler: clang
addons: &clang40
apt:
packages: ["clang-4.0"]
packages: ["clang-4.0", "g++-multilib", "libc6-dbg", "libc6-dbg:i386", "g++-6"]
# Luckily the Trusty install Just Works on Xenial
sources: [*apt_sources, llvm-toolchain-trusty-4.0]
# Clang 5.0 (still on Trusty, because I could find no readily available
# source on Xenial at time of writing)
- env: CLANG=clang++-5.0 CXXFLAGS=-Wno-error=unused-command-line-argument
name: "Clang 5 Make build with Curses"
if: type != pull_request
dist: trusty
compiler: clang
addons: &clang50
apt:
packages: ["clang-5.0"]
sources: [*apt_sources, llvm-toolchain-xenial-5.0]
packages: ["clang-5.0", "g++-multilib", "libc6-dbg", "libc6-dbg:i386", "g++-6"]
sources: [*apt_sources, llvm-toolchain-trusty-5.0]
- env: CLANG=clang++-6.0 TILES=1 SOUND=1 CXXFLAGS=-Wno-error=unused-command-line-argument CMAKE=1 RELEASE=1
name: "Clang 6 CMake build with tiles and sound"
@@ -183,7 +197,7 @@ jobs:
compiler: clang
addons: &clang60
apt:
packages: ["clang-6.0", "libsdl2-dev", "libsdl2-ttf-dev", "libsdl2-image-dev", "libsdl2-mixer-dev"]
packages: ["clang-6.0", "g++-multilib", "libc6-dbg", "g++-6", "libsdl2-dev", "libsdl2-ttf-dev", "libsdl2-image-dev", "libsdl2-mixer-dev", "libpulse-dev", "libpulse0=1:8.0-0ubuntu3.10", "libpulse-mainloop-glib0=1:8.0-0ubuntu3.10"]
sources: [*apt_sources, llvm-toolchain-xenial-6.0]
- env: CLANG=clang++-7
@@ -192,31 +206,9 @@ jobs:
compiler: clang
addons: &clang7
apt:
packages: ["clang-7"]
packages: ["clang-7", "libc6-dbg", "libc6-dbg:i386"]
sources: [*apt_sources, llvm-toolchain-xenial-7]
- env: CLANG=clang++-8
name: "Clang 8 Make build with Curses"
if: type != pull_request
compiler: clang
addons: &clang8
apt:
packages: ["clang-8"]
sources: [*apt_sources, llvm-toolchain-xenial-8]
- env: CLANG=clang++-9
name: "Clang 9 Make build with Curses"
if: type != pull_request
compiler: clang
dist: bionic
addons: &clang9
apt:
packages:
- clang-9
sources:
- sourceline: "deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-9 main"
key_url: "https://apt.llvm.org/llvm-snapshot.gpg.key"
before_script:
- if [ -n "${CLANG}" ]; then COMPILER="$CLANG"; fi
- ${COMPILER} --version
-10
View File
@@ -1,10 +0,0 @@
[main]
host = https://www.transifex.com
[cataclysm-dda.master-cataclysm-dda]
file_filter = lang/po/<lang>.po
minimum_perc = 0
source_file = lang/po/cataclysm-dda.pot
source_lang = en
type = PO
+303 -296
View File
@@ -1,68 +1,78 @@
# Main project build script
cmake_minimum_required(VERSION 3.1.4)
project(CataclysmDDA)
PROJECT(CataclysmDDA)
set(CMAKE_MODULE_PATH
${CMAKE_MODULE_PATH}
${CMAKE_SOURCE_DIR}/CMakeModules)
SET(CMAKE_MODULE_PATH
${CMAKE_MODULE_PATH}
${CMAKE_SOURCE_DIR}/CMakeModules
)
set(CMAKE_TLS_VERIFY ON)
SET(CMAKE_TLS_VERIFY ON)
# Build options
option(TILES "Build graphical tileset version." "OFF")
option(CURSES "Build curses version." "ON")
option(SOUND "Support for in-game sounds & music." "OFF")
option(BACKTRACE "Support for printing stack backtraces on crash" "ON")
option(LIBBACKTRACE "Print backtrace with libbacktrace." "OFF")
option(USE_HOME_DIR "Use user's home directory for save files." "ON")
option(LOCALIZE "Support for language localizations. Also enable UTF support." "ON")
option(LANGUAGES "Compile localization files for specified languages." "")
option(DYNAMIC_LINKING
"Use dynamic linking. Or use static to remove MinGW dependency instead." "ON")
option(JSON_FORMAT "Build JSON formatter" "OFF")
option(CATA_CCACHE "Try to find and build with ccache" "ON")
option(TILES "Build graphical tileset version." "OFF")
option(CURSES "Build curses version." "ON")
option(SOUND "Support for in-game sounds & music." "OFF")
option(BACKTRACE "Support for printing stack backtraces on crash" "ON")
option(LIBBACKTRACE "Print backtrace with libbacktrace." "OFF")
option(USE_HOME_DIR "Use user's home directory for save files." "ON")
option(LOCALIZE "Support for language localizations. Also enable UTF support." "ON")
option(LANGUAGES "Compile localization files for specified languages." "")
option(DYNAMIC_LINKING "Use dynamic linking. Or use static to remove MinGW dependency instead." "ON")
option(JSON_FORMAT "Build JSON formatter" "OFF")
option(CATA_CLANG_TIDY_PLUGIN "Build Cata's custom clang-tidy plugin" "OFF")
set(CATA_CLANG_TIDY_INCLUDE_DIR "" CACHE STRING
"Path to internal clang-tidy headers required for plugin (e.g. ClangTidy.h)")
set(CATA_CLANG_TIDY_INCLUDE_DIR "" CACHE STRING "Path to internal clang-tidy headers required for plugin (e.g. ClangTidy.h)")
set(CATA_CHECK_CLANG_TIDY "" CACHE STRING "Path to check_clang_tidy.py for plugin tests")
set(GIT_BINARY "" CACHE STRING "Git binary name or path.")
set(PREFIX "" CACHE STRING "Location of Data & GFX directories")
set(GIT_BINARY "" CACHE STRING "Git binary name or path.")
set(PREFIX "" CACHE STRING "Location of Data & GFX directories")
include(CTest)
message(STATUS "${PROJECT} build environment --")
message(STATUS "Build realm is: ${CMAKE_SYSTEM_NAME} ${CMAKE_HOST_SYSTEM_PROCESSOR}")
if (NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Debug)
endif ()
add_definitions(-DCMAKE)
include(GetGitRevisionDescription)
git_describe(GIT_VERSION --tags --always --match "[0-9A-Z]*.[0-9A-Z]*")
git_describe(GIT_VERSION)
MESSAGE("\n * Cataclysm: Dark Days Ahead is a roguelike set in a post-apocalyptic world.")
MESSAGE(" _________ __ .__ ")
MESSAGE(" \\_ ___ \\ _____ _/ |_ _____ ____ | | ___.__ ______ _____ ")
MESSAGE(" / \\ \\/ \\__ \\ \\ __\\\\__ \\ _/ ___\\ | | < | | / ___/ / \\ ")
MESSAGE(" \\ \\____ / __ \\_ | | / __ \\_\\ \\___ | |__ \\___ | \\___ \\ | Y Y \\ ")
MESSAGE(" \\______ /\(____ / |__| \(____ / \\___ >|____/ / ____|/____ >|__|_| / ")
MESSAGE(" \\/ \\/ \\/ \\/ \\/ \\/ \\/ ")
MESSAGE(" --= Dark Days Ahead =--")
MESSAGE("\n * https://cataclysmdda.org/\n")
MESSAGE(STATUS "${PROJECT} build environment -- \n")
MESSAGE(STATUS "Build realm is : ${CMAKE_SYSTEM_NAME} ${CMAKE_HOST_SYSTEM_PROCESSOR}")
IF(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Debug)
ENDIF(NOT CMAKE_BUILD_TYPE)
if (NOT ${GIT_VERSION} MATCHES GIT-NOTFOUND)
string(REPLACE "-NOTFOUND" "" GIT_VERSION ${GIT_VERSION})
file(WRITE ${CMAKE_SOURCE_DIR}/src/version.h
"// NOLINT(cata-header-guard)\n\#define VERSION \"${GIT_VERSION}\"\n")
message(STATUS "${PROJECT_NAME} build version is: ${GIT_VERSION}")
add_definitions(-DGIT_VERSION)
endif ()
FILE(WRITE ${CMAKE_SOURCE_DIR}/src/version.h "\#define VERSION \"${GIT_VERSION}\"\n")
MESSAGE(STATUS "${PROJECT_NAME} build version is : ${GIT_VERSION}\n")
ADD_DEFINITIONS(-DGIT_VERSION)
ELSE (NOT ${GIT_VERSION} MATCHES GIT-NOTFOUND)
MESSAGE("")
ENDIF(NOT ${GIT_VERSION} MATCHES GIT-NOTFOUND)
#OS Check Placeholders. Will be used for BINDIST
if (${CMAKE_SYSTEM_NAME} MATCHES Linux)
set(_OS_LINUX_ 1)
endif ()
IF (${CMAKE_SYSTEM_NAME} MATCHES Linux)
SET(_OS_LINUX_ 1)
ENDIF (${CMAKE_SYSTEM_NAME} MATCHES Linux)
if (${CMAKE_SYSTEM_NAME} MATCHES FreeBSD)
set(_OS_FREEBSD_ 1)
endif ()
IF (${CMAKE_SYSTEM_NAME} MATCHES FreeBSD)
SET(_OS_FREEBSD_ 1)
ENDIF (${CMAKE_SYSTEM_NAME} MATCHES FreeBSD)
if (${CMAKE_SYSTEM_NAME} MATCHES Darwin)
set(_OS_DARWIN_ 1)
set(LOCALIZE OFF)
message(STATUS "Internationalization on Darwin is not supported")
endif ()
IF(${CMAKE_SYSTEM_NAME} MATCHES Darwin)
SET(_OS_DARWIN_ 1)
SET(LOCALIZE OFF)
MESSAGE(STATUS "Disable internationalization on Darwin as it is not supported")
ENDIF(${CMAKE_SYSTEM_NAME} MATCHES Darwin)
include(CheckCXXCompilerFlag)
@@ -73,291 +83,285 @@ include(CheckCXXCompilerFlag)
#SET(CMAKE_SHARED_LIBRARY_C_FLAGS "${CMAKE_SHARED_LIBRARY_C_FLAGS} -m32")
#SET(CMAKE_SHARED_LIBRARY_CXX_FLAGS "${CMAKE_SHARED_LIBRARY_CXX_FLAGS} -m32")
if (NOT DYNAMIC_LINKING)
set(CMAKE_FIND_LIBRARY_SUFFIXES ".a;.dll.a")
set(BUILD_SHARED_LIBRARIES OFF)
IF (NOT DYNAMIC_LINKING)
SET(CMAKE_FIND_LIBRARY_SUFFIXES ".a;.dll.a")
SET(BUILD_SHARED_LIBRARIES OFF)
check_cxx_compiler_flag (-static HAVE_STATIC_FLAG)
if (HAVE_STATIC_FLAG)
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -static")
endif ()
IF(HAVE_STATIC_FLAG)
SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -static")
ENDIF(HAVE_STATIC_FLAG)
# Workaround for cmake link library guesser
set(CMAKE_EXE_LINK_DYNAMIC_C_FLAGS) # remove -Wl,-Bdynamic
set(CMAKE_EXE_LINK_DYNAMIC_CXX_FLAGS)
set(CMAKE_SHARED_LIBRARY_C_FLAGS) # remove -fPIC
set(CMAKE_SHARED_LIBRARY_CXX_FLAGS)
set(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS) # remove -rdynamic
set(CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS)
else ()
if (MINGW AND NOT CMAKE_CXX_COMPILER_ID MATCHES "Clang")
# Avoid depending on MinGW runtime DLLs
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -static-libgcc -static-libstdc++")
endif ()
endif ()
SET(CMAKE_EXE_LINK_DYNAMIC_C_FLAGS) # remove -Wl,-Bdynamic
SET(CMAKE_EXE_LINK_DYNAMIC_CXX_FLAGS)
SET(CMAKE_SHARED_LIBRARY_C_FLAGS) # remove -fPIC
SET(CMAKE_SHARED_LIBRARY_CXX_FLAGS)
SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS) # remove -rdynamic
SET(CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS)
ELSE (NOT DYNAMIC_LINKING)
IF(MINGW AND NOT CMAKE_CXX_COMPILER_ID MATCHES "Clang")
# Avoid depending on MinGW runtime DLLs
SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -static-libgcc -static-libstdc++")
ENDIF(MINGW AND NOT CMAKE_CXX_COMPILER_ID MATCHES "Clang")
ENDIF (NOT DYNAMIC_LINKING)
# System specific actions
if (${CMAKE_SYSTEM_NAME} MATCHES Linux OR ${CMAKE_SYSTEM_NAME} MATCHES FreeBSD)
if (NOT DATA_PREFIX)
set(DATA_PREFIX ${CMAKE_INSTALL_PREFIX}/share/cataclysm-dda)
endif ()
if (NOT LOCALE_DIR)
set(LOCALE_DIR ${CMAKE_INSTALL_PREFIX}/share/locale)
endif ()
if (NOT BIN_PREFIX)
set(BIN_PREFIX ${CMAKE_INSTALL_PREFIX}/bin)
endif ()
if (NOT DESKTOP_ENTRY_PATH)
set(DESKTOP_ENTRY_PATH ${CMAKE_INSTALL_PREFIX}/share/applications)
endif ()
if (NOT PIXMAPS_ENTRY_PATH)
set(PIXMAPS_ENTRY_PATH ${CMAKE_INSTALL_PREFIX}/share/icons/hicolor)
endif ()
if (NOT PIXMAPS_UNITY_ENTRY_PATH)
set(PIXMAPS_UNITY_ENTRY_PATH ${CMAKE_INSTALL_PREFIX}/share/icons/ubuntu-mono-dark)
endif ()
if (NOT MANPAGE_ENTRY_PATH)
set(MANPAGE_ENTRY_PATH ${CMAKE_INSTALL_PREFIX}/share/man)
endif ()
endif ()
IF (${CMAKE_SYSTEM_NAME} MATCHES Linux OR ${CMAKE_SYSTEM_NAME} MATCHES FreeBSD)
IF(NOT DATA_PREFIX)
SET( DATA_PREFIX ${CMAKE_INSTALL_PREFIX}/share/cataclysm-dda)
ENDIF(NOT DATA_PREFIX)
IF(NOT LOCALE_DIR)
SET( LOCALE_DIR ${CMAKE_INSTALL_PREFIX}/share/locale)
ENDIF(NOT LOCALE_DIR)
IF(NOT BIN_PREFIX)
SET( BIN_PREFIX ${CMAKE_INSTALL_PREFIX}/bin)
ENDIF(NOT BIN_PREFIX)
IF(NOT DESKTOP_ENTRY_PATH)
SET( DESKTOP_ENTRY_PATH ${CMAKE_INSTALL_PREFIX}/share/applications)
ENDIF(NOT DESKTOP_ENTRY_PATH)
IF(NOT PIXMAPS_ENTRY_PATH)
SET( PIXMAPS_ENTRY_PATH ${CMAKE_INSTALL_PREFIX}/share/icons/hicolor)
ENDIF(NOT PIXMAPS_ENTRY_PATH)
IF(NOT PIXMAPS_UNITY_ENTRY_PATH)
SET( PIXMAPS_UNITY_ENTRY_PATH ${CMAKE_INSTALL_PREFIX}/share/icons/ubuntu-mono-dark)
ENDIF(NOT PIXMAPS_UNITY_ENTRY_PATH)
IF(NOT MANPAGE_ENTRY_PATH)
SET( MANPAGE_ENTRY_PATH ${CMAKE_INSTALL_PREFIX}/share/man)
ENDIF(NOT MANPAGE_ENTRY_PATH)
ENDIF (${CMAKE_SYSTEM_NAME} MATCHES Linux OR ${CMAKE_SYSTEM_NAME} MATCHES FreeBSD)
if (${CMAKE_SYSTEM_NAME} MATCHES Windows)
if (NOT DATA_PREFIX)
set(DATA_PREFIX ${CMAKE_INSTALL_PREFIX})
endif ()
if (NOT LOCALE_DIR)
set(LOCALE_DIR ${CMAKE_INSTALL_PREFIX})
endif ()
if (NOT BIN_PREFIX)
set(BIN_PREFIX ${CMAKE_INSTALL_PREFIX})
endif ()
endif ()
IF (${CMAKE_SYSTEM_NAME} MATCHES Windows)
IF(NOT DATA_PREFIX)
SET(DATA_PREFIX ${CMAKE_INSTALL_PREFIX})
ENDIF(NOT DATA_PREFIX)
IF(NOT LOCALE_DIR)
SET(LOCALE_DIR ${CMAKE_INSTALL_PREFIX})
ENDIF(NOT LOCALE_DIR)
IF(NOT BIN_PREFIX)
SET(BIN_PREFIX ${CMAKE_INSTALL_PREFIX})
ENDIF(NOT BIN_PREFIX)
ENDIF (${CMAKE_SYSTEM_NAME} MATCHES Windows)
message(STATUS "${PROJECT_NAME} build options --")
MESSAGE(STATUS "${PROJECT_NAME} build options --\n")
# Preset variables
if (NOT LANGUAGES)
IF(NOT LANGUAGES)
# English is included to workaround a libintl bug that affects performance
# on MinGW targets. See lang/CMakeList.txt for more information.
set(LANGUAGES en de es_AR es_ES fr it_IT ja ko pt_BR ru zh_CN zh_TW)
endif ()
SET (LANGUAGES en de es_AR es_ES fr it_IT ja ko pt_BR ru zh_CN zh_TW)
ENDIF(NOT LANGUAGES)
if (GIT_BINARY)
set(GIT_EXECUTABLE ${GIT_BINARY})
else ()
find_package(Git)
if (NOT GIT_FOUND)
message(WARNING
"Git binary not found. Build version will be set to NULL. \
Install Git package or use -DGIT_BINARY to set path to git binary.")
endif ()
endif ()
IF (GIT_BINARY)
SET(GIT_EXECUTABLE ${GIT_BINARY})
ELSE (GIT_BINARY)
FIND_PACKAGE(Git)
IF (NOT GIT_FOUND)
MESSAGE(WARNING "Git binary not found. Build version will be set to NULL. Install Git package or use -DGIT_BINARY to set path to git binary.")
ENDIF (NOT GIT_FOUND)
ENDIF (GIT_BINARY)
if (PREFIX)
add_definitions(-DPREFIX=${PREFIX})
endif ()
IF (PREFIX)
ADD_DEFINITIONS(-DPREFIX=${PREFIX})
ENDIF (PREFIX)
# Can't compile curses and tiles build's at same time
if (TILES)
set(CURSES OFF)
endif ()
IF(TILES)
SET(CURSES OFF)
ENDIF(TILES)
# Set build types and display info
if (CMAKE_BUILD_TYPE STREQUAL Debug)
message(STATUS "Build ${PROJECT} in development mode --")
message(STATUS "Binaries will be located in: " ${CMAKE_SOURCE_DIR})
set(CMAKE_VERBOSE_MAKEFILE ON)
IF(CMAKE_BUILD_TYPE STREQUAL Debug)
MESSAGE("\n")
MESSAGE(STATUS "Build ${PROJECT} in development mode --\n")
MESSAGE(STATUS "Binaries will be located in: " ${CMAKE_SOURCE_DIR})
SET(CMAKE_VERBOSE_MAKEFILE ON)
# Since CataclysmDDA does not respect PREFIX for development builds
# and has funny path handlers, we should create resulting Binaries
# in the source directory
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR} CACHE PATH
"Single Directory for all Executables.")
set(BIN_PREFIX ${CMAKE_SOURCE_DIR})
else ()
message(STATUS "CMAKE_INSTALL_PREFIX : ${CMAKE_INSTALL_PREFIX}")
message(STATUS "BIN_PREFIX : ${BIN_PREFIX}")
message(STATUS "DATA_PREFIX : ${DATA_PREFIX}")
if (LOCALIZE)
message(STATUS "LOCALE_PATH : ${LOCALE_DIR}")
endif ()
message(STATUS "DESKTOP_ENTRY_PATH : ${DESKTOP_ENTRY_PATH}")
message(STATUS "PIXMAPS_ENTRY_PATH : ${PIXMAPS_ENTRY_PATH}")
message(STATUS "PIXMAPS_UNITY_ENTRY_PATH : ${PIXMAPS_UNITY_ENTRY_PATH}")
message(STATUS "MANPAGE_ENTRY_PATH : ${MANPAGE_ENTRY_PATH}")
add_definitions(-DRELEASE)
SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY
${CMAKE_SOURCE_DIR}
CACHE PATH "Single Directory for all Executables."
)
SET(BIN_PREFIX ${CMAKE_SOURCE_DIR})
ELSE (CMAKE_BUILD_TYPE STREQUAL Debug)
MESSAGE(STATUS "CMAKE_INSTALL_PREFIX : ${CMAKE_INSTALL_PREFIX}")
MESSAGE(STATUS "BIN_PREFIX : ${BIN_PREFIX}")
MESSAGE(STATUS "DATA_PREFIX : ${DATA_PREFIX}")
IF(LOCALIZE)
MESSAGE(STATUS "LOCALE_PATH : ${LOCALE_DIR}")
ENDIF(LOCALIZE)
MESSAGE(STATUS "DESKTOP_ENTRY_PATH : ${DESKTOP_ENTRY_PATH}")
MESSAGE(STATUS "PIXMAPS_ENTRY_PATH : ${PIXMAPS_ENTRY_PATH}")
MESSAGE(STATUS "PIXMAPS_UNITY_ENTRY_PATH : ${PIXMAPS_UNITY_ENTRY_PATH}")
MESSAGE(STATUS "MANPAGE_ENTRY_PATH : ${MANPAGE_ENTRY_PATH}\n")
ADD_DEFINITIONS(-DRELEASE)
# Use PREFIX as storage of data,gfx, etc.. Useful only on *nix OS.
if (PREFIX AND NOT WIN32)
add_definitions(-DDATA_DIR_PREFIX)
endif ()
endif ()
IF (PREFIX AND NOT WIN32)
ADD_DEFINITIONS(-DDATA_DIR_PREFIX)
ENDIF (PREFIX AND NOT WIN32)
ENDIF (CMAKE_BUILD_TYPE STREQUAL Debug)
message(STATUS "GIT_BINARY : ${GIT_EXECUTABLE}")
message(STATUS "DYNAMIC_LINKING : ${DYNAMIC_LINKING}")
message(STATUS "TILES : ${TILES}")
message(STATUS "CURSES : ${CURSES}")
message(STATUS "SOUND : ${SOUND}")
message(STATUS "BACKTRACE : ${BACKTRACE}")
message(STATUS "LOCALIZE : ${LOCALIZE}")
message(STATUS "USE_HOME_DIR : ${USE_HOME_DIR}")
message(STATUS "LANGUAGES : ${LANGUAGES}")
message(STATUS "See doc/COMPILING/COMPILING-CMAKE.md for details and more info --")
MESSAGE(STATUS "GIT_BINARY : ${GIT_EXECUTABLE}")
MESSAGE(STATUS "DYNAMIC_LINKING : ${DYNAMIC_LINKING}")
MESSAGE(STATUS "TILES : ${TILES}")
MESSAGE(STATUS "CURSES : ${CURSES}")
MESSAGE(STATUS "SOUND : ${SOUND}")
MESSAGE(STATUS "BACKTRACE : ${BACKTRACE}")
MESSAGE(STATUS "LOCALIZE : ${LOCALIZE}")
MESSAGE(STATUS "USE_HOME_DIR : ${USE_HOME_DIR}\n")
if (MSVC)
if (CMAKE_SIZEOF_VOID_P EQUAL 8)
add_definitions(-D_AMD64_)
else ()
add_definitions(-D_X86_)
endif ()
else (MSVC)
set(CATA_WARNINGS
"-Werror -Wall -Wextra \
-Wformat-signedness \
-Wlogical-op \
-Wmissing-declarations \
-Wmissing-noreturn \
-Wnon-virtual-dtor \
-Wold-style-cast \
-Woverloaded-virtual \
-Wpedantic \
-Wsuggest-override \
-Wunused-macros \
-Wzero-as-null-pointer-constant \
-Wno-unknown-warning-option")
if (NOT ${CMAKE_SYSTEM_NAME} MATCHES Windows)
set(CATA_WARNINGS "${CATA_WARNINGS} -Wredundant-decls")
endif ()
set(CATA_OTHER_FLAGS "${CATA_OTHER_FLAGS} -fsigned-char")
MESSAGE(STATUS "LANGUAGES : ${LANGUAGES}\n")
MESSAGE(STATUS "See INSTALL file for details and more info --\n")
IF(MSVC)
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
add_definitions(-D_AMD64_)
else()
add_definitions(-D_X86_)
endif()
ELSE()
SET(CATA_WARNINGS
"-Werror -Wall -Wextra \
-Wformat-signedness \
-Wlogical-op \
-Wmissing-declarations \
-Wmissing-noreturn \
-Wnon-virtual-dtor \
-Wold-style-cast \
-Woverloaded-virtual \
-Wpedantic \
-Wsuggest-override \
-Wunused-macros \
-Wzero-as-null-pointer-constant \
-Wno-unknown-warning-option")
IF (NOT ${CMAKE_SYSTEM_NAME} MATCHES Windows)
SET(CATA_WARNINGS "${CATA_WARNINGS} -Wredundant-decls")
ENDIF()
# Compact the whitespace in the warning string
string(REGEX REPLACE "[\t ]+" " " CATA_WARNINGS "${CATA_WARNINGS}")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CATA_WARNINGS} ${CATA_OTHER_FLAGS}")
set(CMAKE_CXX_FLAGS_DEBUG "-Og -g")
endif ()
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CATA_WARNINGS}")
SET(CMAKE_CXX_FLAGS_DEBUG "-Og -g")
ENDIF()
set(CMAKE_CXX_STANDARD 14)
SET(CMAKE_CXX_STANDARD 14)
# Force out-of-source build
if (${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR})
message(FATAL_ERROR
"This project requires an out of source build. \
Remove the file 'CMakeCache.txt' found in this directory before continuing; \
create a separate build directory and run 'cmake [options] <srcs>' from there. \
See doc/COMPILING/COMPILING-CMAKE.md for details and more info.")
endif ()
IF(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR})
MESSAGE(FATAL_ERROR
"This project requires an out of source build. Remove the file 'CMakeCache.txt' found in this directory before continuing, create a separate build
directory and run 'cmake [options] <srcs>' from there.\nSee INSTALL file for details and more info\n"
)
ENDIF(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR})
#set(THREADS_USE_PTHREADS_WIN32 True)
set(CMAKE_THREAD_PREFER_PTHREAD True)
find_package(Threads REQUIRED)
#SET(THREADS_USE_PTHREADS_WIN32 True)
SET(CMAKE_THREAD_PREFER_PTHREAD True)
FIND_PACKAGE(Threads REQUIRED)
# Check for build types and libraries
if (TILES)
IF(TILES)
# Find SDL, SDL_ttf & SDL_image for graphical install
message(STATUS "Searching for SDL2 library --")
find_package(SDL2)
if (NOT SDL2_FOUND)
message(FATAL_ERROR
"This project requires SDL2 to be installed to compile in graphical mode. \
Please install the SDL2 development libraries, \
or try compiling without -DTILES=1 for a text-only compilation. \
See doc/COMPILING/COMPILING-CMAKE.md for details and more info.")
endif ()
MESSAGE(STATUS "Searching for SDL2 library --")
FIND_PACKAGE(SDL2)
IF(NOT SDL2_FOUND)
MESSAGE(FATAL_ERROR
"This project requires SDL2 to be installed to be compiled in graphical mode. Please install the SDL2 development libraries, or try compiling
without the -DTILES=1 for a text only compilation.\nSee INSTALL file for details and more info\n"
)
ENDIF(NOT SDL2_FOUND)
if (NOT DYNAMIC_LINKING)
# SDL, SDL_Image, SDL_ttf deps are required for static build
message(STATUS "Searching for SDL deps libraries --")
find_package(Freetype REQUIRED)
find_package(PNG REQUIRED)
find_package(JPEG REQUIRED)
find_package(ZLIB REQUIRED)
find_package(BZip2 REQUIRED)
endif ()
IF (NOT DYNAMIC_LINKING)
# SDL, SDL_Image, SDL_ttf deps are required for static build
MESSAGE(STATUS "Searching for SDL deps libraries --")
FIND_PACKAGE(Freetype REQUIRED)
FIND_PACKAGE(PNG REQUIRED)
FIND_PACKAGE(JPEG REQUIRED)
FIND_PACKAGE(ZLIB REQUIRED)
FIND_PACKAGE(BZip2 REQUIRED)
ENDIF (NOT DYNAMIC_LINKING)
message(STATUS "Searching for SDL2_TTF library --")
find_package(SDL2_ttf)
if (NOT SDL2_TTF_FOUND)
message(FATAL_ERROR
"This project requires SDL2_ttf to be installed to compile in graphical mode. \
Please install the SDL2_ttf development libraries, \
or try compiling without -DTILES=1 for a text-only compilation. \
See doc/COMPILING/COMPILING-CMAKE.md for details and more info.")
endif ()
MESSAGE(STATUS "Searching for SDL2_TTF library --")
FIND_PACKAGE(SDL2_ttf)
IF(NOT SDL2_TTF_FOUND)
MESSAGE(FATAL_ERROR
"This project requires SDL2_ttf to be installed to be compiled in graphical mode. Please install the SDL2_ttf development libraries, or try
compiling without the -DTILES=1 for a text only compilation.\nSee INSTALL file for details and moreinfo\n"
)
ENDIF(NOT SDL2_TTF_FOUND)
message(STATUS "Searching for SDL2_image library --")
find_package(SDL2_image)
if (NOT SDL2_IMAGE_FOUND)
message(FATAL_ERROR
"This project requires SDL2_image to be installed to compile in graphical mode. \
Please install the SDL2_image development libraries, \
or try compiling without -DTILES=1 for a text-only compilation. \
See doc/COMPILING/COMPILING-CMAKE.md for details and more info.")
endif ()
add_definitions(-DTILES)
endif ()
MESSAGE(STATUS "Searching for SDL2_image library --\n")
FIND_PACKAGE(SDL2_image)
IF(NOT SDL2_IMAGE_FOUND)
MESSAGE(FATAL_ERROR
"This project requires SDL2_image to be installed to be compiled in graphical mode. Please install the SDL2_image development libraries, or try
compiling without the -DTILES=1 for a text only compilation.\nSee INSTALL file for details and more info\n"
)
ENDIF(NOT SDL2_IMAGE_FOUND)
ADD_DEFINITIONS(-DTILES)
ENDIF(TILES)
if (CURSES)
IF(CURSES)
# Find the ncurses library for a text based compile
message(STATUS "Searching for Curses library --")
set(CURSES_NEED_NCURSES TRUE)
set(CURSES_NEED_WIDE TRUE)
find_package(Curses)
if (NOT CURSES_FOUND)
message(FATAL_ERROR
"This project requires ncurses to be installed to be compiled in text-only mode. \
Please install the ncurses development libraries, \
or try compiling with -DTILES=1 for a graphical compilation. \
See doc/COMPILING/COMPILING-CMAKE.md for details and more info")
endif ()
endif ()
MESSAGE(STATUS "Searching for Curses library --\n")
SET(CURSES_NEED_NCURSES TRUE)
SET(CURSES_NEED_WIDE TRUE)
FIND_PACKAGE(Curses)
IF(NOT CURSES_FOUND)
MESSAGE(FATAL_ERROR
"This project requires ncurses to be installed to be compiled in text only mode. Please install the ncurses development libraries, or try compiling
with the -DTILES=1 for a graphical compilation.\nSee INSTALL file for details and more info\n"
)
ENDIF(NOT CURSES_FOUND)
ENDIF(CURSES)
if (SOUND)
IF(SOUND)
# You need TILES to be able to use SOUND
if (NOT TILES)
message(FATAL_ERROR
"You must enable graphical support with -DTILES=1 \
to be able to enable sound support. \
See doc/COMPILING/COMPILING-CMAKE.md for details and more info.")
endif ()
IF(NOT TILES)
MESSAGE(FATAL_ERROR
"You must enable graphical support with -DTILES=1 to be able to enable sound support.\nSee INSTALL file for details and more info\n"
)
ENDIF(NOT TILES)
# Sound requires SDL_mixer library
message(STATUS "Searching for SDL2_mixer library --")
find_package(SDL2_mixer)
if (NOT SDL2_MIXER_FOUND)
message(FATAL_ERROR
"You need the SDL2_mixer development library \
to be able to compile with sound enabled. \
See doc/COMPILING/COMPILING-CMAKE.md for details and more info.")
endif ()
endif ()
MESSAGE(STATUS "Searching for SDL2_mixer library --\n")
FIND_PACKAGE(SDL2_mixer)
IF(NOT SDL2_MIXER_FOUND)
MESSAGE(FATAL_ERROR
"You need the SDL2_mixer development library to be able to compile with sound enabled.\nSee INSTALL file for details and more info\n"
)
ENDIF(NOT SDL2_MIXER_FOUND)
ENDIF(SOUND)
if (BACKTRACE)
add_definitions(-DBACKTRACE)
if (LIBBACKTRACE)
add_definitions(-DLIBBACKTRACE)
endif (LIBBACKTRACE)
endif (BACKTRACE)
IF(BACKTRACE)
ADD_DEFINITIONS(-DBACKTRACE)
IF(LIBBACKTRACE)
ADD_DEFINITIONS(-DLIBBACKTRACE)
ENDIF(LIBBACKTRACE)
ENDIF(BACKTRACE)
# Ok. Now create build and install recipes
if (LOCALIZE)
if (WIN32)
find_package(Libintl)
if (NOT LIBINTL_FOUND)
message(FATAL_ERROR
"You need the libintl development library \
to be able to compile with LOCALIZE support. \
See doc/COMPILING/COMPILING-CMAKE.md for details and more info.")
endif ()
find_package(Iconv)
if (NOT ICONV_FOUND)
message(FATAL_ERROR
"You need the iconv development library \
to be able to compile with LOCALIZE support. \
See doc/COMPILING/COMPILING-CMAKE.md for details and more info.")
endif ()
endif ()
IF(LOCALIZE)
IF(WIN32)
FIND_PACKAGE(Libintl)
IF(NOT LIBINTL_FOUND)
MESSAGE(FATAL_ERROR
"You need the libintl development library to be able to compile with Localize support.\nSee INSTALL file for details and more info\n"
)
ENDIF(NOT LIBINTL_FOUND)
FIND_PACKAGE(Iconv)
IF(NOT ICONV_FOUND)
MESSAGE(FATAL_ERROr
"You need the iconv development library to be able to compile with Localize support.\nSee INSTALL file for details and more info\n"
)
ENDIF(NOT ICONV_FOUND)
ENDIF(WIN32)
add_subdirectory(lang)
add_definitions(-DLOCALIZE)
endif ()
ADD_DEFINITIONS(-DLOCALIZE)
ENDIF(LOCALIZE)
if (USE_HOME_DIR)
add_definitions(-DUSE_HOME_DIR)
endif ()
IF(USE_HOME_DIR)
ADD_DEFINITIONS(-DUSE_HOME_DIR)
ENDIF(USE_HOME_DIR)
add_subdirectory(src)
add_subdirectory(data)
@@ -372,18 +376,21 @@ if (CATA_CLANG_TIDY_PLUGIN)
add_subdirectory(tools/clang-tidy-plugin)
endif()
configure_file(
"${CMAKE_CURRENT_SOURCE_DIR}/cmake_uninstall.cmake.in"
"${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
IMMEDIATE @ONLY)
CONFIGURE_FILE(
"${CMAKE_CURRENT_SOURCE_DIR}/cmake_uninstall.cmake.in"
"${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
IMMEDIATE @ONLY
)
add_custom_target(uninstall
"${CMAKE_COMMAND}"
-P "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake")
ADD_CUSTOM_TARGET(uninstall
"${CMAKE_COMMAND}"
-P "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
)
find_program(CCACHE_FOUND ccache)
if (CCACHE_FOUND AND CATA_CCACHE)
if(CCACHE_FOUND)
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ccache)
set_property(GLOBAL PROPERTY RULE_LAUNCH_LINK ccache)
endif ()
endif(CCACHE_FOUND)
# vim:noet
+3 -3
View File
@@ -88,7 +88,7 @@ if(NOT CURSES_USE_NCURSES)
get_filename_component(_cursesParentDir "${_cursesLibDir}" PATH)
# for compatibility with older FindCurses.cmake this has to be in the cache
# FORCE must not be used since this would break builds which preload a cache with these variables set
# FORCE must not be used since this would break builds which preload a cache wqith these variables set
set(CURSES_INCLUDE_PATH "${CURSES_CURSES_H_PATH}"
CACHE FILEPATH "The curses include path")
set(CURSES_LIBRARY "${CURSES_CURSES_LIBRARY}"
@@ -113,7 +113,7 @@ else()
# FORCE must not be used since this would break builds which preload
# however if the value of the variable has NOTFOUND in it, then
# it is OK to force, and we need to force in order to have it work.
# a cache with these variables set
# a cache wqith these variables set
# only put ncurses include and library into
# variables if they are found
if(NOT CURSES_NCURSES_INCLUDE_PATH AND CURSES_HAVE_NCURSES_NCURSES_H)
@@ -155,7 +155,7 @@ find_library(CURSES_FORM_LIBRARY form )
# for compatibility with older FindCurses.cmake this has to be in the cache
# FORCE must not be used since this would break builds which preload a cache
# with these variables set
# qith these variables set
set(FORM_LIBRARY "${CURSES_FORM_LIBRARY}"
CACHE FILEPATH "The curses form library")
+2 -2
View File
@@ -16,7 +16,7 @@
#
#
#
# For backward compatibility the following variables are also set:
# For backward compatiblity the following variables are also set:
#
# ::
#
@@ -89,7 +89,7 @@ FIND_PACKAGE_HANDLE_STANDARD_ARGS(SDL2_image
REQUIRED_VARS SDL2_IMAGE_LIBRARIES SDL2_IMAGE_INCLUDE_DIRS
VERSION_VAR SDL2_IMAGE_VERSION_STRING)
# for backward compatibility
# for backward compatiblity
set(SDL2IMAGE_LIBRARY ${SDL2_IMAGE_LIBRARIES})
set(SDL2IMAGE_INCLUDE_DIR ${SDL2_IMAGE_INCLUDE_DIRS})
set(SDL2IMAGE_FOUND ${SDL2_IMAGE_FOUND})
+2 -2
View File
@@ -16,7 +16,7 @@
#
#
#
# For backward compatibility the following variables are also set:
# For backward compatiblity the following variables are also set:
#
# ::
#
@@ -89,7 +89,7 @@ FIND_PACKAGE_HANDLE_STANDARD_ARGS(SDL2_mixer
REQUIRED_VARS SDL2_MIXER_LIBRARIES SDL2_MIXER_INCLUDE_DIRS
VERSION_VAR SDL2_MIXER_VERSION_STRING)
# for backward compatibility
# for backward compatiblity
set(SDL2MIXER_LIBRARY ${SDL2_MIXER_LIBRARIES})
set(SDL2MIXER_INCLUDE_DIR ${SDL2_MIXER_INCLUDE_DIRS})
set(SDL2MIXER_FOUND ${SDL2_MIXER_FOUND})
+2 -2
View File
@@ -15,7 +15,7 @@
#
#
#
# For backward compatibility the following variables are also set:
# For backward compatiblity the following variables are also set:
#
# ::
#
@@ -88,7 +88,7 @@ FIND_PACKAGE_HANDLE_STANDARD_ARGS(SDL2_ttf
REQUIRED_VARS SDL2_TTF_LIBRARIES SDL2_TTF_INCLUDE_DIRS
VERSION_VAR SDL2_TTF_VERSION_STRING)
# for backward compatibility
# for backward compatiblity
set(SDL2TTF_LIBRARY ${SDL2_TTF_LIBRARIES})
set(SDL2TTF_INCLUDE_DIR ${SDL2_TTF_INCLUDE_DIRS})
set(SDL2TTF_FOUND ${SDL2_TTF_FOUND})
+43 -50
View File
@@ -12,8 +12,7 @@
<Option type="0" />
<Option compiler="gcc" />
<Compiler>
<Add option="-Os" />
<Add option="-O2" />
<Add option="-Os -O2" />
<Add option="-DRELEASE=1" />
</Compiler>
</Target>
@@ -23,9 +22,8 @@
<Option type="0" />
<Option compiler="gcc" />
<Compiler>
<Add option="-Os" />
<Add option="-O2" />
<Add option="-DLOCALIZE=1" />
<Add option="-Os -O2" />
<Add option="-DLOCALIZE" />
<Add option="-DRELEASE=1" />
<Add directory="WinDepend/include" />
</Compiler>
@@ -41,9 +39,9 @@
<Option type="0" />
<Option compiler="gcc" />
<Compiler>
<Add option="-Os" />
<Add option="-O2" />
<Add option="-DTILES=1" />
<Add option="-Os -O2" />
<Add option="-DTILES" />
<Add option="-DSDLTILES" />
<Add option="-DRELEASE=1" />
<Add directory="WinDepend/include" />
<Add directory="WinDepend/include/SDL2" />
@@ -62,10 +60,10 @@
<Option type="0" />
<Option compiler="gcc" />
<Compiler>
<Add option="-Os" />
<Add option="-O2" />
<Add option="-DTILES=1" />
<Add option="-DSDL_SOUND=1" />
<Add option="-Os -O2" />
<Add option="-DTILES" />
<Add option="-DSDLTILES" />
<Add option="-DSDL_SOUND" />
<Add option="-DRELEASE=1" />
<Add directory="WinDepend/include" />
<Add directory="WinDepend/include/SDL2" />
@@ -85,10 +83,10 @@
<Option type="0" />
<Option compiler="gcc" />
<Compiler>
<Add option="-Os" />
<Add option="-O2" />
<Add option="-DLOCALIZE=1" />
<Add option="-DTILES=1" />
<Add option="-Os -O2" />
<Add option="-DLOCALIZE" />
<Add option="-DTILES" />
<Add option="-DSDLTILES" />
<Add option="-DRELEASE=1" />
<Add directory="WinDepend/include" />
<Add directory="WinDepend/include/SDL2" />
@@ -109,11 +107,11 @@
<Option type="0" />
<Option compiler="gcc" />
<Compiler>
<Add option="-Os" />
<Add option="-O2" />
<Add option="-DLOCALIZE=1" />
<Add option="-DTILES=1" />
<Add option="-DSDL_SOUND=1" />
<Add option="-Os -O2" />
<Add option="-DLOCALIZE" />
<Add option="-DTILES" />
<Add option="-DSDLTILES" />
<Add option="-DSDL_SOUND" />
<Add option="-DRELEASE=1" />
<Add directory="WinDepend/include" />
<Add directory="WinDepend/include/SDL2" />
@@ -147,14 +145,12 @@
<Option type="0" />
<Option compiler="gcc" />
<Compiler>
<Add option="-pg" />
<Add option="-g" />
<Add option="-DLOCALIZE=1" />
<Add option="-pg -g" />
<Add option="-DLOCALIZE" />
<Add directory="WinDepend/include" />
</Compiler>
<Linker>
<Add option="-pg" />
<Add option="-lgmon" />
<Add option="-pg -lgmon" />
<Add library="libintl.dll.a" />
<Add library="libiconv.dll.a" />
<Add directory="WinDepend/lib" />
@@ -167,14 +163,14 @@
<Option compiler="gcc" />
<Compiler>
<Add option="-pg" />
<Add option="-g" />
<Add option="-DTILES=1" />
<Add option="-pg -g" />
<Add option="-DTILES" />
<Add option="-DSDLTILES" />
<Add directory="WinDepend/include" />
<Add directory="WinDepend/include/SDL2" />
</Compiler>
<Linker>
<Add option="-pg" />
<Add option="-lgmon" />
<Add option="-pg -lgmon" />
<Add library="libSDL2.dll.a" />
<Add library="libSDL2main.a" />
<Add library="libSDL2_ttf.dll.a" />
@@ -189,15 +185,15 @@
<Option compiler="gcc" />
<Compiler>
<Add option="-pg" />
<Add option="-g" />
<Add option="-DTILES=1" />
<Add option="-DSDL_SOUND=1" />
<Add option="-pg -g" />
<Add option="-DTILES" />
<Add option="-DSDLTILES" />
<Add option="-DSDL_SOUND" />
<Add directory="WinDepend/include" />
<Add directory="WinDepend/include/SDL2" />
</Compiler>
<Linker>
<Add option="-pg" />
<Add option="-lgmon" />
<Add option="-pg -lgmon" />
<Add library="libSDL2.dll.a" />
<Add library="libSDL2main.a" />
<Add library="libSDL2_ttf.dll.a" />
@@ -213,15 +209,15 @@
<Option compiler="gcc" />
<Compiler>
<Add option="-pg" />
<Add option="-g" />
<Add option="-DLOCALIZE=1" />
<Add option="-DTILES=1" />
<Add option="-pg -g" />
<Add option="-DLOCALIZE" />
<Add option="-DSDLTILES" />
<Add option="-DTILES" />
<Add directory="WinDepend/include" />
<Add directory="WinDepend/include/SDL2" />
</Compiler>
<Linker>
<Add option="-pg" />
<Add option="-lgmon" />
<Add option="-pg -lgmon" />
<Add library="libintl.dll.a" />
<Add library="libiconv.dll.a" />
<Add library="libSDL2.dll.a" />
@@ -238,16 +234,16 @@
<Option compiler="gcc" />
<Compiler>
<Add option="-pg" />
<Add option="-g" />
<Add option="-DLOCALIZE=1" />
<Add option="-DTILES=1" />
<Add option="-DSDL_SOUND=1" />
<Add option="-pg -g" />
<Add option="-DLOCALIZE" />
<Add option="-DTILES" />
<Add option="-DSDLTILES" />
<Add option="-DSDL_SOUND" />
<Add directory="WinDepend/include" />
<Add directory="WinDepend/include/SDL2" />
</Compiler>
<Linker>
<Add option="-pg" />
<Add option="-lgmon" />
<Add option="-pg -lgmon" />
<Add library="libintl.dll.a" />
<Add library="libiconv.dll.a" />
<Add library="libSDL2.dll.a" />
@@ -264,10 +260,7 @@
<Add option="-Wall" />
<Add option="-std=c++14" />
<Add option="-DCB_BUILD" />
<Add option="-D_WINDOWS" />
<Add option="-D_MINGW" />
<Add option="-D_WIN32" />
<Add option="-D__MINGW__" />
<Add option="-D_WINDOWS -D_MINGW -D_WIN32 -DWIN32 -D__MINGW__" />
</Compiler>
<Linker>
<Add option="-Wl,-stack,12000000,-subsystem,windows" />
-3
View File
@@ -1,9 +1,6 @@
Copyright (c) 2019 Dimitar Toshkov Zhekov,
with Reserved Font Name "Terminus Font".
Copyright (c) 2011 Tilman Blumenbach,
with Reserved Font Name "Terminus (TTF)".
This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
http://scripts.sil.org/OFL
+3 -3
View File
@@ -1,6 +1,8 @@
Cataclysm is licensed under the Creative Commons Attribution-ShareAlike 3.0 Unported License. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/ or send a letter to Creative Commons, 444 Castro Street, Suite 900, Mountain View, California, 94041, USA.
GNU Unifont (data/font/unifont.ttf) is licensed under GNU General Public License v2+ with the GNU font embedding exception. Visit http://unifoundry.com/LICENSE.txt for details.
The Square font (data/font/square.ttf) is copyright Wouter van Oortmerssen, licensed under Creative Commons Attribution 3.0 Unported License. See http://strlen.com/square for more information.
GNU Unifont (data/font/unitfont.ttf) is licensed under GNU General Public License v2+ with the GNU font embedding exception. Visit http://unifoundry.com/LICENSE.txt for details.
Terminus Font (data/font/terminus.ttf) is licensed under the SIL Open Font License (see LICENSE-OFL-Terminus-Font.txt).
@@ -10,8 +12,6 @@ PLF List and PLF Colony (src/list.h, src/colony.h) are licensed under the zLib l
getpost (tools/json_tools/format/getpost.h) is licensed under the MIT license, see file for text of license.
libintl-lite is licensed under Boost Software License 1.0. Visit https://www.boost.org/users/license.html to read the license.
libbacktrace is licensed under a BSD license (https://github.com/ianlancetaylor/libbacktrace/blob/master/LICENSE). The full license text is as follows:
# Copyright (C) 2012-2016 Free Software Foundation, Inc.
+97 -208
View File
@@ -55,17 +55,12 @@
# make SANITIZE=address
# Change mapsize (reality bubble size)
# make MAPSIZE=<size>
# Enable the string id debugging helper
# make STRING_ID_DEBUG=1
# Adjust names of build artifacts (for example to allow easily toggling between build types).
# make BUILD_PREFIX="release-"
# Generate a build artifact prefix from the other build flags.
# make AUTO_BUILD_PREFIX=1
# Install to system directories.
# make install
# Install to $DIR ($DIR will contain bin and share directories).
# make PREFIX=$DIR
# make PREFIX=$DIR install
# Use user's XDG base directories for save files and configs.
# make USE_XDG_DIR=1
# Use user's home directory for save files.
@@ -145,7 +140,7 @@ TILES_TARGET_NAME = $(TARGET_NAME)-tiles
TARGET = $(BUILD_PREFIX)$(TARGET_NAME)
TILESTARGET = $(BUILD_PREFIX)$(TILES_TARGET_NAME)
ifeq ($(TILES), 1)
ifdef TILES
APPTARGET = $(TILESTARGET)
else
APPTARGET = $(TARGET)
@@ -159,11 +154,6 @@ SRC_DIR = src
LOCALIZE = 1
ASTYLE_BINARY = astyle
# Enable debug by default
ifndef RELEASE
RELEASE = 0
endif
# Enable astyle by default
ifndef ASTYLE
ASTYLE = 1
@@ -179,42 +169,16 @@ ifndef RUNTESTS
RUNTESTS = 1
endif
ifndef PCH
PCH = 1
endif
# Auto-detect MSYS2
ifdef MSYSTEM
MSYS2 = 1
endif
ifneq (,$(findstring clang,$(COMPILER)))
CLANG = $(COMPILER)
endif
OS = $(shell uname -s)
ifneq ($(findstring Darwin,$(OS)),)
ifndef NATIVE
NATIVE = osx
endif
ifndef CLANG
CLANG = 1
endif
endif
# Default to disabling clang
ifndef CLANG
CLANG = 0
endif
# Determine JSON formatter binary name
JSON_FORMATTER_BIN=tools/format/json_formatter.cgi
ifeq ($(MSYS2), 1)
JSON_FORMATTER_BIN=tools/format/json_formatter.exe
endif
ifneq (,$(findstring mingw32,$(CROSS)))
JSON_FORMATTER_BIN=tools/format/json_formatter.exe
else
JSON_FORMATTER_BIN=tools/format/json_formatter.cgi
endif
# Enable backtrace by default
@@ -225,7 +189,7 @@ ifndef BACKTRACE
BACKTRACE = 1
endif
endif
ifeq ($(BACKTRACE), 1)
ifdef BACKTRACE
# Also enable libbacktrace on cross-compilation to Windows
ifndef LIBBACKTRACE
ifneq (,$(findstring mingw32,$(CROSS)))
@@ -252,23 +216,15 @@ ifdef AUTO_BUILD_PREFIX
export BUILD_PREFIX
endif
OS = $(shell uname -s)
# if $(OS) contains 'BSD'
ifneq ($(findstring BSD,$(OS)),)
BSD = 1
endif
ifeq ($(PCH), 1)
CCACHEBIN = CCACHE_SLOPPINESS=pch_defines,time_macros ccache
else
CCACHEBIN = ccache
endif
ifeq ($(STRING_ID_DEBUG), 1)
DEFINES += -DCATA_STRING_ID_DEBUGGING
endif
# This sets CXX and so must be up here
ifneq ($(CLANG), 0)
ifdef CLANG
# Allow setting specific CLANG version
ifeq ($(CLANG), 1)
CLANGCMD = clang++
@@ -278,22 +234,13 @@ ifneq ($(CLANG), 0)
ifeq ($(NATIVE), osx)
USE_LIBCXX = 1
endif
ifeq ($(BSD), 1)
ifndef USE_LIBCXX
USE_LIBCXX = 1
endif
endif
ifdef USE_LIBCXX
OTHERS += -stdlib=libc++
LDFLAGS += -stdlib=libc++
else
# clang with glibc 2.31+ will cause linking error on math functions
# this is a workaround (see https://github.com/google/filament/issues/2146)
CXXFLAGS += -fno-builtin
endif
ifeq ($(CCACHE), 1)
CXX = CCACHE_CPP2=1 $(CCACHEBIN) $(CROSS)$(CLANGCMD)
LD = CCACHE_CPP2=1 $(CCACHEBIN) $(CROSS)$(CLANGCMD)
ifdef CCACHE
CXX = CCACHE_CPP2=1 ccache $(CROSS)$(CLANGCMD)
LD = CCACHE_CPP2=1 ccache $(CROSS)$(CLANGCMD)
else
CXX = $(CROSS)$(CLANGCMD)
LD = $(CROSS)$(CLANGCMD)
@@ -306,17 +253,12 @@ else
endif
# Expand at reference time to avoid recursive reference
ifneq ($(COMPILER),)
OS_COMPILER := $(COMPILER)
OS_LINKER := $(COMPILER)
else
OS_COMPILER := $(CXX)
OS_LINKER := $(CXX)
endif
OS_COMPILER := $(CXX)
# Appears that the default value of $LD is unsuitable on most systems
ifeq ($(CCACHE), 1)
CXX = $(CCACHEBIN) $(CROSS)$(OS_COMPILER)
LD = $(CCACHEBIN) $(CROSS)$(OS_LINKER)
OS_LINKER := $(CXX)
ifdef CCACHE
CXX = ccache $(CROSS)$(OS_COMPILER)
LD = ccache $(CROSS)$(OS_LINKER)
else
CXX = $(CROSS)$(OS_COMPILER)
LD = $(CROSS)$(OS_LINKER)
@@ -332,18 +274,24 @@ CXXFLAGS += -ffast-math
LDFLAGS += $(PROFILE)
ifneq ($(SANITIZE),)
SANITIZE_FLAGS := -fsanitize=$(SANITIZE) -fno-sanitize-recover=all -fno-omit-frame-pointer
SANITIZE_FLAGS := -fsanitize=$(SANITIZE) -fno-sanitize-recover=all
CXXFLAGS += $(SANITIZE_FLAGS)
LDFLAGS += $(SANITIZE_FLAGS)
endif
# enable optimizations. slow to build
ifeq ($(RELEASE), 1)
ifdef RELEASE
ifeq ($(NATIVE), osx)
ifeq ($(shell $(CXX) -E -Os - < /dev/null > /dev/null 2>&1 && echo fos),fos)
OPTLEVEL = -Os
ifdef OSXCROSS
OPTLEVEL = -O0
else ifeq ($(shell expr $(OSX_MIN) \<= 10.11), 1)
OPTLEVEL = -O0
else
OPTLEVEL = -O3
ifeq ($(shell $(CXX) -E -Os - < /dev/null > /dev/null 2>&1 && echo fos),fos)
OPTLEVEL = -Os
else
OPTLEVEL = -O3
endif
endif
else
# MXE ICE Workaround
@@ -355,8 +303,8 @@ ifeq ($(RELEASE), 1)
endif
endif
ifeq ($(LTO), 1)
ifneq ($(CLANG), 0)
ifdef LTO
ifdef CLANG
# LLVM's LTO will complain if the optimization level isn't between O0 and
# O3 (inclusive)
OPTLEVEL = -O3
@@ -364,27 +312,26 @@ ifeq ($(RELEASE), 1)
endif
CXXFLAGS += $(OPTLEVEL)
ifeq ($(LTO), 1)
ifdef LTO
ifeq ($(NATIVE), osx)
ifneq ($(CLANG), 0)
ifdef CLANG
LTOFLAGS += -flto=full
endif
else
LDFLAGS += -fuse-ld=gold # This breaks in OS X because gold can only produce ELF binaries, not Mach
endif
ifneq ($(CLANG), 0)
ifdef CLANG
LTOFLAGS += -flto
else
LTOFLAGS += -flto=jobserver -flto-odr-type-merging
endif
endif
LTOFLAGS += -Wodr
CXXFLAGS += $(LTOFLAGS)
# OTHERS += -mmmx -m3dnow -msse -msse2 -msse3 -mfpmath=sse -mtune=native
# OTHERS += -march=native # Uncomment this to build an optimized binary for your machine only
# Strip symbols, generates smaller executable.
OTHERS += $(RELEASE_FLAGS)
DEBUG =
@@ -399,8 +346,10 @@ ifeq ($(RELEASE), 1)
ifeq ($(LINTJSON), 1)
CHECKS += style-json
endif
else
ifeq ($(NOOPT), 1)
endif
ifndef RELEASE
ifdef NOOPT
# While gcc claims to include all information required for
# debugging at -Og, at least with gcc 8.3, control flow
# doesn't move line-by-line at -Og. Provide a command-line
@@ -426,35 +375,6 @@ ifeq ($(CYGWIN),1)
WARNINGS += -Wimplicit-fallthrough=0
endif
ifeq ($(PCH), 1)
PCHFLAGS = -Ipch -Winvalid-pch
PCH_H = pch/main-pch.hpp
ifeq ($(CLANG), 0)
PCHFLAGS += -fpch-preprocess -include main-pch.hpp
PCH_P = $(PCH_H).gch
else
PCH_P = $(PCH_H).pch
PCHFLAGS += -include-pch $(PCH_P)
# FIXME: dirty hack ahead
# ccache won't wort with clang unless it supports -fno-pch-timestamp
ifeq ($(CCACHE), 1)
CLANGVER := $(shell echo 'int main(void){return 0;}'|$(CXX) -Xclang -fno-pch-timestamp -x c++ -o _clang_ver.o -c - 2>&1 || echo fail)
ifneq ($(CLANGVER),)
PCHFLAGS = ""
PCH_H = ""
PCH_P = ""
PCH = 0
$(warning your clang version does not support -fno-pch-timestamp: $(CLANGVER) ($(.SHELLSTATUS)))
else
CXXFLAGS += -Xclang -fno-pch-timestamp
endif
endif
endif
endif
CXXFLAGS += $(WARNINGS) $(DEBUG) $(DEBUGSYMS) $(PROFILE) $(OTHERS) -MMD -MP
TOOL_CXXFLAGS = -DCATA_IN_TOOL
@@ -484,7 +404,7 @@ ifeq ($(NATIVE), linux64)
TARGETSYSTEM=LINUX
ifdef GOLD
CXXFLAGS += -fuse-ld=gold
LDFLAGS += -fuse-ld=gold -Wl,--detect-odr-violations
LDFLAGS += -fuse-ld=gold
endif
else
# Linux 32-bit
@@ -494,29 +414,17 @@ else
TARGETSYSTEM=LINUX
ifdef GOLD
CXXFLAGS += -fuse-ld=gold
LDFLAGS += -fuse-ld=gold -Wl,--detect-odr-violations
LDFLAGS += -fuse-ld=gold
endif
endif
endif
# OSX
ifeq ($(NATIVE), osx)
ifeq ($(OSX_MIN),)
ifneq ($(findstring Darwin,$(OS)),)
OSX_MIN = $(shell sw_vers -productVersion | awk -F '.' '{print $$1 "." $$2}')
else
ifneq ($(CLANG), 0)
ifneq ($(SANITIZE),)
# sanitizers does not function properly (e.g. false positive errors) if OSX_MIN < 10.9
# https://github.com/llvm/llvm-project/blob/release/11.x/compiler-rt/CMakeLists.txt#L183
OSX_MIN = 10.9
else
OSX_MIN = 10.7
endif
else
OSX_MIN = 10.5
endif
endif
ifdef CLANG
OSX_MIN = 10.7
else
OSX_MIN = 10.5
endif
DEFINES += -DMACOSX
CXXFLAGS += -mmacosx-version-min=$(OSX_MIN)
@@ -541,17 +449,6 @@ ifeq ($(NATIVE), osx)
LDFLAGS += -L$(LIBSDIR)/gettext/lib
CXXFLAGS += -I$(LIBSDIR)/gettext/include
endif
# link to gettext from Homebrew if it exists
# Homebrew may be installed in /usr/local or /opt/homebrew
ifneq ("$(wildcard /usr/local/opt/gettext)", "")
LDFLAGS += -L/usr/local/opt/gettext/lib
CXXFLAGS += -I/usr/local/opt/gettext/include
else
ifneq ("$(wildcard /opt/homebrew/opt/gettext)", "")
LDFLAGS += -L/opt/homebrew/opt/gettext/lib
CXXFLAGS += -I/opt/homebrew/opt/gettext/include
endif
endif
ifeq ($(MACPORTS), 1)
ifneq ($(TILES), 1)
CXXFLAGS += -I$(shell ncursesw6-config --includedir)
@@ -631,6 +528,7 @@ ifeq ($(shell git rev-parse --is-inside-work-tree),true)
endif
PKG_CONFIG = $(CROSS)pkg-config
SDL2_CONFIG = $(CROSS)sdl2-config
ifeq ($(SOUND), 1)
ifneq ($(TILES),1)
@@ -663,11 +561,11 @@ ifeq ($(SOUND), 1)
CXXFLAGS += -DSDL_SOUND
endif
ifeq ($(SDL), 1)
ifdef SDL
TILES = 1
endif
ifeq ($(TILES), 1)
ifdef TILES
SDL = 1
BINDIST_EXTRAS += gfx
ifeq ($(NATIVE),osx)
@@ -697,12 +595,14 @@ ifeq ($(TILES), 1)
endif
endif
else # not osx
CXXFLAGS += $(shell $(PKG_CONFIG) --cflags sdl2 SDL2_image SDL2_ttf)
CXXFLAGS += $(shell $(SDL2_CONFIG) --cflags)
CXXFLAGS += $(shell $(PKG_CONFIG) SDL2_image --cflags)
CXXFLAGS += $(shell $(PKG_CONFIG) SDL2_ttf --cflags)
ifeq ($(STATIC), 1)
LDFLAGS += $(shell $(PKG_CONFIG) sdl2 --static --libs)
ifdef STATIC
LDFLAGS += $(shell $(SDL2_CONFIG) --static-libs)
else
LDFLAGS += $(shell $(PKG_CONFIG) sdl2 --libs)
LDFLAGS += $(shell $(SDL2_CONFIG) --libs)
endif
LDFLAGS += -lSDL2_ttf -lSDL2_image
@@ -719,7 +619,8 @@ ifeq ($(TILES), 1)
# These differ depending on what SDL2 is configured to use.
ifneq (,$(findstring mingw32,$(CROSS)))
# We use pkg-config to find out which libs are needed with MXE
LDFLAGS += $(shell $(PKG_CONFIG) --libs SDL2_image SDL2_ttf)
LDFLAGS += $(shell $(PKG_CONFIG) SDL2_image --libs)
LDFLAGS += $(shell $(PKG_CONFIG) SDL2_ttf --libs)
else
ifeq ($(MSYS2),1)
LDFLAGS += -Wl,--start-group -lharfbuzz -lfreetype -Wl,--end-group -lgraphite2 -lpng -lz -ltiff -lbz2 -lglib-2.0 -llzma -lws2_32 -lintl -liconv -lwebp -ljpeg -luuid
@@ -762,8 +663,8 @@ else
# Link to ncurses if we're using a non-tiles, Linux build
ifeq ($(HAVE_PKGCONFIG),1)
CXXFLAGS += $(shell $(PKG_CONFIG) --cflags $(NCURSES_PREFIX))
LDFLAGS += $(shell $(PKG_CONFIG) --libs $(NCURSES_PREFIX))
CXXFLAGS += $(shell pkg-config --cflags $(NCURSES_PREFIX))
LDFLAGS += $(shell pkg-config --libs $(NCURSES_PREFIX))
else
ifeq ($(HAVE_NCURSES5CONFIG),1)
CXXFLAGS += $(shell $(NCURSES_PREFIX)5-config --cflags)
@@ -800,10 +701,6 @@ ifeq ($(BSD), 1)
ifeq ($(LOCALIZE),1)
LDFLAGS += -lintl -liconv
endif
# libexecinfo, libintl and libiconv may be located in /usr/local on BSD
CXXFLAGS += -I/usr/local/include
LDFLAGS += -L/usr/local/lib
endif
# Global settings for Windows targets (at end)
@@ -851,7 +748,7 @@ SOURCES := $(wildcard $(SRC_DIR)/*.cpp)
HEADERS := $(wildcard $(SRC_DIR)/*.h)
TESTSRC := $(wildcard tests/*.cpp)
TESTHDR := $(wildcard tests/*.h)
JSON_FORMATTER_SOURCES := tools/format/format.cpp tools/format/format_main.cpp src/json.cpp
JSON_FORMATTER_SOURCES := tools/format/format.cpp src/json.cpp
CHKJSON_SOURCES := src/chkjson/chkjson.cpp src/json.cpp
CLANG_TIDY_PLUGIN_SOURCES := \
$(wildcard tools/clang-tidy-plugin/*.cpp tools/clang-tidy-plugin/*/*.cpp)
@@ -904,14 +801,14 @@ ifeq ($(USE_XDG_DIR),1)
DEFINES += -DUSE_XDG_DIR
endif
ifeq ($(LTO), 1)
ifdef LTO
# Depending on the compiler version, LTO usually requires all the
# optimization flags to be specified on the link line, and requires them to
# match the original invocations.
LDFLAGS += $(CXXFLAGS)
# If GCC or CLANG, use a wrapper for AR (if it exists) else test fails to build
ifeq ($(CLANG), 0)
ifndef CLANG
GCCAR := $(shell command -v gcc-ar 2> /dev/null)
ifdef GCCAR
ifneq (,$(findstring gcc version,$(shell $(CXX) -v </dev/null 2>&1)))
@@ -928,12 +825,12 @@ ifeq ($(LTO), 1)
endif
endif
all: version $(CHECKS) $(TARGET) $(L10N) $(TESTS)
all: version $(CHECKS) $(TARGET) $(L10N) $(TESTS) validate-pr
@
$(TARGET): $(OBJS)
+$(LD) $(W32FLAGS) -o $(TARGET) $(OBJS) $(LDFLAGS)
ifeq ($(RELEASE), 1)
ifdef RELEASE
ifndef DEBUG_SYMBOLS
ifneq ($(BACKTRACE),1)
$(STRIP) $(TARGET)
@@ -941,25 +838,22 @@ ifeq ($(RELEASE), 1)
endif
endif
$(PCH_P): $(PCH_H)
-$(CXX) $(CPPFLAGS) $(DEFINES) $(subst -Werror,,$(CXXFLAGS)) -c $(PCH_H) -o $(PCH_P)
$(BUILD_PREFIX)$(TARGET_NAME).a: $(OBJS)
$(AR) rcs $(BUILD_PREFIX)$(TARGET_NAME).a $(filter-out $(ODIR)/main.o $(ODIR)/messages.o,$(OBJS))
.PHONY: version
version:
@( VERSION_STRING=$(VERSION) ; \
[ -e ".git" ] && GITVERSION=$$( git describe --tags --always --match "[0-9A-Z]*.[0-9A-Z]*" ) && DIRTYFLAG=$$( [ -z "$$(git diff --numstat | grep -v lang/po/)" ] || echo "-dirty") && VERSION_STRING=$$GITVERSION$$DIRTYFLAG ; \
[ -e ".git" ] && GITVERSION=$$( git describe --tags --always --dirty --match "[0-9A-Z]*.[0-9A-Z]*" ) && VERSION_STRING=$$GITVERSION ; \
[ -e "$(SRC_DIR)/version.h" ] && OLDVERSION=$$(grep VERSION $(SRC_DIR)/version.h|cut -d '"' -f2) ; \
if [ "x$$VERSION_STRING" != "x$$OLDVERSION" ]; then printf '// NOLINT(cata-header-guard)\n#define VERSION "%s"\n' "$$VERSION_STRING" | tee $(SRC_DIR)/version.h ; fi \
if [ "x$$VERSION_STRING" != "x$$OLDVERSION" ]; then echo "#define VERSION \"$$VERSION_STRING\"" | tee $(SRC_DIR)/version.h ; fi \
)
# Unconditionally create the object dir on every invocation.
$(shell mkdir -p $(ODIR))
$(ODIR)/%.o: $(SRC_DIR)/%.cpp $(PCH_P)
$(CXX) $(CPPFLAGS) $(DEFINES) $(CXXFLAGS) $(PCHFLAGS) -c $< -o $@
$(ODIR)/%.o: $(SRC_DIR)/%.cpp
$(CXX) $(CPPFLAGS) $(DEFINES) $(CXXFLAGS) -c $< -o $@
$(ODIR)/%.o: $(SRC_DIR)/%.rc
$(RC) $(RFLAGS) $< -o $@
@@ -977,7 +871,7 @@ $(CHKJSON_BIN): $(CHKJSON_SOURCES)
json-check: $(CHKJSON_BIN)
./$(CHKJSON_BIN)
clean: clean-tests clean-object_creator clean-pch
clean: clean-tests
rm -rf *$(TARGET_NAME) *$(TILES_TARGET_NAME)
rm -rf *$(TILES_TARGET_NAME).exe *$(TARGET_NAME).exe *$(TARGET_NAME).a
rm -rf *obj *objwin
@@ -1014,10 +908,10 @@ install: version $(TARGET)
cp -R --no-preserve=ownership data/credits $(DATA_PREFIX)
cp -R --no-preserve=ownership data/title $(DATA_PREFIX)
cp -R --no-preserve=ownership data/help $(DATA_PREFIX)
ifeq ($(TILES), 1)
ifdef TILES
cp -R --no-preserve=ownership gfx $(DATA_PREFIX)
endif
ifeq ($(SOUND), 1)
ifdef SOUND
cp -R --no-preserve=ownership data/sound $(DATA_PREFIX)
endif
install --mode=644 data/changelog.txt data/cataicon.ico data/fontdata.json \
@@ -1046,10 +940,10 @@ install: version $(TARGET)
cp -R --no-preserve=ownership data/credits $(DATA_PREFIX)
cp -R --no-preserve=ownership data/title $(DATA_PREFIX)
cp -R --no-preserve=ownership data/help $(DATA_PREFIX)
ifeq ($(TILES), 1)
ifdef TILES
cp -R --no-preserve=ownership gfx $(DATA_PREFIX)
endif
ifeq ($(SOUND), 1)
ifdef SOUND
cp -R --no-preserve=ownership data/sound $(DATA_PREFIX)
endif
install --mode=644 data/changelog.txt data/cataicon.ico data/fontdata.json \
@@ -1076,21 +970,21 @@ appclean:
rm -f data/auto_pickup.txt
rm -f data/fontlist.txt
build-data/osx/AppIcon.icns: build-data/osx/AppIcon.iconset
data/osx/AppIcon.icns: data/osx/AppIcon.iconset
iconutil -c icns $<
ifdef OSXCROSS
app: appclean version $(APPTARGET)
else
app: appclean version build-data/osx/AppIcon.icns $(APPTARGET)
app: appclean version data/osx/AppIcon.icns $(APPTARGET)
endif
mkdir -p $(APPTARGETDIR)/Contents
cp build-data/osx/Info.plist $(APPTARGETDIR)/Contents/
cp data/osx/Info.plist $(APPTARGETDIR)/Contents/
mkdir -p $(APPTARGETDIR)/Contents/MacOS
cp build-data/osx/Cataclysm.sh $(APPTARGETDIR)/Contents/MacOS/
cp data/osx/Cataclysm.sh $(APPTARGETDIR)/Contents/MacOS/
mkdir -p $(APPRESOURCESDIR)
cp $(APPTARGET) $(APPRESOURCESDIR)/
cp build-data/osx/AppIcon.icns $(APPRESOURCESDIR)/
cp data/osx/AppIcon.icns $(APPRESOURCESDIR)/
mkdir -p $(APPDATADIR)
cp data/fontdata.json $(APPDATADIR)
cp -R data/core $(APPDATADIR)
@@ -1112,8 +1006,8 @@ ifeq ($(LOCALIZE), 1)
LIBINTL=$$($(CROSS)otool -L $(APPTARGET) | grep libintl | sed -n 's/\(.*\.dylib\).*/\1/p') && if [ -f $$LIBINTL ]; then cp $$LIBINTL $(APPRESOURCESDIR)/; fi; \
if [ ! -z "$$OSXCROSS" ]; then LIBINTL=$$(basename $$LIBINTL) && if [ ! -z "$$LIBINTL" ]; then cp $(LIBSDIR)/gettext/lib/$$LIBINTL $(APPRESOURCESDIR)/; fi; fi
endif
ifeq ($(TILES), 1)
ifeq ($(SOUND), 1)
ifdef TILES
ifdef SOUND
cp -R data/sound $(APPDATADIR)
endif # ifdef SOUND
cp -R gfx $(APPRESOURCESDIR)/
@@ -1121,7 +1015,7 @@ ifdef FRAMEWORK
cp -R $(FRAMEWORKSDIR)/SDL2.framework $(APPRESOURCESDIR)/
cp -R $(FRAMEWORKSDIR)/SDL2_image.framework $(APPRESOURCESDIR)/
cp -R $(FRAMEWORKSDIR)/SDL2_ttf.framework $(APPRESOURCESDIR)/
ifeq ($(SOUND), 1)
ifdef SOUND
cp -R $(FRAMEWORKSDIR)/SDL2_mixer.framework $(APPRESOURCESDIR)/
cd $(APPRESOURCESDIR)/ && ln -s SDL2_mixer.framework/Frameworks/Vorbis.framework Vorbis.framework
cd $(APPRESOURCESDIR)/ && ln -s SDL2_mixer.framework/Frameworks/Ogg.framework Ogg.framework
@@ -1131,7 +1025,7 @@ else # libsdl build
cp $(SDLLIBSDIR)/libSDL2.dylib $(APPRESOURCESDIR)/
cp $(SDLLIBSDIR)/libSDL2_image.dylib $(APPRESOURCESDIR)/
cp $(SDLLIBSDIR)/libSDL2_ttf.dylib $(APPRESOURCESDIR)/
ifeq ($(SOUND), 1)
ifdef SOUND
cp $(SDLLIBSDIR)/libSDL2_mixer.dylib $(APPRESOURCESDIR)/
endif # ifdef SOUND
endif # ifdef FRAMEWORK
@@ -1147,14 +1041,14 @@ dmgdist: dmgdistclean $(L10N) app
ifdef OSXCROSS
mkdir Cataclysm
cp -a $(APPTARGETDIR) Cataclysm/$(APPTARGETDIR)
cp build-data/osx/DS_Store Cataclysm/.DS_Store
cp build-data/osx/dmgback.png Cataclysm/.background.png
cp data/osx/DS_Store Cataclysm/.DS_Store
cp data/osx/dmgback.png Cataclysm/.background.png
ln -s /Applications Cataclysm/Applications
genisoimage -quiet -D -V "Cataclysm DDA" -no-pad -r -apple -o Cataclysm-uncompressed.dmg Cataclysm/
dmg dmg Cataclysm-uncompressed.dmg Cataclysm.dmg
rm Cataclysm-uncompressed.dmg
else
dmgbuild -s build-data/osx/dmgsettings.py "Cataclysm DDA" Cataclysm.dmg
dmgbuild -s data/osx/dmgsettings.py "Cataclysm DDA" Cataclysm.dmg
endif
endif # ifeq ($(NATIVE), osx)
@@ -1167,7 +1061,7 @@ ifdef LANGUAGES
endif
$(BINDIST_CMD)
export ODIR _OBJS LDFLAGS CXX W32FLAGS DEFINES CXXFLAGS TARGETSYSTEM CLANG PCH PCHFLAGS
export ODIR _OBJS LDFLAGS CXX W32FLAGS DEFINES CXXFLAGS TARGETSYSTEM
ctags: $(ASTYLE_SOURCES)
ctags $^
@@ -1182,7 +1076,7 @@ astyle: $(ASTYLE_SOURCES)
# Test whether the system has a version of astyle that supports --dry-run
ifeq ($(shell if $(ASTYLE_BINARY) -Q -X --dry-run src/game.h > /dev/null; then echo foo; fi),foo)
ASTYLE_CHECK=$(shell $(ASTYLE_BINARY) --options=.astylerc --dry-run -X -Q --ascii $(ASTYLE_SOURCES))
ASTYLE_CHECK=$(shell LC_ALL=C $(ASTYLE_BINARY) --options=.astylerc --dry-run -X -Q $(ASTYLE_SOURCES))
endif
astyle-check:
@@ -1194,24 +1088,25 @@ else
@echo Cannot run an astyle check, your system either does not have astyle, or it is too old.
endif
style-json: json_blacklist $(JSON_FORMATTER_BIN)
JSON_FILES = $(shell find data -name "*.json" | sed "s|^\./||")
JSON_WHITELIST = $(filter-out $(shell cat json_blacklist), $(JSON_FILES))
style-json: $(JSON_WHITELIST)
$(JSON_WHITELIST): json_blacklist json_formatter
ifndef CROSS
find data gfx -name "*.json" -print0 | grep -v -z -F -f json_blacklist | \
xargs -0 -L 1 $(JSON_FORMATTER_BIN)
@$(JSON_FORMATTER_BIN) $@
else
@echo Cannot run json formatter in cross compiles.
endif
style-all-json: $(JSON_FORMATTER_BIN)
style-all-json: json_formatter
find data -name "*.json" -print0 | xargs -0 -L 1 $(JSON_FORMATTER_BIN)
$(JSON_FORMATTER_BIN): $(JSON_FORMATTER_SOURCES)
json_formatter: $(JSON_FORMATTER_SOURCES)
$(CXX) $(CXXFLAGS) $(TOOL_CXXFLAGS) -Itools/format -Isrc \
$(JSON_FORMATTER_SOURCES) -o $(JSON_FORMATTER_BIN)
python-check:
flake8
tests: version $(BUILD_PREFIX)cataclysm.a
$(MAKE) -C tests
@@ -1221,18 +1116,12 @@ check: version $(BUILD_PREFIX)cataclysm.a
clean-tests:
$(MAKE) -C tests clean
object_creator: version $(BUILD_PREFIX)cataclysm.a
$(MAKE) -C object_creator
validate-pr:
ifneq ($(CYGWIN),1)
@build-scripts/validate_pr_in_jenkins
endif
clean-object_creator:
$(MAKE) -C object_creator clean
clean-pch:
rm -f pch/*pch.hpp.gch
rm -f pch/*pch.hpp.pch
rm -f pch/*pch.hpp.d
.PHONY: tests check ctags etags clean-tests clean-object_creator clean-pch install lint
.PHONY: tests check ctags etags clean-tests install lint validate-pr
-include $(SOURCES:$(SRC_DIR)/%.cpp=$(DEPDIR)/%.P)
-include ${OBJS:.o=.d}
+6 -7
View File
@@ -1,6 +1,6 @@
# Cataclysm: Dark Days Ahead
# Catalcysm: Dark Days Ahead
Cataclysm: Dark Days Ahead is a turn-based survival game set in a post-apocalyptic world. While some have described it as a "zombie game", there is far more to Cataclysm than that. Struggle to survive in a harsh, persistent, procedurally generated world. Scavenge the remnants of a dead civilization for food, equipment, or, if you are lucky, a vehicle with a full tank of gas to get you the hell out of Dodge. Fight to defeat or escape from a wide variety of powerful monstrosities, from zombies to giant insects to killer robots and things far stranger and deadlier, and against the others like yourself, who want what you have...
Cataclysm: Dark Days Ahead is a roguelike set in a post-apocalyptic world. While some have described it as a "zombie game", there is far more to Cataclysm than that. Struggle to survive in a harsh, persistent, procedurally generated world. Scavenge the remnants of a dead civilization for food, equipment, or, if you are lucky, a vehicle with a full tank of gas to get you the hell out of Dodge. Fight to defeat or escape from a wide variety of powerful monstrosities, from zombies to giant insects to killer robots and things far stranger and deadlier, and against the others like yourself, who want what you have...
<a href="https://repology.org/project/cataclysm-dda/versions">
<img src="https://repology.org/badge/vertical-allrepos/cataclysm-dda.svg" alt="Packaging Status" align="right">
@@ -8,7 +8,6 @@ Cataclysm: Dark Days Ahead is a turn-based survival game set in a post-apocalypt
[![Build Status](https://travis-ci.org/CleverRaven/Cataclysm-DDA.svg?branch=master)](https://travis-ci.org/CleverRaven/Cataclysm-DDA)
[![Coverage Status](https://coveralls.io/repos/github/CleverRaven/Cataclysm-DDA/badge.svg?branch=master)](https://coveralls.io/github/CleverRaven/Cataclysm-DDA?branch=master)
[![Language grade: C/C++](https://img.shields.io/lgtm/grade/cpp/g/CleverRaven/Cataclysm-DDA.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/CleverRaven/Cataclysm-DDA/context:cpp)
[![Open Source Helpers](https://www.codetriage.com/cleverraven/cataclysm-dda/badges/users.svg)](https://www.codetriage.com/cleverraven/cataclysm-dda)
[![Commit Activity](https://img.shields.io/github/commit-activity/m/CleverRaven/Cataclysm-DDA)](https://github.com/CleverRaven/Cataclysm-DDA/graphs/contributors)
[![Lines of Code](https://tokei.rs/b1/github/CleverRaven/Cataclysm-DDA?category=code)](https://github.com/XAMPPRocky/tokei)
@@ -23,19 +22,19 @@ Cataclysm: Dark Days Ahead is a turn-based survival game set in a post-apocalypt
#### Arch Linux
Ncurses and tiles versions are available in the [community repo](https://www.archlinux.org/packages/?q=cataclysm-dda).
Ncurses and tiles version available in [community repo](https://www.archlinux.org/packages/?q=cataclysm-dda).
`sudo pacman -S cataclysm-dda`
#### Fedora
Ncurses and tiles versions are available in the [official repos](https://src.fedoraproject.org/rpms/cataclysm-dda).
Ncurses and tiles version available in [official repos](https://src.fedoraproject.org/rpms/cataclysm-dda).
`sudo dnf install cataclysm-dda`
#### Debian / Ubuntu
Ncurses and tiles versions are available in the [official repos](https://tracker.debian.org/pkg/cataclysm-dda).
Ncurses and tiles version available in [official repos](https://tracker.debian.org/pkg/cataclysm-dda).
`sudo apt install cataclysm-dda-curses cataclysm-dda-sdl`
@@ -51,7 +50,7 @@ We also have the following build guides:
## Contribute
Cataclysm: Dark Days Ahead is the result of contributions from over 1000 volunteers under the Creative Commons Attribution ShareAlike 3.0 license. The code and content of the game is free to use, modify, and redistribute for any purpose whatsoever. See http://creativecommons.org/licenses/by-sa/3.0/ for details.
Some code distributed with the project is not part of the project and is released under different software licenses; the files covered by different software licenses have their own license notices.
Some code distributed with the project is not part of the project and is released under different software licenses, the files covered by different software licenses have their own license notices.
[<img src="https://www.bountysource.com/badge/tracker?tracker_id=146201" alt="Bountysource" align="right">](https://www.bountysource.com/trackers/146201-clever-raven-cataclysm-dda?utm_source=146201&utm_medium=shield&utm_campaign=TRACKER_BADGE)
+1 -2
View File
@@ -11,11 +11,10 @@
/app/jni/SDL2_image
/app/jni/SDL2_mixer
/app/jni/SDL2_ttf
/app/jni/libhidapi
/app/jni/libintl-lite
/app/jni/lua
/app/jni/mpg-123
/app/build
/app/src/main/assetsWinHost
/build
/captures
/local.properties
+44 -92
View File
@@ -128,10 +128,6 @@ if (!override_version.isEmpty()) {
}
}
def projectRoot = './../..'
def assetsDir = 'src/main/assets'
def assetsDirWindows = 'src/main/assetsWinHost'
task unzipDeps(type: Copy) {
println("Using dependencies file: $deps")
def zipFile = new File("$deps")
@@ -141,99 +137,65 @@ task unzipDeps(type: Copy) {
}
task makeLocalization(type: Exec) {
def args = []
if (localize) {
println("Building with localization")
println("Building with localization'")
switch (OperatingSystem.current()) {
case OperatingSystem.LINUX:
args = ['make', 'localization', 'LANGUAGES=all']
workingDir './../..'
commandLine 'make', 'localization', 'LANGUAGES=all'
break
case OperatingSystem.WINDOWS:
args = ['sh.exe', 'lang/compile_mo.sh']
workingDir './../..'
commandLine 'sh.exe', 'android/app/makelocalizations.sh'
break
default:
args = ['echo', 'Building without localization']
workingDir './../..'
commandLine 'echo', 'Building without localization'
break
}
} else {
args = ['echo', 'Building without localization']
if (OperatingSystem.current() == OperatingSystem.WINDOWS) {
args = ['cmd.exe', '/k'] + args
}
}
workingDir projectRoot
commandLine args
}
task generateVersionHeader() {
// this taks imitates `make version` while respecting version_header_path
if (override_version.isEmpty()) {
println("Generating version number to $version_header_path")
def output = new ByteArrayOutputStream()
exec {
workingDir projectRoot
commandLine 'git', 'describe', '--tags', '--always', '--dirty', '--match', '"[0-9A-Z]*.[0-9A-Z]*"'
standardOutput output
}
override_version = output.toString()
override_version = override_version.split()[0] // strip whitespaces
} else {
println("Overriding version number to $override_version")
}
def define = "// NOLINT(cata-header-guard)\n#define VERSION \"$override_version\"\n"
def versionHeader = new File("$version_header_path")
if (!versionHeader.exists() || versionHeader.text != define) {
versionHeader.text = define
}
}
task createWindowsJunctionLinks() {
onlyIf {
OperatingSystem.current() == OperatingSystem.WINDOWS
}
doLast {
def mkJunction = { to, from ->
def errOut = new ByteArrayOutputStream()
exec {
commandLine 'cmd', '/k', "mklink /J $to $from"
errorOutput errOut
standardOutput new ByteArrayOutputStream() // don't print the output
}
def errString = errOut.toString()
if (!errString.isEmpty() && !errString.endsWith('already exists.\r\n')) {
// we have an error that is not 'file already exists'
errString = errString.substring(0, errString.size() - 2) // discard \r\n
throw new GradleException("$errString")
}
}
println("Creating junctions for the assets")
mkdir assetsDirWindows
mkdir "$assetsDirWindows/lang"
def rootDir = projectRoot.replace('/', '\\')
def unixAssetsDir = assetsDir.replace('/', '\\')
def winAssetsDir = assetsDirWindows.replace('/', '\\')
mkJunction("$winAssetsDir\\android", "$unixAssetsDir\\android")
for (dir in ['data', 'gfx', 'lang\\mo']) {
mkJunction("$winAssetsDir\\$dir", "$rootDir\\$dir")
}
workingDir './../..'
commandLine 'echo', 'Building without localization'
}
}
makeLocalization
unzipDeps.dependsOn makeLocalization
preBuild.dependsOn unzipDeps
preBuild.dependsOn makeLocalization
preBuild.dependsOn generateVersionHeader
preBuild.dependsOn createWindowsJunctionLinks
createWindowsJunctionLinks.dependsOn makeLocalization
android {
compileSdkVersion override_compileSdkVersion
if (override_version.isEmpty()) {
println("Generating version number to $version_header_path")
switch (OperatingSystem.current()) {
case OperatingSystem.LINUX:
exec {
workingDir './../..'
commandLine 'make', 'version'
}
break
case OperatingSystem.WINDOWS:
exec {
workingDir './../..'
commandLine 'sh.exe', '-c', 'make version'
}
break
default:
exec {
workingDir './../..'
commandLine 'make', 'version'
}
break
}
} else {
println("Overriding version number to $override_version")
exec {
workingDir './../..'
commandLine 'echo', '#define VERSION $override_version', '>', '$version_header_path'
}
}
defaultConfig {
minSdkVersion override_minSdkVersion
targetSdkVersion override_targetSdkVersion
@@ -310,7 +272,7 @@ android {
debug {
storeFile file(keystoreProperties.getProperty("debug_storeFile"))
storePassword keystoreProperties.getProperty("debug_storePassword")
keyAlias keystoreProperties.getProperty("debug_keyAlias")
keyAlias keystoreProperties.getProperty("debug_seyAlias")
keyPassword keystoreProperties.getProperty("debug_keyPassword")
}
} else {
@@ -327,12 +289,9 @@ android {
}
externalNativeBuild {
ndkBuild {
cFlags "-DNDEBUG", "-DRELEASE", "-Os", "-g"
cFlags "-DNDEBUG", "-DRELEASE", "-Os"
}
}
ndk {
debugSymbolLevel 'SYMBOL_TABLE'
}
}
debug {
@@ -343,12 +302,9 @@ android {
}
externalNativeBuild {
ndkBuild {
cFlags "-g"
}
}
ndk {
debugSymbolLevel 'FULL'
}
}
}
if (!project.hasProperty('EXCLUDE_NATIVE_LIBS')) {
@@ -366,10 +322,6 @@ android {
abortOnError false
}
if (OperatingSystem.current() == OperatingSystem.WINDOWS) {
sourceSets.main.assets.srcDirs = ['src/main/assetsWinHost']
}
if (buildAsLibrary) {
libraryVariants.all { variant ->
variant.outputs.each { output ->
Binary file not shown.
Binary file not shown.
-23
View File
@@ -1,23 +0,0 @@
LOCAL_PATH := $(call my-dir)
###########################
#
# libintl-lite shared library
#
###########################
include $(CLEAR_VARS)
LOCAL_MODULE := libintl-lite
LOCAL_C_INCLUDES := $(LOCAL_PATH)
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_C_INCLUDES)
LOCAL_SRC_FILES := libintl.cpp
LOCAL_CPP_FEATURES := exceptions rtti
LOCAL_LDLIBS := -llog
include $(BUILD_SHARED_LIBRARY)
-23
View File
@@ -1,23 +0,0 @@
Boost Software License - Version 1.0 - August 17th, 2003
Permission is hereby granted, free of charge, to any person or organization
obtaining a copy of the software and accompanying documentation covered by
this license (the "Software") to use, reproduce, display, distribute,
execute, and transmit the Software, and to prepare derivative works of the
Software, and to permit third-parties to whom the Software is furnished to
do so, all subject to the following:
The copyright notices in the Software and this entire statement, including
the above license grant, this restriction and the following disclaimer,
must be included in all copies of the Software, in whole or in part, and
all derivative works of the Software, unless such copies or derivative
works are solely in the form of machine-executable object code generated by
a source language processor.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
@@ -1,98 +0,0 @@
/*
Boost Software License - Version 1.0 - August 17th, 2003
Permission is hereby granted, free of charge, to any person or organization
obtaining a copy of the software and accompanying documentation covered by
this license (the "Software") to use, reproduce, display, distribute,
execute, and transmit the Software, and to prepare derivative works of the
Software, and to permit third-parties to whom the Software is furnished to
do so, all subject to the following:
The copyright notices in the Software and this entire statement, including
the above license grant, this restriction and the following disclaimer,
must be included in all copies of the Software, in whole or in part, and
all derivative works of the Software, unless such copies or derivative
works are solely in the form of machine-executable object code generated by
a source language processor.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
*/
#ifndef LIBINTL_INTERNAL_MESSAGECATALOG_HPP_
#define LIBINTL_INTERNAL_MESSAGECATALOG_HPP_
#include <algorithm>
#include <string>
namespace libintllite
{
namespace internal
{
class MessageCatalog
{
private:
MessageCatalog( const MessageCatalog & );
MessageCatalog &operator=( const MessageCatalog & );
uint32_t numberOfStrings;
const std::string *sortedOrigStringsArray;
const std::string *translatedStringsArray;
public:
// The ownership of these arrays is transfered to the created message
// catalog object!
// Does not throw exceptions!
MessageCatalog( uint32_t numberOfStrings,
const std::string *sortedOrigStringsArray,
const std::string *translatedStringsArray ) :
numberOfStrings( numberOfStrings ),
sortedOrigStringsArray( sortedOrigStringsArray ),
translatedStringsArray( translatedStringsArray ) {
}
~MessageCatalog() {
delete[] this->sortedOrigStringsArray;
delete[] this->translatedStringsArray;
}
// Returns NULL, if the original string was not found.
// Does not throw exceptions!
const std::string *getTranslatedStrPtr( const std::string &orig ) const {
const std::string *lastSortedOrigStringEndIter
= this->sortedOrigStringsArray + this->numberOfStrings;
const std::string *origStrPtr = std::lower_bound( this->sortedOrigStringsArray,
lastSortedOrigStringEndIter,
orig );
#ifdef __ANDROID__
// Bugfix from j-jorge's branch of libintl-lite: https://github.com/j-jorge/libintl-lite/commit/40e5a41e9b19e3252d348e0548f85e66fa44a79e
// However, libintl-lite does not seem to support plural form strings + translations properly, so I've had to modify the fix further.
// Plural strings are stored as "<singular>NUL<plural>NUL<plural>..." for as many plurals are in the language, eg. Russian has 4, French has 2, Japanese has 1.
// So we only compare the first singular string as per gettext MO files spec here: https://www.gnu.org/software/gettext/manual/html_node/MO-Files.html
// We do this via c_str() which clamps at the first NUL character.
// Later on once we have a match, we will dig out the proper plural translation from this megastring.
if( !origStrPtr || ( origStrPtr == lastSortedOrigStringEndIter ) ||
( std::string( ( *origStrPtr ).c_str() ) != std::string( orig.c_str() ) ) )
#else
if( !origStrPtr || ( origStrPtr == lastSortedOrigStringEndIter ) )
#endif
{
return NULL;
} else {
return &this->translatedStringsArray[origStrPtr - this->sortedOrigStringsArray];
}
}
};
} // namespace internal
} // namespace libintllite
#endif // LIBINTL_INTERNAL_MESSAGECATALOG_HPP_
-222
View File
@@ -1,222 +0,0 @@
/*
Boost Software License - Version 1.0 - August 17th, 2003
Permission is hereby granted, free of charge, to any person or organization
obtaining a copy of the software and accompanying documentation covered by
this license (the "Software") to use, reproduce, display, distribute,
execute, and transmit the Software, and to prepare derivative works of the
Software, and to permit third-parties to whom the Software is furnished to
do so, all subject to the following:
The copyright notices in the Software and this entire statement, including
the above license grant, this restriction and the following disclaimer,
must be included in all copies of the Software, in whole or in part, and
all derivative works of the Software, unless such copies or derivative
works are solely in the form of machine-executable object code generated by
a source language processor.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
*/
#ifndef LIBINTL_INTERNAL_UTIL_HPP_
#define LIBINTL_INTERNAL_UTIL_HPP_
#if defined(WIN32) || defined(WINCE)
typedef unsigned int uint32_t;
#else
#include <stdint.h>
#endif
namespace libintllite
{
namespace internal
{
// Helper functions for handling numbers and char array conversions:
static inline bool isBigEndian()
{
uint32_t checkNumber = 0x1100;
return ( *reinterpret_cast<const char *>( &checkNumber ) != 0 );
}
static inline uint32_t swapUInt32Bytes( uint32_t number )
{
const char *numberAsCharArray = reinterpret_cast<const char *>( &number );
uint32_t swappedNumber;
char *swappedNumberAsCharArray = reinterpret_cast<char *>( &swappedNumber );
swappedNumberAsCharArray[0] = numberAsCharArray[3];
swappedNumberAsCharArray[1] = numberAsCharArray[2];
swappedNumberAsCharArray[2] = numberAsCharArray[1];
swappedNumberAsCharArray[3] = numberAsCharArray[0];
return swappedNumber;
}
static inline uint32_t charArrayToUInt32( const char uint32CharArray[4] )
{
return *reinterpret_cast<const uint32_t *>( uint32CharArray );
}
static inline bool readUIn32FromFile( FILE *fileHandle, bool needsBeToLeConversion,
uint32_t &outReadUInt32 )
{
char uint32CharArray[4];
if( ( fread( uint32CharArray, 1, 4, fileHandle ) ) != 4 ) {
return false;
}
if( needsBeToLeConversion ) {
outReadUInt32 = swapUInt32Bytes( charArrayToUInt32( uint32CharArray ) );
return true;
} else {
outReadUInt32 = charArrayToUInt32( uint32CharArray );
return true;
}
}
// RAII classes:
template <class T>
class ArrayGurard
{
private:
ArrayGurard( const ArrayGurard & );
ArrayGurard &operator=( const ArrayGurard & );
T *&arrayRef;
bool released;
public:
explicit ArrayGurard( T *&arrayRef ) :
arrayRef( arrayRef ),
released( false ) {
}
~ArrayGurard() {
if( !this->released ) {
delete[] this->arrayRef;
}
}
const T *release() {
this->released = true;
return this->arrayRef;
}
};
class CloseFileHandleGuard
{
private:
CloseFileHandleGuard( const CloseFileHandleGuard & );
CloseFileHandleGuard &operator=( const CloseFileHandleGuard & );
FILE *&fileHandleRef;
public:
explicit CloseFileHandleGuard( FILE *&fileHandleRef ) :
fileHandleRef( fileHandleRef ) {
}
~CloseFileHandleGuard() {
if( this->fileHandleRef ) {
fclose( this->fileHandleRef );
}
}
};
// Helper function to load strings from a .mo file and stores them in a given array
static bool loadMoFileStringsToArray( FILE *moFile,
uint32_t numberOfStrings,
uint32_t stringsTableOffsetFromFileBegin,
bool needsBeToLeConversion,
std::string *outStringsFromMoFileArray )
{
if( fseek( moFile, stringsTableOffsetFromFileBegin, SEEK_SET ) != 0 ) {
return false;
}
uint32_t *stringsLengthsArray = NULL;
ArrayGurard<uint32_t> stringsLengthsArrayGuard( stringsLengthsArray );
stringsLengthsArray = new uint32_t[numberOfStrings];
if( !stringsLengthsArray ) {
return false;
}
uint32_t firstStringOffset;
uint32_t lastStringOffset;
{
uint32_t currentStringLength;
uint32_t currentStringOffset;
for( uint32_t i = 0; i < numberOfStrings; i++ ) {
if( !readUIn32FromFile( moFile, needsBeToLeConversion, currentStringLength ) ) {
return false;
}
if( !readUIn32FromFile( moFile, needsBeToLeConversion, currentStringOffset ) ) {
return false;
}
stringsLengthsArray[i] = currentStringLength;
if( i == 0 ) {
firstStringOffset = currentStringOffset;
}
if( i == ( numberOfStrings - 1 ) ) {
lastStringOffset = currentStringOffset;
}
}
}
{
char *stringCharsArray = NULL;
ArrayGurard<char> stringCharsArrayGuard( stringCharsArray );
uint32_t stringCharsArraySize = lastStringOffset + stringsLengthsArray[numberOfStrings - 1] + 1 -
firstStringOffset;
if( stringCharsArraySize == 0 ) {
return false;
}
if( fseek( moFile, firstStringOffset, SEEK_SET ) != 0 ) {
return false;
}
stringCharsArray = new char[stringCharsArraySize];
if( !stringCharsArray ) {
return false;
}
if( fread( stringCharsArray, 1, stringCharsArraySize, moFile ) != stringCharsArraySize ) {
return false;
}
const char *stringsCharsArrayIter = stringCharsArray;
for( uint32_t i = 0; i < numberOfStrings; i++ ) {
#ifdef __ANDROID__
// Bugfix from j-jorge's branch of libintl-lite: https://github.com/j-jorge/libintl-lite/commit/240f38c005ba9afce9c3c3629d624d904cb09403
const char *currentStrEndIter = stringsCharsArrayIter + stringsLengthsArray[i];
outStringsFromMoFileArray[i] = std::string( stringsCharsArrayIter, currentStrEndIter );
stringsCharsArrayIter = currentStrEndIter + 1 /* skip the NULL char at the end of the string */ ;
#else
const char *currentStrEndIter = stringsCharsArrayIter + stringsLengthsArray[i] + 1;
outStringsFromMoFileArray[i] = std::string( stringsCharsArrayIter, currentStrEndIter );
stringsCharsArrayIter = currentStrEndIter;
#endif
}
}
return true;
}
} // namespace internal
} // namespace libintllite
#endif // LIBINTL_INTERNAL_UTIL_HPP_
-360
View File
@@ -1,360 +0,0 @@
/*
Boost Software License - Version 1.0 - August 17th, 2003
Permission is hereby granted, free of charge, to any person or organization
obtaining a copy of the software and accompanying documentation covered by
this license (the "Software") to use, reproduce, display, distribute,
execute, and transmit the Software, and to prepare derivative works of the
Software, and to permit third-parties to whom the Software is furnished to
do so, all subject to the following:
The copyright notices in the Software and this entire statement, including
the above license grant, this restriction and the following disclaimer,
must be included in all copies of the Software, in whole or in part, and
all derivative works of the Software, unless such copies or derivative
works are solely in the form of machine-executable object code generated by
a source language processor.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
*/
#include "libintl.h"
#include <map>
#include <string>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#if defined(WIN32) || defined(WINCE)
typedef unsigned int uint32_t;
#else
#include <stdint.h>
#endif
#ifdef __ANDROID__
#include <iostream>
#endif
#include "MessageCatalog.hpp"
#include "Util.hpp"
using namespace std;
using namespace libintllite;
using namespace libintllite::internal;
static char *currentDefaultDomain = NULL;
static map<char *, MessageCatalog *> loadedMessageCatalogPtrsByDomain;
libintl_lite_bool_t loadMessageCatalog( const char *domain, const char *moFilePath )
{
try {
if( sizeof( uint32_t ) != 4 ) {
return LIBINTL_LITE_BOOL_FALSE;
}
if( !moFilePath || !domain ) {
return LIBINTL_LITE_BOOL_FALSE;
}
FILE *moFile = NULL;
CloseFileHandleGuard closeFileHandleGuard( moFile );
moFile = fopen( moFilePath, "rb" );
if( !moFile ) {
return LIBINTL_LITE_BOOL_FALSE;
}
uint32_t magicNumber;
if( !readUIn32FromFile( moFile, false, magicNumber ) ) {
return LIBINTL_LITE_BOOL_FALSE;
}
if( ( magicNumber != 0x950412de ) && ( magicNumber != 0xde120495 ) ) {
return LIBINTL_LITE_BOOL_FALSE;
}
uint32_t fileFormatRevision;
if( !readUIn32FromFile( moFile, false, fileFormatRevision ) ) {
return LIBINTL_LITE_BOOL_FALSE;
}
if( fileFormatRevision != 0 ) {
return LIBINTL_LITE_BOOL_FALSE;
}
bool needsBeToLeConversion = isBigEndian();
uint32_t numberOfStrings;
if( !readUIn32FromFile( moFile, needsBeToLeConversion, numberOfStrings ) ) {
return false;
}
if( numberOfStrings == 0 ) {
return LIBINTL_LITE_BOOL_TRUE;
}
uint32_t offsetOrigTable;
if( !readUIn32FromFile( moFile, needsBeToLeConversion, offsetOrigTable ) ) {
return LIBINTL_LITE_BOOL_FALSE;
}
uint32_t offsetTransTable;
if( !readUIn32FromFile( moFile, needsBeToLeConversion, offsetTransTable ) ) {
return LIBINTL_LITE_BOOL_FALSE;
}
string *sortedOrigStringsArray = NULL;
ArrayGurard<string> sortedOrigStringsArrayGuard( sortedOrigStringsArray );
sortedOrigStringsArray = new string[numberOfStrings];
if( !sortedOrigStringsArray ) {
return LIBINTL_LITE_BOOL_FALSE;
}
if( !loadMoFileStringsToArray( moFile,
numberOfStrings,
offsetOrigTable,
needsBeToLeConversion,
sortedOrigStringsArray ) ) {
return LIBINTL_LITE_BOOL_FALSE;
}
string *translatedStringsArray = NULL;
ArrayGurard<string> translatedStringsArrayGuard( translatedStringsArray );
translatedStringsArray = new string[numberOfStrings];
if( !translatedStringsArray ) {
return LIBINTL_LITE_BOOL_FALSE;
}
if( !loadMoFileStringsToArray( moFile,
numberOfStrings,
offsetTransTable,
needsBeToLeConversion,
translatedStringsArray ) ) {
return LIBINTL_LITE_BOOL_FALSE;
}
MessageCatalog *newMessageCatalogPtr = new MessageCatalog( numberOfStrings,
sortedOrigStringsArray,
translatedStringsArray );
if( !newMessageCatalogPtr ) {
return LIBINTL_LITE_BOOL_FALSE;
}
sortedOrigStringsArrayGuard.release();
translatedStringsArrayGuard.release();
char *domainDup = strdup( domain );
if( !domainDup ) {
return LIBINTL_LITE_BOOL_FALSE;
}
closeLoadedMessageCatalog( domain );
loadedMessageCatalogPtrsByDomain[domainDup] = newMessageCatalogPtr;
return LIBINTL_LITE_BOOL_TRUE;
} catch( ... ) {
return LIBINTL_LITE_BOOL_FALSE;
}
}
void closeLoadedMessageCatalog( const char *domain )
{
if( domain ) {
for( map<char *, MessageCatalog *>::iterator i = loadedMessageCatalogPtrsByDomain.begin();
i != loadedMessageCatalogPtrsByDomain.end();
i++ ) {
if( strcmp( i->first, domain ) == 0 ) {
free( i->first );
delete i->second;
loadedMessageCatalogPtrsByDomain.erase( i );
return;
}
}
}
}
void closeAllLoadedMessageCatalogs()
{
for( map<char *, MessageCatalog *>::iterator i = loadedMessageCatalogPtrsByDomain.begin();
i != loadedMessageCatalogPtrsByDomain.end();
i++ ) {
free( i->first );
delete i->second;
}
loadedMessageCatalogPtrsByDomain.clear();
free( currentDefaultDomain );
currentDefaultDomain = NULL;
}
const char *textdomain( const char *domain )
{
if( domain ) {
char *newDefaultDomain = strdup( domain );
if( !newDefaultDomain ) {
return NULL;
}
free( currentDefaultDomain );
currentDefaultDomain = newDefaultDomain;
return newDefaultDomain;
} else {
return NULL;
}
}
const char *gettext( const char *origStr )
{
return dgettext( NULL, origStr );
}
const char *dgettext( const char *domain, const char *origStr )
{
if( !origStr ) {
return NULL;
}
if( !domain ) {
if( currentDefaultDomain ) {
domain = currentDefaultDomain;
} else {
return origStr;
}
}
const MessageCatalog *msgCat = NULL;
for( map<char *, MessageCatalog *>::iterator i = loadedMessageCatalogPtrsByDomain.begin();
!msgCat && ( i != loadedMessageCatalogPtrsByDomain.end() );
i++ ) {
if( strcmp( i->first, domain ) == 0 ) {
msgCat = i->second;
}
}
if( !msgCat ) {
return origStr;
}
const string *translatedStrPtr = msgCat->getTranslatedStrPtr( origStr );
if( translatedStrPtr ) {
return translatedStrPtr->c_str();
} else {
return origStr;
}
}
const char *ngettext( const char *origStr, const char *origStrPlural, unsigned long n )
{
#ifdef __ANDROID__
try {
// First let's get the translated megastring that contains all the plural translations separated by NUL chars
const char *translatedStr = gettext( origStr );
// Now determine correct plural form to use. This data is described in .PO files "Plural-Forms" metadata.
const char *language = getenv( "LANGUAGE" );
// Bail out if we don't have data, or the result of gettext is the exact same pointer to the source string (so we don't have a translated megastring to look at)
if( !translatedStr || !language || translatedStr == origStr ) {
if( n == 1 ) {
return origStr;
} else {
return origStrPlural;
}
}
int nplurals = 2;
int plural = n != 1;
if( strcmp( language, "en" ) == 0 ) {
nplurals = 2;
plural = ( n != 1 );
} else if( strcmp( language, "fr" ) == 0 ) {
nplurals = 2;
plural = ( n > 1 );
} else if( strcmp( language, "de" ) == 0 ) {
nplurals = 2;
plural = ( n != 1 );
} else if( strcmp( language, "it_IT" ) == 0 ) {
nplurals = 2;
plural = ( n != 1 );
} else if( strcmp( language, "es_AR" ) == 0 ) {
nplurals = 2;
plural = ( n != 1 );
} else if( strcmp( language, "es_ES" ) == 0 ) {
nplurals = 2;
plural = ( n != 1 );
} else if( strcmp( language, "ja" ) == 0 ) {
nplurals = 1;
plural = 0;
} else if( strcmp( language, "ko" ) == 0 ) {
nplurals = 1;
plural = 0;
} else if( strcmp( language, "pt_BR" ) == 0 ) {
nplurals = 2;
plural = ( n > 1 );
} else if( strcmp( language, "pt_PT" ) == 0 ) {
nplurals = 2;
plural = n != 1;
} else if( strcmp( language, "ru" ) == 0 ) {
nplurals = 4;
plural = ( n % 10 == 1 && n % 100 != 11 ? 0 : n % 10 >= 2 && n % 10 <= 4 && ( n % 100 < 12 ||
n % 100 > 14 ) ? 1 : n % 10 == 0 || ( n % 10 >= 5 && n % 10 <= 9 ) || ( n % 100 >= 11 &&
n % 100 <= 14 ) ? 2 : 3 );
} else if( strcmp( language, "zh_CN" ) == 0 ) {
nplurals = 1;
plural = 0;
} else if( strcmp( language, "zh_TW" ) == 0 ) {
nplurals = 1;
plural = 0;
}
// Now we know which plural form to use, move the string pointer past the appropriate # of NUL characters.
// This is a bit scary because it relies on the .MO file always storing the correct number of plurals,
// otherwise we could overrun the string buffer. Seems to work fine though... (nervous laughter)
for( int i = 0; i < plural; ++i ) {
translatedStr += strlen( translatedStr ) + 1; // advance to the start of the next string
}
return translatedStr;
} catch( const std::exception &err ) {
std::cerr << "Error in libintl-lite ngettext(): " << err.what() << std::endl;
if( n == 1 ) {
return origStr;
} else {
return origStrPlural;
}
}
#else
if( n == 1 ) {
return gettext( origStr );
} else {
return gettext( origStrPlural );
}
#endif
}
const char *dngettext( const char *domain, const char *origStr, const char *origStrPlural,
unsigned long n )
{
#ifdef __ANDROID__
// not implemented yet
return NULL;
#else
if( n == 1 ) {
return dgettext( domain, origStr );
} else {
return dgettext( domain, origStrPlural );
}
#endif
}
#ifdef __ANDROID__
libintl_lite_bool_t bindtextdomain( const char *domain, const char *moFilePath )
{
return loadMessageCatalog( domain, moFilePath );
}
libintl_lite_bool_t bind_textdomain_codeset( const char *domain, const char *oFilePath )
{
return LIBINTL_LITE_BOOL_FALSE;
}
#endif
-127
View File
@@ -1,127 +0,0 @@
/*
Boost Software License - Version 1.0 - August 17th, 2003
Permission is hereby granted, free of charge, to any person or organization
obtaining a copy of the software and accompanying documentation covered by
this license (the "Software") to use, reproduce, display, distribute,
execute, and transmit the Software, and to prepare derivative works of the
Software, and to permit third-parties to whom the Software is furnished to
do so, all subject to the following:
The copyright notices in the Software and this entire statement, including
the above license grant, this restriction and the following disclaimer,
must be included in all copies of the Software, in whole or in part, and
all derivative works of the Software, unless such copies or derivative
works are solely in the form of machine-executable object code generated by
a source language processor.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
*/
#ifndef LIBINTL_HPP_
#define LIBINTL_HPP_
#define LIBINTL_LITE_API
#if (defined(WIN32) || defined(WINCE)) && defined(LIBINTL_LITE_WIN32_SHARED)
#undef LIBINTL_LITE_API
#ifdef LIBINTL_LITE_EXPORTS
#define LIBINTL_LITE_API __declspec(dllexport)
#else
#define LIBINTL_LITE_API __declspec(dllimport)
#endif
#endif
#ifdef __cplusplus
extern "C"
{
#endif
typedef int libintl_lite_bool_t;
#define LIBINTL_LITE_BOOL_TRUE 1
#define LIBINTL_LITE_BOOL_FALSE 0
/**
* Loads a message catalog from a given (GNU-compatible) .mo file.
* Returns true, if the message catalog was loaded successfully and
* false otherwise.
* This function is specific to libintl-lite and serves as a simple
* replacement for bindtextdomain() function of GNU gettext.
* The parameter "domain" must not be NULL!
* This function is NOT thread safe!
* Pay attention to the thread safety remarks of the gettext() function!
*/
LIBINTL_LITE_API libintl_lite_bool_t loadMessageCatalog( const char *domain,
const char *moFilePath );
/**
* Closes a message catalog for the specified domain and releases its obtained resources.
* This function is NOT thread safe!
* Pay attention to the thread safety remarks of the gettext() function!
*/
LIBINTL_LITE_API void closeLoadedMessageCatalog( const char *domain );
/**
* Closes all loaded message catalogs releases their obtained resources.
* This function is NOT thread safe!
* Pay attention to the thread safety remarks of the gettext() function!
*/
LIBINTL_LITE_API void closeAllLoadedMessageCatalogs();
/**
* Sets the default text domain for gettext() / ngettext() calls.
* This function is NOT thread safe!
*/
LIBINTL_LITE_API const char *textdomain( const char *domain );
/**
* Returns a pointer to the NULL-terminated string in the loaded for the default
* message catalog, or origString if origStr is NULL, textdomain() was not called,
* no message catalog for the specified domain is loaded or no translated message
* could be found.
* This function is thread-safe, but loadMessageCatalog(), textdomain(),
* closeLoadedMessageCatalog() or closeAllLoadedMessageCatalogs()
* must not be called at the same time! A returned string in the current
* loaded message catalog will be deleted, if loadMessageCatalog() or
* closeLoadedMessageCatalog() is called for the used domain afterwards!
* Does not perform any character set conversion!
*/
LIBINTL_LITE_API const char *gettext( const char *origStr );
/**
* Works like the gettext() function, but uses the message catalog for a specified domain.
*/
LIBINTL_LITE_API const char *dgettext( const char *domain, const char *origStr );
/**
* Works like the gettext() function, but distinguishes between singular
* and plural form of a message.
* Always returns the suitable singular string, if n == 1, and the plural string
* otherwise, regardless of the language.
*/
LIBINTL_LITE_API const char *ngettext( const char *origStr, const char *origStrPlural,
unsigned long n );
/**
* Works like the ngettext() function, but uses the message catalog for a specified domain.
*/
LIBINTL_LITE_API const char *dngettext( const char *domain, const char *origStr,
const char *origStrPlural, unsigned long n );
#ifdef __ANDROID__
// Two extra signatures required as per: http://blog.stuff-o-matic.com/post/2013/09/07/Porting-a-C-game-to-Android,-the-case-of-Andy-s-Super-Great-Park
LIBINTL_LITE_API libintl_lite_bool_t bindtextdomain( const char *domain, const char *moFilePath );
LIBINTL_LITE_API libintl_lite_bool_t bind_textdomain_codeset( const char *domain,
const char *moFilePath );
#endif
#ifdef __cplusplus
} // extern "C"
#endif
#endif // LIBINTL_HPP_
+1
View File
@@ -0,0 +1 @@
../../../src
-26
View File
@@ -1,26 +0,0 @@
LOCAL_PATH := $(call my-dir)/../../../../src
include $(CLEAR_VARS)
LOCAL_MODULE := main
LOCAL_CPP_FEATURES := exceptions rtti
# Add your application source files here...
FILE_LIST := $(sort $(wildcard $(LOCAL_PATH)/*.cpp))
LOCAL_SRC_FILES := $(sort $(FILE_LIST:$(LOCAL_PATH)/%=%))
LOCAL_SHARED_LIBRARIES := libhidapi SDL2 SDL2_mixer SDL2_image SDL2_ttf libintl-lite mpg123
LOCAL_LDLIBS := -lGLESv1_CM -lGLESv2 -llog
LOCAL_CFLAGS += -DTILES=1 -DSDL_SOUND=1 -DBACKTRACE=1 -DLOCALIZE=1 -Wextra -Wall -fsigned-char -ffast-math
LOCAL_LDFLAGS += $(LOCAL_CFLAGS)
ifeq ($(OS),Windows_NT)
# needed to bypass 8191 character limit on Windows command line
LOCAL_SHORT_COMMANDS := true
endif
include $(BUILD_SHARED_LIBRARY)
+2 -2
View File
@@ -43,7 +43,7 @@
android:launchMode="singleInstance"
android:keepScreenOn="true"
android:screenOrientation="userLandscape"
android:configChanges="keyboardHidden|keyboard|orientation|screenSize|navigation"
android:configChanges="keyboardHidden|keyboard|orientation|screenSize"
>
<intent-filter>
<action android:name="android.intent.action.MAIN" />
@@ -55,7 +55,7 @@
android:launchMode="singleInstance"
android:keepScreenOn="true"
android:screenOrientation="userLandscape"
android:configChanges="keyboardHidden|keyboard|orientation|screenSize|navigation"
android:configChanges="keyboardHidden|keyboard|orientation|screenSize"
>
</activity>
</application>
@@ -57,8 +57,4 @@ public class CataclysmDDA extends SDLActivity {
public boolean getDefaultSetting(final String settingsName, boolean defaultValue) {
return PreferenceManager.getDefaultSharedPreferences(getApplicationContext()).getBoolean(settingsName, defaultValue);
}
public String getSystemLang() {
return getResources().getConfiguration().locale.toLanguageTag().replace('-', '_');
}
}
@@ -1,8 +1,6 @@
package com.cleverraven.cataclysmdda;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.FileOutputStream;
import java.io.InputStream;
import java.io.IOException;
@@ -16,13 +14,11 @@ import android.app.Activity;
import android.app.Dialog;
import android.app.ProgressDialog;
import android.app.AlertDialog;
import android.content.ContentResolver;
import android.content.Context;
import android.content.Intent;
import android.content.DialogInterface;
import android.content.pm.PackageInfo;
import android.content.res.AssetManager;
import android.net.Uri;
import android.os.*;
import android.preference.PreferenceManager;
import android.util.Log;
@@ -32,7 +28,7 @@ public class SplashScreen extends Activity {
private static final int INSTALL_DIALOG_ID = 0;
private ProgressDialog installDialog;
public CharSequence[] mSettingsNames;
public CharSequence[] mSettingsNames = { "Software rendering", "Force fullscreen", "Trap Back button" };
public boolean[] mSettingsValues = { false, false, true };
private String getVersionName() {
@@ -46,49 +42,6 @@ public class SplashScreen extends Activity {
}
}
private void showCrashAlert() {
String externalFilesDir = getExternalFilesDir(null).getPath();
File crashAlertPrompt = new File(externalFilesDir + "/config/crash.log.prompt");
try {
crashAlertPrompt.delete();
if(crashAlertPrompt.exists()) { // Sometimes .delete() doesn't really delete the file and I don't know why
crashAlertPrompt.getCanonicalFile().delete();
}
} catch(IOException e) {
return;
}
File crashLog = new File(externalFilesDir + "/config/crash.log");
StringBuilder text = new StringBuilder();
text.append(getString(R.string.crashMessage));
text.append("\n\n");
try {
BufferedReader br = new BufferedReader(new FileReader(crashLog));
String line;
while((line = br.readLine()) != null) {
text.append(line);
text.append("\n");
}
br.close();
} catch (IOException e) {
return;
}
final String message = text.toString();
this.runOnUiThread(new Runnable() {
public void run() {
AlertDialog errorAlert = new AlertDialog.Builder(SplashScreen.this)
.setTitle(getString(R.string.crashAlert))
.setCancelable(false)
.setMessage(message)
.setPositiveButton("OK", new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
SplashScreen.this.startGameActivity(false);
}
}).create();
errorAlert.show();
}
});
}
@Override
protected void onCreate(Bundle savedInstanceState) {
Log.e(TAG, "onCreate()");
@@ -96,14 +49,7 @@ public class SplashScreen extends Activity {
// Start the game if already installed, otherwise start installing...
if (getVersionName().equals(PreferenceManager.getDefaultSharedPreferences(getApplicationContext()).getString("installed", ""))) {
// Show an alert box if the game crashed last time
String externalFilesDir = getExternalFilesDir(null).getPath();
File crashAlertPrompt = new File(externalFilesDir + "/config/crash.log.prompt");
if(crashAlertPrompt.exists()) {
showCrashAlert();
} else {
startGameActivity(false);
}
startGameActivity(false);
}
else {
new InstallProgramTask().execute();
@@ -199,30 +145,23 @@ public class SplashScreen extends Activity {
}
}).create();
mSettingsNames = new CharSequence[] {
getString(R.string.softwareRendering),
getString(R.string.forceFullscreen),
getString(R.string.trapBackButton)
};
settingsAlert = new AlertDialog.Builder(SplashScreen.this)
.setTitle(getString(R.string.settings))
.setTitle("Settings")
.setMultiChoiceItems(SplashScreen.this.mSettingsNames, SplashScreen.this.mSettingsValues, new DialogInterface.OnMultiChoiceClickListener() {
@Override
public void onClick(DialogInterface dialog, int which, boolean isChecked) {
SplashScreen.this.mSettingsValues[which] = isChecked;
}})
.setCancelable(false)
.setPositiveButton(getString(R.string.startGame), new DialogInterface.OnClickListener() {
.setPositiveButton("Start game", new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
PreferenceManager.getDefaultSharedPreferences(getApplicationContext()).edit().putBoolean("Software rendering", SplashScreen.this.mSettingsValues[0]).commit();
PreferenceManager.getDefaultSharedPreferences(getApplicationContext()).edit().putBoolean("Force fullscreen", SplashScreen.this.mSettingsValues[1]).commit();
PreferenceManager.getDefaultSharedPreferences(getApplicationContext()).edit().putBoolean("Trap Back button", SplashScreen.this.mSettingsValues[2]).commit();
for (int i = 0; i < mSettingsNames.length; ++i)
PreferenceManager.getDefaultSharedPreferences(getApplicationContext()).edit().putBoolean(SplashScreen.this.mSettingsNames[i].toString(), SplashScreen.this.mSettingsValues[i]).commit();
SplashScreen.this.startGameActivity(false);
return;
}
})
.setNeutralButton(getString(R.string.showHelp), new DialogInterface.OnClickListener() {
.setNeutralButton("Show help", new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
helpAlert.show();
return;
@@ -1,15 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="installTitle">Instalando información de juego…</string>
<string name="upgradeTitle">Actualizando información de juego…</string>
<string name="helpTitle">Ayuda y Controles</string>
<string name="helpMessage">\"Deslizar\" para moverse (si tenés apretado aparece el joystick virtual). \"Click\" para confirmar la selección en el menú o Pausar un turno en el juego (mantené apretado para Pausar varios turnos). \"Doble click\" para cancelar o volver en el menú (funciona como la tecla Escape). \"Pellizcar\" para hacer zoom (en el juego). Usá el botón físico \"Volver\" para activar el teclado virtual (mantené apretado para los atajos de teclado).</string>
<string name="softwareRendering">Render por software</string>
<string name="forceFullscreen">Forzar pantalla completa</string>
<string name="trapBackButton">Fijar botón Volver</string>
<string name="settings">Configuración</string>
<string name="startGame">Empezar juego</string>
<string name="showHelp">Mostrar ayuda</string>
<string name="crashAlert">El juego no fue cerrado correctamente la última vez</string>
<string name="crashMessage">El registro del error localizado en ./config/crash.log puede ayudar a los desarrolladores a solucionar errores.</string>
</resources>
@@ -1,15 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="installTitle">Instalando los datos del juego...</string>
<string name="upgradeTitle">Actualizando los datos del juego...</string>
<string name="helpTitle">Ayuda &amp; Controles</string>
<string name="helpMessage">\"Deslizar\" para el movimiento direccional (mantenlo presionado para el joystick virtual). \"Toque\" para confirmar la selección en el menú o Pausar un turno en-juego (mantenlo presionado para varios turnos en-juego). \"Toque doble\" para cancelar o ir hacia atrás en los menús (funciona como la tecla Escape). \"Pellizcar\" para zoom dentro/fuera (en-juego). Usa el botón \"Atrás\" físico para mostrar/ocultar el teclado virtual (mantenlo pulsado para alternar los atajos de teclado).</string>
<string name="softwareRendering">Render por software</string>
<string name="forceFullscreen">Forzar pantalla completa</string>
<string name="trapBackButton">Capturar Botón de atrás</string>
<string name="settings">Opciones</string>
<string name="startGame">Comenzar el juego</string>
<string name="showHelp">Mostrar ayuda</string>
<string name="crashAlert">El juego no finalizó correctamente la última vez</string>
<string name="crashMessage">El informe de fallos que se encuentra en ./config/crash.log puede ayudar a los desarrolladores a solucionar los errores del programa. </string>
</resources>
@@ -1,15 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="installTitle">ゲームデータをインストール中...</string>
<string name="upgradeTitle">ゲームデータをアップグレード中...</string>
<string name="helpTitle">ヘルプ &amp; 操作</string>
<string name="helpMessage">特定方向にスワイプ(仮想ジョイスティックの場合は長押し)で移動。タップで選択項目の決定と1ターンその場で静止(長押しで数ターン静止)。ダブルタップでキャンセルとメニューに戻る(Escキー機能)。ピンチでズームイン/アウト(ゲーム内画面)。戻るボタンで仮想キーボード切替(長押しでキーボードショートカット切替)。</string>
<string name="softwareRendering">ソフトウェアレンダリング</string>
<string name="forceFullscreen">強制フルスクリーン</string>
<string name="trapBackButton">戻るボタン例外処理</string>
<string name="settings">設定</string>
<string name="startGame">ゲーム開始</string>
<string name="showHelp">ヘルプ表示</string>
<string name="crashAlert">前回のプレイ時にゲームが正常に終了しませんでした</string>
<string name="crashMessage">configフォルダ内のcrash.logに記録されるクラッシュレポートは、開発者がプログラムエラーを解決する役に立つ場合があります。</string>
</resources>
@@ -1,15 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="installTitle">Instalowanie danych gry...</string>
<string name="upgradeTitle">Aktualizowanie danych gry...</string>
<string name="helpTitle">Pomoc &amp; sterowanie</string>
<string name="helpMessage">"Przesuń" by sterować w boku (przytrzymaj do wirtualnego joysticka). "Stuknij" by potwierdzić wybór w menu albo spauzować jedną turę w grze (trzymaj by spauzować kilka tur w grze). "Stuknij dwa razy" by anulować albo wrócić do menu (działa jak przycisk Escape). "Szczypnij" by zbliżyć/oddalić (w grze). Użyj fizycznego przycisku "wstecz" by włączyć wirtualną klawiaturę (przytrzymaj by przełączyć skróty klawiszowe).</string>
<string name="softwareRendering">Renderowanie programowe</string>
<string name="forceFullscreen">Wymuś pełny ekran</string>
<string name="trapBackButton">Zablokuj przycisk wstecz</string>
<string name="settings">Ustawienia</string>
<string name="startGame">Zacznij grę</string>
<string name="showHelp">Pokaż pomoc</string>
<string name="crashAlert">Gra nie zamknęła się poprawnie ostatnim razem</string>
<string name="crashMessage">Raport crashu zlokalizowany w ./config/crash.log może pomóc twórcom naprawić błędy programu.</string>
</resources>
@@ -1,15 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="installTitle">Установка игровых данных...</string>
<string name="upgradeTitle">Обновление игровых данных...</string>
<string name="helpTitle">Помощь и управление</string>
<string name="helpMessage">Свайп для движения в выбранном направлении (зажать для показа виртуального джойстика). Одно нажатие для подтверждения выбора в меню или паузы на один ход (зажать для паузы на несколько ходов). Двойное нажатие для отмены или выхода из меню (работает как кнопка Escape). Растяните или сведите пальцы на экране для увеличения/уменьшения (в игре). Используйте кнопку \"Назад\" для показа виртуальной клавиатуры (зажмите для отображения «горячих клавиш»).</string>
<string name="softwareRendering">Программный рендеринг</string>
<string name="forceFullscreen">Полный экран</string>
<string name="trapBackButton">Перехват функций кнопки «Назад»</string>
<string name="settings">Настройки</string>
<string name="startGame">Начать игру</string>
<string name="showHelp">Показать подсказки</string>
<string name="crashAlert">В прошлый раз игра завершилась некорректно</string>
<string name="crashMessage">Отчёт об остановке приложения находится в папке ./config/crash.log. Он может помочь разработчикам устранить ошибки в игре.</string>
</resources>
@@ -1,24 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="installTitle">正在解压游戏数据…</string>
<string name="upgradeTitle">正在合并游戏数据…</string>
<string name="helpTitle">游戏控制帮助</string>
<string name="helpMessage">[屏幕上滑动]可定向移动([按住]可显示虚拟操纵杆,可在设置中选择关闭)。
[轻触屏幕]可确认菜单中的选项\'或\'在游戏中等待一个回合([长按]可等待几个回合)。
[双击屏幕]可取消当前操作\'或\'返回菜单(类似于Escape键)。
游戏中[双指并拢手势]可放大/缩小视图当前分辨率(仅限开启贴图包状态下)。
[点击系统后退键(手机上的小于号键,在菜单键旁边)]可切出虚拟键盘,按住直至弹窗出现可隐藏/显示下方快捷键栏。
*设置中可绑定四个双指方向滑动快捷键;例双指向下滑动绑定键为\"i\",即可游戏内双指向下滑动打开物品栏。</string>
<string name="softwareRendering">软件渲染
(不可开启)</string>
<string name="forceFullscreen">强制全屏
(开启后不显示通知栏与虚拟键)</string>
<string name="trapBackButton">限制返回
(禁止返回按键退出APP)</string>
<string name="settings">预设
(进入游戏后请到 设置-图形 中修改终端宽高比)</string>
<string name="startGame">载入游戏</string>
<string name="showHelp">查看帮助</string>
<string name="crashAlert">上一次游戏遇到错误异常退出</string>
<string name="crashMessage">日志文件位于Android/data/CataclysmDDA/files/config/crash.log,可有助于开发者解决程序错误。</string>
</resources>
@@ -1,13 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="installTitle">正在安裝遊戲資料...</string>
<string name="upgradeTitle">正在更新遊戲資料...</string>
<string name="helpTitle">幫助與控制</string>
<string name="helpMessage">滑動屏幕移動遊戲角色或菜單選項。點擊屏幕確認選擇或在遊戲中休息一回合。雙擊屏幕取消菜單或回退。雙指縮放畫面遠近。點擊系統回退鍵打開虛擬鍵盤。</string>
<string name="softwareRendering">軟件渲染</string>
<string name="forceFullscreen">強制全屏</string>
<string name="trapBackButton">捕捉返回鍵</string>
<string name="settings">設定</string>
<string name="startGame">開始遊戲</string>
<string name="showHelp">顯示幫助</string>
</resources>
@@ -4,12 +4,4 @@
<string name="upgradeTitle">Upgrading game data...</string>
<string name="helpTitle">Help &amp; Controls</string>
<string name="helpMessage">"Swipe" for directional movement (hold for virtual joystick). "Tap" to confirm selection in menu or Pause one turn in-game (hold to Pause several turns in-game). "Double tap" to cancel or go back in menus (works like Escape key). "Pinch" to zoom in/out (in-game). Use hardware "Back" button to toggle virtual keyboard (hold to toggle keyboard shortcuts).</string>
<string name="softwareRendering">Software rendering</string>
<string name="forceFullscreen">Force fullscreen</string>
<string name="trapBackButton">Trap Back button</string>
<string name="settings">Settings</string>
<string name="startGame">Start game</string>
<string name="showHelp">Show help</string>
<string name="crashAlert">The game did not quit properly last time</string>
<string name="crashMessage">The crash report located in ./config/crash.log may help developers troubleshoot program errors.</string>
</resources>
+1 -1
View File
@@ -6,7 +6,7 @@ buildscript {
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:4.1.1'
classpath 'com.android.tools.build:gradle:3.5.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
+2 -2
View File
@@ -48,9 +48,9 @@ deps=./deps.zip
# You can override this from the command line by passing "-Poverride_version=#"
override_version=
# This property controls path where overridden version number header should be generated
# This property controls path where overriden version number header should be generated
# You can override this from the command line by passing "-Pversion_header_path=#"
version_header_path=./../src/version.h
version_header_path=app/jni/src/version.h
# This property controls which compileSdkVersion should be used
# You can override this from the command line by passing "-Poverride_compileSdkVersion=#"
+1 -1
View File
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6-all.zip
+36 -66
View File
@@ -1,14 +1,18 @@
#!/bin/bash
# Build script intended for use in Travis CI and Github workflow
# Build script intended for use in Travis CI
echo "Using bash version $BASH_VERSION"
set -exo pipefail
num_jobs=3
# We might need binaries installed via pip, so ensure that our personal bin dir is on the PATH
export PATH=$HOME/.local/bin:$PATH
function run_tests
{
# The grep supresses lines that begin with "0.0## s:", which are timing lines for tests with a very short duration.
$WINE "$@" -d yes --use-colour yes --rng-seed time $EXTRA_TEST_OPTS | grep -Ev "^0\.0[0-9]{2} s:"
}
date +%s > build-start-time
if [ -n "$TEST_STAGE" ]
then
@@ -16,14 +20,10 @@ then
make -j "$num_jobs" style-json
tools/dialogue_validator.py data/json/npcs/* data/json/npcs/*/* data/json/npcs/*/*/*
tools/json_tools/generic_guns_validator.py
# Also build chkjson (even though we're not using it), to catch any
# compile errors there
make -j "$num_jobs" chkjson
# Skip the rest of the run if this change is pure json and this job doesn't test any extra mods
elif [ -n "$JUST_JSON" -a -z "$MODS" ]
elif [ -n "$JUST_JSON" ]
then
echo "Early exit on just-json change"
exit 0
@@ -31,29 +31,10 @@ fi
ccache --zero-stats
# Increase cache size because debug builds generate large object files
ccache -M 5G
ccache -M 2G
ccache --show-stats
function run_test
{
set -eo pipefail
test_exit_code=0 sed_exit_code=0 exit_code=0
$WINE $1 --min-duration 0.2 --use-colour yes --rng-seed time $EXTRA_TEST_OPTS "$2" 2>&1 | sed -E 's/^(::(warning|error|debug)[^:]*::)?/\1'"$3"'/' || test_exit_code="${PIPESTATUS[0]}" sed_exit_code="${PIPESTATUS[1]}"
if [ "$test_exit_code" -ne "0" ]
then
echo "$3test exited with code $test_exit_code"
exit_code=1
fi
if [ "$sed_exit_code" -ne "0" ]
then
echo "$3sed exited with code $sed_exit_code"
exit_code=1
fi
return $exit_code
}
export -f run_test
if [ "$CMAKE" = "1" ]
if [ -n "$CMAKE" ]
then
bin_path="./"
if [ "$RELEASE" = "1" ]
@@ -64,35 +45,26 @@ then
build_type=Debug
fi
cmake_extra_opts=()
cmake_extra_opts=
if [ "$CATA_CLANG_TIDY" = "plugin" ]
then
cmake_extra_opts+=("-DCATA_CLANG_TIDY_PLUGIN=ON")
cmake_extra_opts="$cmake_extra_opts -DCATA_CLANG_TIDY_PLUGIN=ON"
# Need to specify the particular LLVM / Clang versions to use, lest it
# use the llvm-7 that comes by default on the Travis Xenial image.
cmake_extra_opts+=("-DLLVM_DIR=/usr/lib/llvm-8/lib/cmake/llvm")
cmake_extra_opts+=("-DClang_DIR=/usr/lib/llvm-8/lib/cmake/clang")
fi
if [ "$COMPILER" = "clang++-8" -a -n "$GITHUB_WORKFLOW" -a -n "$CATA_CLANG_TIDY" ]
then
# This is a hacky workaround for the fact that the custom clang-tidy we are
# using is built for Travis CI, so it's not using the correct include directories
# for GitHub workflows.
cmake_extra_opts+=("-DCMAKE_CXX_FLAGS=-isystem /usr/include/clang/8.0.0/include")
cmake_extra_opts="$cmake_extra_opts -DLLVM_DIR=/usr/lib/llvm-8/lib/cmake/llvm"
cmake_extra_opts="$cmake_extra_opts -DClang_DIR=/usr/lib/llvm-8/lib/cmake/clang"
fi
mkdir build
cd build
cmake \
-DBACKTRACE=ON \
${COMPILER:+-DCMAKE_CXX_COMPILER=$COMPILER} \
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
-DCMAKE_BUILD_TYPE="$build_type" \
-DTILES=${TILES:-0} \
-DSOUND=${SOUND:-0} \
"${cmake_extra_opts[@]}" \
$cmake_extra_opts \
..
if [ -n "$CATA_CLANG_TIDY" ]
then
@@ -113,11 +85,6 @@ then
"$CATA_CLANG_TIDY" --version
# Show compiler C++ header search path
${COMPILER:-clang++} -v -x c++ /dev/null -c
# And the same for clang-tidy
"$CATA_CLANG_TIDY" ../src/version.cpp -- -v
# Run clang-tidy analysis instead of regular build & test
# We could use CMake to create compile_commands.json, but that's super
# slow, so use compiledb <https://github.com/nickdiego/compiledb>
@@ -129,7 +96,6 @@ then
# We want to first analyze all files that changed in this PR, then as
# many others as possible, in a random order.
set +x
all_cpp_files="$( \
grep '"file": "' build/compile_commands.json | \
sed "s+.*$PWD/++;s+\"$++")"
@@ -159,14 +125,13 @@ then
echo "Analyzing remaining files"
analyze_files_in_random_order "$remaining_cpp_files"
set -x
else
# Regular build
make -j$num_jobs
cd ..
# Run regular tests
[ -f "${bin_path}cata_test" ] && parallel --verbose --linebuffer "run_test $(printf %q "${bin_path}")'/cata_test' {} '('{}')=> '" ::: "crafting_skill_gain" "[slow] ~crafting_skill_gain" "~[slow] ~[.]"
[ -f "${bin_path}cata_test-tiles" ] && parallel --verbose --linebuffer "run_test $(printf %q "${bin_path}")'/cata_test-tiles' {} '('{}')=> '" ::: "crafting_skill_gain" "[slow] ~crafting_skill_gain" "~[slow] ~[.]"
[ -f "${bin_path}cata_test" ] && run_tests "${bin_path}cata_test"
[ -f "${bin_path}cata_test-tiles" ] && run_tests "${bin_path}cata_test-tiles"
fi
elif [ "$NATIVE" == "android" ]
then
@@ -175,22 +140,27 @@ then
# Tweak the ccache compiler analysis. We're using the compiler from the
# Android NDK which has an unpredictable mtime, so we need to hash the
# content rather than the size+mtime (which is ccache's default behavior).
# content rather than the size+mtime (which is ccache's default behaviour).
export CCACHE_COMPILERCHECK=content
cd android
# Specify dumb terminal to suppress gradle's constant output of time spent building, which
# Specify dumb terminal to suppress gradle's constatnt output of time spent building, which
# fills the log with nonsense.
TERM=dumb ./gradlew assembleExperimentalRelease -Pj=$num_jobs -Plocalize=false -Pabi_arm_32=false -Pabi_arm_64=true -Pdeps=/home/travis/build/CleverRaven/Cataclysm-DDA/android/app/deps.zip
else
make -j "$num_jobs" RELEASE=1 CCACHE=1 CROSS="$CROSS_COMPILATION" LINTJSON=0
make -j "$num_jobs" RELEASE=1 CCACHE=1 BACKTRACE=1 CROSS="$CROSS_COMPILATION" LINTJSON=0
export ASAN_OPTIONS=detect_odr_violation=1
export UBSAN_OPTIONS=print_stacktrace=1
parallel --verbose --linebuffer "run_test './tests/cata_test' {} '('{}')=> '" ::: "crafting_skill_gain" "[slow] ~crafting_skill_gain" "~[slow] ~[.]"
if [ -n "$MODS" ]
if [ "$TRAVIS_OS_NAME" == "osx" ]
then
parallel --verbose --linebuffer "run_test './tests/cata_test --user-dir=modded '$(printf %q "${MODS}") {} 'Mods-('{}')=> '" ::: "crafting_skill_gain" "[slow] ~crafting_skill_gain" "~[slow] ~[.]"
run_tests ./tests/cata_test
else
run_tests ./tests/cata_test &
if [ -n "$MODS" ]
then
run_tests ./tests/cata_test --user-dir=modded $MODS &
wait -n
fi
wait -n
fi
if [ -n "$TEST_STAGE" ]
@@ -198,13 +168,13 @@ else
# Run the tests one more time, without actually running any tests, just to verify that all
# the mod data can be successfully loaded
mods="$(./build-scripts/get_all_mods.py)"
run_test './tests/cata_test --user-dir=all_modded --mods='"${mods}" '~*' ''
# Use a blacklist of mods that currently fail to load cleanly. Hopefully this list will
# shrink over time.
blacklist=build-scripts/mod_test_blacklist
mods="$(./build-scripts/get_all_mods.py $blacklist)"
run_tests ./tests/cata_test --user-dir=all_modded --mods="$mods" '~*'
fi
fi
ccache --show-stats
# Shrink the ccache back down to 2GB in preperation for pushing to shared storage.
ccache -M 2G
ccache -c
# vim:tw=0
+13
View File
@@ -1,10 +1,23 @@
#!/bin/bash
# Wrapper script for clang tidy which is a no-op after some time limit to avoid
# hitting the Travis build timeout.
set -eu
set -o pipefail
seconds_since_build_start=$(($(date +%s) - $(cat build-start-time)))
time_limit=$((15*60)) # Stop 15 minutes after build started
printf "%s/%s seconds elapsed\n" "$seconds_since_build_start" "$time_limit"
if [ "$seconds_since_build_start" -gt "$time_limit" ]
then
printf "Skipping clang-tidy %s due to time limit\n" "$*"
exit 0
fi
plugin=build/tools/clang-tidy-plugin/libCataAnalyzerPlugin.so
set -x
if [ -f "$plugin" ]
then
LD_PRELOAD=$plugin "$CATA_CLANG_TIDY" "$@"
+13 -10
View File
@@ -1,35 +1,38 @@
#!/usr/bin/env python3
import sys
import glob
import json
blacklist_filename, = sys.argv[1:]
with open(blacklist_filename) as blacklist_file:
blacklist = {s.rstrip('\n') for s in blacklist_file.readlines()}
mods_to_keep = []
def add_mods(mods):
for mod in mods:
if mod not in all_mod_dependencies:
if not mod in all_mod_dependecies:
# Either an invalid mod id, or blacklisted.
return False
for mod in mods:
if mod not in mods_to_keep:
if not mod in mods_to_keep:
mods_to_keep.append(mod)
return True
all_mod_dependencies = {}
all_mod_dependecies = {}
for info in glob.glob('data/mods/*/modinfo.json'):
mod_info = json.load(open(info))
for e in mod_info:
if e["type"] == "MOD_INFO":
ident = e["id"]
all_mod_dependencies[ident] = e.get("dependencies", [])
ident = e["ident"]
if not ident in blacklist:
all_mod_dependecies[ident] = e.get("dependencies", [])
for mod in all_mod_dependencies:
if mod not in mods_to_keep:
if add_mods(all_mod_dependencies[mod]):
for mod in all_mod_dependecies:
if not mod in mods_to_keep:
if add_mods(all_mod_dependecies[mod]):
mods_to_keep.append(mod)
print(','.join(mods_to_keep))
+1 -1
View File
@@ -1 +1 @@
find . -name "*json" -type f -exec python3 -m json.tool {} >/dev/null \;
find . -name "*json" -type f -exec python -m json.tool {} >/dev/null \;
+9
View File
@@ -0,0 +1,9 @@
blazemod
crt_expansion
Graphical_Overmap
mapgen_demo
more_locations
no_medieval_items
sees_player_hitbutton
sees_player_retro
generic_guns
@@ -1,25 +0,0 @@
{
"problemMatcher": [
{
"owner": "cata-catch2",
"pattern": [
{
"regexp": "(?:\\(.*\\)=>[\\s\\t]*)(?:.\\[[0-9;]+m)*[\\s\\t]*(?:\\.\\./)*([^:]*):(\\d+): .*FAILED:.*$",
"file": 1,
"line": 2
},
{
"regexp": "(?:\\(.*\\)=>[\\s\\t]*)(?:.\\[[0-9;]+m)*[\\s\\t]*(.+)$",
"code": 1
},
{
"regexp": "(?:\\(.*\\)=>[\\s\\t]*)(?:.\\[[0-9;]+m)*[\\s\\t]*(with expansion|due to a fatal error condition):$"
},
{
"regexp": "(?:\\(.*\\)=>[\\s\\t]*)(?:.\\[[0-9;]+m)*[\\s\\t]*(.+)$",
"message": 1
}
]
}
]
}
@@ -1,16 +0,0 @@
{
"problemMatcher": [
{
"owner": "cata-clang",
"pattern": [
{
"regexp": "^(?:[0-9.:]+|\\(continued from above\\)) (ERROR) : (?:(?:\\.\\./)*)([^:]*):(\\d+) (.+)(?<!\\(json-error\\))$",
"severity": 1,
"file": 2,
"line": 3,
"message": 4
}
]
}
]
}
@@ -1,17 +0,0 @@
{
"problemMatcher": [
{
"owner": "cata-flake8",
"pattern": [
{
"regexp": "^(.*):(\\d+):(\\d+):\\s+([A-Z]\\d+)\\s+(.*)$",
"file": 1,
"line": 2,
"column": 3,
"code": 4,
"message": 5
}
]
}
]
}
+14 -39
View File
@@ -16,81 +16,56 @@ function just_json
return 0
}
# Enable GitHub actions problem matchers
# (See https://github.com/actions/toolkit/blob/master/docs/problem-matchers.md)
echo "::add-matcher::build-scripts/problem-matchers/catch2.json"
echo "::add-matcher::build-scripts/problem-matchers/debugmsg.json"
if which travis_retry &>/dev/null
then
travis_retry=travis_retry
else
travis_retry=
fi
if [[ "$TRAVIS_EVENT_TYPE" == "pull_request" ]]; then
if just_json; then
export JUST_JSON=true
export CODE_COVERAGE=""
fi
if just_json; then
export JUST_JSON=true
export CODE_COVERAGE=""
fi
set -x
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
$travis_retry sudo apt-get --yes install parallel
fi
if [ -n "${CODE_COVERAGE}" ]; then
$travis_retry pip install --user wheel --upgrade
$travis_retry pip install --user pyyaml cpp-coveralls
travis_retry pip install --user pyyaml cpp-coveralls
export CXXFLAGS="$CXXFLAGS --coverage"
export LDFLAGS="$LDFLAGS --coverage"
fi
if [ -n "$CATA_CLANG_TIDY" ]; then
$travis_retry pip install --user wheel --upgrade
$travis_retry pip install --user compiledb lit
travis_retry pip install --user compiledb lit
fi
# Influenced by https://github.com/zer0main/battleship/blob/master/build/windows/requirements.sh
if [ -n "${MXE_TARGET}" ]; then
sudo add-apt-repository 'deb [arch=amd64] https://mirror.mxe.cc/repos/apt xenial main'
$travis_retry sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 84C7C89FC632241A6999ED0A580873F586B72ED9
travis_retry sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 84C7C89FC632241A6999ED0A580873F586B72ED9
# We need to treat apt-get update warnings as errors for which the exit code
# is not sufficient. The following workaround inspired by
# https://unix.stackexchange.com/questions/175146/apt-get-update-exit-status/
exec {fd}>&2
$travis_retry bash -o pipefail -c \
travis_retry bash -o pipefail -c \
"sudo apt-get update 2>&1 | tee /dev/fd/$fd | ( ! grep -q -e '^Err:' -e '^[WE]:' )"
exec {fd}>&-
MXE2_TARGET=$(echo "$MXE_TARGET" | sed 's/_/-/g')
export MXE_DIR=/usr/lib/mxe/usr/bin
$travis_retry sudo apt-get --yes install mxe-${MXE2_TARGET}-gcc mxe-${MXE2_TARGET}-gettext mxe-${MXE2_TARGET}-glib mxe-${MXE2_TARGET}-sdl2 mxe-${MXE2_TARGET}-sdl2-ttf mxe-${MXE2_TARGET}-sdl2-image mxe-${MXE2_TARGET}-sdl2-mixer
travis_retry sudo apt-get --yes install mxe-${MXE2_TARGET}-gcc mxe-${MXE2_TARGET}-gettext mxe-${MXE2_TARGET}-glib mxe-${MXE2_TARGET}-sdl2 mxe-${MXE2_TARGET}-sdl2-ttf mxe-${MXE2_TARGET}-sdl2-image mxe-${MXE2_TARGET}-sdl2-mixer
export PLATFORM='i686-w64-mingw32.static'
export CROSS_COMPILATION='${MXE_DIR}/${PLATFORM}-'
# Need to overwrite CXX to make the Makefile $CROSS logic work right.
export CXX="$COMPILER"
export CCACHE=1
set +e
retry=0
until [[ "$retry" -ge 5 ]]; do
curl -L -o libbacktrace-i686-w64-mingw32.tar.gz https://github.com/Qrox/libbacktrace/releases/download/2020-01-03/libbacktrace-i686-w64-mingw32.tar.gz && shasum -a 256 -c ./build-scripts/libbacktrace-i686-w64-mingw32-sha256 && break
retry=$((retry+1))
rm -f libbacktrace-i686-w64-mingw32.tar.gz
sleep 10
done
if [[ "$retry" -ge 5 ]]; then
echo "Error downloading or checksum failed for libbacktrace-i686-w64-mingw32.tar.gz"
curl -L -o libbacktrace-i686-w64-mingw32.tar.gz https://github.com/Qrox/libbacktrace/releases/download/2020-01-03/libbacktrace-i686-w64-mingw32.tar.gz
if ! shasum -a 256 -c ./build-scripts/libbacktrace-i686-w64-mingw32-sha256; then
echo "Checksum failed for libbacktrace-i686-w64-mingw32.tar.gz"
exit 1
fi
set -e
sudo tar -xzf libbacktrace-i686-w64-mingw32.tar.gz --exclude=LICENSE -C ${MXE_DIR}/../${PLATFORM}
fi
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
HOMEBREW_NO_AUTO_UPDATE=yes HOMEBREW_NO_INSTALL_CLEANUP=yes brew install sdl2 sdl2_image sdl2_ttf sdl2_mixer gettext ncurses ccache parallel
brew update
brew install sdl2 sdl2_image sdl2_ttf sdl2_mixer gettext ncurses ccache
brew link --force gettext ncurses
fi
if [[ "$NATIVE" == "android" ]]; then
+16
View File
@@ -0,0 +1,16 @@
#!/bin/bash
if [ -z "$ghprbPullId" ]; then exit 0; fi
allowed_section_titles='Features|Content|Interface|Mods|Balance|Bugfixes|Performance|Infrastructure|Build|I18N'
echo 'Validating Summary line from pull request.'
echo "$ghprbPullLongDescription" | grep -Pi '(^|(\\r)?\\n)\s*`{0,3}SUMMARY: +(None|(('"${allowed_section_titles}"') +\\?".*?\\?"))`{0,3}\s*((\\r)?\\n|$)'
if [ $? -eq 0 ]; then
echo 'Summary looks good.'
exit 0
else
echo 'Invalid Summary line, please provide a summary similar to the following:'
echo 'SUMMARY: Features "Added ability to fly."'
exit 1
fi
+1 -1
View File
@@ -39,7 +39,7 @@ then
BIN=
for bin in cataclysm-tiles cataclysm
do
[ -f "$bin" ] && BIN="$bin" break
[ -f "$bin" ] && BIN="$bin" && break
done
fi
+21 -22
View File
@@ -1,23 +1,22 @@
if (NOT EXISTS "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt")
message(FATAL_ERROR
"Cannot find install manifest: \"@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt\"")
endif ()
file(READ "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt" FILE_LIST)
string(REGEX REPLACE "\n" ";" FILE_LIST "${FILE_LIST}")
foreach (FILE_NAME ${FILE_LIST})
message(STATUS "Uninstalling \"$ENV{DESTDIR}${FILE_NAME}\"")
if (EXISTS "$ENV{DESTDIR}${FILE_NAME}")
exec_program(
"@CMAKE_COMMAND@" ARGS "-E remove \"$ENV{DESTDIR}${FILE_NAME}\""
OUTPUT_VARIABLE RM_OUT
RETURN_VALUE RM_RETVAL)
if ("${RM_RETVAL}" STREQUAL 0)
else ()
message(FATAL_ERROR "Problem when removing \"$ENV{DESTDIR}${FILE_NAME}\"")
endif ()
else ()
message(STATUS "File \"$ENV{DESTDIR}${FILE_NAME}\" does not exist.")
endif ()
endforeach ()
IF(NOT EXISTS "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt")
MESSAGE(FATAL_ERROR "Cannot find install manifest: \"@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt\"")
ENDIF(NOT EXISTS "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt")
FILE(READ "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt" files)
STRING(REGEX REPLACE "\n" ";" files "${files}")
FOREACH(file ${files})
MESSAGE(STATUS "Uninstalling \"$ENV{DESTDIR}${file}\"")
IF(EXISTS "$ENV{DESTDIR}${file}")
EXEC_PROGRAM(
"@CMAKE_COMMAND@" ARGS "-E remove \"$ENV{DESTDIR}${file}\""
OUTPUT_VARIABLE rm_out
RETURN_VALUE rm_retval
)
IF("${rm_retval}" STREQUAL 0)
ELSE("${rm_retval}" STREQUAL 0)
MESSAGE(FATAL_ERROR "Problem when removing \"$ENV{DESTDIR}${file}\"")
ENDIF("${rm_retval}" STREQUAL 0)
ELSE(EXISTS "$ENV{DESTDIR}${file}")
MESSAGE(STATUS "File \"$ENV{DESTDIR}${file}\" does not exist.")
ENDIF(EXISTS "$ENV{DESTDIR}${file}")
ENDFOREACH(file)
+31 -26
View File
@@ -1,34 +1,39 @@
# Cataclysm data files
cmake_minimum_required(VERSION 3.1.4)
set(CATACLYSM_DATA_DIRS
${CMAKE_SOURCE_DIR}/data/font
${CMAKE_SOURCE_DIR}/data/json
${CMAKE_SOURCE_DIR}/data/mods
${CMAKE_SOURCE_DIR}/data/names
${CMAKE_SOURCE_DIR}/data/raw
${CMAKE_SOURCE_DIR}/data/motd
${CMAKE_SOURCE_DIR}/data/credits
${CMAKE_SOURCE_DIR}/data/title)
SET(CATACLYSM_DATA_DIRS
${CMAKE_SOURCE_DIR}/data/font
${CMAKE_SOURCE_DIR}/data/json
${CMAKE_SOURCE_DIR}/data/mods
${CMAKE_SOURCE_DIR}/data/names
${CMAKE_SOURCE_DIR}/data/raw
${CMAKE_SOURCE_DIR}/data/motd
${CMAKE_SOURCE_DIR}/data/credits
${CMAKE_SOURCE_DIR}/data/title
)
if (SOUND)
set(CATACLYSM_DATA_DIRS
${CATACLYSM_DATA_DIRS}
${CMAKE_SOURCE_DIR}/data/sound)
endif ()
IF(SOUND)
SET(CATACLYSM_DATA_DIRS
${CATACLYSM_DATA_DIRS}
${CMAKE_SOURCE_DIR}/data/sound
)
ENDIF(SOUND)
if (TILES)
set(CATACLYSM_DATA_DIRS
${CATACLYSM_DATA_DIRS}
${CMAKE_SOURCE_DIR}/gfx)
endif ()
IF(TILES)
SET(CATACLYSM_DATA_DIRS
${CATACLYSM_DATA_DIRS}
${CMAKE_SOURCE_DIR}/gfx
)
ENDIF(TILES)
set(CATACLYSM_DATA_FILES
${CMAKE_SOURCE_DIR}/data/changelog.txt
${CMAKE_SOURCE_DIR}/data/cataicon.ico
${CMAKE_SOURCE_DIR}/data/fontdata.json
${CMAKE_SOURCE_DIR}/LICENSE.txt)
SET(CATACLYSM_DATA_FILES
${CMAKE_SOURCE_DIR}/data/changelog.txt
${CMAKE_SOURCE_DIR}/data/cataicon.ico
${CMAKE_SOURCE_DIR}/data/fontdata.json
${CMAKE_SOURCE_DIR}/LICENSE.txt
)
if (RELEASE)
IF(RELEASE)
install(DIRECTORY ${CATACLYSM_DATA_DIRS} DESTINATION ${DATA_PREFIX})
install(FILES ${CATACLYSM_DATA_FILES} DESTINATION ${DATA_PREFIX})
endif ()
ENDIF(RELEASE)
+7 -492
View File
@@ -1,488 +1,3 @@
# 0.F (2021-04-15)
3974 files changed, 5440251 insertions(+), 3904330 deletions(-)
10,463 commits
~454 contributors
New game entities (core): 4510
Items: 987
228 misc items, 199 books, 196 articles of clothing, 161 guns and gun related items,
151 comestibles, 99 tools, 53 ammunition types
Mapgen: 778
424 overmap terrains, 198 palettes, 62 start locations, 41 city buildings, 25 map extras,
20 overmap specials, 5 overmap locations, 3 region setting
Crafting: 562
223 construction groups, 201 requirements, 60 proficiencies, 50 constructions,
17 recipe groups, 10 recipe categories, 1 construction category
Achievements: 363
115 achievements, 107 event statistics, 100 event transformations, 26 score entries, 15 conducts
Item Traits: 325
171 item groups, 97 materials, 20 ammunition types, 18 ammo effects, 13 tool qualities,
2 vitamins, 3 item actions, 1 fault
Player Traits: 263
144 professions, 41 effect types, 28 skills, 17 mutations, 14 activity types,
4 skill display types, 3 behaviors, 3 movement modes, 3 scent types, 2 morale types,
1 butchery requirement, 1 disease type, 1 mutation types, 1 trait group
NPCs and NPC interactions: 237
255 talk topics, 29 missions, 29 scenarios, 15 npcs, 6 npc classes, 3 factions
Map Traits: 234
149 terrains, 12 weather types, 64 furnitures, 5 gates, 3 field types, 1 terrain transformation
Monsters: 228
151 monster types, 72 harvest entries, 4 species, 1 anatomy entry
Vehicles: 140
80 vehicle parts, 41 vehicles, 12 vehicle part categories, 7 vehicle groups
Magic: 40
23 spells, 7 enchantments, 6 emit definitions, 4 relic definitions
Misc: 363
258 json flags, 104 ascii art, 1 loot zone
New game entities (mods): 3231
Items: 773
179 misc items, 172 books, 161 comestibles, 85 tools, 83 articles of clothing,
65 guns and gun-related items, 21 ammunition types, 7 compact bionic modules
Player traits: 749
273 mutations, 214 trait groups, 96 professions, 64 techniques, 47 scenarios, 21 effect types,
9 martial arts, 8 bionics, 8 start locations, 6 mutation categories, 2 proficiencies, 1 skill
Mapgen: 430
154 item groups, 202 overmap terrains, 39 palettes, 30 overmap specials,
5 city buildings, 2 map extras
Monsters: 406
360 monster types, 32 harvest entries, 11 species, 3 monster attacks
NPCs and NPC interactions: 234
144 talk topics, 59 npc classes, 15 mission definitions, 13 npcs, 3 factions
Map traits: 190
103 terrains, 56 furnitures, 10 terrain transformations,
9 gates, 6 field types, 4 traps, 2 emit definitions
Vehicles: 185
141 vehicle parts, 27 vehicle groups, 17 vehicles
Magic: 155
132 spells, 23 enchantments
Crafting: 48
32 requirements, 7 tool qualities, 5 construction groups, 2 constructions,
1 recipe category, 1 recipe group
Item Traits: 39
20 materials, 11 ammunition types, 8 ammo effects
Achievements: 22
14 achievements, 3 event statistics, 3 event transformations, 2 score entries
## Features:
Adds option to randomize INITIAL_DAY.
Allow vehicles with autopilot to follow you.
Monster factions can unconditionally hate other factions.
Allows mutations to cast spells via enchantments.
Mining multi-activity for NPCs and players.
Basecamp job rework - wandering/sitting/job priorities.
Auto eat and drink from auto-zones during long activities/waiting.
Flyable Helicopters.
Towing vehicles.
User defined height and age.
Adds support for json-defined achievements to provide more goals to strive for.
Overhauls lock picking.
Appropriate items can now rot away when in the reality bubble.
Displays holidays on main menu screen based on system time.
Separates bullet damage type from cut/stab.
Makes consuming items take time.
Enables damage over time for spells.
Enables nested containers.
Adds support for conducts (self-imposed play constraints tracked by the game).
Custom achievement/conduct requirement descriptions.
[Magiclysm] Adds spell level and number of spells known achievements.
Enables mouse input for inventory.
Worn gloves count as unarmed weapons when no weapon is held.
Any corpse can rise again as a zombie.
Added to autodocs the ability to stop bleeding, disinfect wounds, and inject antibiotics in case of infected wounds or tetanus.
Allow randomizing scenario and profession in new character menu.
Workout and exercise.
Vehicles: ground vehicle z-level transitions and z+1 bridges.
Remove static/random NPC options, adjust random NPC rates.
Overhauls blood and blood loss.
Artifact procgen - artifacts that spawn use the new relic data.
Grappling hooks can be deployed for climbing, just like ladders.
Adds proficiencies, representing specific knowledge in particular areas more precisely than by normal skills.
Adds facing to vehicle parts and tiles for better vehicle rendering.
Adds activation abilities and charges to relics.
Tiles: improve furniture rotation and connections.
Shows which achievements have been completed in past games.
Artifacts may now regenerate ammo.
Adds ACTIVE enchantment condition.
Allows recipes to specify individual activity levels.
Adds weariness, a sort of long term stamina that limits characters' ability to be extremely active 24/7.
Reports faction camp build sites and improves faction camp tutorial.
Allows customizing initial date in scenarios.
Allows nanofabricator templates to contain recipes from any item group.
Adds different bleeding types for different species.
Adds bleeding butchery action.
Autodoc installation programs added that almost guarantee flawless installation of supported bionics.
Removes the obsolete 'carrion spawn rate scaling factor' world configuration option.
## Content:
Gun volume and weight audit.
Moves most urban development houses from a mod to vanilla.
Adds Survivor RV and car.
Populates appropriate rooftops with monsters.
Adds many chemicals, chemistry tools, and recipes.
Mi-go, masters, and necromancers can open doors.
Adds a bulk shipping crate possibility to the supplydrop map extra.
New zombie: necro-boomer.
Overhaul the mall.
Allow the of use grappling hooks on ledges.
Make bugs much more mutated.
Reformats the 'chat with a friend' feature in NPCs to be more flexible, and to provide some more lore insights.
Adds 'What the hell happened' stories to NPCs, keyed off backgrounds.
Feral Humans with blob psychosis.
Allows plank and branch bundles to be made from cordage, vines, or wire.
Microlabs can contain artifacts in containment.
Adds NPC_class and NPC json templates and instructions.
Adapts almost all vehicle definitions to use directional parts.
Update UltiCa tileset and make it default.
Adds a number of flying zombies.
Adds a new alternate needs panel to the label mode.
Added many proficiencies and uses for them.
Adds frog mother monster.
Adds mega mutant monsters.
Adds a selection of mutated woodland creatures.
New 'phase skulker' zombies teleport and haunt between the hallways of microlabs.
Make mutant organs and lungs contain toxins.
Adds streetlights to sidewalks; also adds traffic lights, stop lines, and pedestrian crossings to intersections.
Adds Rust Zombies.
Diversifies venom sources and effects.
Adds a star fort with working cannon and zombie reenactors.
Adds Hot Springs location.
Adds a terrain flag 'NO_SHOOT' to prevent projectiles from striking or going through that tile type.
Enables using a rope to carry large items.
Adds large dermatik nest and tweaks dermatiks.
Adds a new layout for the island prison challenge scenario.
Adds tazer drones.
Adds a demo of the Cuteclysm tileset, which is loosely inspired by the aesthetics of 16-bit Japanese RPGs.
## Interface:
Introduces, and migrates most windows to, ui_adaptor, which handles redrawing windows when others are closed and the game is resized.
Highlights hidden recipe info in the crafting GUI.
Overhauls target selection and aiming UI.
Displays missing and obsolete mods for current world.
Requires grenades and other explosives to be wielded before activation.
Adds bigger mini-maps to all sidebar layouts.
Adds keycode support to uilist.
Allows attempting to disable robots by 'e'xamining them.
Warns if a friendly creature or non-hostile NPC enters the line of fire.
Replaces the CAL/kg column of the (E)at menu with a more meaningful Satiety column.
Adds a Mod to use MSX characters and monsters with the Ultica tileset.
Shows crafting failure rates due to missing proficiencies.
Displays contained items like 'water (plastic bottle)' instead of as 'plastic bottle of water'.
Keeps track of preferred aiming mode.
Makes Chibi Ultica a stand-alone tileset.
Brings back MSX+.
Adds item length and pocket volume entries to menus.
Adds fast scrolling to many menus with long lists.
Adds responsive screen behavior to the new character menu for small terminal sizes.
Shows weariness and activity levels in sidebar panels.
Warns before crafting armor or clothing you won't be able to wear.
## Mods:
[Magiclysm] Manatouched mutation tree.
Overhauls Blazemod and splits it into separate mods.
[MMA] Adds Ki Strike trait.
[Magiclysm] Adds polymorph spells so you can transform your foes.
[Magiclysm] Adds a spell component system and more-powerful spells to use it.
Aftershock: Adds autodoc tiers and augmentation clinics.
[DinoMod] Adds location variants with dinosaurs.
Aftershock: Megacity-oriented overmap generation adjustments
Aftershock: Adds new Melee oriented bionics.
[DinoMod] Adds Acrocanthosaurus and overhauls dino baby code.
[Magiclysm] Adds a new mutation line: Black Dragon.
Adjusts fog frequency in black dragon lair plus other (minor) map adjustments.
Adds monsters 'Scutellosaurus', 'Maiasaura', and 'Coelophysis'.
[Magiclysm] Attunements - Special abilities gained by mastering two schools of magic.
Adds monsters 'Pachyrhinosaurus', 'Pentaceratops', and 'Torosaurus'.
[DinoMod] Organizes dinos into three main factions with defined inter-faction behavior.
[DinoMod] Rebalances Jurassic spawns and monsters for realism and fixes predator in-fighting.
Cap monsters at 1000 kg so butchering kind of works.
[Magiclysm] implement summonable motorcycle
[Magiclysm] Adds a new house with technomancer-themed loot.
[Aftershock] Replaces Vanilla autodocs with Aftershock Average Autodocs.
[DinoMod] Adds monsters 'Brontosaurus', 'Alamosaurus', and 'Brachiosaurus'.
[Magiclysm] Rings of wizardry and mojocycle tweaks
[Magiclysm] Adds bullet armor to magic rings and bracers of protection.
[DinoMod] Converts 'dinoexhibit' to use templates, adds a roof, and adds a baby dino variant.
[DinoMod] Ankylosaurs Abound: Adds Dyoplosaurus, Nodosaurus, and Edmontonia.
[Aftershock] Adds an astrobiology lab.
[DinoMod] Adds Amargasaurus and Kosmoceratops as well as variants.
[Magiclysm] Adds Orcs and Ogres.
[Aftershock] Adds a design document.
[DinoMod] Adds mod-specific mutation trees Stego and Tyrant.
[Aftershock] Adds new laser and plasma pistols.
[Magiclysm] Adds three new Attunement spells (Frozen Winds, Auroral wave, and Immolate).
[Magiclysm] Adds Workshop Elves, Yule Cats, and Leprechauns.
[Aftershock] Adds Formless Ruins - a new aboveground, low-risk dungeon type.
[Dark Skies Above] DSA is reborn as an actively-developed, total-conversion mod.
## Balance:
Large item price audit.
Large scale melee weapon damage audit.
melee: make polearms do less damage against adjacent targets.
Hide irradiated effect from the player, forces use of existing tools to detect radiation levels.
More complex satiety calculations.
NPCs to use ranged weapons against all enemies, and automatic fire against dangerous enemies.
Antifungal drugs work over time.
Don't damage hands when smashing but use your most armored part instead.
Guarantee at least one transversable path in the collapsed tower basement.
Make Solar Sensitivity mutation respect clothing coverage, precious.
Unlock NPC recruiting when you build the faction camp radio console.
Fixed clean_water recipes with purification tablets and charcoal water purifier.
Brings reloading components closer to reality, make brass casings spawn in packs, and makes gunpowder units 100 mg.
Missed scenario starts without a random NPC.
Monsters with larger eyes see farther than smaller variants.
Ankle storage items don't affect feet-related mutations anymore.
Gives the default Survivor profession more weather-appropriate clothes for the default start.
Eating raw meat does not hurt your morale as much if you have traits like Hunter or Predator.
Very-fast-moving zombie animals only attack once per turn.
Spawns anesthesia supplies in autodocs.
Rebalances spawn rates for overmap specials.
Mycus Fireproofing now also gives heat immunity.
Tweaks Infection impact by lowering fatigue drain and removing pain.
Adjusts ordinary clothing to not meaningfully contribute to protection values.
## Bugfixes:
Prevents possible negative damage from explosions.
Removes scent diffusion over water by implementing NO_SCENT flag.
Gives electric motors equal power in forward and reverse.
Fixes wield action costing double what it should have.
Fixes spells not gaining levels on cast.
Fixes light sources rendering the player invisible at certain ranges.
Fixes a crash when an NPC gives the player equipment.
Fixes "Unable to find and assign mission target" messages when accepting a mission.
No more floor items when trading with follower NPCs.
Fixes crashes from trying to access a nonexistant basecamp.
Helicopters: Allows descending into open air while moving, and disallows roof teleporting.
Fixes cold items rotting in a freezer and adds more rotting tests.
Spawns regular ants under regular anthills.
Melee: Makes sure that melee weapon accuracy improves hit rates.
Adjusts vehicle heater/cooler for 1-second turns.
Wakes up the player if about to go into hypothermia.
Fixes a segfault during initializing crafts.
Fixes a segfault from attempting to siphon from vehicle with multiple tanks.
Fixes creatures blocking descent even if they can be displaced.
Fixes OnGetHit effects not triggering if the player cannot block.
Refactors the monster spawning code to avoid crashes.
Resets the game mode before loading normal saves.
Minimizes UI flickering in curses mode.
Fixes crash upon examining vehicles containing minireactor.
Fixes segfault on harvest.
Fixes loading of legacy characters without bodies.
Fixes explosions not affecting terrain.
Avoids processing held items twice.
Fixes a crash when trying to reload an item inside of advanced inventory
Renames (when appropriate) blobs as slimes.
Fixes massive, unrealistic temperature drops when wet.
Fixes weapon techniques not triggering.
Prevents some obscure crashes by adding nullptr checks to unsafe pointer accesses.
Vehicles: make sure going in reverse isn't more efficient than going forward.
Fixes doubled artifact effects on stats.
Containers can't hold too-large items, even when contained in other containers.
Prevents temperature being 0 after loading a save.
Consumes components in nested containers when crafting.
Fixes stuck joystick on Android.
Adjusts sunlight casting to properly illuminate exterior walls.
Fixes limb blocking not triggering.
Vehicles: shock absorbers actually now absorb shock damage.
Fixes NPC dying immediately on accepting inhaler mission
Fixes crash when attempting to butcher a corpse.
Fixes gear getting damaged by weather when weather has no damaging effects.
Improves invalidation of max_populated_zlev cache, fixing lighting in some teleportation scenarios.
Prevents dodging or blocking while insensible.
Fixes apparent light asymmetry when the sun shines through a single-tile hole in the roof.
Makes installation time mandatory for gunmods.
Makes tents and vehicles block sunlight.
Prevents scent map from being saved with an invalid utf8 sequence.
Monsters no longer bash obstacles based on sound. This prevents groups of monsters from getting stuck in a loop of bashing based on the sound of other monsters bashing.
Picking up an item stack fills up your pockets if it doesn't fit into one pocket.
Wielding combines item stacks if possible.
Robots can no longer be disabled by a single melee hit.
Fixes auto-consume zones in vehicles.
Fixes monster special attack range-limiting code.
Falling vehicles: prevents bouncing after the first collision with the ground.
Fixes issues with sound (walking on boats, sound triggering twice).
Ensures that casings are stackable, fixing pickup performance issues.
Allows quartering organ-less corpses without field dressing.
Triggers explosions only after processing all items.
Fixes scenarios having wildly different start dates and potentially crashing the game.
Allows fire to spread to adjecent tiles with items.
Prevents log spam from a broken bone.
Makes reachability cache fully consistent with map::sees, fixing some problems with mirrors.
Fixes NPC-assisted time-cost calculation.
Killing a monster that fused with a mission kill target now successfully completes the mission.
Bashes that do zero damage now can't stun.
Fixes a crash due to dereferencing a null carrier pointer in item::process_tool.
Prevents a seg fault in auto-consume.
Vehicles: Fixes towed vehicle drag by unsetting their parking brakes.
Fixes sarcophagus elevator reactivation.
Fixes doors that NPCs could not pass without intervention.
Prevents disassemblies on a workbench from vanishing.
Fixes errors from crashes between a towed vehicle and its towing vehicle.
Bases returned materials from salvaging on mass instead of volume.
Fixes unable to run message when mounted - allows a mount to run when your legs are broken.
Fixes errors from abandoning a faction camp.
Makes NPCs able to fight back while guarding or patrolling.
Fixes use-after-free error in sounds::process_sound_markers(player).
Makes the Zombie technician's pull metal weapon attack drop items at the technician's feet.
Fixes errors due to a bad memory access in drop_activity_actor::do_turn().
Resolves a partial item spawn issue.
Prevents xp 'underflow' due to negative focus.
Dragged vehicles and furniture no longer leave a trail of memorized tiles in darkness.
Prevents a crash by disallowing turning vehicles on ramps.
Fixes crashes from towing cables snapping or trying to stretch between z-levels.
Fixes a game freeze from happening when the player cannot carry a mission reward.
Fixes crashes in `map::player_in_field` caused by iterator invalidation.
Fixes a division by zero error when drinking water.
Fixes NPC followers being blind after waking up.
Fixes looks_like for vehicle parts.
Fixes Roots and Metabolic rehydration mutations so they actually relieve/eliminate the need for water.
Fixes localization not working if the LANG environmental variable is not set.
Avoids creating starving characters from older templates.
Fixes furniture being 'destroyed' when grab-moving.
Fixes crashes from canceling reloading a container that is on the ground.
Fixes NPCs still being hungry - and unhappy about it - after eating from faction camp stores.
Reins in the plant mutation category's photosynthesis ability to be more representative of real photosynthesis.
Prevents cross-z-level melee attacks when the target is not actually visible.
Avoids doing character body updates more than once per turn
When harvesting crops, drops the result on the player's square.
Improves road system connectivity across overmaps.
## Performance:
Adds an option to enable batching when it is available in SDL.
Skip unnecessary weather calculations for root cellar.
Cache drop_invalid_inventory and weight_carried.
Cache clairvoyance field.
Performance improvements related to map::process_fields.
Overhaul shadowcasting to be iterative instead of recursive.
Use plf linked list impl for shadowcasting.
Improve string_id comparison performance, add unit test and benchmarks.
Improves rendering speed by optimizing find_tile_looks_like method (FPS improved ~15%)
Greatly reduces overhead from processing idle vehicles.
Optimizes Creature::has_effect (performance improved ~9.5%)
Adds a specialization for static/interned string_ids (performance improved ~30%))
Improve performance of builds with enabled localization by ≈20% by caching translations.
Major optimization of field processing.
Adds reachability cache/filter that can reject bresenham-based LOS checks in O(1) time.
Uses field_cache in map::get_field to speedup fire check in npc::assess_danger.
Speeds up quicksave by limiting ui redraw rate.
Prevents slow processing of NPC overmap travel when `goal` is unreachable.
Fixes the performance bug caused by `verify_vehicle_cache` recalculation.
Adds lightweight crafting inventory cache to improve NPC construction processing time.
Reduces save size by skipping serialization of some item pockets and relic data.
Adds RLE compression for JSON serialization/deserializations of data on items, reducing savefile size.
Improves performance of initializing the achievements tracker.
When NPCs are fleeing from explosions, skips considering routing through tiles without a floor.
Speeds up fungus-related code processing by 30%+.
Optimizes item migrations to decrease load times.
Restores graphics speed for large screens with lots of text.
## Infrastructure:
Adds basic infrastructure for diseases.
Allows for specialization of activity parameters.
Jsonizes Autodoc quality.
Adds tests for character BMI / kcal / weight.
Jsonizes body parts.
Jsonizes mood modifier from body part conditions (e.g., wet).
Allows multiple different overmap terrains for start locations.
Makes test failures from other platforms more easily reproducible.
Adds clang-tidy check to catch incorrect use of RNGs.
Adds a guide to pricing items (see the doc folder).
Adds enchantments to bionics.
Adds test for health effect on healing rate.
Adds tests for BMI effect on speed.
Updates Catch2 (for running tests) to v2.13.0 (from 2.9.1).
Achievements have better up-front checking to detect definition errors.
Tests use a different config directory by default.
Migrates ACT_PICKUP to the activity actor system.
Integrates a behavior tree implementation into monster AI.
Moves ascii art to its own file to avoid bloat.
Enforces that functions should not have separate x, y parameters.
Adds tests for sun-related functions.
Implements installation requirements for CBMs.
Fields can now override local light levels.
Converted itype_id to string_id<itype> for better internal code consistency.
Tests refactored item info display functions.
Milling products can be defined in JSON.
Adds a Clang Build Analyzer build step to CI.
Refactored rectangle and box types.
Mutations can be reflexively triggered without player input.
Enforces the use of points as local variables.
Adds table.py to make tables of JSON data.
Adds a guide for intermediate mapgen help.
Options: removes the option to not use z-levels at all (3d vision is still experimental)
Provides point types with coordinate system type safety.
Moves weather from being hardcoded into json.
Changes some awkward terrains into furnitures for better layering.
Creates a machine-readable memorial file at game over.
Dialogue: create an talker API for speakers in a dialogue.
Make rectangle and cuboid generic with respect to point type.
Configure GitHub build matrix to permit more C++ build testing to happen there.
Check for zero weight items.
All .py scripts ported to Python 3 and checked with PEP8 on moderate settings.
table.py partial object-oriented redesign.
Script to list what IDs are present in a tileset.
Revamps vehicle parts shapes to allow chirality - left/right/front/rear.
Removes old artifact code.
Adds a script that generates a list of possible overlay ids.
Adds error-checking of recipe (sub)categories.
Unblacklists most remaining blacklisted mods, enabling more automated consistency checking.
Reports log messages for failed tests.
Reinstates blueprint autocalc.
Refactored vision_test; introduces a map_test_case framework to make building similar tests easier.
Adds tests for better_pocket and best_pocket.
Renames skills in preparation for some future improvements; merges speech & barter.
Merges trapping and lockpicking skills into a new 'devices' skill, and expands its scope somewhat.
Adds default time and fail multipliers to proficiencies for easier JSON entry.
Introduces a STATIC( ) macro that can make the definition of static constants easier to type and read.
Adds typesafe angle type.
Adds check that Generic Guns migrates all guns, magazines, and ammo.
Enables JSON member visitation checks outside of tests (better consistency checking).
Displays multi-line JSON error messages correctly when building on Github.
Python tool added to easily translate map coordinates.
Enables a JSON check for mods in the Github build matrix.
Uses (and checks for using) the correct season length for tests.
Uses GNU Parallel to run tests concurrently, enabling concurrent tests in MacOS builds.
Improves scooter tile representation by adding scooter vehicle parts, which scooters spawn with.
Reduces file size of composed tilesheets from compose.py.
Implements C++ symbol demangling in crash reports on MacOS, MinGW, and Linux.
Adds tests of automatic triggers for mutations.
Generates a crash report on Android.
## Build:
Moves clang-tidy runs from Travis to GitHub.
Adds -fsigned-char to CMakeLists.txt.
Makes json linter feedback more readable.
Fixes clang-tidy header guard checks on Windows.
Gives progress feedback while running the JSON formatting script.
Set 'disable MS telemetry' flag in VCPKG setup guide.
Automatic handling of vcpkg dependencies.
Vehicles: Update doc/JSON_INFO.md for all fields in vehicle_part.
Improve use of precompiled headers.
compose.py: allow default sized tilesheets to specify offsets.
Enable compiling an Android build under Windows.
Tools: adds a Python script to reformat vehicles to use parts arrays.
Suppresses Homebrew update for faster Mac OS builds.
Adds problem matchers for json errors, compiler errors, DebugLog emissions, and Catch2 errors.
Adds check enforcing almost-never-auto convention.
Adds a GitHub workflow running flake8 to check the Python scripts.
Consistently styles code in CMakeLists.txt files.
Adds CMake linting.
Captures ODR violations using GOLD linker, ASAN, or LTO.
## I18N and A11Y:
Fixes translations of martial art initiate and computer terminal messages.
Adds support for specifying identical singular and plural forms using `str_sp`.
Removes name_plural and replaces it with str_pl (matching `str_sp` and basic singular `str`).
Adds a helper for localized sorting.
Records locales in debug.log to assist i18n debugging.
Adds the start of a translator glossary and explains the etymology of Exodii.
Uses class translation in many more places for more flexible translation support.
Infrastructure: Automates translation template push.
Enables using additional languages (Arabic, Czech, Danish, Dutch, Greek, Indonesian, Icelandic, Italian, Norwegian, Serbian, Turkish, and Ukrainian) with the game.
Places cursor at highlighted item name in construction and crafting menus, as expected by screen readers.
Adds translations of the Android installation interface.
# 0.E (Ellison)
## Highlights:
@@ -972,7 +487,7 @@ Apply item spawn scaling factor to monster drops.
Balance bionic power use for realistic values.
Allow large and huge creatures to move through underbrush.
Mouse view was truncating last row of information.
Draw debug vehicle autopilot AI and restore previous behavior.
Draw debug vehicle autopilot AI and restore previous behaviour.
Fix accidental IR vision.
Can create camps in buildings that don't face North.
Fixes martial arts initiate message when equipping an item.
@@ -1474,7 +989,7 @@ Include/Exclude filter for overmap search.
Carrion can now eat adjacent crops or food.
Allow place_monster to optionally place a randomized monster using a weighted list.
Adds firewood source that automatically adds fuel to fire when it is 2/3s consumed.
Make chickens and other small domestic birds tameable (Chickenfeed)
Make chickens and other small domestic birds tamable (Chickenfeed)
Vehicles: Open all doors.
Implement player faction base.
Artifact dreams.
@@ -2076,8 +1591,8 @@ Redesign bionics lab room to fix computer successful hack.
Limit turret to its actual range.
Make missed ranged attacks miss more realistically.
Adds lifting capacity to Cantilevers description.
Add "makeshift_kevlar" to recipes that include the Kevlar vests.
Bleeding also causes anemia.
Add "makeshift_kevlar" to recipes that include the kevlar vests.
Bleeding also causes anaemia.
Change chisel requirement to CHISEL quality requirement.
Remove memorization of recipes from reading books.
Nerf Sensory Dulling.
@@ -2649,7 +2164,7 @@ Support loading worlds from CLI.
Always require RFC 4627 compliant JSON.
Include numeric to fix OSX compile.
Add a switch to retain debug symbols for profiling.
Update MXE ICE workaround to blacklist anything targeting x86_64-w64-mingw32.static
Update MXE ICE workaround to blacklist anything targetting x86_64-w64-mingw32.static
Don't keep _GLIBCXX_DEBUG when DEBUG_SYMBOLS is set.
Allow installation in a path with whitespaces.
Add a compile mode that checks for printf format errors.
@@ -2702,7 +2217,7 @@ Implement printing aim accuracy as numbers.
Textual vehicle facing indicator.
Translatable moon phase.
Fix of untranslated (sub)category in crafting gui.
Don't dynamically initialize using gettext.
Dont' dynamically initialize using gettext.
Make vitamin and fault and mod targets translatable.
Fixed terrain name translation.
UI improvements (for easier translation).
@@ -3584,7 +3099,7 @@ Fix div0 on bad option setting.
* Zombies will revive after a time, if not butchered (or otherwise dealt with).
* The Android trait now behaves the way that the description indicates.
* Gasoline can be siphoned from vehicles. Requires a rubber hose for now - these are easier to acquire.
* Sewing requires materials other than thread - rags for cloth, leather patches for leather, Kevlar bricks, plastic chunks.
* Sewing requires materials other than thread - rags for cloth, leather patches for leather, kevlar bricks, plastic chunks.
* Leather/Kevlar/plastic/fur repair/reinforcement actually possible!
* Inventory management UI improvements, and a new screen to organize worn items.
* NPCs continue to be less buggy, but are still prone to crashes.
+28
View File
@@ -0,0 +1,28 @@
[
{
"id": "water",
"type": "ammunition_type",
"name": "water",
"default": "water"
},
{
"id": "water",
"type": "COMESTIBLE",
"comestible_type": "DRINK",
"category": "food",
"name": "water",
"name_plural": "water",
"description": "Water, the stuff of life, the best thirst-quencher available. It would be safer to drink once purified.",
"weight": 250,
"volume": 1,
"price": 50,
"symbol": "~",
"color": "light_blue",
"phase": "liquid",
"container": "bottle_plastic",
"quench": 50,
"ammo_data": { "ammo_type": "water" },
"flags": [ "EATEN_COLD" ],
"use_action": "BLECH_BECAUSE_UNCLEAN"
}
]
-46
View File
@@ -1,46 +0,0 @@
[
{
"id": "bp_null",
"type": "body_part",
"name": "appendix",
"accusative": { "ctxt": "bodypart_accusative", "str": "appendix" },
"heading": "appendix",
"heading_multiple": "Appendices",
"encumbrance_text": "It's inflamed.",
"main_part": "bp_null",
"connected_to": "bp_null",
"opposite_part": "bp_null",
"hit_size": 0,
"hit_size_relative": [ 0, 0, 0 ],
"hit_difficulty": 0,
"side": "both",
"base_hp": 60,
"drench_capacity": 1,
"legacy_id": "NUM_BP"
},
{
"id": "mx_null",
"type": "map_extra",
"name": { "str": "Nothing" },
"description": "Nothing of interest is here.",
"generator": { "generator_method": "null", "generator_id": "mx_null" }
},
{
"type": "trap",
"id": "tr_null",
"name": "none",
"color": "white",
"symbol": "?",
"visibility": 20,
"avoidance": 0,
"difficulty": 0,
"action": "none",
"benign": true
},
{
"id": "fd_null",
"type": "field_type",
"legacy_enum_id": 0,
"intensity_levels": [ { "name": "nothing" } ]
}
]
-36
View File
@@ -1,36 +0,0 @@
[
{
"id": "clear",
"type": "weather_type",
"name": "Clear",
"color": "cyan",
"map_color": "yellow_white",
"sym": " ",
"ranged_penalty": 0,
"sight_penalty": 1.0,
"light_modifier": 0,
"sound_attn": 0,
"dangerous": false,
"precip": "none",
"rains": false,
"acidic": false,
"sun_intensity": "normal"
},
{
"id": "null",
"type": "weather_type",
"name": "NULL Weather - BUG",
"color": "magenta",
"map_color": "magenta_red",
"sym": "0",
"ranged_penalty": 0,
"sight_penalty": 0.0,
"light_modifier": 0,
"sound_attn": 0,
"dangerous": false,
"precip": "none",
"rains": false,
"acidic": false,
"sun_intensity": "normal"
}
]
+5 -5
View File
@@ -1,5 +1,5 @@
# Lines longer than 78 characters will be wrapped automatically
# The following line is for reference
# Max length of a line is 78 characters; the following line is for reference
# Longer lines will be automatically folded
##############################################################################
<color_white>Original author:</color> <color_white>Project Manager:</color>
<color_yellow>Whales</color> (<color_dark_gray>retired</color>) <color_yellow>KevinGranade</color>
@@ -21,8 +21,8 @@
<color_yellow>Qrox</color> - For readable backtraces in Windows builds.
<color_yellow>ZhilkinSerg</color> - For mergetesting.
<color_white>For a full list of contributors please see the git repo:</color>
<color_cyan>https://github.com/CleverRaven/Cataclysm-DDA</color>
<color_white>For a full list of contributors please see:</color>
<color_cyan>https://github.com/CleverRaven/Cataclysm-DDA/contributors</color>
<color_light_cyan>Cataclysm</color>: <color_light_blue>Dark Days Ahead</color> is released under <color_white>CC-BY-SA 3.0</color>:
<color_cyan>https://creativecommons.org/licenses/by-sa/3.0/</color>
<color_cyan>https://creativecommons.org/licenses/by-sa/3.0/</color>
-27
View File
@@ -1,27 +0,0 @@
# El largo máximo de una línea es 78 caracteres; la siguiente línea es de referencia
# Las líneas más largas serán abreviadas
##############################################################################
<color_white>Autor original:</color> <color_white>Director del proyecto:</color>
<color_yellow>Whales</color> (<color_dark_gray>retirado</color>) <color_yellow>KevinGranade</color>
<color_white>Desarrolladores actuales:</color>
<color_yellow>mlangsdorf</color> - Vehículos, botes, campamentos y guías para mods.
<color_yellow>I-am-Erk</color> - El legado de Ultica continúa.
<color_yellow>KorGgenT</color> - No me deja saber dónde poner mis tablas de madera.
<color_white>Agradecimientos especiales:</color>
<color_yellow>Aivean</color> - Por un desempeño asombroso.
<color_yellow>anothersimulacrum </color> - Por fatigarme.
<color_yellow>jbytheway</color> - Por reducir el flakiness, los problemas de matching y consolidar los requisitos de Python.
<color_yellow>BrettDong</color> - Por las traducciones y otras cosas.
<color_yellow>Qrox</color> - Por mostrar la locación de los mensajes de error.
<color_yellow>LyleSY</color> - Por los dinosaurios.
<color_white>Agradecimientos especiales por contribución artística:</color>
<color_yellow>acepleiades</color>, <color_yellow>barsoosayque</color>, <color_yellow>Fris0uman</color>, <color_yellow>int-ua</color> y muchos más.
<color_white>Para ver la lista completa de colaboradores, por favor, visitá:</color>
<color_cyan>https://github.com/CleverRaven/Cataclysm-DDA/contributors</color>
<color_light_cyan>Cataclysm</color>: <color_light_blue>Dark Days Ahead</color> is released under <color_white>CC-BY-SA 3.0</color>:
<color_cyan>https://creativecommons.org/licenses/by-sa/3.0/</color>
-27
View File
@@ -1,27 +0,0 @@
# Longitud Max de la linea es 75 caracteres; sigue la linea de referencia
# Las lineas largas serán automáticamente plegadas
##############################################################################
<color_white>Autor original:</color> <color_white>Jefe de Proyecto:</color>
<color_yellow>Whales</color> (<color_dark_gray>retirado</color>) <color_yellow>KevinGranade</color>
<color_white>Actuales Desarrolladores Principales:</color>
<color_yellow>mlangsdorf</color> - Vehículos, botes, campos base y guías de modding.
<color_yellow>I-am-Erk</color> - Legado Ultica vive.
<color_yellow>KorGgenT</color> - No me dejan saber donde poner mis dos por cuatro.
<color_white>Agradecimientos especiales a:</color>
<color_yellow>Aivean </color> - Por su sobresaliente rendimiento.
<color_yellow>anothersimulacrum </color> - Por hacerme sentir cansado.
<color_yellow>jbytheway </color> - Por reducir la flaqueza de Python, el emparejamiento de problemas y la consolidación de los requisitos de los planos.
<color_yellow>BrettDong</color> - Por las traducciones y mas.
<color_yellow>Qrox</color> - Por mostrar la ubicación de los mensajes de error.
<color_yellow>LyleSY</color> - Por los dinosaurrss.
<color_white>Especialmente gracias a los contribuidores de arte:</color>
<color_yellow>acepleiades</color>, <color_yellow>barsoosayque</color>, <color_yellow>Fris0uman</color>, <color_yellow>int-ua</color>, y muchos mas.
<color_white>Por favor para ver la lista completa de contribuidores:</color>
<color_cyan>https://github.com/CleverRaven/Cataclysm-DDA/contributors</color>
<color_light_cyan>Cataclysm</color>: <color_light_blue>Dark Days Ahead</color> esta liberado como <color_white>CC-BY-SA 3.0</color>:
<color_cyan>https://creativecommons.org/licenses/by-sa/3.0/</color>
-27
View File
@@ -1,27 +0,0 @@
# 一行当たりの最大文字数は78文字です。次の行を参考にしてください。
# 長い行は自動的に折り返されます
##############################################################################
<color_white>オリジナルの作者:</color> <color_white>プロジェクト管理者:</color>
<color_yellow>Whales</color> (<color_dark_gray>引退</color>) <color_yellow>KevinGranade</color>
<color_white>現在の主要な開発者:</color>
<color_yellow>mlangsdorf</color> - 車両、ボート、拠点、MOD作成ガイド
<color_yellow>I-am-Erk</color> - Ulticaタイルセット保守管理
<color_yellow>KorGgenT</color> - その他の細々とした作業
<color_white>スペシャルサンクス:</color>
<color_yellow>Aivean</color> - 大幅なパフォーマンス向上への尽力
<color_yellow>anothersimulacrum </color> - 心配事の増加
<color_yellow>jbytheway</color> - Pythonの不安定性の軽減、問題の整合性とブループリント要件の統合
<color_yellow>BrettDong</color> - 翻訳など
<color_yellow>Qrox</color> - エラーメッセージのロケーション表示
<color_yellow>LyleSY</color> - 恐竜
<color_white>技術に関するスペシャルサンクス:</color>
<color_yellow>acepleiades</color>、<color_yellow>barsoosayque</color>、<color_yellow>Fris0uman</color>、<color_yellow>int-ua</color>、その他たくさんの方々
<color_white>全貢献者リスト:</color>
<color_cyan>https://github.com/CleverRaven/Cataclysm-DDA/contributors</color>
<color_light_cyan>Cataclysm</color>: <color_light_blue>Dark Days Ahead</color>は<color_white>CC-BY-SA 3.0</color>の下にリリースされています:
<color_cyan>https://creativecommons.org/licenses/by-sa/3.0/</color>
-27
View File
@@ -1,27 +0,0 @@
# Maksymalna długość linii to 78 znaków; poniższa linia jest dla przykładu
# Dłuższe linie zostaną automatycznie zawinięte
##############################################################################
<color_white>Oryginalny autor:</color> <color_white>Menedżer projektu:</color>
<color_yellow>Whales</color> (<color_dark_gray>na emeryturze</color>) <color_yellow>KevinGranade</color>
<color_white>Obecni główni programiści:</color>
<color_yellow>mlangsdorf</color> - pojazdy, łódki, bazy i poradniki modowania.
<color_yellow>I-am-Erk</color> - dziedzictwo Ultica żyje dalej.
<color_yellow>KorGgenT</color> - nie mówienie mi gdzie kłaść moje deski.
<color_white>Specjalne podziękowania dla:</color>
<color_yellow>Aivean</color> - za wyjątkową wydajność.
<color_yellow>anothersimulacrum </color> - za zmęczenie mnie.
<color_yellow>jbytheway</color> - za ograniczenie dziwactw Pythona, dopasowanie problemów i połączenie wymogów schematów.
<color_yellow>BrettDong</color> - za tłumaczenia i więcej.
<color_yellow>Qrox</color> - za pokazanie miejsca wiadomości z błędami.
<color_yellow>LyleSY</color> - za dinozaurrry.
<color_white>Specjalne podziękowania za kontrybucje grafik:</color>
<color_yellow>acepleiades</color>, <color_yellow>barsoosayque</color>, <color_yellow>Fris0uman</color>, <color_yellow>int-ua</color> i wielu innych.
<color_white>Pełna lista kontrybutorów dostępna na:</color>
<color_cyan>https://github.com/CleverRaven/Cataclysm-DDA/contributors</color>
<color_light_cyan>Cataclysm</color>: <color_light_blue>Dark Days Ahead</color> jest wydany na licencji <color_white>CC-BY-SA 3.0</color>:
<color_cyan>https://creativecommons.org/licenses/by-sa/3.0/</color>
+20 -19
View File
@@ -1,27 +1,28 @@
# Максимальная длина строки - 78 символов; следующая строка для справки
# Длинные строки будут автоматически перенесены
# Max length of a line is 78 characters; the following line is for reference
# Longer lines will be automatically folded
##############################################################################
<color_white>Автор идеи:</color> <color_white>Руководитель проекта:</color>
<color_yellow>Whales</color>(<color_dark_gray>отошел от разработки</color>) <color_yellow>KevinGranade</color>
<color_white>Оригинальный автор:</color> <color_white>Менеджер проекта:</color>
<color_yellow>Whales</color> (<color_dark_gray>не активен</color>) <color_yellow>KevinGranade</color>
<color_white>Главные разработчики:</color>
<color_yellow>mlangsdorf</color> - транспорт, лодки, лагеря и руководства по созданию модификаций.
<color_yellow>I-am-Erk</color> - Наследие Ultica живёт.
<color_yellow>KorGgenT</color> - Не даёт подсказок, куда класть доски.
<color_white>Текущие основные разработчики:</color>
<color_yellow>mlangsdorf</color> - Машины, лодки, лагеря и гайды по моддингу.
<color_yellow>I-am-Erk</color> - Ultica, диалоги, NPC и хлам в шкафах.
<color_yellow>KorGgenT</color> - Колдоклизм и кишечные колики.
<color_white>Особая благодарность:</color>
<color_yellow>Aivean</color> - За выдающуюся производительность.
<color_yellow>anothersimulacrum </color> - За приятную усталость.
<color_yellow>jbytheway</color> - За разбор проблем Python, сопоставление проблем и консолидацию требований к чертежам.
<color_yellow>BrettDong</color> - За переводы и многое другое.
<color_yellow>Qrox</color> - За показ места, вызывающего сообщения об ошибках.
<color_yellow>LyleSY</color> - За динозаврррров.
<color_yellow>Narc</color> - За поддержку автоматической системы сборки Jenkins.
<color_yellow>Rivet-the-Zombie</color> - За PR в день (и как ей не лень?).
<color_yellow>BevapDin</color> - За обзоры и рефакторинг кода.
<color_yellow>BrettDong</color> - За переводы.
<color_yellow>curstwist</color> - За крышевание зданий, NPC и чейнжлоги.
<color_yellow>davidpwbrown</color> - За авто-перемещения и авто-езду. Ну и за коневодство тоже.
<color_yellow>jbytheway</color> - За работу над CI и умение остаивать свою точку зрения.
<color_yellow>Hymore246</color> - За переработку боевых искусств.
<color_yellow>Qrox</color> - За читабельную трассировку в Windows-билдах.
<color_yellow>ZhilkinSerg</color> - За тестирование и слияние изменений.
<color_white>Особая благодарность за художественный вклад:</color>
<color_yellow>acepleiades</color>, <color_yellow>barsoosayque</color>, <color_yellow>Fris0uman</color>, <color_yellow>int-ua</color>, и многим другим.
<color_white>Полный список участников разработки доступен здесь:</color>
<color_white>Полный список участников находится здесь:</color>
<color_cyan>https://github.com/CleverRaven/Cataclysm-DDA/contributors</color>
<color_light_cyan>Cataclysm</color>: <color_light_blue>Dark Days Ahead</color> выпускается по лицензии <color_white>CC-BY-SA 3.0</color>:
<color_light_cyan>Катаклизм</color>: <color_light_blue>Тёмные дни впереди</color> выпущен под лицензией <color_white>CC-BY-SA 3.0</color>:
<color_cyan>https://creativecommons.org/licenses/by-sa/3.0/</color>
-27
View File
@@ -1,27 +0,0 @@
# 单行字数 <= 78,如下例
# 超长的行会自动折叠
##############################################################################
<color_white>原作者:</color> <color_white>项目管理员:</color>
<color_yellow>Whales</color>(<color_dark_gray>不再参与</color>) <color_yellow>KevinGranade</color>
<color_white>当前主要开发者:</color>
<color_yellow>mlangsdorf</color> - 载具,船只,营地和mod制作的教程。
<color_yellow>I-am-Erk</color> - 维护Ultica贴图包
<color_yellow>KorGgenT</color> - 口袋系统与大魔法
<color_white>特别感谢:</color>
<color_yellow>Aivean</color> - 程序优化
<color_yellow>anothersimulacrum </color> - 疲劳系统
<color_yellow>jbytheway</color> - Python程序修正、错误信息定位以及营地建造蓝图。
<color_yellow>BrettD</color> - 翻译管理以及其他程序修正。
<color_yellow>Qrox</color> - 定位并显示游戏程序错误信息
<color_yellow>LyleSY</color> - 恐龙
<color_white>特别鸣谢艺术贡献者:</color>
<color_yellow>acepleiades</color>, <color_yellow>barsoosayque</color>, <color_yellow>Fris0uman</color>, <color_yellow>int-ua</color>,以及其他贡献者。
<color_white>完整贡献者列表请见:</color>
<color_cyan>https://github.com/CleverRaven/Cataclysm-DDA/contributors</color>
《<color_light_cyan>大灾变</color>·<color_light_blue>劫后余生</color>》按<color_white> CC-BY-SA 3.0 </color> 授权协议发布:
<color_cyan>https://creativecommons.org/licenses/by-sa/3.0/</color>
Binary file not shown.
Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.9 KiB

+6 -6
View File
@@ -2,15 +2,15 @@
"//1": "If more than one font is specified for a typeface the list is treated as a fallback order.",
"//2": "unifont will always be used as a 'last resort' fallback even if not listed here.",
"typeface": [
"data/font/Terminus.ttf",
"data/font/unifont.ttf"
"Terminus",
"unifont"
],
"map_typeface": [
"data/font/Terminus.ttf",
"data/font/unifont.ttf"
"Terminus",
"unifont"
],
"overmap_typeface": [
"data/font/Terminus.ttf",
"data/font/unifont.ttf"
"Terminus",
"unifont"
]
}
+114 -115
View File
@@ -4,10 +4,10 @@
"order": 0,
"name": "<a|A>: Introduction",
"messages": [
"Cataclysm: Dark Days Ahead is a turn-based survival game set in a post-apocalyptic world. You have survived the original onslaught, but the future looks pretty grim.",
"You must prepare to face the many hardships to come, including dwindling supplies, hostile creatures, and harmful weather. Even among fellow survivors you must stay alert, since someone may be plotting behind your back to take your hard-earned loot.",
"Though one might think of Cataclysm: Dark Days Ahead as a roguelike, it vastly differs from the traditional roguelikes in several ways. Rather than exploring an underground dungeon, with a limited area on each level, you are exploring a truly infinite world, stretching in all four cardinal directions. In this survival game, you will have to find food; you also need to keep yourself hydrated and sleep periodically. It's based on the principle of realism, so expect all hardships you'd expect in life in a survival situation, and at least a dozen more from the eldritch and sci-fi nature of the Cataclysm itself.",
"While Cataclysm: Dark Days Ahead has more tasks to keep track of than many other games, the modern setting of the game makes some tasks easier. Firearms, medications, and a wide variety of tools are all available to help you survive."
"Cataclysm is a survival roguelike with a monster apocalypse setting. You have survived the original onslaught, but the future looks pretty grim.",
"You must prepare to face the many hardships to come including dwindling supplies, hostile creatures, and harmful weather. Even among fellow survivors you must stay alert, since someone may be plotting behind your back to take your hard-earned loot.",
"Cataclysm differs from the traditional roguelikes in several ways. Rather than exploring an underground dungeon, with a limited area on each level, you are exploring a truly infinite world, stretching in all four cardinal directions. In this survival roguelike, you will have to find food; you also need to keep yourself hydrated and sleep periodically. It's based on principle of realism, so expect all hardships you'd expect in life in a survival situation, and at least a dozen more from the eldritch and sci-fi nature of the Cataclysm itself.",
"While Cataclysm has more tasks to keep track of than many other roguelikes, the near-future setting of the game makes some tasks easier. Firearms, medications, and a wide variety of tools are all available to help you survive."
]
},
{
@@ -29,7 +29,7 @@
"name": "<c|C>: Viewing",
"messages": [
"The player can often see more than can be displayed on the screen at a time. Pressing <press_look> enters \"look around mode\", which allows you to scroll around using the movement keys and view items on the map as well as monsters and their stance toward the character. Pressing <press_listitems> provides a list of nearby visible items, though items shut away in crates, cupboards, refrigerators and the like won't be displayed until you are close enough. Pressing Shift+vikeys (h,j,k,l,y,u,b,n) will scroll the view persistently, allowing you to keep an eye on things as you move around.",
"Places outside of your view but seen previously and still memorized can be visualized, but they will be covered by the \"fog of war\"."
"Places outside of your view but seen previously and memorized can be visualized, but covered by the \"fog of war\"."
]
},
{
@@ -37,11 +37,11 @@
"order": 3,
"name": "<d|D>: Hunger, thirst, and sleep",
"messages": [
"As time passes, you will begin to feel hunger and thirst, and your stomach will remind you of that. When this happens, status information will appear in the sidebar. Don't get confused - depending on your condition it will display both how full your stomach is, as well as hunger intensity in relation to your nutrition status. Your body nutrition level is distinct from your current hunger; for example, you may feel full after a big meal, while still being malnourished. And you will still get hungry while being overweight. With regular meals, you may even never get hungry and yet become malnourished, if your caloric intake is too low. In other words, you need to track both your immediate hunger/fullness and the overall nutrition of your whole body.",
"Food takes some time to digest, and water travels faster through your digestive system than does solid food. Sudden overeating and overdrinking may make you feel excessively full, so split your meals. If you starved before, it will take some time to recover your body mass by building up stored calories through regular eating. Overeating for a prolonged period of time leads to obesity. Both sides of the spectrum are penalized. When hunger and thirst progress to severe levels, you will also suffer penalties. Thirst will kill you faster then hunger.",
"You can develop various vitamin deficiencies if you eat poorly. These deficiencies come in stages; for example, you won't go from perfectly good health into a full-blown scurvy in an instant. Any developing and ongoing deficiencies will be reported in the character sheet. Deficiencies will inflict various penalties, but luckily, they are always reversible, and multivitamin pills can help you to correct these deficiencies. You can also ingest too much of any particular vitamin, however, and that can create problems as well. Be sure to have a balanced diet, or at least not a completely atrocious one. You can, and should, examine food items (by pressing <press_examine>) to view their nutritional information.",
"Eating and drinking poorly will affect your health. Fast foods, quick snacks and sweet drinks are high in calories, but are a poor choice for a sustainable food source, if you don't want your health to get worse. On the other hand, vegetables, herbal teas, and many other self-prepared meals are good for your health, and should be welcome additions to your diet.",
"Finding food in a city is usually easy; outside of a city, you may have to hunt or forage. After killing an animal, stand over the animal's corpse and butcher it into small chunks of meat by pressing <press_butcher>. You might also be able to forage for edible fruit or vegetables; to do this, find a promising plant and examine it. Likewise, you may have to drink water from a river or another natural source. To collect it, stand in shallow water and press <press_pickup>. You'll need a watertight container to store it. Be forewarned that most sources of water aren't trustworthy, and may yield disease-carrying water. To make sure it's healthy, purify the water by boiling it or using a water purifier before drinking.",
"As time passes, you will begin to feel hunger and thirst, and your stomach will remind you of that. When this happens, a status info at the sidebar will appear. Don't get confused - depending on your condition it will display both how full is your stomach and hunger intensity in relation to your nutrition status. Your body nutrition level is something different then your current hunger. For example you may feel full after a big meal, while still being malnourished. And you still will get hungry while being overweight. With regular meals may even never get hungry and yet get malnourished, if your calories intake is too low. In other words you need to track both your immediate hunger/fullness and overall nutrition of your whole body.",
"Food takes some time to digest, and water travels faster through your digestive system. Sudden overeating and overdrinking may make you feel excessively full, so split your meals. If you starved before, it will take some time to recover your body mass, by building up stored calories when eating regularly. Overeating in a long time leads to obesity. Both sides of the spectrum are penalized. When hunger and thirst progress to severe levels, you will also suffer penalties. Thirst will kill you faster then hunger.",
"You can develop various vitamin deficiencies if you eat poorly. These deficiencies come in stages, so for example you won't go from perfectly good health into a full-blown scurvy in an instant. Any developing and on-going deficiencies will be reported in the character sheet. Deficiencies will inflict various penalties, but luckily they are always reversible, and multivitamin pills can help you to correct any deficiencies. You can also ingest too much vitamins, and that too can create problems. Be sure to have a balanced diet, or at least not a completely atrocious one. You can and should examine food items to view their nutritional facts.",
"Eating and drinking poorly will affect your health. Fast foods, quick snacks and sweet drinks are high in calories, but are a poor choice for a sustainable food source, if you don't want your health to get worse. On the other hand vegetables, herbal teas, and many other self-prepared meals are good for your health, and are welcomed additions to your diet.",
"Finding food in a city is usually easy; outside of a city, you may have to hunt or forage. After killing an animal, stand over the animal's corpse and butcher it into small chunks of meat by pressing <press_butcher>. You might also be able to forage for edible fruit or vegetables; to do it, find a promising plant and examine it. Likewise, you may have to drink water from a river or another natural source. To collect it, stand in shallow water and press <press_pickup>. You'll need a watertight container to store it. Be forewarned that most sources of water aren't trustworthy and may produce diseased water. To make sure it's healthy, purify the water by boiling it or using water purifier before drinking.",
"Every dozen or so hours, you'll find yourself growing sleepy. If you do not sleep by pressing <press_sleep>, you'll start suffering stat and movement penalties. You may not always fall asleep right away. Sleeping indoors, especially on a bed, will help. If that's not enough, sleeping pills may be of use. While sleeping, you'll slowly replenish lost hit points. You'll also be vulnerable to attack, so try to find a safe place to sleep, or set traps for unwary intruders."
]
},
@@ -53,9 +53,9 @@
"When you take damage from almost any source, you'll start to feel pain. Pain slows you down and reduces your stats, and finding a way to manage pain is an early imperative. The most common is drugs: aspirin, codeine, tramadol, oxycodone, and more are all great options. Be aware that while under the influence of many painkillers, the physiological side effects may slow you or reduce your stats.",
"Note that most painkillers take a little while to kick in. If you take some oxycodone and don't notice the effects right away, don't start taking more - you may overdose and die!",
"Pain will also disappear with time, so if drugs aren't available and you're in a lot of pain, it may be wise to find a safe spot and simply rest for an extended period of time.",
"Stimulants are another common class of drugs. Stimulants provide you with a temporary rush of energy, increasing your movement speed and many stats (most notably intelligence), making them useful study aids. There are two drawbacks to stimulants: they make it more difficult to sleep and, more importantly, most are highly addictive. Stimulants range from the caffeine rush of cola to the more intense high of Adderall and methamphetamine.",
"Depressants are the opposite of stimulants. They will make you groggy and sluggish, but may help you in falling asleep.",
"Extremely elevated levels of stimulants or depressants in your system are dangerous to your health."
"Another common class of drugs is stimulants. Stimulants provide you with a temporary rush of energy, increasing your movement speed and many stats (most notably intelligence), making them useful study aids. There are two drawbacks to stimulants: they make it more difficult to sleep and, more importantly, most are highly addictive. Stimulants range from the caffeine rush of cola to the more intense high of Adderall and methamphetamine.",
"Depressants are opposite to stimulants. They will make you groggy and sluggish, but may help you in falling asleep.",
"Extreme levels of stimulants or depressants in your system are dangerous to your health."
]
},
{
@@ -63,12 +63,12 @@
"order": 5,
"name": "<f|F>: Healing and medication",
"messages": [
"When you take damage, it will change the status of the affected body part, as shown in the sidebar. Its overall wellness is represented by a series of bars that will deplete and change color the more damage you take. If the accumulated damage is more than the body part can suffer, it will break. If that happens to a critical body part (i.e., your torso or head), you will die. For other body parts, it means broken bones, significant penalties, and a long process of healing - after placing the affected limb in a splint.",
"Normal damage heals with time. You heal more during a good sleep, but wounds also heal a bit while you are awake.",
"You need to treat your wounds properly, because untreated wounds heal very slowly. First, you need to bandage your wounds, and, if possible, disinfect them as well. This will set conditions for proper healing and will result in faster recovery. You can make makeshift bandages if you have the skill, and there are a few options to replenish your stock of disinfectant. But remember to always treat your wounds as much as you can, as this is the proper way to get them healed.",
"You can get bitten if a zombie grabs you. Bite wounds can be deep and infected. If that happens, the status bar of affected body part will change color to blue. This means you need to disinfect it as soon as possible to clean the wound and prevent serious infection. If there is no chance of getting disinfectant in the immediate aftermath, you may try the more drastic method of cauterizing the wound, but it often worsens its state instead of helping. If you leave it be, the affected body part will develop a serious infection, and its status bar color will change to green. At this stage, it is too late to disinfect the wound, and you need antibiotics to fight it. Your body will fight the infection by itself, and regular antibiotic intake may keep you alive long enough for that to happen. You have to wait it out, in the hope that you will not die in the process.",
"If you are bleeding, the status bar of the wounded part turns red. The affected body part takes damage as long as it bleeding. The simplest way to stop bleeding is to use a bandage, and there are additional medical items dedicated to stopping hemorrhage.",
"You may be affected by one of many medical conditions and maladies throughout the game. In that case, you may want to seek proper medication, if one exists for the affliction you suffer. There are many medications beside the ones already mentioned, some of which have some extra effects that you might utilize even in a way not originally intended. With some skill you can also try natural medicine, as many herbs have more or less beneficial effects, and if you are a seasoned chemist you can synthesize your own drugs."
"When you take damage it will change status of affected body part shown in the sidebar. Its overall wellness is represented by bars, that will deplete the more damage you take. If the accumulated damage is more then the bodypart can suffer, it will break. If that happens to critical body part you will die. For other body parts it means broken bones, significant penalties and a long process of healing, after placing affected limb in a splint.",
"Normal damage heals with time. You heal more overnight during good sleep, but wounds also heal a bit by day.",
"You need to treat your wounds properly, because untreated wounds heal very slowly. First, you need to bandage your wounds, and if possible disinfect them as well. This will set conditions for a proper healing and results in faster recovery. You can make makeshift bandages if you have the skill, and there are a few options to replenish your disinfectant stocks. But remember to always treat your wounds by default, as this is the proper way to get them healed.",
"You can get bitten if a zombie grabs you. Bite wounds can be deep and infected. If that happens the status bar of affected body part will change color to blue. This means you need to disinfect it as soon as possible to clean the wound and prevent serious infection. If there is no chance of getting disinfectant on the horizon you may try more drastic method of cauterizing the wound, but it often worsens its state instead of helping. If you leave it be, the affected body part will develop serious infection, and it's status bar color will change to green. At this stage it is too late to disinfect the wound, and you need antibiotics to fight it. Your body will fight the infection by itself, and regular antibiotics intake may keep you alive long enough for it to happen. You have to wait it out in hope that you will not die in the process.",
"If you are bleeding the status bar of the wounded part turns red. Affected limb takes damage as long as it bleeding. Simplest way to stop bleeding is using a bandage, and there are more medical items dedicated to stopping hemorrhage.",
"You may be affected by one of many medical conditions and maladies throughout the game. In that case, you may want to seek proper medication, if one exists for the affliction you suffer. There are many medications beside painkillers, some of which have some extra effects that you might utilize even in a way not originally intended. With some skill you can also try natural medicine, as many herbs have more or less beneficial effects, and if you are a seasoned chemist you can synthesize your own drugs."
]
},
{
@@ -76,7 +76,7 @@
"order": 6,
"name": "<g|G>: Addiction",
"messages": [
"Many drugs (and some consumables) have a potential for addiction. Each time you consume such a substance, there is a chance that you will grow dependent on it. Consuming more of that drug will increase your dependence. Effects vary greatly between addictive substances, but no matter the substance, addiction has only one cure: going cold turkey. The process may last for days, and will leave you very weak, so try to do it in a safe area.",
"Many drugs (and some consumables) have a potential for addiction. Each time you consume such there is a chance that you will grow dependent on it. Consuming more of that drug will increase your dependence. Effects vary greatly between addictive substances, but all addictions have only one cure; going cold turkey. The process may last for days and will leave you very weak, so try to do it in a safe area.",
"If you are suffering from withdrawal effects, taking more of the addictive substance will cause the effects to cease immediately, but may deepen your dependence."
]
},
@@ -86,13 +86,13 @@
"name": "<h|H>: Morale and learning",
"messages": [
"Your character has a morale level, which affects you in many ways. The depressing post-apocalypse world is tough to deal with, and your mood will naturally decrease very slowly.",
"There are lots of options for increasing morale: reading an entertaining book, eating delicious food, listening to music, and taking recreational drugs are but a few options. However, most morale-boosting activities can only elevate your mood to a certain level before they grow boring.",
"There are also lots of ways for your morale to decrease, beyond its natural decay toward its normal level. Eating disgusting food, reading a boring technical book, killing a friendly NPC, or going through drug withdrawal are some prominent examples.",
"There are lots of options for increasing morale; reading an entertaining book, eating delicious food, and taking recreational drugs are but a few options. Most morale-boosting activities can only take you to a certain level before they grow boring.",
"There are also lots of ways for your morale to decrease, beyond its natural decay. Eating disgusting food, reading a boring technical book, killing a friendly NPC, or going through drug withdrawal are some prominent examples.",
"Low morale will make you sluggish and unmotivated. If your morale drops very low, you won't be able to perform crafting at all. If you become sufficiently depressed, you will suffer stat penalties. Very high morale fills you with gusto and energy, and you will find yourself moving faster. At extremely high levels, you will receive stat bonuses.",
"Morale is also responsible for ensuring you can learn effectively, via a mechanic referred to as 'focus'. Your focus level is a measure of how effectively you can learn. The natural level is 100, which indicates normal learning potential. Higher or lower focus levels make it easier or harder to learn from practical experience.",
"Your focus level has a natural set point that it will trend toward. When your focus is much lower - or higher - than this set point, it will change faster than when it is near the set point. Having high morale will raise the set point, and having low morale will lower the set point. Pain is also factored into the set point calculation - it's harder to learn when you're in pain.",
"Your focus level has a natural set point that it converges towards. When your focus is much lower - or higher - than this set point, it will change faster than when it is near the set point. Having high morale will raise the set point, and having low morale will lower the set point. Pain is also factored into the set point calculation - it's harder to learn when you're in pain.",
"Your focus is also lowered by certain activities. Training your skills through real-world practice lowers your focus gradually, by an amount that depends on your current level of focus (higher focus means larger decreases, as well as improved learning). Training your skills by reading books decreases your focus rapidly, by giving a significant penalty to the set point of your focus.",
"You can disable a skill in the Player Info Menu (press <press_player_data>) if you don't want to practice it, and it will prevent focus drain while performing relevant actions, but you will not progress in that skill while it's disabled."
"You can disable a skill in the Player Info Menu (press <press_player_data>) if you don't want to practice it, and it will prevent focus drain while performing relevant action, but you will not progress in that skill while it's disabled."
]
},
{
@@ -100,7 +100,7 @@
"order": 8,
"name": "<i|I>: Radioactivity and mutation",
"messages": [
"Though it is relatively rare, certain areas of the world may be contaminated with radiation. It will gradually accumulate in your body, weakening you more and more. While in radiation-free areas, your radiation level will slowly decrease; taking Prussian blue tablets will help speed this process. Get yourself a measuring device, as radiation is invisible and you may not know that you are under its influence until it results in radiation sickness.",
"Though it is relatively rare, certain areas of the world may be contaminated with radiation. It will gradually accumulate in your body, weakening you more and more. While in radiation-free areas, your radiation level will slowly decrease. Taking Prussian blue tablets will help speed the process. Get yourself a measuring device, as radiation is invisible and you may not know it that you are under its influence until it results in radiation sickness.",
"If you become very irradiated, you may develop mutations. Most of the time, these mutations will be negative; however, many are beneficial, and others have both positive and negative effects. Your mutations may change your play style considerably. It is possible to find substances that will remove mutations, though these are extremely rare.",
"There are various mutagenic substances, and consuming (or injecting) them will grant mutations. However, the process taxes your body significantly, and can be addictive. With enough mutations and certain conditions being met, you will permanently transcend your humanity into a wholly different life-form."
]
@@ -112,10 +112,10 @@
"messages": [
"Bionics are biomechanical upgrades to your body. While many are simply 'built-in' versions of items you would otherwise have to carry, some bionics have unique effects that are otherwise unobtainable. Some bionics are constantly working, whereas others need to be toggled on and off as needed.",
"Most bionics require a source of power, and you will need an internal battery to store energy for them. Your current amount of energy is displayed in the sidebar right below your health. Replenishing energy can be done in a variety of ways, but all require the installation of a special bionic just for that purpose.",
"Installation of a bionic is only possible using a specialized medical apparatus, ideally operated by a trained professional. Using machinery to manipulate bionics requires high levels of Intelligence, first aid, computers, and electronics. Beware, though: a failure may cripple you! Many bionic modules are difficult to find, but may be purchased from certain wandering vagabonds for a very high price, or acquired by skillful dissection of corpses of deceased bionic users (including zombies). Bionic modules obtained this way may require extra preparation to become more safely usable.",
"Any bionic can be removed from your body, but this process may be even harder - and thus riskier - than the initial installation. Both installation and removal are non-trivial surgical procedures, and therefore require anesthesia.",
"For lone survivors, the standard choice for installing or uninstalling bionics is an Autodoc. Usually, you can find one in a hospital or clinic. All Autodoc procedures require an anesthetic kit. However, you can bypass this restriction if you find a way to completely negate pain. Don't even try without proper anesthesia - normal drugs won't help.",
"Take note that bionic installation or removal require narcosis, immobilization of the patient, and only then the operation - which may take hours. So you have to make sure that you will be safe during this process."
"Installation of a bionic is only possible with trained professional or to specialized medical apparatus. Using machinery to manipulate bionics requires high levels of Intelligence, first aid, mechanics, and electronics. Beware, though, a failure may cripple you! Many bionic modules are difficult to find, but may be purchased from certain wandering vagabonds for a very high price, or acquired by skillful dissection of corpses of deceased bionic users. Bionic modules obtained this way may require extra preparations to become usable.",
"Any bionic can be removed from your body but it may be even harder than its installation; and as well as installation, this non-trivial surgical procedure requires anesthesia.",
"For lone survivors, the standard choice for installing or uninstalling bionics is an Autodoc. Usually you can find one in a hospital or clinic. All Autodoc procedures require an anesthetic kit. However, you can bypass this restriction if you find a way to completely negate pain. Don't even try without proper anesthesia - normal drugs won't help.",
"Take note that bionic installation or uninstallation require narcosis, fixation of the patient and operation inself may take hours. So you have to make sure that you will safe during this process."
]
},
{
@@ -123,19 +123,18 @@
"order": 10,
"name": "<k|K>: Crafting",
"messages": [
"Many important items can be very hard to find, or will cost a great deal of money to trade for. Fortunately, it is possible to craft a wide variety of goods (as best you can) with the proper tools, materials, and training.",
"Some recipes require a set of tools. These are not used up when crafting, so you can keep your tool set. All recipes require one or more ingredients; these ARE used up in crafting.",
"To craft items, press <press_craft>. There are eight categories: Weapon, Ammo, Food, Chem, Electronic, Armor, Other, and Animals. In each major category there are several sub-categories. While a few items require no particular skill to create, the vast majority require you to have some knowledge. Sometimes, a skilled survivor will work out a given recipe from her or his knowledge of the skill, but more often you will need reference material, commonly a book of some sort. Reading such references gives a chance to memorize recipes outright, and you can also craft while referring to the book: just have it handy when crafting. Different skills are useful for different applications:",
"Many important items can be very hard to find or will cost a great deal of money to trade for. Fortunately, it is possible to craft a wide variety of goods (as best you can) with the proper tools, materials, and training.",
"Some recipes require a set of tools. These are not used up when crafting, so you can keep your tool set. All recipes require one or more ingredients. These ARE used up in crafting.",
"To craft items, press <press_craft>. There are eight categories: Weapons, Ammo, Food, Chemicals, Electronics, Armor, Animals and Other. In each major category there are several smaller sub-categories. While a few items require no particular skill to create, the majority require you to have some knowledge. Sometimes a skilled survivor will work out a given recipe from her or his knowledge of the skill, but more often you will need reference material, commonly a book of some sort. Reading such references gives a chance to memorize recipes outright, and you can also craft while referring to the book: just have it handy when crafting. Different knowledge is useful for different applications:",
"-> Fabrication is the generic artisan skill, used for a wide variety of gear.",
"-> Cooking is used to make tasty recipes; more intricate (and usually more nutritious) recipes require higher levels of the cooking skill.",
"-> Applied Science is the chemistry skill; use this to craft mundane things like lye and various acids, or weaponized chemicals and various beneficial elixirs.",
"-> Cooking, at low levels, is used for making tasty recipes; at higher levels, you have an understanding of chemistry and can make chemical weapons and beneficial elixirs.",
"-> Tailoring is used to create basic clothing, and armor later on.",
"-> Electronics lets you make a wide variety of tools with intricate uses.",
"In addition to the primary crafting skills, other skills may be necessary to create certain items. Traps, Marksmanship, and First Aid are all required for certain items.",
"Crafting an item with high difficulty may fail and possibly waste some materials. You should gather and prepare spare material, just in case.",
"Crafting very large/heavy items or batches of items is best done at a workbench of some kind. You could use any ordinary table, or build your own out of metal to handle heavier loads. Using a workbench or other furniture for crafting is beneficial for the added comfort, thus making the process faster.",
"If for any reason the crafting process is interrupted, the progress is wrapped in a special item representing the craft in making. You may use it to resume crafting at any point.",
"Batch crafting in most cases means saved time, and your companions can also help if they know the ropes."
"Crafting an item with high difficulty may fail and possibly waste some materials. You should prepare spare material, just in case.",
"Crafting very large/heavy items or batches of items is best done at a workbench of some kind. You could use any ordinary table, or build your own out of metal to handle even heavier loads. Using a workbench or other furniture for crafting is beneficial for the added comfort, thus making the process faster.",
"If for any reason the crafting process is interrupted the progress is wrapped in a special item representing craft in making. You may use it to resume crafting at any point.",
"Batch crafting in most cases means time saving, and your companions can also help if they know the ropes."
]
},
{
@@ -143,11 +142,11 @@
"order": 11,
"name": "<l|L>: Traps",
"messages": [
"Before sleeping in dangerous territory, it may be wise to set traps to ward off unwanted intrusions - or at least warn you if one is in progress. There are a few traps to be found in the world, most notably bubble wrap (which will make a loud noise if stepped on, helping to wake you up) and bear traps (which make noise AND damage, and trap anything that steps on them). Others need to be crafted; this requires the Traps skill, and possibly Mechanics.",
"To set a trap, simply use the item (press <press_apply>) and choose a direction; the trap will be placed on the chosen tile. Some traps may require additional tools, like a shovel, to be set. Once set, a trap will remain in place until stepped on or disarmed.",
"Before sleeping in a dangerous territory, it may be wise to set traps to ward off unwanted intrusions. There are a few traps to be found in the world, most notably bubble wrap (which will make a loud noise if stepped on, helping to wake you up) and bear traps (which make noise AND damage, and trap anything that steps on them). Others need to be crafted; this requires the Traps skill and possibly Mechanics.",
"To set a trap, simply use the item (press <press_apply>) and choose a direction; the trap will be placed on an adjacent tile. Some traps may require additional tools, like a shovel, to be set. Once set, a trap will remain in place until stepped on or disarmed.",
"To disarm a trap, examine (press <press_examine>) the space it is on. Your success depends upon your Traps skill and Dexterity. If you succeed, the trap is removed and replaced by some or all of its constituent parts; however, if you fail, there is a chance that you will set off the trap, suffering the consequences.",
"Many traps are fully or partially hidden. Your ability to detect traps is entirely dependent upon your Perception. Should you stumble into a trap, you may have a chance to avoid it, depending on your Dodge skill.",
"Some traps can be built via the construction menu. Pit traps are the most common example."
"Some traps can be build via the construction menu. Pit traps are the most common example of such traps."
]
},
{
@@ -155,15 +154,15 @@
"order": 12,
"name": "<m|M>: Items overview",
"messages": [
"There is a wide variety of items available for your use. You may find them lying on the ground; if so, simply press <press_pickup> to pick up items on the same tile. Some items are found inside a container, which may be drawn as a { with a blue background. Pressing <press_examine>, then a direction key, will allow you to examine these containers and loot their contents.",
"Pressing <press_compare> opens a comparison menu, where you can see two items side-by-side with their attributes color-coded to indicate which is superior. You can also access the item comparison menu by pressing C after <press_listitems> to open the \"View Nearby Items\" menu and selecting an item.",
"Almost any item may be used as a melee weapon, though some are better than others. You can check the melee attributes of an item you're carrying by pressing <press_inventory> to enter your inventory, then pressing the letter of the item. There are 5 melee values: to-hit bonus (or penalty), moves per attack, and bash, cut, and pierce damage. The to-hit bonus increases the chance of an attack connecting with a monster and the chance of a successful attack becoming a critical hit. Moves per attack represents how many moves it takes to attack with the weapon, with 100 moves passing every second. Bash damage can stun a monster, preventing it from counter-attacking, but is governed by your strength. Cut damage is usually greater than bash damage, but many monsters have natural armor against it. Pierce damage usually penetrates armor better than cut damage, but does less damage overall, especially if you do not have a lot of skill in piercing weapons. It, too, may be reduced by a monster's natural armor. The typical damage per second values are for your survivor and account for moves per attack, encumbrance, missed strikes, weapon skill, critical hits, and target armor. The 'Best' value is against an unarmored target with no Dodge skill. The 'Vs. Agile' value is against an unarmored target with a high Dodge skill. The 'Vs. Armored' value is against a target with more than 15 Bash and 20 Cut resistance but no Dodge skill. These are typical values to let you assess the effectiveness of weapons; the amount of damage you actually inflict will vary depending on the situation.",
"To wield an item as a weapon, press <press_wield>, then the appropriate letter. Wielding the item you are currently wielding will unwield it, leaving your hands empty. A wielded weapon will not contribute to your volume carried, so holding a large item in your hands may be a good option for travel. When unwielding your weapon, it will go back in your inventory, or may be dropped on the ground if there is no space.",
"To wear a piece of clothing, press <press_wear>, then the appropriate letter. Armor reduces damage, and can help you resist things like smoke. To take off an item, press <press_take_off>, then the appropriate letter. Clothing and armor are worn in distinct layers, and provide different coverage, protection and warmth. Each piece has its own encumbrance, and wearing too much on any given layer can significantly hamper your movement and other abilities, especially during combat. You can view and sort worn items by pressing <press_sort_armor>.",
"Your clothing can sit in one of five layers on your body: next-to-skin, standard, waist, over, and belted. You can wear one item from each layer on a body part without incurring an encumbrance penalty for too many worn items. Any items beyond the first on each layer add the encumbrance of the additional article(s) of clothing to the body part's encumbrance. The layering penalty applies a minimum of 2 and a maximum of 10 encumbrance per article of clothing.",
"There is a wide variety of items available for your use. You may find them lying on the ground; if so, simply press <press_pickup> to pick up items on the same square. Some items are found inside a container, drawn as a { with a blue background. Pressing <press_examine>, then a direction key, will allow you to examine these containers and loot their contents.",
"Pressing <press_compare> opens a comparison menu, where you can see two items side-by-side with their attributes highlighted to indicate which is superior. You can also access the item comparison menu by pressing C after <press_listitems> to view nearby items menu is open and an item is selected.",
"All items may be used as a melee weapon, though some are better than others. You can check the melee attributes of an item you're carrying by hitting <press_inventory> to enter your inventory, then pressing the letter of the item. There are 3 melee values: bashing, cutting, and to-hit bonus (or penalty). Bashing damage is universally effective, but is capped by low strength. Cutting damage is a guaranteed increase in damage, but it may be reduced by a monster's natural armor.",
"To wield an item as a weapon, press <press_wield> then the proper letter. Wielding the item you are currently wielding will unwield it, leaving your hands empty. A wielded weapon will not contribute to your volume carried, so holding a large item in your hands may be a good option for travel. When unwielding your weapon, it will go back in your inventory, or may be dropped on the ground if there is no space.",
"To wear a piece of clothing, press <press_wear> then the proper letter. Armor reduces damage and helps you resist things like smoke. To take off an item, press <press_take_off> then the proper letter. Clothing and armor are worn on layers, and provide different coverage, protection and warmth. Each piece has its own encumbrance, and wearing too much on each layer can significantly hamper your movement and other abilities, especially during combat. You can view and sort worn items by pressing <press_sort_armor>.",
"Your clothing can sit in one of five layers on your body: next-to-skin, standard, waist, over, and belted. You can wear one item from each layer on a body part without incurring an encumbrance penalty for too many worn items. Any items beyond the first on each layer add the encumbrance of the additional article(s) of clothing to the body part's encumbrance. The layering penalty applies a minimum of 2 and a maximum of 10 encumbrance per article of clothing.",
"For example, on her torso, a character might wear a leather corset (next-to-skin), a leather touring suit (standard), a trenchcoat (over), and a survivor's runner pack (belted). Her encumbrance penalty is 0. If she put on a tank top it would conflict with the leather touring suit and add the minimum encumbrance penalty of 2.",
"In the View Nearby Items menu (press <press_listitems> to open), you can filter or prioritize items. You can enter item names, or use various advanced filter strings: {<token>:<search param>}",
"Some available tokens:\n c = category (books, food, etc) | {c:books}\n m = material (cotton, Kevlar, etc) | {m:iron}"
"In the view nearby items menu (press <press_listitems> to open) you can filter or prioritize items. You can enter item names, or various advanced filter strings: {<token>:<search param>}",
"Some available tokens:\n\t c = category (books, food, etc) | {c:books}\n\t m = material (cotton, Kevlar, etc) | {m:iron}\n\t dgt = damage greater than (0-5) | {dgt:2}\n\t dlt = damage less than (0-5) | {dlt:1}"
]
},
{
@@ -171,16 +170,16 @@
"order": 13,
"name": "<n|N>: Combat",
"messages": [
"Zombies in cities will spawn at the start of the game, but may also wander around. All monsters are represented by letters (or sprites in the Tiles version) on your screen; a list of monster names, as well as their positions relative to you, is displayed on the right side of the screen. The 'compass' will display monsters that you see but are currently off the screen.",
"To attack a monster with a melee weapon, simply move into them. The time it takes to attack depends on the size and weight of your weapon. Small, light weapons are the fastest; unarmed attacks increase in speed with your Unarmed Combat skill, and will eventually be VERY fast. A successful hit with a bashing weapon may stun the monster temporarily. A miss may make you stumble and lose movement points. If a monster hits you, your clothing may absorb some of the damage, but you will take what remains.",
"Zombies in cities will spawn at the start of the game but may also wander around. All monsters are represented by letters on your screen; a list of monster names, and their positions relative to you, is displayed on the right side of the screen. The so called compass will display monsters that you see but are outside the screen.",
"To attack a monster with a melee weapon, simply move into them. The time it takes to attack depends on the size and weight of your weapon. Small, light weapons are the fastest; unarmed attacks increase in speed with your Unarmed Combat skill, and will eventually be VERY fast. A successful hit with a bashing weapon may stun the monster temporarily. A miss may make you stumble and lose movement points. If a monster hits you, your clothing may absorb some damage, but you will absorb the excess.",
"Swarms of monsters may call for firearms. Most firearms in the game require compatible magazines to hold the ammunition. Compatible magazines are listed in a given firearm's description. Fortunately, a firearm often spawns with one such magazine in it.",
"You can eject a magazine from a firearm by pressing <press_unload> and load it with compatible ammunition separately, or if you have a firearm with a partially filled magazine in it, and some matching loose ammo in the inventory, you can simply reload by pressing <press_reload>; you will automatically eject the magazine, fill it with as much ammo as possible, and then put the magazine back in. You don't have to worry about chambering a round though. Of course, all of this does take time, so try not to do it if there are monsters nearby.",
"While magazines and clips are often firearm-specific, on some occasions a magazine/speedloader is compatible with several other firearms or calibers. Below are some examples of calibers that might share magazines or speedloaders:\n\n.380 ACP and 9mm Luger,\n.40 S&W and 10mm Auto,\n.45 ACP and .460 Rowland, and\n.45 Colt and .454 Casull.",
"Magazine descriptions also list compatible ammo.",
"Note that while several ammo types exist for a given caliber and magazine type, you can't mix and match these types into a single magazine. You can't, for example, load 9x19mm JHP and 9x19mm FMJ ammo into the same magazine, since a magazine always requires identical rounds to be loaded in it.",
"Magazines can be stored inside several worn accessories for quicker access, such as chest rigs and ammo pouches. All compatible storage items that can hold a given magazine are listed in its description. To store a magazine in a clothing item, activate (<press_apply>) the desired clothing item, at which point you'll get to choose which magazine to store.",
"To fire, press <press_fire>, move the cursor to the desired tile, press '.' to improve your aim, and then 'f' to fire. Additionally, you may want to fire at predefined aim levels using 'a', 'c' or 'p'. Some guns have alternate firing modes, such as burst fire; to cycle modes, press <press_select_fire_mode>. Firing continuously, especially in bursts, will severely reduce accuracy.",
"The <press_fire> key is not reserved exclusively for guns. It also works for other ranged weapons like spears or launchers, but the aiming options may vary.",
"You can eject a magazine from a firearm by pressing <press_unload> and load it with compatible ammunition separately, or if you have a firearm with a partially filled magazine in it, and some matching loose ammo in the inventory, you can simply order a reload by pressing <press_reload>, so you will automatically eject the magazine, fill it with as much ammo as possible, and then put the magazine back in. You don't have to worry about chambering a round though. Of course all this takes some time, so try not to do it if there are monsters nearby.",
"While magazines and clips are often firearm-specific, on some occasions a magazine/speedloader is compatible with several other firearms or calibers. Below are some examples of calibers that might share magazines or speedloaders:\n.380 ACP and 9mm Luger,\n .40 S&W and 10mm Auto 3\n.45 ACP and .460 Rowland,\n.45 Colt and .454 Casull.",
"Magazine descriptions also list the compatible ammo.",
"Note that while several ammo types exist for a given caliber and magazine type, you can't mix and match these types into a single magazine. You can't for example load 9x19mm JHP and 9x19mm FMJ ammo into the same magazine, since a magazine always requires identical rounds to be loaded in it.",
"Magazines can be stored inside several worn accessories for quicker access, such as chest rigs and ammo pouches. All these compatible storage items are listed in a given magazine's description. To store a magazine into a clothing item, activate (<press_apply>) appropriate clothing item, at which point you'll get to choose which magazine to store.",
"To fire, press <press_fire>, move the cursor to the relevant space, then press '.' to increase aim of your gun and 'f' to fire. Additionally you may want to fire at predefined aim levels using 'a', 'c' or 'p'. Some guns have alternate firing modes, such as burst fire; to cycle modes, press <press_select_fire_mode>. Firing continuously, especially in bursts, will severely reduce accuracy.",
"Key <press_fire> is not reserved only for guns. It also works for other distance weapons like spears or launchers, but the aiming options may vary.",
"Fleeing will often be a solid tactic, especially when overwhelmed by a swarm of zombies. Try to avoid getting cornered inside a building. Ducking down into the subways or sewers is often an excellent escape tactic."
]
},
@@ -190,9 +189,9 @@
"name": "<o|O>: Martial arts styles",
"messages": [
"A variety of fighting styles are available, particularly for the unarmed fighter. You can start with your choice of a single, commonly-taught style by starting with the Martial Arts Training trait. Many, many more can be found in their own traits, trained from manuals or by taking lessons from wandering masters.",
"To select a fighting style, press <press_pick_style>. Some styles are relevant only when you are unarmed, others are compatible with (or require) certain weapons. If your current weapon is compatible with the chosen style, you will start using the selected style immediately. Otherwise, it will be locked in as your default style. To start using it, wield a relevant weapon, or empty your hands by pressing <press_wield>, then the key for the item you are currently wielding. If you wish to prevent yourself from accidentally wielding weapons taken from the ground, enable \"Keep hands free\" found in the styles menu.",
"Remember to read the style's description by pressing 'F1' in the style selection menu. You will be provided with a list of passive and active abilities associated with the style. These are varied and unique to each style, and range from special combo moves to bonuses depending on the situation you are in.",
"Most styles have a variety of special moves associated with them. Most have a skill requirement, and will be unavailable until you reach that level of skill. Those special moves or combos are executed automatically during attacks you make.",
"To select a fighting style, press <press_pick_style>. Some styles are relevant only when you are unarmed, others are compatible with or require certain weapons. If your current weapon is compatible with the chosen style, you will start using the selected style immediately. Otherwise, it will be locked in as your default style. To start using it, wield a relevant weapon or empty your hands, by pressing <press_wield>, then the key for the item you are currently wielding. If you wish to prevent yourself from accidentally wielding weapons taken from the ground, enable \"Keep hands free\" found in the styles menu.",
"Remember to read the style's description, by pressing 'F1' in the pick style menu. You will be provided with a list of passive and active abilities associated with the style. These are varied and unique to each style, and range from special combo moves to bonuses depending on the situation you are in.",
"Most styles have a variety of special moves associated with them. Most have a skill requirement, and will be unavailable until you reach a level of unarmed skill. Those special moves or combos are executed automatically during attacks you make.",
"Many styles also have special passive effects unlocked under certain conditions. You can also check these by examining your style."
]
},
@@ -201,17 +200,17 @@
"order": 15,
"name": "<p|P>: Survival tips",
"messages": [
"THe hierarchy of needs for survival in most cases is as follows: shelter, fire, water, food. The rest is the process of trying to answer a question: What would you do in a survival situation?",
"The first thing to do, when you are out of immediate danger, is checking your starting location for useful items. Your initial storage is limited, and a backpack, trenchcoat, or other storage medium will let you carry a lot more. Finding a weapon is important, but not a first priority; frying pans, butcher knives, and more are common in houses, and hardware stores may have others, as well as useful tools. Initially, save any guns you find as a last resort: ammo is scarce, while zombies are plenty, and unwanted attention may be more you can handle.",
"It's also important to carry a few medications; painkillers are a must-have, and drugs such as cigarettes will make your life easier (but beware of addiction). Leave the city as soon as you have a good stockpile of equipment: while their population density makes cities important places to find food, ammunition, and many other goods, the high concentration of zombies makes them a deathtrap for the unprepared survivor.",
"Avoid combat whenever you can. Run if you have to; but control your stamina, as zombies, unlike yourself, are inexhaustible. Combat is always risky, and sometimes, one wrong step may be your last. Therefore, in most cases you gain nothing from combat unless you are equipped for it and killing your enemy will help you achieve something.",
"Combat is much easier if you can fight just one monster at a time. You can sometimes kite singled-out zombies, drawing them to a place of your choosing. Use doorways as a choke point or stand behind a window and strike as the zombies slowly climb through. Be wary - in numbers, they will push through anyway. Never be afraid to just run if you can outpace your enemies. Irregular terrain, like forests, may help you lose monsters.",
"Survival hierarchy of needs in most cases is as follows: shelter, fire, water, food. The rest is the process of trying to answer a question what would you do in a survival situation?",
"The first thing to do, when you are out of immediate danger, is checking your starting location for useful items. Your initial storage is limited, and a backpack, trenchcoat, or other storage medium will let you carry a lot more. Finding a weapon is important, but not a first priority; frying pans, butcher knives, and more are common in houses; hardware stores may carry others. Initially keep the guns as a last resort trump card. Ammo is scarce, while zombies are plenty, and unwanted attention may be more you can handle.",
"It's also important to carry a few medications; painkillers are a must-have, and drugs such as cigarettes will make your life easier (but beware of addiction). Leave the city as soon as you have a good stockpile of equipment. The high concentration of zombies makes them a deathtrap - but a necessary resource of food and ammunition.",
"Avoid combat whenever you can. Run if you have to, but control your stamina, as zombies are inexhaustible unlike yourself. Combat is always risky, and sometimes one wrong step may be your last. Therefore in most cases you gain nothing from combat, unless you are equipped for it and killing zombies will help you achieve something.",
"Combat is much easier if you can fight just one monster at once. You can sometimes kite singled-out zombies. Use doorways as a choke point or stand behind a window and strike as the zombies slowly climb through. Be wary - in number they will push through anyway. Never be afraid to just run if you can outpace your enemies. Irregular terrain, like forests, may help you lose monsters.",
"Using firearms is the easiest way to kill an enemy, but the sound will attract unwanted attention. Save the guns for emergencies, and melee when you can.",
"If you need to protect yourself from acid, look for clothing made of plastic, Kevlar, leather, or cloth, in decreasing order of effectiveness. So, while leather and Kevlar will protect you from active enemies, a hazmat suit and rubber boots will make you nigh immune to acid damage. Items made of glass, ceramics, diamond, or precious metals will be totally immune to acid.",
"When looting, try to fill your inventory as much as possible without being overloaded. You never know when you might need an item, most are good to sell, and you can easily drop unwanted items on the floor. But don't go looting empty-handed; you never know what might happen, so have your most crucial survival items with you.",
"Keep an eye on the weather. Wind and humidity will exacerbate dire conditions, so seek shelter if you're unable to withstand them. Staying dry is important, especially if temperatures are so low that they would cause frostbite. Use a towel to dry yourself if you are wet from the rain. If you're having trouble staying warm overnight, make a pile of clothing on the floor to sleep on. Finding a pillow and a blanket for your bed is always good for the quality of your sleep. If you can't find those, improvise; even a chair in a basement is better then a patch of wet ground in a field. Finding or making a shelter with a place to sleep is very important for your survival.",
"Winter is harsh. Liquids and food may freeze, and you may need to defrost them using a cooking appliance. Placing them by a lit fire might also help. Basements are warmer in winter and cooler in summer, so they are frequently good places to store your excess food. Most food decays with time, and that process can be sped up or slowed down by the temperature. Frozen food will not rot. It you are able to bring a freezer or a fridge back to life, it will help you in the long run. If these are out of your reach, think about constructing a root cellar.",
"You may preserve food in many other ways, as well; for example, by using a smoking rack, or cooking it into a meal that has a longer shelf life."
"If you need to protect yourself from acid, clothing made of cloth < leather < Kevlar < plastic. So while leather and Kevlar will protect you from active enemies, a hazmat suit and rubber boots will make you nigh-immune to acid damage. Items made of glass, ceramics, diamond or precious metals will be totally immune to acid.",
"When looting try to fill your inventory as much as possible without being overloaded. You never know when you might need an item, most are good to sell, and you can easily drop unwanted items on the floor. But don't go looting empty-handed, you never know what might happen, so have your most crucial survival items with you.",
"Keep an eye on the weather. Wind and humidity will exacerbate dire conditions, so seek shelter if you're unable to withstand them. Staying dry is important, especially if conditions are so low that they would cause frostbite. Use a towel to dry yourself if you are wet from the rain. If you're having trouble staying warm over night, make a pile of clothing on the floor to sleep on. Finding a pillow and a blanket for your bed is always good for the quality of your sleep. If you can't have those, improvise, even a chair in a basement is better then a wet ground in the field. Finding or making a shelter with a place to sleep is very important to your survival.",
"Winter is harsh. Liquids and food may freeze, and you may need to defrost them using cooking appliance. Placing them by the lit fire might also help. Basements are warmer in winter and cooler in summer, so its a good place to place your excess food. Most food decays with time, and that process can be speed up or slowed down by temperature. Frozen food will not rot. It you will be able to bring a freezer or a fridge back to life it will help you in the long run. If those are out of your reach think about constructing root cellar.",
"You may preserve food in many other ways, for example by using a smoking rack, or using it in a meal that has a longer shelf life."
]
},
{
@@ -219,24 +218,24 @@
"order": 16,
"name": "<r|R>: Vehicles and Driving",
"messages": [
"You control vehicles using the numpad, or vikeys. Note, however, that you control the vehicle's controls, rather than controlling the vehicle directly.",
"You control vehicles using the numpad, or vikeys. However, you control their controls, rather than the vehicle directly.",
"<HELP_DRAW_DIRECTIONS>",
"In order to assume control of a vehicle, get to a location with working \"vehicle controls\" and a \"seat\", then press <press_control_vehicle>. Once you are in control, <press_UP> accelerates, <press_DOWN> slows or reverses, & <press_LEFT> & <press_RIGHT> turn left or right. Diagonals adjust course and speed. You default to cruise control, so the gas/brake adjust the speed which the vehicle will attempt to maintain.",
"In order to assume control of the vehicle, get to a location with working \"vehicle controls\" and a \"seat\", then press <press_control_vehicle>. Once you are in control, <press_UP> accelerates, <press_DOWN> slows or reverses, & <press_LEFT> & <press_RIGHT> turn left or right. Diagonals adjust course and speed. You default to cruise control, so the gas/brake adjust the speed which the vehicle will attempt to maintain.",
"10-30 MPH, or 16-48 KPH, is a good speed for beginning drivers, who tend to fumble the controls. As your Driving skill improves, you will fumble less and less. To simply maintain course and speed, hit <press_pause>.",
"It's a good idea to pull the handbrake - \"s\" - when parking, just to be safe. If you want to get out, hit the lights, toggle cruise control, turn the engine on or off, or otherwise use the vehicle controls, press <press_control_vehicle> to bring up the \"Vehicle Controls\" menu, which has options for things you'd do from the driver's seat.",
"Examining (<press_examine>) a vehicle brings up the vehicle interaction window. The left pane shows a top-down view of your vehicle and each part of it. The middle pane shows a summary of the vehicle's engines, batteries, storage tanks, weapons, and seating. The right panel is context-sensitive, but normally has descriptions of the vehicle parts in the tile highlighted in the vehicle view on the left.",
"Across the bottom is a summary of the most important parameters of your vehicle. \"Safe speed\" is how fast you can drive without damaging the engine, and \"top\" speed is how fast you can drive at the engine's maximum output. \"Acceleration\" is how fast your vehicle can increase speed each turn. \"Cargo volume\" is how much cargo you can store and how much stuff you have in your vehicle, \"mass\" is how much the vehicle weighs, and the \"Status\" and \"Wheels\" readouts give a summary of the vehicle condition and wheel condition. There are also fuel indicators on the lower right that give an estimate of how quickly your fuel will run out.",
"Examining (<press_examine>) a vehicle brings up the vehicle interaction window. The left pane shows a top-down view of your vehicle and each part of it. The middle pane shows a summary of the vehicle's engines, batteries, storage tanks, weapons, and seating. The right panel is context sensitive, but normally has descriptions of the vehicle parts in the tile highlighted in the vehicle view on the left.",
"Across the bottom are a summary of the most important parameters of your vehicle. Safe speed is how fast you can drive without damaging the engine and maximum speed is how fast you can drive at the engine's maximum output. Acceleration is how fast your vehicle can increase speed each turn. Cargo volume is how much cargo you can store and how much stuff you have in your vehicle, mass is how much the vehicle weighs, and the Status and Wheels give a summary of the vehicle condition and wheel condition. There are also fuel indicators on the lower right that give an estimate of how quickly your fuel will run out.",
"Air drag, water drag, rolling drag, and static drag are all values that influence your vehicle's safe and maximum speed. The interaction of drag and engine power is complicated, but generally speaking, more powerful engines will make your vehicle go faster but also consume fuel faster.",
"Air drag increases as your vehicle gets wider or has more parts that increase the vehicle's height like full boards, aisles, or turrets. It also increases as the vehicle assumes a less aerodynamic profile, such as by having exposed passengers or full boards at the front of the vehicle. Air drag strongly influences vehicle speed, especially at high speeds.",
"Rolling drag increases with vehicle weight and wheel count. Rigid wheels have less rolling drag per wheel than inflatable wheels, but weigh more, so rolling drag may still increase when moving from inflatable wheels to rigid wheels. Tank treads have enormous rolling resistance and are very heavy, so tanks have a lot of rolling resistance. Rolling drag influences vehicle speed, but less than air drag does, especially at high speeds.",
"Vehicles that can move in water have a water drag value. Water drag increases with vehicle width and draft, and draft increases with vehicle weight, but is reduced by adding more boat boards and by widening or lengthening the vehicle. Water drag has an enormous effect on vehicle speed in the water. See the section on water vehicles for more about draft and water drag.",
"Air drag increases as your vehicle gets wider or has more parts that increase the vehicle's height like full boards, aisles, or turrets. It also increases as the vehicle has a less aerodynamic profile, such as having exposed passengers or full boards at the front of the vehicle. Air drag strongly influences vehicle speed, especially at high speeds.",
"Rolling drag increases with vehicle weight and wheel count. Rigid wheels have less rolling drag per wheel than inflatable wheels, but weigh more so rolling drag may still increase when moving from inflatable wheels to rigid wheels. Tank treads have enormous rolling resistance and are very heavy, so tanks have a lot of rolling resistance. Rolling drag influences vehicle speed, but less than air drag does, especially at high speeds.",
"Vehicles that can move in water have a water drag. Water drag increases with vehicle width and draft, and draft increases with vehicle weight but is reduced by adding more boat boards and by widening or lengthening the vehicle. Water drag has enormous effect on vehicle speed in the water. See the section on water vehicles for more about draft and water drag.",
"Static drag includes things like plows, and directly reduces your vehicle's acceleration and top speed.",
"\"Offroad\" is a rough estimate of how efficient your vehicle moves when not on pavement. Your vehicle's safe speed, top speed, and acceleration are multiplied by roughly the offroad percentage value when your vehicle is not on the pavement. The offroad percentage decreases as vehicle mass increases, and increases with the size and number of wheels. Tank treads will give your vehicle an excellent offroad percentage but your vehicle will be slower due to the treads' very high rolling drag.",
"Skilled survivors can use wrenches, hacksaws, and welding tools to add or remove parts on a vehicle. You can even create a vehicle entirely from scratch, by using the Construction (<press_construction>) menu to 'Start Vehicle Construction' when you have a frame available. Tuning a vehicle for speed, fuel consumption, offroad capacity, protection against threats, and cargo capacity is a complicated process.",
"Offroad is a rough estimate of how efficient your vehicle moves when not on pavement. Your vehicle's safe speed, top speed, and acceleration are multiplied by roughly the off-road percent when your vehicle is not on pavement. Off-road percentage decreases as vehicle mass increases and increases with the size and number of wheels. Tank treads will give your vehicle an excellent off-road percentage but your vehicle will be slower due to the treads' very large rolling drag.",
"Skilled survivors can use wrenches, hacksaws, and welding tools to add or remove parts for a vehicle. You can even create a vehicle from scratch, by using the Construction (<press_construction>) menu to 'Start a New Vehicle' when they have a frame available. Tuning a vehicle for speed, fuel consumption, off-road capacity, protection against threats, and cargo capacity is a complicated process.",
"BOATS AND AMPHIBIOUS VEHICLES",
"You can use boat hull parts to create boats or amphibious vehicles that can move between water and land.",
"Each boat hull you add to your vehicle increases the height of the vehicle's watertight hull. If the height of the watertight hull is less than the vehicle's draft, then water will flow into your vehicle, and it will sink and be destroyed if it goes into deep water. If your vehicle's draft is less than the height of the watertight hull, your vehicle will not take on water and will not sink in deep water.",
"Draft is determined by the length and width of your vehicle, the mass of your vehicle, and the percentage of the vehicle's underbody covered in boat hulls. In general, a vehicle should be able to float if its mass in tons is less than a quarter of the product of its length and width, provided that the watertight hull is high enough. A boat that is 5 tiles wide and 9 tiles long has a good chance of floating if all of its underbody is covered in boat boards and it weighs less than 10 tons.",
"Each boat hull you add to your vehicle increases the height the vehicle's watertight hull. If the height of the watertight hull is less than the vehicle's draft, then water will flow into your vehicle and it will sink and be destroyed if it goes into deep water. If your vehicle's draft is less than the height of the watertight hull, your vehicle will not take on water and will not sink in deep water.",
"Draft is determined by length and width of your vehicle, the mass of your vehicle, and the percentage of the vehicle's underbody covered in boat hulls. In general, a vehicle should be able to float if it's mass in tons is less than a quarter of the value of its length and width. A boat that is 5 tiles wide and 9 tiles long has a good chance of floating if all of its underbody is covered in boat boards and it weighs less than 10 tons.",
"Increased draft increases water drag, and water drag reduces a vehicle's speed in water. If you want your boat to go fast, make it as light as possible.",
"Amphibious vehicles have both wheels and boat hulls. As long as your amphibious vehicle has enough wheels on land and enough boat hulls to not sink in deep water, you can freely transition from land to water. However, most amphibious vehicles are much slower in water than they are on land, so be careful when entering water to not leave your cruise control speed above your vehicle's safe water speed or you can burn out your engine!"
]
@@ -246,14 +245,14 @@
"order": 17,
"name": "<1>: List of item types and data",
"messages": [
"~ Liquid\n%% Food\n! Medication\nThese are all consumed by using <press_eat>. They may provide a certain amount of nutrition, may quench your thirst, may be a stimulant or a depressant, and may provide (or reduce!) morale. There may also be more subtle effects.",
"~ Liquid\n%% Food\n! Medication\nThese are all consumed by using <press_eat>. They provide a certain amount of nutrition, quench your thirst, may be a stimulant or a depressant, and may provide morale. There may also be more subtle effects.",
"/ Large weapon\n; Small weapon or tool\n, Tiny item\nThese are all generic items, useful only to be wielded as a weapon. However, some have special uses; they will show up under the TOOLS section in your inventory. Press <press_apply> to use these.",
") Container\nThese items may hold other items. Some are passable weapons. Many will be listed with their contents, e.g. \"plastic bottle > water\". Those containing comestibles may be eaten with <press_eat>; this may leave an empty container.",
"[ Clothing\nThis may be worn with the <press_wear> key or removed with the <press_take_off> key. It may cover one or more body parts; you can wear multiple articles of clothing on any given body part, but this will encumber you severely. Each article of clothing may provide storage space, warmth, encumbrance, and resistance to bashing and/or cutting attacks. Some may protect against environmental effects.",
"( Firearm\nThis weapon may be loaded with ammunition with <press_reload>, unloaded with <press_unload>, and fired with <press_fire>. Some have automatic fire, which may be used with <press_select_fire_mode> at a penalty to accuracy. The color corresponds to the type; handguns are gray, shotguns are red, submachine guns are cyan, rifles are brown, assault rifles are blue, and heavy machine guns are light red. Each has a dispersion rating, a bonus to damage, a rate of fire, and a maximum load. Note that, while most firearms load fully in one action, shotguns must be loaded one shell at a time.",
"= Ammunition\nAmmunition is worthless without a gun to load it into. Generally, there are several variants for any particular caliber. Ammunition has damage, dispersion, and range ratings, as well as an armor-piercing value.",
"* Thrown weapon; simple projectile or grenade\nThese items are suited for throwing, and many are only useful when thrown, such as grenades, Molotov cocktails, or tear gas. Once activated, be certain to throw these items by pressing <press_throw>, then the letter of the item.",
"? Book or magazine\nThis can be read for training or entertainment by pressing <press_read>. Most require a basic level of intelligence; some require a base level of knowledge in the relevant subject. Some may contain useful crafting recipes."
") Container\nThese items may hold other items. Some are passable weapons. Many will be listed with their contents, e.g. \"plastic bottle of water\". Those containing comestibles may be eaten with <press_eat>; this may leave an empty container.",
"[ Clothing\nThis may be worn with the <press_wear> key or removed with the <press_take_off> key. It may cover one or more body parts; you can wear multiple articles of clothing on any given body part, but this will encumber you severely. Each article of clothing may provide storage space, warmth, encumbrance, and a resistance to bashing and/or cutting attacks. Some may protect against environmental effects.",
"( Firearm\nThis weapon may be loaded with ammunition with <press_reload>, unloaded with <press_unload>, and fired with <press_fire>. Some have automatic fire, which may be used with <press_select_fire_mode> at a penalty to accuracy. The color refers to the type; handguns are gray, shotguns are red, submachine guns are cyan, rifles are brown, assault rifles are blue, and heavy machine guns are light red. Each has a dispersion rating, a bonus to damage, a rate of fire, and a maximum load. Note that most firearms load fully in one action, while shotguns must be loaded one shell at a time.",
"= Ammunition\nAmmunition is worthless without a gun to load it into. Generally, there are several variants for any particular caliber. Ammunition has damage, dispersion, and range ratings, and an armor-piercing quality.",
"* Thrown weapon; simple projectile or grenade\nThese items are suited for throwing, and many are only useful when thrown, such as grenades, Molotov cocktails, or tear gas. Once activated be certain to throw these items by pressing <press_throw>, then the letter of the item to throw.",
"? Book or magazine\nThis can be read for training or entertainment by pressing <press_read>. Most require a basic level of intelligence; some require some base knowledge in the relevant subject. Some books may contain useful crafting recipes."
]
},
{
@@ -262,15 +261,15 @@
"name": "<2>: Description of map symbols",
"messages": [
"MAP SYMBOLS:",
"<color_brown>.</color> Field - Empty grassland with occasional wild fruit.",
"<color_green>F</color> Forest - May be dense or sparse. Movement will be slowed. You might be able to forage for food here.",
"<color_brown>.</color> Field - Empty grassland, occasional wild fruit.",
"<color_green>F</color> Forest - May be dense or sparse. Slow moving; foragable food.",
"<color_dark_gray>│─└┌┐┘├┴┤┬┼</color> Road - Safe from burrowing animals.",
"<color_dark_gray>H=</color> Highway - Like roads, but lined with guard rails.",
"<color_dark_gray>|-</color> Bridge - Helps you cross rivers.",
"<color_blue>R</color> River - Most creatures cannot swim across them, but you can.",
"<color_dark_gray>O</color> Parking lot - Empty lot, few items. Mostly useless.",
"<color_light_green>^>v<</color> House - Filled with a variety of items. Good place to sleep.",
"<color_light_blue>^>v<</color> Gas station - A good place to collect gasoline. Risk of explosion.",
"<color_blue>R</color> River - Most creatures can not swim across them, but you may.",
"<color_dark_gray>O</color> Parking lot - Empty lot, few items. Mostly useless.",
"<color_light_green>^>v<</color> House - Filled with a variety of items. Good place to sleep.",
"<color_light_blue>^>v<</color> Gas station - A good place to collect gasoline. Risk of explosion.",
"<color_light_red>^>v<</color> Pharmacy - The best source for vital medications.",
"<color_green>^>v<</color> Grocery store - A good source of canned food and other supplies.",
"<color_cyan>^>v<</color> Hardware store - Home to tools, melee weapons and crafting goods.",
@@ -280,7 +279,7 @@
"<color_blue>^>v<</color> Clothing store - High-capacity clothing, some light armor.",
"<color_brown>^>v<</color> Library - Home to books, both entertaining and informative.",
"<color_white>^>v<</color> Man-made buildings - The pointed side indicates the front door.",
" There are many others out there… search for them!",
" There are many others out there... search for them!",
"<DRAW_NOTE_COLORS>"
]
},
@@ -289,15 +288,15 @@
"order": 19,
"name": "<3>: Description of gun types",
"messages": [
"<color_light_gray>( Handguns</color>\nHandguns are small weapons held in one or both hands. They are much more difficult to aim and control than larger firearms, and this is reflected in their poor accuracy. However, their small size makes them appropriate for short-range combat. They are also relatively quick to reload and use a very wide variety of ammunition. Their small size and low weight make it possible to carry several loaded handguns, switching from one to the next as their ammo is spent.",
"<color_green>( Crossbows</color>\nThe best feature of crossbows is their silence. The bolts they fire are only rarely destroyed; if you pick up the bolts after firing them, your ammunition supply will last much longer. Crossbows suffer from a short range and a very long reload time (modified by your strength); plus, most only hold a single round.\nFor this reason, it is advisable to carry a few loaded crossbows. Crossbows can be very difficult to find; however, it is possible to craft one given a high enough Mechanics skill. Likewise, it is possible to make wooden bolts from any number of wooden objects, though these are much less effective than steel bolts. Crossbows use the handgun skill.",
"<color_yellow>( Bows</color>\nSilent, deadly, relatively easy to make, and the arrows are reusable. Bows have been used forever. Bows are two-handed, and require the user to have a certain strength level. If you do not have enough strength to draw the string back, you will fire at a reduced effectiveness. This reduces the reload and fire speeds and decreases the range of the arrows fired.\nMost normal bows require strength of at least 8, others require an above average strength of 10, or a significant strength of 12. Bows use the archery skill.",
"<color_red>( Shotguns</color>\nShotguns are some of the most powerful weapons in the game, capable of taking out almost any enemy with a single hit. Birdshot and 00 shot spread out after leaving the barrel, making it very easy to hit nearby monsters. However, they are very ineffective against armor, and some armored monsters might shrug off 00 shot completely. Shotgun slugs are the answer to this problem; they also offer much better range than shot.\nThe biggest drawback to shotguns is their noisiness. They are very loud, and impossible to silence. A shot that kills one zombie might attract three more! Beware of that.",
"<color_cyan>( Submachine Guns</color>\nSubmachine guns are small weapons (some are barely larger than a handgun), designed for relatively close combat and the ability to spray large numbers of bullets. However, they are more effective when firing single shots, so use discretion. They mainly use 9mm and .45 ammunition; however, other SMGs exist. They reload moderately quickly, and are suitable for close or medium-long range combat.",
"<color_brown>( Sniper and Marksman Rifles</color>\nSniper and marksman rifles are popular for their superior range and accuracy. What's more, their scopes or sights make shots fired at targets at very long range as accurate as those fired at shorter range. Unlike assault rifles, sniper and marksman rifles usually have no automatic fire. They also may be slow to reload and fire, so when facing a large group of nearby enemies, they are not the best pick.",
"<color_blue>( Assault Rifles</color>\nAssault rifles are similar to hunting rifles in many ways; they are also suited for long range combat, with similar bonuses and penalties. Unlike hunting rifles, assault rifles are capable of automatic fire. Assault rifles are less accurate than hunting rifles, and this is worsened under automatic fire, so save it for when you're highly skilled.\nAssault rifles are an excellent choice for medium or long range combat, or even close-range bursts against a large number of enemies. They are difficult to use, and are best used by skilled riflemen.",
"<color_light_gray>( Handguns</color>\nHandguns are small weapons held in one or both hands. They are much more difficult to aim and control than larger firearms, and this is reflected in their poor accuracy. However, their small size makes them appropriate for short-range combat. They are also relatively quick to reload and use a very wide selection of ammunition. Their small size and low weight make it possible to carry several loaded handguns, switching from one to the next once their ammo is spent.",
"<color_green>( Crossbows</color>\nThe best feature of crossbows is their silence. The bolts they fire are only rarely destroyed; if you pick up the bolts after firing them, your ammunition supply will last much longer. Crossbows suffer from a short range and a very long reload time (modified by your strength); plus, most only hold a single round. \nFor this reason, it is advisable to carry a few loaded crossbows. Crossbows can be very difficult to find; however, it is possible to craft one given enough Mechanics skill. Likewise, it is possible to make wooden bolts from any number of wooden objects, though these are much less effective than steel bolts. Crossbows use the handgun skill.",
"<color_yellow>( Bows</color>\nSilent, deadly, easy to make, and the arrows are reusable. Bows have been used forever. Bows are two handed and require the user to have a certain strength level. If you do not have enough strength to draw the string back, you will fire at a reduced effectiveness. This reduces the reload and fire speeds and decreases the range of the arrows fired. \nMost normal bows require strength of at least 8, others require an above average strength of 10, or a significant strength of 12. Bows use the archery skill.",
"<color_red>( Shotguns</color>\nShotguns are some of the most powerful weapons in the game, capable of taking out almost any enemy with a single hit. Birdshot and 00 shot spread, making it very easy to hit nearby monsters. However, they are very ineffective against armor, and some armored monsters might shrug off 00 shot completely. Shotgun slugs are the answer to this problem; they also offer much better range than shot.\nThe biggest drawback to shotguns is their noisiness. They are very loud, and impossible to silence. A shot that kills one zombie might attract three more! Beware of that.",
"<color_cyan>( Submachine Guns</color>\nSubmachine guns are small weapons (some are barely larger than a handgun), designed for relatively close combat and the ability to spray large amounts of bullets. However, they are more effective when firing single shots, so use discretion. They mainly use the 9mm and .45 ammunition; however, other SMGs exist. They reload moderately quickly, and are suitable for close or medium-long range combat.",
"<color_brown>( Sniper and Marksman Rifles</color>\nSniper and marksman rifles are popular for their superior range and accuracy. What's more, their scopes or sights make shots fired at targets at very long range as accurate as those with a shorter range. Unlike assault rifles, sniper and marksman rifles usually have no automatic fire. They are also may be slow to reload and fire, so when facing a large group of nearby enemies, they are not the best pick.",
"<color_blue>( Assault Rifles</color>\nAssault rifles are similar to hunting rifles in many ways; they are also suited for long range combat, with similar bonuses and penalties. Unlike hunting rifles, assault rifles are capable of automatic fire. Assault rifles are less accurate than hunting rifles, and this is worsened under automatic fire, so save it for when you're highly skilled. \nAssault rifles are an excellent choice for medium or long range combat, or even close-range bursts again a large number of enemies. They are difficult to use, and are best saved for skilled riflemen.",
"<color_light_red>( Machine Guns</color>\nMachine guns are one of the most powerful firearms available. They are even larger than assault rifles; however, they are capable of holding 100 or more rounds of highly-damaging ammunition. They are not built for accuracy, and firing single rounds is not very effective. However, they also possess a very high rate of fire and somewhat low recoil, making them very good at clearing out large numbers of enemies.",
"<color_magenta>( Energy Weapons</color>\n\"Energy weapons\" is an umbrella term used to describe a variety of rifles and handguns which fire lasers, plasma, or energy attacks. They are mostly prototypes that started to appear in military use just prior to the start of the apocalypse, and as such are very difficult to find.\nEnergy weapons have no recoil at all; they are nearly silent, have a long range, and are fairly damaging. The biggest drawback to energy weapons is scarcity of ammunition; it is wise to reserve the precious ammo for when you really need it."
"<color_magenta>( Energy Weapons</color>\nEnergy weapons is an umbrella term used to describe a variety of rifles and handguns which fire lasers, plasma, or energy attacks. They are mostly prototypes that started to appear in military use just prior to the start of the apocalypse, and as such are very difficult to find.\nEnergy weapons have no recoil at all; they are nearly silent, have a long range, and are fairly damaging. The biggest drawback to energy weapons is scarcity of ammunition; it is wise to reserve the precious ammo for when you really need it."
]
},
{
@@ -305,20 +304,20 @@
"order": 20,
"name": "<4>: FAQ (contains spoilers!)",
"messages": [
"Q: What is Safe Mode, and why does it prevent me from moving?\nA: Safe Mode is a way to guarantee that you won't die by holding a movement key down. When a monster comes into view, your movement will be ignored until Safe Mode is turned off with the <press_safemode> key. This ensures that the sudden appearance of a monster won't catch you off guard.",
"Q: It seems like everything I eat makes me sick! What's wrong?\nA: Lots of the food found in towns is perishable and will only last a few days after the start of a new game. The electricity went out several days ago, so fruit, milk, and similar foods are the first to go bad. After the first couple of days, you should switch to canned food, jerky, and hunting. Also, you should make sure to cook any food and purify any water you come across, as it may contain parasites or otherwise be unsafe.",
"Q: What is Safe Mode, and why does it prevent me from moving?\nA: Safe Mode is a way to guarantee that you won't die by holding a movement key down. When a monster comes into view, your movement will be ignored until Safe Mode is turned off with the ! key. This ensures that the sudden appearance of a monster won't catch you off guard.",
"Q: It seems like everything I eat makes me sick! What's wrong?\nA: Lots of the food found in towns is perishable and will only last a few days after the start of a new game. The electricity went out several days ago so fruit, milk and others are the first to go bad. After the first couple of days, you should switch to canned food, jerky, and hunting. Also, you should make sure to cook any food and purify any water you hunt up as it may contain parasites or otherwise be unsafe.",
"Q: How can I remove boards from boarded-up windows and doors?\nA: Use a hammer and choose the direction of the boarded-up window or door to remove the boards.",
"Q: The game just told me to quit, and other weird stuff is happening.\nA: You have the Schizophrenic trait, which might make the game seem buggy.",
"Q: How can I prevent monsters from attacking me while I sleep?\nA: Find a safe place to sleep; for example, in a cleared building far from the front door. Set traps if you have them, or build a fire to scare off wild animals.",
"Q: Why do I always sink when I try to swim?\nA: Your swimming ability is reduced greatly by the weight you are carrying, and is also adversely affected by most clothing you wear. Until you reach a high level of the swimming skill, you'll need to drop your equipment and remove your clothing to swim, making it a last-ditch escape plan. Diving gear may significantly help you in swimming and diving.",
"Q: How can I cure a fungal infection?\nA: The Blood Filter bionic and some antifungal chemicals can cure fungal infection. Antifungal chemicals to cure the fungal infection can either be found as random loot or made from other ingredients.",
"Q: How do I get into science labs?\nA: You can enter the front door if you have an appropriate ID card by examining (<press_examine>) the keypad. If you are skilled in computers and have an electrohack, it is possible to hack the keypad. An EMP blast has a chance to force the doors open, but it's more likely to break them. You can also sneak in through the sewers sometimes, or try to smash through the walls with explosions.",
"Q: Why does my crafting fail so often?\nA: Check the difficulty of the recipe, and the primary skill used; your skill level should be around one and a half times the difficulty to be confident that it will succeed. Also, note any proficiencies or other skills that may influence your chances of success.",
"Q: How can I prevent monsters from attacking while I sleep?\nA: Find a safe place to sleep, for example in a cleared building far from the front door. Set traps if you have them, or build a fire to scare off wild animals.",
"Q: Why do I always sink when I try to swim?\nA: Your swimming ability is reduced greatly by the weight you are carrying, and is also adversely affected by the clothing you wear. Until you reach a high level of the swimming skill, you'll need to drop your equipment and remove your clothing to swim, making it a last-ditch escape plan. Diving gear may significantly help you in swimming and diving.",
"Q: How can I cure a fungal infection?\nA: Royal jelly, the Blood Filter bionic, and some antifungal chemicals can cure fungal infection. You can find royal jelly in the bee hives which dot forests. Antifungal chemicals to cure the fungal infection can either be found as random loot or made from other ingredients.",
"Q: How do I get into science labs?\nA: You can enter the front door if you have an ID card by examining (<press_examine>) the keypad. If you are skilled in computers and have an electrohack, it is possible to hack the keypad. An EMP blast has a chance to force the doors open, but it's more likely to break them. You can also sneak in through the sewers sometimes, or try to smash through the walls with explosions.",
"Q: Why does my crafting fail so often?\nA: Check the difficulty of the recipe, and the primary skill used; your skill level should be around one and a half times the difficulty to be confident that it will succeed.",
"Q: Why can't I carry anything?\nA: At the start of the game you only have the space in your pockets. A good first goal of many survivors is to find a backpack or pouch to store things in.",
"Q: Help! I started a fire and now my house is burning down!\nA: Fires will spread to nearby flammable tiles if they are able. Lighting a fire in a deployed brazier, stove, wood stove, stone fireplace, pit, or even a kitchen stove will stop it from spreading. Fire extinguishers can put out fires that get out of control. You can put out a fire in a fireplace by examining it.",
"Q: I'm cold and can't sleep at night!\nA: Gather some clothes and put them in the place where you're trying to sleep. Being hungry, thirsty, wet, or injured can also make you feel the cold more, so try to avoid these effects before you go to sleep. Pillows and some other appliances will help you sleep, and the quality of your sleeping spot is also very important.",
"Q: There are too many calibers and guns. It confuses me - I don't usually understand what is compatible with what.\nA: Try to remember a few common calibers:\n9x19 (or simply 9mm) - fits most basic pistols (Glock, for example) and SMGs, quite easy to find and gets job done against usual zombies;\n 00 buckshot - for most shotguns. Very powerful against unarmored target at closer ranges;\n .223 (5.56) - for rifles. Good long range option.\n .308 (7.62) - for even more powerful rifles. Also a good long range option.\n These should be enough in the beginning. If you're still confused: just grab any shotgun, fill it with buckshot and give them hell!",
"Q: I have a question that's not addressed here. How can I get an answer?\nA: Check the wiki, or ask the helpful people on the forum or chat channels. Links are provided in the MOTD in the main menu."
"Q: Help! I started a fire and now my house is burning down!\nA: Fires will spread to nearby flammable tiles if they are able. Lighting a fire in a set-up brazier, stove, wood stove, stone fireplace, pit, or even in a kitchen stove will stop it from spreading. Fire extinguishers can put out fires that get out of control. You can put out a fire in the fireplace by examining it.",
"Q: I'm cold and can't sleep at night!\nA: Gather some clothes and put them in the place you use to sleep in. Being hungry, thirsty, wet, or injured can also make you feel the cold more, so try to avoid these effects before you go to sleep. Pillows and some other appliances will help you sleep, and the quality of your sleeping spot is also very important.",
"Q: There are too many calibers and guns. It confuses me - I don't usually understand what is compatible with what.\nA: Try to remember few usual calibers: \n9x19 (or simply 9mm) - fits most basic pistols (Glock, for example) and SMGs, quite easy to find and gets job done versus usual zombies;\n 00 buckshot - for most shotguns. Very powerful against unarmored target at closer ranges;\n .223 (5.56) - for rifles. Good long range option.\n .308 (7.62) - for even more powerful rifles. Also good long range option.\n It should be enough in the beginning. Or even just grab any shotgun, fill it with buckshot and give them hell!",
"Q: I have a question that's not addressed here. How can I get an answer?\nA: Check the wiki, or ask the helpful people on the forum or at the chat channels. Links are provided in MOTD in the main menu."
]
}
]
File diff suppressed because it is too large Load Diff
+11 -91
View File
@@ -40,11 +40,6 @@
"aoe": { "field_type": "fd_fire", "intensity_min": 1, "intensity_max": 1, "radius": 3, "size": 4 },
"explosion": { "power": 360, "distance_factor": 0.8, "fire": true }
},
{
"id": "NAPALM_TBG7V",
"type": "ammo_effect",
"aoe": { "field_type": "fd_fire", "intensity_min": 1, "intensity_max": 1, "radius": 3, "size": 4 }
},
{
"id": "PYROPHORIC",
"type": "ammo_effect",
@@ -97,11 +92,6 @@
"aoe": { "field_type": "fd_plasma", "intensity_min": 2, "intensity_max": 3, "chance": 50 },
"trail": { "field_type": "fd_plasma", "intensity_min": 1, "intensity_max": 2, "chance": 50 }
},
{
"id": "PLASMA_BUBBLE",
"type": "ammo_effect",
"aoe": { "field_type": "fd_plasma", "intensity_min": 1, "intensity_max": 3, "radius": 1, "chance": 10 }
},
{
"id": "EXPLOSIVE_HUGE",
"type": "ammo_effect",
@@ -125,88 +115,18 @@
{
"id": "EXPLOSIVE_RAUFOSS",
"type": "ammo_effect",
"explosion": { "power": 2.4, "shrapnel": { "casing_mass": 28, "fragment_mass": 14 } }
"explosion": {
"power": 2.4,
"distance_factor": 0.6,
"fire": true,
"shrapnel": { "casing_mass": 28, "fragment_mass": 1.4, "recovery": 0, "drop": "null" }
}
},
{
"id": "FRAG",
"type": "ammo_effect",
"explosion": { "power": 185, "shrapnel": { "casing_mass": 212, "fragment_mass": 0.05 } }
},
{
"id": "FRAG_20x66",
"type": "ammo_effect",
"explosion": { "power": 40, "shrapnel": { "casing_mass": 15, "fragment_mass": 0.15 } }
},
{
"id": "EXPLOSIVE_20x66",
"type": "ammo_effect",
"explosion": { "power": 60 }
},
{
"id": "EXPLOSIVE_HESHOT",
"type": "ammo_effect",
"explosion": { "power": 60 }
},
{
"id": "EXPLOSIVE_m430a1",
"type": "ammo_effect",
"explosion": { "power": 72, "shrapnel": { "casing_mass": 250, "fragment_mass": 0.15 } }
},
{
"id": "EXPLOSIVE_m433",
"type": "ammo_effect",
"explosion": { "power": 42, "shrapnel": { "casing_mass": 198, "fragment_mass": 0.15 } }
},
{
"id": "EXPLOSIVE_HOMEMADE",
"type": "ammo_effect",
"explosion": { "power": 400, "shrapnel": { "casing_mass": 680, "fragment_mass": 0.3 } }
},
{
"id": "EXPLOSIVE_66mmHEAT",
"type": "ammo_effect",
"explosion": { "power": 400, "shrapnel": { "casing_mass": 680, "fragment_mass": 0.3 } }
},
{
"id": "EXPLOSIVE_OG7V",
"type": "ammo_effect",
"explosion": { "power": 266, "shrapnel": { "casing_mass": 1500, "fragment_mass": 0.15 } }
},
{
"id": "EXPLOSIVE_PG7VL",
"type": "ammo_effect",
"explosion": { "power": 598, "shrapnel": { "casing_mass": 1500, "fragment_mass": 0.3 } }
},
{
"id": "EXPLOSIVE_PG7VR",
"type": "ammo_effect",
"explosion": { "power": 1995, "shrapnel": { "casing_mass": 2500, "fragment_mass": 0.3 } }
},
{
"id": "EXPLOSIVE_TBG7V",
"type": "ammo_effect",
"explosion": { "power": 66, "shrapnel": { "casing_mass": 2500, "fragment_mass": 0.3 } }
},
{
"id": "EXPLOSIVE_84x246HE",
"type": "ammo_effect",
"explosion": { "power": 665, "shrapnel": { "casing_mass": 1500, "fragment_mass": 0.15 } }
},
{
"id": "EXPLOSIVE_84x246HEDP",
"type": "ammo_effect",
"explosion": { "power": 798, "shrapnel": { "casing_mass": 1500, "fragment_mass": 0.3 } }
},
{
"id": "EXPLOSIVE_ATGMHEAT",
"type": "ammo_effect",
"explosion": { "power": 5985, "shrapnel": { "casing_mass": 18000, "fragment_mass": 1.0 } }
},
{
"id": "EXPLOSIVE_120mmHEAT",
"type": "ammo_effect",
"explosion": { "power": 7980, "shrapnel": { "casing_mass": 8725, "fragment_mass": 1.0 } }
},
{
"id": "MININUKE_MOD",
"type": "ammo_effect",
@@ -257,6 +177,11 @@
"type": "ammo_effect",
"trail": { "field_type": "fd_insecticidal_gas", "intensity_min": 1, "intensity_max": 2, "chance": 66 }
},
{
"id": "LIGHTNING",
"type": "ammo_effect",
"trail": { "field_type": "fd_electricity", "intensity_min": 2, "intensity_max": 3 }
},
{
"id": "LASER",
"type": "ammo_effect",
@@ -266,10 +191,5 @@
"id": "DRAW_LASER_BEAM",
"type": "ammo_effect",
"trail": { "field_type": "fd_laser", "intensity_min": 2, "intensity_max": 2 }
},
{
"id": "NO_PENETRATE_OBSTACLES",
"type": "ammo_effect",
"//": "Don't act penetrate obstacles such as fences or reinforced glass"
}
]
+1 -6
View File
@@ -2,11 +2,6 @@
{
"id": "human_anatomy",
"type": "anatomy",
"parts": [ "eyes", "head", "mouth", "torso", "arm_l", "arm_r", "hand_l", "hand_r", "leg_l", "leg_r", "foot_l", "foot_r" ]
},
{
"id": "default_anatomy",
"type": "anatomy",
"parts": [ "torso", "head" ]
"parts": [ "eyes", "head", "mouth", "torso", "arm_l", "arm_r", "leg_l", "leg_r", "foot_l", "foot_r", "num_bp" ]
}
]
@@ -1,123 +0,0 @@
[
{
"type": "SPELL",
"id": "AO_FRIENDLY_VORTEX",
"name": { "str": "Artifact Vortex" },
"description": "Summon Vortexes",
"valid_targets": [ "ground" ],
"effect": "summon",
"effect_str": "mon_vortex",
"shape": "blast",
"base_casting_time": 100,
"message": "Space twists and deforms around you.",
"min_damage": 1,
"max_damage": 3,
"min_aoe": 5,
"max_aoe": 5,
"flags": [ "RANDOM_DAMAGE", "HOSTILE_50" ],
"min_duration": 40000,
"max_duration": 40000
},
{
"type": "SPELL",
"id": "AO_CALL_OF_TINDALOS",
"name": { "str": "Artifact Call of Tindalos" },
"description": "Summon hostile hounds of tindalos",
"valid_targets": [ "ground" ],
"effect": "summon",
"effect_str": "mon_hound_tindalos",
"shape": "blast",
"base_casting_time": 100,
"message": "The world unravels into geometric shapes, and between the chaos you spot a horrid prowling beast.",
"min_damage": 1,
"max_damage": 1,
"min_aoe": 15,
"max_aoe": 15,
"min_duration": 40000,
"max_duration": 40000,
"flags": [ "HOSTILE_SUMMON" ]
},
{
"id": "AO_FORCE_PULL",
"type": "SPELL",
"name": { "str": "Artifact Force Pull" },
"description": "Pull objects.",
"effect": "area_pull",
"shape": "blast",
"valid_targets": [ "self", "ally", "hostile", "ground", "item", "field" ],
"message": "An unnatural implosion sends objects flying.",
"min_range": 15,
"max_range": 15,
"min_aoe": 7,
"max_aoe": 7,
"base_casting_time": 100
},
{
"id": "AO_TELEPORTITIS",
"type": "SPELL",
"name": { "str": "Artifact Teleportitis" },
"description": "Causes you to teleport uncontrollably.",
"message": "The world loses coherence, with images of nearby places forming and disappearing around you.",
"valid_targets": [ "self" ],
"effect": "spawn_item",
"effect_str": "artifact_teleportitis_aura",
"shape": "blast",
"base_casting_time": 100,
"min_duration": 4000,
"max_duration": 4000
},
{
"id": "AO_SLOW",
"type": "SPELL",
"name": { "str": "Artifact Slow" },
"description": "Slows you for a few turns.",
"message": "The world shifts blue, and reality accelerates around you.",
"valid_targets": [ "self" ],
"effect": "spawn_item",
"effect_str": "artifact_slow_aura",
"shape": "blast",
"base_casting_time": 100,
"min_duration": 900,
"max_duration": 900
},
{
"id": "AO_TIME_STOP",
"type": "SPELL",
"name": { "str": "Artifact Time Stop" },
"description": "Grants you a few turns of super speed.",
"message": "Stale golden light floods the world, and reality stands still.",
"valid_targets": [ "self" ],
"effect": "mod_moves",
"shape": "blast",
"min_damage": 500,
"max_damage": 500,
"base_casting_time": 100
},
{
"type": "SPELL",
"id": "AO_DARKNESS_EFFECT",
"name": { "str": "Artifact Darkness" },
"description": "Grants you the Darkness effect",
"message": "Persistent shadows invade your field of view.",
"valid_targets": [ "self" ],
"flags": [ "NO_PROJECTILE" ],
"effect": "attack",
"effect_str": "darkness",
"shape": "blast",
"min_duration": 2400,
"max_duration": 2400
},
{
"type": "SPELL",
"id": "AO_LIFE_DRAIN",
"name": { "str": "Artifact Hurtall" },
"description": "Hurts you for random damage",
"message": "You feel hollow inside.",
"min_damage": 0,
"max_damage": 10,
"valid_targets": [ "self" ],
"flags": [ "RANDOM_DAMAGE", "NO_PROJECTILE" ],
"shape": "blast",
"effect": "attack"
}
]
-186
View File
@@ -1,186 +0,0 @@
[
{
"id": "art_sphere",
"type": "GENERIC",
"name": { "str": "smooth sphere" },
"description": "It is the only one of its kind.\nIt may have unknown powers; try activating them.",
"symbol": "O",
"volume": "1 L",
"weight": "1 kg",
"to_hit": -1,
"bashing": 3
},
{
"id": "art_rod",
"type": "GENERIC",
"name": { "str": "slim rod" },
"description": "It is the only one of its kind.\nIt may have unknown powers; try activating them.",
"symbol": "|",
"volume": "235 ml",
"weight": "300 g",
"longest_side": "75 cm",
"to_hit": 1,
"bashing": 5
},
{
"id": "art_teardrop",
"type": "GENERIC",
"name": { "str": "teardrop-shaped stone" },
"description": "It is the only one of its kind.\nIt may have unknown powers; try activating them.",
"symbol": "O",
"volume": "35 ml",
"weight": "50 g",
"to_hit": -2
},
{
"id": "art_lamp",
"type": "GENERIC",
"name": { "str": "hollow, transparent cube" },
"description": "It is the only one of its kind.\nIt may have unknown powers; try activating them.",
"symbol": "[",
"volume": "1 L",
"weight": "80 g",
"to_hit": -2
},
{
"id": "art_snake",
"type": "GENERIC",
"name": { "str": "winding, flexible rod" },
"description": "It is the only one of its kind.\nIt may have unknown powers; try activating them.",
"symbol": "S",
"volume": "215 ml",
"weight": "300 g",
"longest_side": "65 cm",
"to_hit": 1,
"bashing": 5
},
{
"id": "art_disc",
"type": "GENERIC",
"name": { "str": "smooth disc" },
"description": "It is the only one of its kind.\nIt may have unknown powers; try activating them.",
"symbol": "O",
"volume": "340 ml",
"weight": "575 g",
"to_hit": -1,
"bashing": 3
},
{
"id": "art_beads",
"type": "GENERIC",
"name": { "str": "string of beads", "str_pl": "strings of beads" },
"description": "It is the only one of its kind.\nIt may have unknown powers; try activating them.",
"symbol": "O",
"volume": "76 ml",
"weight": "125 g",
"to_hit": -2
},
{
"id": "art_napkin",
"type": "GENERIC",
"name": { "str": "very thin sheet" },
"description": "It is the only one of its kind.\nIt may have unknown powers; try activating them.",
"symbol": "[",
"volume": "2 ml",
"weight": "1 g",
"to_hit": -3
},
{
"id": "art_urchin",
"type": "GENERIC",
"name": { "str": "spiked sphere" },
"description": "It is the only one of its kind.\nIt may have unknown powers; try activating them.",
"symbol": "O",
"volume": "1 L",
"weight": "800 g",
"to_hit": -2,
"cutting": 3
},
{
"id": "art_jelly",
"type": "GENERIC",
"name": { "str": "malleable blob" },
"description": "It is the only one of its kind.\nIt may have unknown powers; try activating them.",
"symbol": "O",
"volume": "1 L",
"weight": "800 g",
"to_hit": -1
},
{
"id": "art_spiral",
"type": "GENERIC",
"name": { "str": "spiraling rod" },
"description": "It is the only one of its kind.\nIt may have unknown powers; try activating them.",
"symbol": "@",
"volume": "3400 ml",
"weight": "300 g",
"longest_side": "30 cm",
"to_hit": -4,
"bashing": 4
},
{
"id": "art_pin",
"type": "GENERIC",
"name": { "str": "small pin" },
"description": "It is the only one of its kind.\nIt may have unknown powers; try activating them.",
"symbol": "|",
"volume": "1 ml",
"weight": "50 mg",
"longest_side": "2 cm",
"to_hit": -5,
"cutting": 1
},
{
"id": "art_tube",
"type": "GENERIC",
"name": { "str": "hollow tube" },
"description": "It is the only one of its kind.\nIt may have unknown powers; try activating them.",
"symbol": "|",
"volume": "188 ml",
"weight": "50 mg",
"longest_side": "15 cm",
"bashing": 3
},
{
"id": "art_pyramid",
"type": "GENERIC",
"name": { "str": "regular tetrahedron" },
"description": "It is the only one of its kind.\nIt may have unknown powers; try activating them.",
"symbol": "A",
"volume": "1 L",
"weight": "1 kg",
"to_hit": -1,
"bashing": 3
},
{
"id": "art_crystal",
"type": "GENERIC",
"name": { "str": "transluscent crystal" },
"description": "It is the only one of its kind.\nIt may have unknown powers; try activating them.",
"symbol": "A",
"volume": "500 ml",
"weight": "400 g",
"to_hit": -1,
"bashing": 3
},
{
"id": "art_knot",
"type": "GENERIC",
"name": { "str": "twisted, knotted cord" },
"description": "It is the only one of its kind.\nIt may have unknown powers; try activating them.",
"symbol": "b",
"volume": "400 ml",
"weight": "400 g",
"bashing": 2
},
{
"id": "art_crescent",
"type": "GENERIC",
"name": { "str": "crescent-shaped stone" },
"description": "It is the only one of its kind.\nIt may have unknown powers; try activating them.",
"symbol": "C",
"volume": "35 ml",
"weight": "50 g",
"to_hit": -2
}
]
-15
View File
@@ -1,15 +0,0 @@
[
{
"id": "architect_cube",
"type": "TOOL",
"name": { "str": "The Architect's Cube" },
"description": "This is a solid cube that is much heavier than its size suggests. When you look at it, it pulls your gaze inward until you fall through the sky, showing you a top-down view of your position with the surroundings revealed.",
"weight": "2 kg",
"volume": "100 ml",
"material": [ "iron" ],
"symbol": "]",
"relic_data": { "passive_effects": [ { "mutations": [ "DEBUG_CLAIRVOYANCE" ] } ] },
"color": "light_gray",
"flags": [ "TRADER_AVOID" ]
}
]
-837
View File
@@ -1,837 +0,0 @@
[
{
"type": "relic_procgen_data",
"id": "cult",
"charge_types": [
{
"weight": 100,
"charges": { "range": [ 0, 3 ], "power": 25 },
"charges_per_use": { "range": [ 1, 1 ], "power": 25 },
"max_charges": { "range": [ 1, 3 ], "power": 25 },
"recharge_type": "periodic",
"time": [ "3 h", "6 h" ]
}
],
"active_procgen_values": [
{ "weight": 100, "spell_id": "AEA_ADRENALINE", "base_power": 150 },
{ "weight": 100, "spell_id": "AEA_BLOOD", "base_power": 50 },
{ "weight": 100, "spell_id": "AEA_HEAL", "base_power": 250 },
{ "weight": 100, "spell_id": "AEA_CONFUSED", "base_power": 250 },
{ "weight": 100, "spell_id": "AEA_PAIN", "base_power": -150 },
{ "weight": 100, "spell_id": "AEA_TELEPORT", "base_power": 100 },
{ "weight": 100, "spell_id": "AEA_ATTENTION", "base_power": -50 },
{ "weight": 100, "spell_id": "AEA_TELEGLOW", "base_power": -50 },
{ "weight": 100, "spell_id": "AEA_VOMIT", "base_power": -50 },
{ "weight": 100, "spell_id": "AEA_SHADOWS", "base_power": 500 },
{ "weight": 100, "spell_id": "AEA_STAMINA_EMPTY", "base_power": -250 },
{ "weight": 100, "spell_id": "AEA_RADIATION", "base_power": -250 },
{ "weight": 100, "spell_id": "AEA_HURTALL", "base_power": -250 },
{ "weight": 100, "spell_id": "AEA_ACIDBALL", "base_power": 500 },
{ "weight": 100, "spell_id": "AEA_BUGS", "base_power": 250 },
{ "weight": 100, "spell_id": "AEA_NOISE", "base_power": 100 },
{ "weight": 100, "spell_id": "AEA_LIGHT", "base_power": 100 },
{ "weight": 100, "spell_id": "AEA_DIM", "base_power": 100 },
{ "weight": 100, "spell_id": "AEA_FATIGUE", "base_power": -100 },
{ "weight": 100, "spell_id": "AEA_FIREBALL", "base_power": 500 },
{ "weight": 100, "spell_id": "AEA_FLASH", "base_power": 250 },
{ "weight": 100, "spell_id": "AEA_PARALYZE", "base_power": -250 },
{ "weight": 100, "spell_id": "AEA_MAP", "base_power": 500 },
{ "weight": 100, "spell_id": "AEA_FIRESTORM", "base_power": 1000 },
{ "weight": 100, "spell_id": "AEA_FUN", "base_power": 100 },
{ "weight": 100, "spell_id": "AEA_MUTATE", "base_power": 150 },
{ "weight": 100, "spell_id": "AEA_STORM", "base_power": 1000 },
{ "weight": 100, "spell_id": "AEA_ENTRANCE", "base_power": 1000 },
{ "weight": 100, "spell_id": "AEA_SCREAM", "base_power": -150 },
{ "weight": 100, "spell_id": "AEA_PULSE", "base_power": 250 }
],
"passive_mult_procgen_values": [
{ "weight": 100, "min_value": -0.5, "max_value": 1, "type": "METABOLISM", "increment": 0.1, "power_per_increment": -50 },
{
"weight": 100,
"min_value": -0.5,
"max_value": 1,
"type": "THIRST",
"increment": 0.1,
"power_per_increment": -50
},
{
"weight": 100,
"min_value": -0.5,
"max_value": 1,
"type": "CARRY_WEIGHT",
"increment": 0.1,
"power_per_increment": 250
},
{
"weight": 100,
"min_value": -0.5,
"max_value": 2,
"type": "MAX_HP",
"increment": 0.1,
"power_per_increment": 250
},
{
"weight": 100,
"min_value": -0.5,
"max_value": 2,
"type": "REGEN_HP",
"increment": 0.1,
"power_per_increment": 250
},
{
"weight": 100,
"min_value": -0.5,
"max_value": 2,
"type": "SHOUT_NOISE",
"increment": 0.2,
"power_per_increment": 100
},
{
"weight": 100,
"min_value": -0.2,
"max_value": 1,
"type": "ARMOR_ACID",
"increment": 0.1,
"power_per_increment": -500
},
{
"weight": 100,
"min_value": -0.2,
"max_value": 1,
"type": "ARMOR_BASH",
"increment": 0.1,
"power_per_increment": -500
},
{
"weight": 100,
"min_value": -0.2,
"max_value": 1,
"type": "ARMOR_BIO",
"increment": 0.1,
"power_per_increment": -500
},
{
"weight": 100,
"min_value": -0.2,
"max_value": 1,
"type": "ARMOR_COLD",
"increment": 0.1,
"power_per_increment": -500
},
{
"weight": 100,
"min_value": -0.2,
"max_value": 1,
"type": "ARMOR_CUT",
"increment": 0.1,
"power_per_increment": -500
},
{
"weight": 100,
"min_value": -0.2,
"max_value": 1,
"type": "ARMOR_ELEC",
"increment": 0.1,
"power_per_increment": -500
},
{
"weight": 100,
"min_value": -0.2,
"max_value": 1,
"type": "ARMOR_HEAT",
"increment": 0.1,
"power_per_increment": -500
},
{
"weight": 100,
"min_value": -0.2,
"max_value": 1,
"type": "ARMOR_STAB",
"increment": 0.1,
"power_per_increment": -500
},
{
"weight": 100,
"min_value": -0.2,
"max_value": 1,
"type": "ARMOR_BULLET",
"increment": 0.1,
"power_per_increment": -500
},
{
"weight": 100,
"min_value": -0.5,
"max_value": 0.5,
"type": "ATTACK_SPEED",
"increment": 0.1,
"power_per_increment": 500
}
],
"passive_add_procgen_values": [
{ "weight": 100, "min_value": -3, "max_value": 4, "type": "STRENGTH", "increment": 1, "power_per_increment": 250 },
{
"weight": 100,
"min_value": -3,
"max_value": 4,
"type": "DEXTERITY",
"increment": 1,
"power_per_increment": 250
},
{
"weight": 100,
"min_value": -3,
"max_value": 4,
"type": "PERCEPTION",
"increment": 1,
"power_per_increment": 250
},
{
"weight": 100,
"min_value": -3,
"max_value": 4,
"type": "INTELLIGENCE",
"increment": 1,
"power_per_increment": 250
},
{
"weight": 100,
"min_value": -20,
"max_value": 20,
"type": "SPEED",
"increment": 5,
"power_per_increment": 200
},
{
"weight": 50,
"min_value": -50,
"max_value": 20,
"type": "ATTACK_SPEED",
"increment": 5,
"power_per_increment": 250
},
{
"weight": 50,
"min_value": -50,
"max_value": 20,
"type": "MOVE_COST",
"increment": 5,
"power_per_increment": -250
},
{
"weight": 50,
"min_value": -2500,
"max_value": 10000,
"type": "MAX_STAMINA",
"increment": 250,
"power_per_increment": 125
},
{
"weight": 50,
"min_value": -20000,
"max_value": 20000,
"type": "CARRY_WEIGHT",
"increment": 1000,
"power_per_increment": 250
}
],
"type_weights": [
{ "weight": 100, "value": "passive_enchantment_add" },
{ "weight": 100, "value": "active_enchantment" },
{ "weight": 20, "value": "passive_enchantment_mult" }
],
"items": [
{ "weight": 100, "item": "art_sphere" },
{ "weight": 100, "item": "art_rod" },
{ "weight": 100, "item": "art_teardrop" },
{ "weight": 100, "item": "art_lamp" },
{ "weight": 100, "item": "art_snake" },
{ "weight": 100, "item": "art_disc" },
{ "weight": 100, "item": "art_beads" },
{ "weight": 100, "item": "art_napkin" },
{ "weight": 100, "item": "art_urchin" },
{ "weight": 100, "item": "art_jelly" },
{ "weight": 100, "item": "art_spiral" },
{ "weight": 100, "item": "art_pin" },
{ "weight": 100, "item": "art_tube" },
{ "weight": 100, "item": "art_pyramid" },
{ "weight": 100, "item": "art_crystal" },
{ "weight": 100, "item": "art_knot" },
{ "weight": 100, "item": "art_crescent" }
]
},
{
"type": "relic_procgen_data",
"id": "netherum_tunnels",
"charge_types": [
{
"weight": 100,
"charges": { "range": [ 0, 3 ], "power": 25 },
"charges_per_use": { "range": [ 1, 1 ], "power": 25 },
"max_charges": { "range": [ 1, 3 ], "power": 25 },
"recharge_type": "periodic",
"time": [ "3 h", "6 h" ]
}
],
"active_procgen_values": [
{ "weight": 100, "spell_id": "AEA_ADRENALINE", "base_power": 150 },
{ "weight": 100, "spell_id": "AEA_BLOOD", "base_power": 50 },
{ "weight": 100, "spell_id": "AEA_HEAL", "base_power": 250 },
{ "weight": 100, "spell_id": "AEA_CONFUSED", "base_power": 250 },
{ "weight": 100, "spell_id": "AEA_PAIN", "base_power": -150 },
{ "weight": 100, "spell_id": "AEA_TELEPORT", "base_power": 100 },
{ "weight": 100, "spell_id": "AEA_ATTENTION", "base_power": -50 },
{ "weight": 100, "spell_id": "AEA_TELEGLOW", "base_power": -50 },
{ "weight": 100, "spell_id": "AEA_VOMIT", "base_power": -50 },
{ "weight": 100, "spell_id": "AEA_SHADOWS", "base_power": 500 },
{ "weight": 100, "spell_id": "AEA_STAMINA_EMPTY", "base_power": -250 },
{ "weight": 100, "spell_id": "AEA_RADIATION", "base_power": -250 },
{ "weight": 100, "spell_id": "AEA_HURTALL", "base_power": -250 },
{ "weight": 100, "spell_id": "AEA_ACIDBALL", "base_power": 500 },
{ "weight": 100, "spell_id": "AEA_BUGS", "base_power": 250 },
{ "weight": 100, "spell_id": "AEA_NOISE", "base_power": 100 },
{ "weight": 100, "spell_id": "AEA_LIGHT", "base_power": 100 },
{ "weight": 100, "spell_id": "AEA_DIM", "base_power": 100 },
{ "weight": 100, "spell_id": "AEA_FATIGUE", "base_power": -100 },
{ "weight": 100, "spell_id": "AEA_FIREBALL", "base_power": 500 },
{ "weight": 100, "spell_id": "AEA_FLASH", "base_power": 250 },
{ "weight": 100, "spell_id": "AEA_PARALYZE", "base_power": -250 },
{ "weight": 100, "spell_id": "AEA_MAP", "base_power": 500 },
{ "weight": 100, "spell_id": "AEA_FIRESTORM", "base_power": 1000 },
{ "weight": 100, "spell_id": "AEA_FUN", "base_power": 100 },
{ "weight": 100, "spell_id": "AEA_MUTATE", "base_power": 150 },
{ "weight": 100, "spell_id": "AEA_STORM", "base_power": 1000 },
{ "weight": 100, "spell_id": "AEA_ENTRANCE", "base_power": 1000 },
{ "weight": 100, "spell_id": "AEA_SCREAM", "base_power": -150 },
{ "weight": 100, "spell_id": "AEA_PULSE", "base_power": 250 }
],
"passive_mult_procgen_values": [
{ "weight": 100, "min_value": -0.5, "max_value": 1, "type": "METABOLISM", "increment": 0.1, "power_per_increment": -50 },
{
"weight": 100,
"min_value": -0.5,
"max_value": 1,
"type": "THIRST",
"increment": 0.1,
"power_per_increment": -50
},
{
"weight": 100,
"min_value": -0.5,
"max_value": 1,
"type": "CARRY_WEIGHT",
"increment": 0.1,
"power_per_increment": 250
},
{
"weight": 100,
"min_value": -0.5,
"max_value": 2,
"type": "MAX_HP",
"increment": 0.1,
"power_per_increment": 250
},
{
"weight": 100,
"min_value": -0.5,
"max_value": 2,
"type": "REGEN_HP",
"increment": 0.1,
"power_per_increment": 250
},
{
"weight": 100,
"min_value": -0.5,
"max_value": 2,
"type": "SHOUT_NOISE",
"increment": 0.2,
"power_per_increment": 100
},
{
"weight": 100,
"min_value": -0.2,
"max_value": 1,
"type": "ARMOR_ACID",
"increment": 0.1,
"power_per_increment": -500
},
{
"weight": 100,
"min_value": -0.2,
"max_value": 1,
"type": "ARMOR_BASH",
"increment": 0.1,
"power_per_increment": -500
},
{
"weight": 100,
"min_value": -0.2,
"max_value": 1,
"type": "ARMOR_BIO",
"increment": 0.1,
"power_per_increment": -500
},
{
"weight": 100,
"min_value": -0.2,
"max_value": 1,
"type": "ARMOR_COLD",
"increment": 0.1,
"power_per_increment": -500
},
{
"weight": 100,
"min_value": -0.2,
"max_value": 1,
"type": "ARMOR_CUT",
"increment": 0.1,
"power_per_increment": -500
},
{
"weight": 100,
"min_value": -0.2,
"max_value": 1,
"type": "ARMOR_ELEC",
"increment": 0.1,
"power_per_increment": -500
},
{
"weight": 100,
"min_value": -0.2,
"max_value": 1,
"type": "ARMOR_HEAT",
"increment": 0.1,
"power_per_increment": -500
},
{
"weight": 100,
"min_value": -0.2,
"max_value": 1,
"type": "ARMOR_STAB",
"increment": 0.1,
"power_per_increment": -500
},
{
"weight": 100,
"min_value": -0.2,
"max_value": 1,
"type": "ARMOR_BULLET",
"increment": 0.1,
"power_per_increment": -500
},
{
"weight": 100,
"min_value": -0.5,
"max_value": 0.5,
"type": "ATTACK_SPEED",
"increment": 0.1,
"power_per_increment": 500
}
],
"passive_add_procgen_values": [
{ "weight": 100, "min_value": -3, "max_value": 4, "type": "STRENGTH", "increment": 1, "power_per_increment": 250 },
{
"weight": 100,
"min_value": -3,
"max_value": 4,
"type": "DEXTERITY",
"increment": 1,
"power_per_increment": 250
},
{
"weight": 100,
"min_value": -3,
"max_value": 4,
"type": "PERCEPTION",
"increment": 1,
"power_per_increment": 250
},
{
"weight": 100,
"min_value": -3,
"max_value": 4,
"type": "INTELLIGENCE",
"increment": 1,
"power_per_increment": 250
},
{
"weight": 100,
"min_value": -20,
"max_value": 20,
"type": "SPEED",
"increment": 5,
"power_per_increment": 200
},
{
"weight": 50,
"min_value": -50,
"max_value": 20,
"type": "ATTACK_SPEED",
"increment": 5,
"power_per_increment": 250
},
{
"weight": 50,
"min_value": -50,
"max_value": 20,
"type": "MOVE_COST",
"increment": 5,
"power_per_increment": -250
},
{
"weight": 50,
"min_value": -2500,
"max_value": 10000,
"type": "MAX_STAMINA",
"increment": 250,
"power_per_increment": 125
},
{
"weight": 50,
"min_value": -20000,
"max_value": 20000,
"type": "CARRY_WEIGHT",
"increment": 1000,
"power_per_increment": 250
}
],
"type_weights": [
{ "weight": 100, "value": "passive_enchantment_add" },
{ "weight": 100, "value": "active_enchantment" },
{ "weight": 20, "value": "passive_enchantment_mult" }
],
"items": [
{ "weight": 100, "item": "art_sphere" },
{ "weight": 100, "item": "art_rod" },
{ "weight": 100, "item": "art_teardrop" },
{ "weight": 100, "item": "art_lamp" },
{ "weight": 100, "item": "art_snake" },
{ "weight": 100, "item": "art_disc" },
{ "weight": 100, "item": "art_beads" },
{ "weight": 100, "item": "art_napkin" },
{ "weight": 100, "item": "art_urchin" },
{ "weight": 100, "item": "art_jelly" },
{ "weight": 100, "item": "art_spiral" },
{ "weight": 100, "item": "art_pin" },
{ "weight": 100, "item": "art_tube" },
{ "weight": 100, "item": "art_pyramid" },
{ "weight": 100, "item": "art_crystal" },
{ "weight": 100, "item": "art_knot" },
{ "weight": 100, "item": "art_crescent" }
]
},
{
"type": "relic_procgen_data",
"id": "alien_reality",
"charge_types": [
{
"weight": 100,
"charges": { "range": [ 0, 3 ], "power": 25 },
"charges_per_use": { "range": [ 1, 1 ], "power": 25 },
"max_charges": { "range": [ 1, 3 ], "power": 25 },
"recharge_type": "periodic",
"time": [ "3 h", "6 h" ]
}
],
"active_procgen_values": [
{ "weight": 100, "spell_id": "AEA_ADRENALINE", "base_power": 150 },
{ "weight": 100, "spell_id": "AEA_BLOOD", "base_power": 50 },
{ "weight": 100, "spell_id": "AEA_HEAL", "base_power": 250 },
{ "weight": 100, "spell_id": "AEA_CONFUSED", "base_power": 250 },
{ "weight": 100, "spell_id": "AEA_PAIN", "base_power": -150 },
{ "weight": 100, "spell_id": "AEA_TELEPORT", "base_power": 100 },
{ "weight": 100, "spell_id": "AEA_ATTENTION", "base_power": -50 },
{ "weight": 100, "spell_id": "AEA_TELEGLOW", "base_power": -50 },
{ "weight": 100, "spell_id": "AEA_VOMIT", "base_power": -50 },
{ "weight": 100, "spell_id": "AEA_SHADOWS", "base_power": 500 },
{ "weight": 100, "spell_id": "AEA_STAMINA_EMPTY", "base_power": -250 },
{ "weight": 100, "spell_id": "AEA_RADIATION", "base_power": -250 },
{ "weight": 100, "spell_id": "AEA_HURTALL", "base_power": -250 },
{ "weight": 100, "spell_id": "AEA_ACIDBALL", "base_power": 500 },
{ "weight": 100, "spell_id": "AEA_BUGS", "base_power": 250 },
{ "weight": 100, "spell_id": "AEA_NOISE", "base_power": 100 },
{ "weight": 100, "spell_id": "AEA_LIGHT", "base_power": 100 },
{ "weight": 100, "spell_id": "AEA_DIM", "base_power": 100 },
{ "weight": 100, "spell_id": "AEA_FATIGUE", "base_power": -100 },
{ "weight": 100, "spell_id": "AEA_FIREBALL", "base_power": 500 },
{ "weight": 100, "spell_id": "AEA_FLASH", "base_power": 250 },
{ "weight": 100, "spell_id": "AEA_PARALYZE", "base_power": -250 },
{ "weight": 100, "spell_id": "AEA_MAP", "base_power": 500 },
{ "weight": 100, "spell_id": "AEA_FIRESTORM", "base_power": 1000 },
{ "weight": 100, "spell_id": "AEA_FUN", "base_power": 100 },
{ "weight": 100, "spell_id": "AEA_MUTATE", "base_power": 150 },
{ "weight": 100, "spell_id": "AEA_STORM", "base_power": 1000 },
{ "weight": 100, "spell_id": "AEA_ENTRANCE", "base_power": 1000 },
{ "weight": 100, "spell_id": "AEA_SCREAM", "base_power": -150 },
{ "weight": 100, "spell_id": "AEA_PULSE", "base_power": 250 }
],
"passive_mult_procgen_values": [
{ "weight": 100, "min_value": -0.5, "max_value": 1, "type": "METABOLISM", "increment": 0.1, "power_per_increment": -50 },
{
"weight": 100,
"min_value": -0.5,
"max_value": 1,
"type": "THIRST",
"increment": 0.1,
"power_per_increment": -50
},
{
"weight": 100,
"min_value": -0.5,
"max_value": 1,
"type": "CARRY_WEIGHT",
"increment": 0.1,
"power_per_increment": 250
},
{
"weight": 100,
"min_value": -0.5,
"max_value": 2,
"type": "MAX_HP",
"increment": 0.1,
"power_per_increment": 250
},
{
"weight": 100,
"min_value": -0.5,
"max_value": 2,
"type": "REGEN_HP",
"increment": 0.1,
"power_per_increment": 250
},
{
"weight": 100,
"min_value": -0.5,
"max_value": 2,
"type": "SHOUT_NOISE",
"increment": 0.2,
"power_per_increment": 100
},
{
"weight": 100,
"min_value": -0.2,
"max_value": 1,
"type": "ARMOR_ACID",
"increment": 0.1,
"power_per_increment": -500
},
{
"weight": 100,
"min_value": -0.2,
"max_value": 1,
"type": "ARMOR_BASH",
"increment": 0.1,
"power_per_increment": -500
},
{
"weight": 100,
"min_value": -0.2,
"max_value": 1,
"type": "ARMOR_BIO",
"increment": 0.1,
"power_per_increment": -500
},
{
"weight": 100,
"min_value": -0.2,
"max_value": 1,
"type": "ARMOR_COLD",
"increment": 0.1,
"power_per_increment": -500
},
{
"weight": 100,
"min_value": -0.2,
"max_value": 1,
"type": "ARMOR_CUT",
"increment": 0.1,
"power_per_increment": -500
},
{
"weight": 100,
"min_value": -0.2,
"max_value": 1,
"type": "ARMOR_ELEC",
"increment": 0.1,
"power_per_increment": -500
},
{
"weight": 100,
"min_value": -0.2,
"max_value": 1,
"type": "ARMOR_HEAT",
"increment": 0.1,
"power_per_increment": -500
},
{
"weight": 100,
"min_value": -0.2,
"max_value": 1,
"type": "ARMOR_STAB",
"increment": 0.1,
"power_per_increment": -500
},
{
"weight": 100,
"min_value": -0.2,
"max_value": 1,
"type": "ARMOR_BULLET",
"increment": 0.1,
"power_per_increment": -500
},
{
"weight": 100,
"min_value": -0.5,
"max_value": 0.5,
"type": "ATTACK_SPEED",
"increment": 0.1,
"power_per_increment": 500
}
],
"passive_add_procgen_values": [
{ "weight": 100, "min_value": -3, "max_value": 4, "type": "STRENGTH", "increment": 1, "power_per_increment": 250 },
{
"weight": 100,
"min_value": -3,
"max_value": 4,
"type": "DEXTERITY",
"increment": 1,
"power_per_increment": 250
},
{
"weight": 100,
"min_value": -3,
"max_value": 4,
"type": "PERCEPTION",
"increment": 1,
"power_per_increment": 250
},
{
"weight": 100,
"min_value": -3,
"max_value": 4,
"type": "INTELLIGENCE",
"increment": 1,
"power_per_increment": 250
},
{
"weight": 100,
"min_value": -20,
"max_value": 20,
"type": "SPEED",
"increment": 5,
"power_per_increment": 200
},
{
"weight": 50,
"min_value": -50,
"max_value": 20,
"type": "ATTACK_SPEED",
"increment": 5,
"power_per_increment": 250
},
{
"weight": 50,
"min_value": -50,
"max_value": 20,
"type": "MOVE_COST",
"increment": 5,
"power_per_increment": -250
},
{
"weight": 50,
"min_value": -2500,
"max_value": 10000,
"type": "MAX_STAMINA",
"increment": 250,
"power_per_increment": 125
},
{
"weight": 50,
"min_value": -20000,
"max_value": 20000,
"type": "CARRY_WEIGHT",
"increment": 1000,
"power_per_increment": 250
}
],
"type_weights": [
{ "weight": 100, "value": "passive_enchantment_add" },
{ "weight": 100, "value": "active_enchantment" },
{ "weight": 20, "value": "passive_enchantment_mult" }
],
"items": [
{ "weight": 100, "item": "art_sphere" },
{ "weight": 100, "item": "art_rod" },
{ "weight": 100, "item": "art_teardrop" },
{ "weight": 100, "item": "art_lamp" },
{ "weight": 100, "item": "art_snake" },
{ "weight": 100, "item": "art_disc" },
{ "weight": 100, "item": "art_beads" },
{ "weight": 100, "item": "art_napkin" },
{ "weight": 100, "item": "art_urchin" },
{ "weight": 100, "item": "art_jelly" },
{ "weight": 100, "item": "art_spiral" },
{ "weight": 100, "item": "art_pin" },
{ "weight": 100, "item": "art_tube" },
{ "weight": 100, "item": "art_pyramid" },
{ "weight": 100, "item": "art_crystal" },
{ "weight": 100, "item": "art_knot" },
{ "weight": 100, "item": "art_crescent" }
]
},
{
"type": "relic_procgen_data",
"id": "altered_object",
"charge_types": [
{
"weight": 100,
"charges": { "range": [ 0, 5 ], "power": 25 },
"charges_per_use": { "range": [ 1, 1 ], "power": 25 },
"max_charges": { "range": [ 1, 5 ], "power": 25 },
"recharge_type": "periodic",
"time": [ "20 m", "2 h" ]
}
],
"active_procgen_values": [
{ "weight": 100, "spell_id": "AO_FRIENDLY_VORTEX", "base_power": 250 },
{ "weight": 100, "spell_id": "AO_CALL_OF_TINDALOS", "base_power": -500 },
{ "weight": 100, "spell_id": "AO_FORCE_PULL", "base_power": 250 },
{ "weight": 100, "spell_id": "AO_TELEPORTITIS", "base_power": -500 },
{ "weight": 100, "spell_id": "AO_SLOW", "base_power": -150 },
{ "weight": 100, "spell_id": "AO_TIME_STOP", "base_power": 1000 },
{ "weight": 100, "spell_id": "AO_DARKNESS_EFFECT", "base_power": -50 },
{ "weight": 100, "spell_id": "AO_LIFE_DRAIN", "base_power": -150 },
{ "weight": 100, "spell_id": "AEA_ATTENTION", "base_power": -50 },
{ "weight": 100, "spell_id": "AEA_FLASH", "base_power": 250 },
{ "weight": 100, "spell_id": "AEA_HEAL", "base_power": 250 },
{ "weight": 100, "spell_id": "AEA_FATIGUE", "base_power": -100 },
{ "weight": 100, "spell_id": "AEA_PAIN", "base_power": -150 },
{ "weight": 100, "spell_id": "AEA_SHADOWS", "base_power": 500 },
{ "weight": 100, "spell_id": "AEA_LIGHT", "base_power": 100 },
{ "weight": 100, "spell_id": "AEA_DIM", "base_power": 100 },
{ "weight": 100, "spell_id": "AEA_SCREAM", "base_power": -50 },
{ "weight": 100, "spell_id": "AEA_PULSE", "base_power": 250 }
],
"passive_add_procgen_values": [
{ "weight": 100, "min_value": -20, "max_value": 20, "type": "SPEED", "increment": 5, "power_per_increment": 200 },
{
"weight": 50,
"min_value": -50,
"max_value": 20,
"type": "ATTACK_SPEED",
"increment": 5,
"power_per_increment": 250
}
],
"type_weights": [ { "weight": 10, "value": "passive_enchantment_add" }, { "weight": 100, "value": "active_enchantment" } ],
"items": [
{ "weight": 20, "item": "violin_golden" },
{ "weight": 100, "item": "altered_phone" },
{ "weight": 100, "item": "altered_stopwatch" },
{ "weight": 100, "item": "altered_teapot" },
{ "weight": 100, "item": "altered_comb" },
{ "weight": 100, "item": "altered_keyring" },
{ "weight": 100, "item": "altered_rubicks_cube" }
]
}
]
File diff suppressed because it is too large Load Diff

Some files were not shown because too many files have changed in this diff Show More