mergekeys

package module
v0.0.0-...-1ebb140 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 18, 2020 License: MIT Imports: 10 Imported by: 0

README

Modmerge

Merge BGEE/BG2EE v2.0 mod zip files back into the main game(making them weidu compatible).

Pre-requisites

You must have bought and downloaded:

  • Baldur's Gate 1: Enhanced Edition
  • Baldur's Gate 1: Siege of Dragonspear
  • Baldur's Gate 2: Enhanced Edition

Running

  1. Download binary from http://github.com/ScottBrooks/modmerge/releases
  2. Unzip.
    1. MacOSX only: Rename /path/to/modmerge-osx to /path/to/modmerge.
  3. Navigate to /path/to/BG1EE.
    • There should be a chitin.key file in the directory.
    • If downloaded with Steam on MacOSX, this should be at ~/Library/Application Support/Steam/steamapps/common/Baldur's Gate Enhanced Edition.
    • If downloaded with Steam on Windows, this should be at C:\Program Files (x86)\Steam\steamapps\common\Baldur's Gate Enhanced Edition.
  4. Run /path/to/modmerge. If you see Conversion complete., it worked!

Details

modmerge is a tool to help people merge the mod back into the main game, making it weidu compatible.

modmerge does the following

  • Backs up your chitin.key to chitin.key.bak, just in case
  • Searches dlc/ or your root directory for sod-dlc.zip
  • Unzips the sod-dlc.zip, copying over top of the existing lang/, movies/, music/ folders. The data folder inside of the zip will be renamed to no overwrite files in the existing data directory.
  • Updates your chitin.key with so any resources from inside of the zip file will point to their appropriate bif files.
  • Renames your sod-dlc.zip to sod-dlc.disabled

The end result, assuming everything is successful, is you will have an updated chitin.key that points to the resources from the base game, and the resources from the mod, that weidu, near infinity, DLTCEP, etc will all be able to load.

Building from source

cd /path/to/modmerge
go build github.com/scottbrooks/modmerge/modmerge

Redistribution

You are free to package or redistribute modmerge.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KEY

type KEY struct {
	// contains filtered or unexported fields
}

func OpenKEY

func OpenKEY(r io.ReadSeeker, root string) (*KEY, error)

func (*KEY) ExtToType

func (key *KEY) ExtToType(ext string) int

func (*KEY) GetBifPath

func (key *KEY) GetBifPath(bifId uint32) (string, error)

func (*KEY) GetResourceName

func (key *KEY) GetResourceName(biffId uint32, resourceId uint32) (string, error)

func (*KEY) MergeWith

func (k *KEY) MergeWith(mk *KEY, mod string) error

func (*KEY) TypeToExt

func (key *KEY) TypeToExt(ext uint16) string

func (*KEY) Validate

func (key *KEY) Validate()

func (*KEY) Write

func (key *KEY) Write(w io.Writer) error

type RESREF

type RESREF struct {
	Name [8]byte
}

func NewResref

func NewResref(name string) RESREF

func (*RESREF) MarshalJSON

func (r *RESREF) MarshalJSON() ([]byte, error)

func (*RESREF) String

func (r *RESREF) String() string

func (*RESREF) Valid

func (r *RESREF) Valid() bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL