-
Notifications
You must be signed in to change notification settings - Fork 77
Weapon data externalisation #463
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
ab877c9
to
2bcb5f5
Compare
c2c3f32
to
893bd70
Compare
I wonder if you could take a look at this please @luciusDXL , @kevinfoley |
to JSON files
893bd70
to
4c4f43f
Compare
Ok On linux I have no projectiles; ExternalData/projectiles.json is available but:
i'll try to fix it.. |
This is required to fix non-windows:
|
Thanks @mlauss2 |
@luciusDXL , @jerethk : One last minor thing: Please add this so that the ExternalData/ directory is also installed on cmake targets: index effc0519..2712616a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -74,6 +74,7 @@ if(ENABLE_TFE)
# the necessary support file directories into the build env.
execute_process(COMMAND ln -sf ${CMAKE_SOURCE_DIR}/TheForceEngine/Captions)
execute_process(COMMAND ln -sf ${CMAKE_SOURCE_DIR}/TheForceEngine/Documentation)
+ execute_process(COMMAND ln -sf ${CMAKE_SOURCE_DIR}/TheForceEngine/ExternalData)
execute_process(COMMAND ln -sf ${CMAKE_SOURCE_DIR}/TheForceEngine/Fonts)
execute_process(COMMAND ln -sf ${CMAKE_SOURCE_DIR}/TheForceEngine/Mods)
execute_process(COMMAND ln -sf ${CMAKE_SOURCE_DIR}/TheForceEngine/Shaders)
@@ -130,6 +131,7 @@ if(ENABLE_TFE)
install(DIRECTORY
"${CMAKE_CURRENT_SOURCE_DIR}/TheForceEngine/Captions"
"${CMAKE_CURRENT_SOURCE_DIR}/TheForceEngine/Documentation"
+ "${CMAKE_CURRENT_SOURCE_DIR}/TheForceEngine/ExternalData"
"${CMAKE_CURRENT_SOURCE_DIR}/TheForceEngine/UI_Text"
"${CMAKE_CURRENT_SOURCE_DIR}/TheForceEngine/UI_Images"
"${CMAKE_CURRENT_SOURCE_DIR}/TheForceEngine/EditorDef" Also I suggest you rename the files in ExternalData; prefix them with the game that they apply to, something like: tfe_df_projectiles.json tfe_df_effects.json so that it's clear is a tfe addon for df for example. |
thanks again @mlauss2 |
Externalise projectile and effect (explosions) data to JSONs
Data will be loaded from the Jsons when entering DF.
Mods can override by supplying their own Jsons.