Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

We need your feedback on the new forum text editor switch.
Neverwinter Nights: Enhanced Edition has been released! Visit nwn.beamdog.com to make an order. NWN:EE FAQ is available.
Soundtracks for BG:EE, SoD, BG2:EE, IWD:EE, PST:EE are now available in the Beamdog store.
Attention, new and old users! Please read the new rules of conduct for the forums, and we hope you enjoy your stay!

How do I write a .tp2 file to install specific components to various games BGEE, BGEE SoD and BGEE2

GreenerGreener Member Posts: 348
As the title would suggest, I have a mod that I'm trying to make compatible with BGEE, BGEE SoD and BGEE2 and different components need to be installed in different games.

I'm sure there is a way to specifically check and only install a component in one version of the game, but I'm unclear how to write it, any help would be appreciated.
Cheers,

a.

Comments

  • subtledoctorsubtledoctor Member Posts: 9,353
    BEGIN @100 
    DESIGNATED 100
    REQUIRE_PREDICATE GAME_IS ~bgee bg2ee eet~ ~BG and EE only!~

    BEGIN @200
    DESIGNATED 200
    REQUIRE_PREDICATE GAME_IS ~IWDEE~ ~the North remembers!~

    BEGIN @300
    DESIGNATED 300
    REQUIRE_PREDICATE ENGINE_IS ~tob~ ~old skool!~

    mf2112
  • subtledoctorsubtledoctor Member Posts: 9,353
    Btw don't use ~sod~ with GAME_IS. if you use
    GAME_IS ~bgee~
    ...then it will work for both plain BGEE and SoD.

  • GreenerGreener Member Posts: 348
    Thank you, I'll experiment and get back to you :)

  • GreenerGreener Member Posts: 348
    edited July 2016

    BEGIN @100 
    DESIGNATED 100
    REQUIRE_PREDICATE GAME_IS ~bgee bg2ee eet~ ~BG and EE only!~

    BEGIN @200
    DESIGNATED 200
    REQUIRE_PREDICATE GAME_IS ~IWDEE~ ~the North remembers!~

    BEGIN @300
    DESIGNATED 300
    REQUIRE_PREDICATE ENGINE_IS ~tob~ ~old skool!~
    I seem to continually get errors when trying to implement BEGIN DESIGNATED
    REQUIRE_PREDICATE GAME_IS ~sod~...

    So far I've been able to get the following to work but I believe it's a workaround:

    BACKUP ~Kensai Kit - BGEE/Backup~
    AUTHOR ~Greener~
    VERSION ~1.7~

    BEGIN ~Kensai Kit Revision~

    ACTION_IF FILE_EXISTS_IN_GAME ~OH3000.ARE~ THEN BEGIN // BGEE check

    STRING_SET ~25362~ // New Kensai kit description (character generation)

    ~Various text ect...~
    END

    BEGIN ~Optional SoD Content~

    ACTION_IF FILE_EXISTS_IN_GAME ~bdcru112.cre~ THEN BEGIN // BGEE SoD check

    COPY_EXISTING_REGEXP GLOB ~^_?bdcru112\.cre$~ ~override~ //This is specific SoD content
    REPLACE_CRE_ITEM ~kensai~ #0 #0 #0 ~NONE~ ~WEAPON1~ EQUIP
    END

    Any suggestions?

  • GrammarsaladGrammarsalad Member Posts: 2,215
    Greener said:

    BEGIN @100 
    DESIGNATED 100
    REQUIRE_PREDICATE GAME_IS ~bgee bg2ee eet~ ~BG and EE only!~

    BEGIN @200
    DESIGNATED 200
    REQUIRE_PREDICATE GAME_IS ~IWDEE~ ~the North remembers!~

    BEGIN @300
    DESIGNATED 300
    REQUIRE_PREDICATE ENGINE_IS ~tob~ ~old skool!~
    I seem to continually get errors when trying to implement BEGIN DESIGNATED
    REQUIRE_PREDICATE GAME_IS ~sod~...

    ...
    The good news is that you are probably using a stable version of weidu. The bad news is that no stable version of weidu will recognize just sod using GAME_IS. as long as that file is in sod and not any other game, that workaround is fine.

    Note that weidu recognizes sod as bgee, so you will want to do a similar workaround if you want something to install in bgee but not sod

  • subtledoctorsubtledoctor Member Posts: 9,353
    As stated, the reason your code didn't work is that you tried to use GAME_IS ~sod~... which, to be fair, i warned against a few posts up.

    So my general suggestion holds: if you want the component to only appear and install under certain conditions (like on a certain game) then use
    REQUIRE_PREDICATE FILE_EXISTS_IN_GAME ~bdcru112.cre~ ~SoD only~

  • GreenerGreener Member Posts: 348

    As stated, the reason your code didn't work is that you tried to use GAME_IS ~sod~... which, to be fair, i warned against a few posts up.

    My apologies, I must have misinterpreted your post, thank you for your response

  • GreenerGreener Member Posts: 348
    edited July 2016


    The good news is that you are probably using a stable version of weidu. The bad news is that no stable version of weidu will recognize just sod using GAME_IS. as long as that file is in sod and not any other game, that workaround is fine.

    Note that weidu recognizes sod as bgee, so you will want to do a similar workaround if you want something to install in bgee but not sod

    Makes sense, thank you.

    Post edited by Greener on
Sign In or Register to comment.