Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
cmake_minimum_required(VERSION 3.14)
project(PhiveConverter CXX)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

find_package(yaml-cpp REQUIRED)

add_executable(PhiveConverter
source/main.cpp
source/fivex/CollisionInfo.cpp
source/fivex/PhiveWriter.cpp
source/fivex/MeshShapeBuilder.cpp
source/fivex/ClothInfo.cpp
source/fivex/NavMeshInfo.cpp
source/fivex/NvtInfo.cpp
source/havok/hkTagfile.cpp
source/fivex/AampFile.cpp
)

target_include_directories(PhiveConverter PRIVATE source)
target_link_libraries(PhiveConverter PRIVATE yaml-cpp)

# Copy hash dictionary next to executable
configure_file(${CMAKE_SOURCE_DIR}/aamp_hashes.txt ${CMAKE_BINARY_DIR}/aamp_hashes.txt COPYONLY)
61 changes: 61 additions & 0 deletions aamp_hashes.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# AAMP CRC32 Hash Dictionary
# One name per line. Lines starting with # are comments.
# The CRC32 hash is computed automatically from each name.
# Add new names here to resolve unknown hashes in AAMP YAML output.

# Structural names (lists/root)
param_root
cloth_mesh_list
collidable_list

# cloth_mesh object indexed names
cloth_mesh_0
cloth_mesh_1
cloth_mesh_2
cloth_mesh_3
cloth_mesh_4
cloth_mesh_5
cloth_mesh_6
cloth_mesh_7
cloth_mesh_8
cloth_mesh_9
cloth_mesh_10
cloth_mesh_11
cloth_mesh_12
cloth_mesh_13
cloth_mesh_14
cloth_mesh_15

# collidable object indexed names
collidable_0
collidable_1
collidable_2
collidable_3
collidable_4
collidable_5
collidable_6
collidable_7
collidable_8
collidable_9
collidable_10
collidable_11
collidable_12
collidable_13
collidable_14
collidable_15

# cloth_mesh object parameters
Name
BaseBone
WindPreset
BoneCorrection
BoneCorrectionAxisOrder
Twist
TwistSwingAxis
TwistAngleCoef
TwistMaxAngle
KeepBoneLength
Preset

# collidable object parameters
ForReplace
Loading