Skip to content

Game Specific Installation?

GreenerGreener Member Posts: 430
If I had three files and I wanted to use one tp2 file to install each one to a separate game what is the best way?

BEGIN ~my mod~

ACTION_IF GAME_IS ~bgee~ THEN BEGIN // bgee engine check
ACTION_IF FILE_EXISTS_IN_GAME ~enginest.2da~ BEGIN // possibly redundant?

File 1...

ACTION_IF FILE_EXISTS_IN_GAME ~bdcru112.cre~ THEN BEGIN // sod specific file

File 2...

ACTION_IF GAME_IS ~bg2ee~ THEN BEGIN // bg2ee engine check
ACTION_IF FILE_EXISTS_IN_GAME ~enginest.2da~ BEGIN // possibly redundant?

File 3...

The problem is I don't want File 1 or 3 installed in SoD just File 2...

Comments

  • ArunsunArunsun Member Posts: 1,592
    I would use GAME_INCLUDES ~sod~ rather than FILE_EXISTS_IN_GAME
    And if you don't want file 1 installed in SoD, use (GAME_IS ~bgee~ AND NOT GAME_INCLUDES ~sod~)
  • GreenerGreener Member Posts: 430
    Arunsun said:

    I would use GAME_INCLUDES ~sod~ rather than FILE_EXISTS_IN_GAME
    And if you don't want file 1 installed in SoD, use (GAME_IS ~bgee~ AND NOT GAME_INCLUDES ~sod~)

    Thank you
Sign In or Register to comment.