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

feat: improve building IWD and IPak obj containers #286

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Laupetin
Copy link
Owner

@Laupetin Laupetin commented Oct 14, 2024

Previously

Currently building IPaks is pretty annoying and building IWDs is not implemented yet.
Previously OBJ containers had to be built as seperate targets.
If they were supposed to include obj data for assets from the built zone they had to include an assetlist which have not been generated automatically and have a fully defined zone file.

// zone_raw/mod/mod.zone
build,mod_ff
build,mod_ipak
// zone_raw/mod/mod_ff.zone
>game,T6
>name,mod
>type,fastfile
>level.ipak_read,mod
include,content
// zone_raw/mod/mod_ipak.zone
>game,T6
>name,mod
>type,ipak
include,content
// zone_raw/mod/content.zone
image,image1
image,image2
xmodel,xmodel1
// ...

Now

This PR tries to unify the building process of fastfile and additional obj containers into a single target.
This aims to improve building of IPaks, IWDs and in the future soundbanks.

// zone_raw/mod/mod.zone
>game,T6
>name,mod
>ipak,mymoddedipakname
>iwd,mymoddediwdname

image,image1
image,image2
xmodel,xmodel1

This is supposed to result in a built mod.ff, mymoddedipakname.ipak and mymoddediwdname.iwd.
The IPak and IWD contain all supported obj data of the assets that follow.

You can switch to another IWD or IPak by redefining >ipak,newipak or >iwd,newiwd respectively.
This will cause all following obj data to go into a new obj container.
This way you can split data.

Specifying the respective metadata key with an empty value >ipak, or >iwd, then you can stop writing data to this obj container.

Closes: #27

@Laupetin Laupetin force-pushed the feature/obj-container-improvements branch 4 times, most recently from bb524bc to 34f54a8 Compare October 19, 2024 19:09
@Laupetin Laupetin force-pushed the feature/obj-container-improvements branch from 34f54a8 to 252d3b8 Compare October 19, 2024 20:37
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

Successfully merging this pull request may close these issues.

IWD project type
1 participant