Skip to content
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

TFE fails to find some files (json) when launched outside the build directory on Linux #483

Open
Ettotsu opened this issue Dec 22, 2024 · 0 comments

Comments

@Ettotsu
Copy link

Ettotsu commented Dec 22, 2024

It seems like tfe won't find some necessary files when launched outside the build directory, for example in a window manager with *.desktop or from a terminal by typing theforceengine. ExternalData/*.json files seem to be the problematic ones

For example, in-game gun projectiles won't work.

Here are some extracts from the logs (first one might be normal, though the second one is more of an issue):

2024-Dec-22 22:18:46 - [Error : HUD] Cannot load font 'AmoNum2.fnt'
2024-Dec-22 22:18:46 - [Error : HUD] Cannot load font 'SuperWp2.fnt'
2024-Dec-22 22:18:46 - [Error : HUD] Cannot load font 'ArmNum2.fnt'
2024-Dec-22 22:18:46 - [Error : HUD] Cannot load font 'HelNum2.fnt'
2024-Dec-22 22:18:46 - [LOGICS] Parsing logic JSON(s)
2024-Dec-22 22:18:46 - [EXTERNAL_DATA] Loading pickup data
2024-Dec-22 22:18:46 - [EXTERNAL_DATA] Loading projectile data
2024-Dec-22 22:18:46 - [Error : EXTERNAL_DATA] Warning: Projectile data is incomplete. PROJECTILES.JSON may have been altered. Projectiles may not behave as expected.
2024-Dec-22 22:18:46 - [EXTERNAL_DATA] Loading effects data
2024-Dec-22 22:18:46 - [Error : EXTERNAL_DATA] Warning: Effect data is incomplete. EFFECTS.JSON may have been altered. Effects may not behave as expected.
2024-Dec-22 22:18:46 - [MemoryRegion] Allocated new memory block in region 'Landru' - new size is 1 blocks, total size is '4194304'
2024-Dec-22 22:18:46 - [MemoryRegion] Allocated new memory block in region 'Cutscene' - new size is 1 blocks, total size is '8388608'
2024-Dec-22 22:18:51 - [Player] Setting up level 'SECBASE'
2024-Dec-22 22:18:51 - [Error : Dark Forces Game Script] LevelScript.fs (0, 0) : Failed to open script file 'LevelScript.fs'
2024-Dec-22 22:18:51 - [Warning : level_loadGeometry] Could not open 'ZWIMP10L.BM', using 'default.bm' instead.
2024-Dec-22 22:18:51 - [Warning : level_loadGeometry] Could not open 'ZWIMP11.BM', using 'default.bm' instead.
2024-Dec-22 22:18:51 - [Warning : level_loadINF] Hit the end of INF 'SECBASE' before parsing all items: 58/60
@Ettotsu Ettotsu changed the title TFE fails to find some files (json) when launched outside the build directory TFE fails to find some files (json) when launched outside the build directory on Linux Dec 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant