Jump to content

Game_is questions by the Imp.


Recommended Posts

I need to patch the in-game files according to a GAME_IS -function... between a EE and non-EE games... and I want to know/make_sure that it won't patch the EE files twice.

 

COPY_EXISTING_GLOB ~.*\.are$~ ~override~     //

PATCH_IF (REQUIRE_PREDICATE GAME_IS ~bgee bg2ee eet~) BEGIN

<patch> //EE only

BUT_ONLY
END


PATCH_IF (REQUIRE_PREDICATE GAME_IS ~soa tob tutu tutu_totsc ca iwd_in_bg2~) BEGIN

<patch>//non-EE

BUT_ONLY
END

..would this work? Or does the SoA and ToB also flag also get the BG2EE files ? And if so, how do I exclude those ?

Ouh, and does anyone have the EE:SoD and Shadowhand flags ? Or do the above also cover those cases ?

Link to comment

If you just want to differ between EE and non-EE engines, ENGINE_IS is a better choice.  ENGINE_IS "bgee bg2ee" catches BGEE, BG2EE and EET, ENGINE_IS "soa tob" catches BG2, BGT, Tutu and everything else based on the old engine.

If you are checking for specific game content, GAME_INCLUDES might be better.  GAME_INCLUDES "bg1" catches BG1, Tutu, BGT, BGEE and EET.  Note that unlike GAME_IS and ENGINE_IS, GAME_INCLUDES accepts only a single argument.  Also, using GAME_INCLUDES "sod" on BG2(EE) produces a (harmless) warning in the current WeiDU version.  Wisp confirmed that this is a bug and it will be fixed.

Link to comment

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...