Jarno Mikkola Posted January 24, 2020 Posted January 24, 2020 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 ? Quote
jastey Posted January 24, 2020 Posted January 24, 2020 4 hours ago, Jarno Mikkola said: Or does the SoA and ToB also flag also get the BG2EE files ? no, tob and soa with GAME_IS does refer to the old engine game. But tob does include bgt. Quote
lynx Posted January 24, 2020 Posted January 24, 2020 You could just use the same expression in the second case, explicitly (not manually) negated. Quote
Angel Posted January 24, 2020 Posted January 24, 2020 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. Quote
Jarno Mikkola Posted January 25, 2020 Author Posted January 25, 2020 Nice, thank you Angel. I'll thing I'll use the ENGINE_IS. Quote
Recommended Posts
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.