Module: GamesAndRpgParadise::BaldursGate

Defined in:
lib/games_and_rpg_paradise/games/baldurs_gate/baldurs_gate.rb,
lib/games_and_rpg_paradise/gui/jruby/mod_installer/mod_installer.rb,
lib/games_and_rpg_paradise/games/baldurs_gate/remove_non_english_languages.rb

Overview

GamesAndRpgParadise::BaldursGate

Defined Under Namespace

Modules: GUI Classes: RemoveNonEnglishLanguages

Class Method Summary collapse

Class Method Details

.[](i = ARGV) ⇒ Object

#

GamesAndRpgParadise::BaldursGate[]

#


68
69
70
# File 'lib/games_and_rpg_paradise/games/baldurs_gate/baldurs_gate.rb', line 68

def self.[](i = ARGV)
  new(i)
end

.download_modsObject

#

GamesAndRpgParadise::BaldursGate.download_mods

This will download various mods. The list of mods that is to be downloaded has to be updated manually for the time being.

Order these mods correctly - that is, first ones to be downloaded will be put into a directory called e. g. 001_ then 002_ and so forth.

#


27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# File 'lib/games_and_rpg_paradise/games/baldurs_gate/baldurs_gate.rb', line 27

def self.download_mods
  require 'wget'
  array_download_these = %w(
    https://github.com/Austin-BG/HTaM/releases/download/v.4.2.6/heroes-thieves-and-moneylenders-4.2.6.zip
    https://github.com/Gibberlings3/Romantic_Encounters_BG2/releases/download/v15/RE_v15.zip
    https://github.com/Pocket-Plane-Group/UnfinishedBusiness/releases/download/v28/ub-v28.zip
    https://github.com/InfinityMods/Ascension/releases/download/2.0.23/ascension-2.0.23.zip
    https://github.com/Pocket-Plane-Group/Item_Upgrade/releases/download/v49/itemupgrade-v49.exe
    https://github.com/Gitjas/Solaufeins_Rescue_NPC/releases/download/v3.2/solaufeins-rescue-jasteys-solaufein-npc-mod-for-bgii-3.2.zip
    https://github.com/InfinityMods/FishingForTrouble/releases/download/v3.2.8/fishing-for-trouble-v3.2.8.zip
    https://github.com/Skitia/SkitiaNPCs/archive/refs/tags/v1.010.zip
    https://github.com/Pocket-Plane-Group/Keto/releases/download/v6/Keto-SoAv6.zip
    https://github.com/Gibberlings3/WheelsOfProphecy/releases/download/v8.5/wheels-v8.5.exe
    https://downloads.weaselmods.net/download/tangled-oak-isle/#
  )
  GamesAndRpgParadise.mkdir('BALDURS_GATE2_MODS')
  GamesAndRpgParadise.cd('BALDURS_GATE2_MODS')
  array_download_these.each_with_index {|this_remote_URL, index| index += 1
    target = ('%03d' % index)+'_'+File.basename(this_remote_URL).
                                  delete_suffix(File.extname(this_remote_URL))
    mkdir(target) # => '003'
    Wget.new(this_remote_URL)
  }
end

.prepare_all_modsObject

#

GamesAndRpgParadise::BaldursGate.prepare_all_mods

This method can be used to prepare all mods that I use for Baldur’s Gate 2 specifically.

#


58
59
60
61
62
63
# File 'lib/games_and_rpg_paradise/games/baldurs_gate/baldurs_gate.rb', line 58

def self.prepare_all_mods
  target_directory = '/Depot/Games/Baldurs_Gate_1_and_2/Baldurs_Gate2_Enhanced_Edition/mods_and_NPCs/'
  e 'Working on '+Colours.sdir(target_directory)+' next.'
  GamesAndRpgParadise.cd(target_directory)
pp Dir['*']
end