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

pk3 files for .bsp distribution #13

Open
hypov8 opened this issue Mar 22, 2023 · 2 comments
Open

pk3 files for .bsp distribution #13

hypov8 opened this issue Mar 22, 2023 · 2 comments
Assignees
Labels
new feature a new feature

Comments

@hypov8
Copy link
Collaborator

hypov8 commented Mar 22, 2023

we need an automated way to generate assets from .bsp and place into a .pk3.
currently using a .py file to make zip, after you manually entered the asset paths.

im going to try get kmap2 working so we dont need any additional tool.
so far it looks like its able to make zip files. it does need a bit of work to load all textures too.

i also want to generate custom shaders that are named to suit map. this also needs to rename the shader path in .bsp.
it will ignore shaders/assets that are known to core game. eg.. textures/Misc_metal/
this will make map have unique shaders that wont conflict with existing ones.
eg.. models/mapobjects/testmodel to models/mapname/testmodel

i did find this https://github.com/DaemonEngine/Urcheon.
it sounds similar to what we need, but it probably needs work and it adds another layer of complexity that mappers shouldn't need to deal with.

@hypov8 hypov8 added the new feature a new feature label Mar 22, 2023
@hypov8 hypov8 self-assigned this Mar 22, 2023
@hypov8
Copy link
Collaborator Author

hypov8 commented Mar 25, 2023

added working version. 2232005
use switch -pakmap

a new shader file is generated, with new names to prevent any conflicts with base game.
.bsp updated to match ( eg.. textures/<mapname>/shader )
/any image that are not from base game will get added to zip. as original name
lightmaps, levelshots, .bsp, .aas will be added as default.

todo:
zip missing kmap_ images
custom shader tables are not added
-fs_ paths not working properly.
shader names may cause issues if mapname is to long
update project files

@hypov8
Copy link
Collaborator Author

hypov8 commented Mar 31, 2023

update a59a706
changed shader name to textures/kmap2_<mapname>/<index>
original .bsp is now untouched
generated mtr file is deleted after puting in pk3.
updated print messages. print any shader that cant be found (using shaderlist.txt)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature a new feature
Projects
None yet
Development

No branches or pull requests

1 participant