Skip to content

Introduce an asset cooking bypass mode #78

@Xymanek

Description

@Xymanek

Add a new build option (intended to be used by separate build config) that will cause X2MBC to copy the assets inside ContentForCook as-is.

Things to consider:

  • Shaders (do we need to pass them through the precompiler when bypassing?)
  • Dependencies that are not shipped seekfree (that the cooker will normally inline into mod's SF packages). Possibly could use PkgInfo to get a list of dependencies (and include automatically), but keeping track of which ones are SF/always loaded will be a lot of code. This is also not needed if the game is going to be run with -noSeekFreeLoading

Reasons:

  • When initially setting up assets, it's better to first test them uncooked (even if planning to eventually cook them from the start). Current;y this requires manually moving them around (which could be especially annoying if version control is involved)
  • When working on code, we want to skip the lengthy cooker step (although Asset cook "is needed" check ala shader cache #15/Prototype for timestamp-hash based incremental build steps #43 are probably a better solution)
  • When running the game with -noSeekFreeLoading, mod's TFC are also ignored - streamed textures are just black in-game (although everything else is loaded from SF packages just fine)

Metadata

Metadata

Assignees

No one assigned

    Labels

    cookingRelated to mod asset and Highlander cookingenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions