Class: Modsvaskr::Games::SkyrimSe

Inherits:
Modsvaskr::Game show all
Defined in:
lib/modsvaskr/games/skyrim_se.rb

Overview

Handle a Skyrim installation

Constant Summary collapse

SEVEN_ZIP_CMD =
{
  dir: 'C:\Program Files\7-Zip',
  exe: '7z.exe'
}

Instance Method Summary collapse

Methods inherited from Modsvaskr::Game

#initialize, #launch_exe, #name, #path, #xedit

Methods included from Logger

#log

Methods included from RunCmd

#run_cmd

Constructor Details

This class inherits a constructor from Modsvaskr::Game

Instance Method Details

#complete_game_menu(menu) ⇒ Object

Complete the game menu

API
  • This method is optional

Parameters
  • menu (CursesMenu): Menu to complete



28
29
30
31
32
33
34
# File 'lib/modsvaskr/games/skyrim_se.rb', line 28

def complete_game_menu(menu)
  menu.item 'Install SKSE64' do
    install_skse64
    puts 'Press Enter to continue...'
    $stdin.gets
  end
end

#game_espsObject

List of default esps present in the game (the ones in the Data folder when 0 mod is being used)

Result
  • Array<String>: List of esp/esm/esl base file names.



49
50
51
52
53
54
55
56
57
# File 'lib/modsvaskr/games/skyrim_se.rb', line 49

def game_esps
  %w[
    skyrim.esm
    update.esm
    dawnguard.esm
    hearthfires.esm
    dragonborn.esm
  ]
end

#initObject

Initialize the game

API
  • This method is optional



19
20
21
# File 'lib/modsvaskr/games/skyrim_se.rb', line 19

def init
  @tmp_dir = "#{Dir.tmpdir}/modsvaskr"
end

#running_exeObject

Get the game running executable name (that can be found in a tasks manager)

API
  • This method is mandatory

Result
  • String: The running exe name



41
42
43
# File 'lib/modsvaskr/games/skyrim_se.rb', line 41

def running_exe
  'SkyrimSE.exe'
end