Skip to content

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

GreenerGreener Member Posts: 430
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

  • The user and all related content has been deleted.
  • The user and all related content has been deleted.
  • GreenerGreener Member Posts: 430
    Thank you, I'll experiment and get back to you :)
  • GreenerGreener Member Posts: 430
    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,582
    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
  • The user and all related content has been deleted.
  • GreenerGreener Member Posts: 430

    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: 430
    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.