Skip to content

Commit 693137c

Browse files
authored
update (#39)
- [x] test for 1130 and 1170 - [x] fix xp - [x] fall damage perk - [x] translation replacement
2 parents bd4a0c2 + 843db47 commit 693137c

32 files changed

Lines changed: 470 additions & 138 deletions

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,4 +391,5 @@ FodyWeavers.xsd
391391
out/
392392
build/
393393
swf/gfx/
394+
venv/
394395

.gitmodules

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,7 @@
55
path = extern/hint_button_menu
66
url = https://github.com/mlthelama/hint_button_menu.git
77
branch = main
8+
[submodule "extern/CommonLibSSE-NG"]
9+
path = extern/CommonLibSSE-NG
10+
url = https://github.com/mlthelama/CommonLibSSE.git
11+
branch = ng

CMakeLists.txt

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
cmake_minimum_required(VERSION 3.25)
22

33
set(NAME "SkyrimCharacterSheet")
4-
set(VERSION 1.1.1.0)
4+
set(VERSION 1.1.2.0)
55

66
# ---- Options ----
77

@@ -85,10 +85,17 @@ set(Boost_USE_STATIC_LIBS ON)
8585

8686
# ---- Dependencies ----
8787

88-
find_package(CommonLibSSE CONFIG REQUIRED)
88+
#find_package(CommonLibSSE CONFIG REQUIRED)
8989
find_package(spdlog REQUIRED CONFIG)
9090
find_package(nlohmann_json CONFIG REQUIRED)
9191
find_package(magic_enum CONFIG REQUIRED)
92+
find_package(unordered_dense CONFIG REQUIRED)
93+
94+
find_path(CLIB_UTIL_INCLUDE_DIRS "ClibUtil/utils.hpp")
95+
96+
set(CommonLibPath "extern/CommonLibSSE-NG")
97+
set(CommonLibName "CommonLibSSE")
98+
set(GameVersion "Skyrim")
9299

93100
# ---- Add source files ----
94101

@@ -131,14 +138,18 @@ add_library(
131138
target_compile_features(
132139
${PROJECT_NAME}
133140
PRIVATE
134-
cxx_std_20
141+
cxx_std_23
135142
)
136143

144+
add_subdirectory(${CommonLibPath} ${CommonLibName} EXCLUDE_FROM_ALL)
145+
146+
137147
target_include_directories(
138148
${PROJECT_NAME}
139149
PRIVATE
140150
${CMAKE_CURRENT_BINARY_DIR}/include
141151
${CMAKE_CURRENT_SOURCE_DIR}/src
152+
${CLIB_UTIL_INCLUDE_DIRS}
142153
)
143154

144155
target_link_libraries(
@@ -148,6 +159,7 @@ target_link_libraries(
148159
CommonLibSSE::CommonLibSSE
149160
nlohmann_json::nlohmann_json
150161
magic_enum::magic_enum
162+
unordered_dense::unordered_dense
151163
)
152164

153165
if (MSVC)

CMakePresets.json

Lines changed: 70 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -1,68 +1,75 @@
11
{
2-
"configurePresets": [{
3-
"binaryDir": "${sourceDir}/build",
4-
"cacheVariables": {
5-
"CMAKE_BUILD_TYPE": {
6-
"type": "STRING",
7-
"value": "Release"
8-
}
9-
},
10-
"errors": {
11-
"deprecated": true
12-
},
13-
"hidden": true,
14-
"name": "cmake-dev",
15-
"warnings": {
16-
"deprecated": true,
17-
"dev": true
18-
}
19-
},
20-
{
21-
"cacheVariables": {
22-
"CMAKE_TOOLCHAIN_FILE": {
23-
"type": "STRING",
24-
"value": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake"
25-
}
26-
},
27-
"hidden": true,
28-
"name": "vcpkg"
2+
"configurePresets": [
3+
{
4+
"binaryDir": "${sourceDir}/build",
5+
"cacheVariables": {
6+
"CMAKE_BUILD_TYPE": {
7+
"type": "STRING",
8+
"value": "Release"
9+
}
10+
},
11+
"errors": {
12+
"deprecated": true
13+
},
14+
"hidden": true,
15+
"name": "cmake-dev",
16+
"warnings": {
17+
"deprecated": true,
18+
"dev": true
19+
}
20+
},
21+
{
22+
"cacheVariables": {
23+
"CMAKE_TOOLCHAIN_FILE": {
24+
"type": "STRING",
25+
"value": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake"
2926
},
30-
{
31-
"cacheVariables": {
32-
"CMAKE_MSVC_RUNTIME_LIBRARY": {
33-
"type": "STRING",
34-
"value": "MultiThreaded$<$<CONFIG:Debug>:Debug>DLL"
35-
},
36-
"VCPKG_TARGET_TRIPLET": {
37-
"type": "STRING",
38-
"value": "x64-windows-static-md"
39-
}
40-
},
41-
"hidden": true,
42-
"name": "windows"
27+
"VCPKG_OVERLAY_PORTS": {
28+
"type": "STRING",
29+
"value": "${sourceDir}/cmake/ports/"
30+
}
31+
},
32+
"hidden": true,
33+
"name": "vcpkg"
34+
},
35+
{
36+
"cacheVariables": {
37+
"CMAKE_MSVC_RUNTIME_LIBRARY": {
38+
"type": "STRING",
39+
"value": "MultiThreaded$<$<CONFIG:Debug>:Debug>DLL"
4340
},
44-
{
45-
"architecture": {
46-
"strategy": "set",
47-
"value": "x64"
48-
},
49-
"cacheVariables": {
50-
"CMAKE_CXX_FLAGS": "/EHsc /MP /W4 /WX"
51-
},
52-
"generator": "Visual Studio 17 2022",
53-
"inherits": [
54-
"cmake-dev",
55-
"vcpkg",
56-
"windows"
57-
],
58-
"name": "vs2022-windows",
59-
"toolset": "v143"
41+
"VCPKG_TARGET_TRIPLET": {
42+
"type": "STRING",
43+
"value": "x64-windows-static-md"
6044
}
61-
],
62-
"buildPresets": [{
63-
"name": "vs2022-windows",
64-
"configurePreset": "vs2022-windows",
65-
"configuration": "Release"
66-
}],
67-
"version": 3
45+
},
46+
"hidden": true,
47+
"name": "windows"
48+
},
49+
{
50+
"architecture": {
51+
"strategy": "set",
52+
"value": "x64"
53+
},
54+
"cacheVariables": {
55+
"CMAKE_CXX_FLAGS": "/EHsc /MP /W4 /WX"
56+
},
57+
"generator": "Visual Studio 17 2022",
58+
"inherits": [
59+
"cmake-dev",
60+
"vcpkg",
61+
"windows"
62+
],
63+
"name": "vs2022-windows",
64+
"toolset": "v143"
65+
}
66+
],
67+
"buildPresets": [
68+
{
69+
"name": "vs2022-windows",
70+
"configurePreset": "vs2022-windows",
71+
"configuration": "Release"
72+
}
73+
],
74+
"version": 3
6875
}

README.md

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Skyrim Character Sheet
22
![Platform](https://img.shields.io/static/v1?label=platform&message=windows&color=dimgray&style=for-the-badge&logo=windows)
3-
![GitHub release (latest by date)](https://img.shields.io/github/v/release/mlthelama/SkyrimCharacterSheet?style=for-the-badge)
3+
![GitHub release (latest by date)](https://img.shields.io/github/v/release/mlthelama/SkyrimCharacterSheet?style=for-the-badge&include_prereleases)
44
![GitHub](https://img.shields.io/github/license/mlthelama/SkyrimCharacterSheet?style=for-the-badge)
55
![GitHub top language](https://img.shields.io/github/languages/top/mlthelama/SkyrimCharacterSheet?style=for-the-badge)
66
![GitHub language count](https://img.shields.io/github/languages/count/mlthelama/SkyrimCharacterSheet?style=for-the-badge)
@@ -13,11 +13,11 @@
1313
## End User Dependencies
1414
* [SKSE64](https://skse.silverlock.org/)
1515
* [Address Library for SKSE Plugins](https://www.nexusmods.com/skyrimspecialedition/mods/32444)
16-
* [Scaleform Translation Plus Plus](https://www.nexusmods.com/skyrimspecialedition/mods/22603)
17-
* [Icons for Skyrim Character Sheet](https://www.nexusmods.com/skyrimspecialedition/mods/71282)
1816

1917
## Build Dependencies
20-
* [CommonLibSSE NG](https://github.com/CharmedBaryon/CommonLibSSE-NG)
18+
* [CommonLibSSE NG](https://github.com/mlthelama/CommonLibSSE/tree/ng)
19+
- currently a [fork from](https://github.com/alandtse/CommonLibVR/tree/ng) with minor changes
20+
- added as [submodule](extern/CommonLibSSE-NG)
2121
* [spdlog](https://github.com/gabime/spdlog)
2222
* [nlohmann-json](https://github.com/nlohmann/json)
2323
* [tomlplusplus](https://github.com/marzer/tomlplusplus)
@@ -28,6 +28,16 @@
2828
* [cmake](https://cmake.org)
2929
- installed dir needs to be added to the `PATH` environment variable
3030
- Version `3.25`
31+
* [clib-util](https://github.com/powerof3/CLibUtil)
32+
- added as vcpkg [port](cmake/ports/clib-util)
33+
* [unordered-dense](https://github.com/martinus/unordered_dense)
34+
- added as vcpkg [port](cmake/ports/unordered-dense)
35+
36+
## Release Dependencies
37+
* [hint_button_menu](https://github.com/mlthelama/hint_button_menu)
38+
- needed [file](extern/hint_button_menu/bin/hint_button_menu.swf)
39+
* [skyui](https://github.com/mlthelama/skyui)
40+
- needed [file](extern/skyui/swf/icons_item_psychosteve_merged.swf)
3141

3242
## Building
3343
```
@@ -37,3 +47,12 @@ cd SkyrimCharacterSheet
3747
cmake --preset vs2022-windows
3848
cmake --build --preset vs2022-windows --config Release
3949
```
50+
51+
## Manual Release
52+
```
53+
cd SkyrimCharacterSheet
54+
55+
./scripts/run.sh
56+
or
57+
.\scripts\run.sh
58+
```

cmake/Version.h.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ namespace Version
99
inline constexpr auto NAME = "@PROJECT_VERSION@";
1010
inline constexpr auto PROJECT = "@PROJECT_NAME@";
1111
inline constexpr auto AUTHOR = "mlthelama";
12+
inline constexpr auto EMAIL = "mlthelama [at] gmail [dot] com";
1213

1314
inline constexpr std::uint32_t ASINT =
1415
(static_cast<std::uint32_t>((MAJOR * 1000000) + (MINOR * 10000) + (PATCH * 100) + (BETA)));
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# header-only library
2+
vcpkg_from_github(
3+
OUT_SOURCE_PATH SOURCE_PATH
4+
REPO powerof3/CLibUtil
5+
REF a801992250ee8c6178159cc73ce3354a742be6b4
6+
SHA512 3eb37eb0958bf5cf01c8cd80f673b5ab60c562757d76024937fde529b82938481ad8d6fa30d6ca21d5ef93ab8a2d92e7ad093ddc242fb2462aa234689efd31eb
7+
HEAD_REF master
8+
)
9+
10+
# Install codes
11+
set(CLIBUTIL_SOURCE ${SOURCE_PATH}/include/ClibUtil)
12+
file(INSTALL ${CLIBUTIL_SOURCE} DESTINATION ${CURRENT_PACKAGES_DIR}/include)
13+
14+
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")

cmake/ports/clib-util/vcpkg.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"name": "clib-util",
3+
"version-string": "1.3.5",
4+
"port-version": 1,
5+
"description": "",
6+
"homepage": "https://github.com/powerof3/CLibUtil"
7+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
vcpkg_from_github(
2+
OUT_SOURCE_PATH SOURCE_PATH
3+
REPO martinus/unordered_dense
4+
REF a570a0e87f95027e8544c72295236df5d84c3dcc
5+
SHA512 3f06daf92b68ef7e1ec0c7bbd7070aac8d0bf7ce57bfc6408770ab001f4c3c5efe084b01405a65d6b9e3d99eb0f16c95dd6c5dfc88387d246552f850a9ec6cad
6+
HEAD_REF main
7+
)
8+
9+
vcpkg_cmake_configure(
10+
SOURCE_PATH "${SOURCE_PATH}"
11+
)
12+
13+
vcpkg_cmake_install()
14+
vcpkg_cmake_config_fixup(
15+
PACKAGE_NAME unordered_dense
16+
CONFIG_PATH lib/cmake/unordered_dense
17+
)
18+
19+
file(REMOVE_RECURSE
20+
"${CURRENT_PACKAGES_DIR}/debug"
21+
"${CURRENT_PACKAGES_DIR}/lib"
22+
)
23+
24+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"name": "unordered-dense",
3+
"version-string": "4.1.0",
4+
"port-version": 1,
5+
"description": "",
6+
"homepage": "https://github.com/martinus/unordered_dense",
7+
"dependencies": [
8+
{
9+
"name": "vcpkg-cmake",
10+
"host": true
11+
},
12+
{
13+
"name": "vcpkg-cmake-config",
14+
"host": true
15+
}
16+
]
17+
}

0 commit comments

Comments
 (0)