RobertBeckebans / RBDOOM-3-BFG

Doom 3 BFG Edition source port with updated DX12 / Vulkan renderer and modern game engine features
https://www.moddb.com/mods/rbdoom-3-bfg
GNU General Public License v3.0
1.38k stars 247 forks source link

Generated folder requiring read/write access in the game folder #801

Open scaronni opened 9 months ago

scaronni commented 9 months ago

Spin off of https://github.com/RobertBeckebans/RBDOOM-3-BFG/issues/762

I'm shipping the entire game on a few Linux computers at work :smile: under /usr/share/doom3bfg so I'm adding all the content required to run. So far, beside the main game files, I've added the following files for the new light assets:

base/env/maps/game
base/maps/game/*.lightgrid

Beside that, it's not described that you need to have a writable game folder (generated) to generate additonal assets inside the game folder when the game starts:

Binarize File: 'env/maps/game/mars_city1/area1_envprobe_1131__1293_75_amb#__2206' - reason 'binarize: binary file not found 'env/maps/game/mars_city1/area1_envprobe_1131__1293_75_amb#__2206''
Binarize File: 'env/maps/game/mars_city1/area1_envprobe_1131__1293_75_amb#__2206' - reason 'binarize: binary file not found 'env/maps/game/mars_city1/area1_envprobe_1131__1293_75_amb#__2206''
writing to: /usr/share/doom3bfg/base/generated/images/env/maps/game/mars_city1/area1_envprobe_1131__1293_75_amb#__2206.bimage
Writing generated/images/env/maps/game/mars_city1/area1_envprobe_1131__1293_75_amb#__2206.bimage: 32x32

Of course without write access to that folder nothing gets generated and errors are thrown out.

Would it be possible to have the generated directory in ~/.local/share/rbdoom3bfg/base in case it's not possible to write to the main game folder? Like the main configuration file and the other files that get normally written for each user.

If not, can I copy those over from one system to the other or are they system unique like shaders and silmilar stuff? If they can be copied over from system to system they should probably be added to the ModDB tarball as well.

Thanks.