Coder Social home page Coder Social logo

Comments (13)

predator8bit avatar predator8bit commented on April 28, 2024 2

https://lutris.net/games/diablo/ I created an installer that asks for the GOG exe and takes care of the rest. At the moment the installer is still unpublished, but I'm sure someone will approve it sooner or later. :)

from devilutionx.

predator8bit avatar predator8bit commented on April 28, 2024 2

from devilutionx.

dallemon avatar dallemon commented on April 28, 2024 2

Using current innoextract-git (from Arch AUR) works fine. So a new official release of innoextract is needed (newer than 1.7) or compile it yourself from git.

File extracted successfully running "innoextract -I DIABDAT.MPQ setup_diablo_1.09_hellfire_v2_(30038).exe"

Did a quick test with a fresh 32-bit build and it works, although it seems that DIABDAT.MPQ name is case sensitive and needs to be lowercase.

from devilutionx.

mewmew avatar mewmew commented on April 28, 2024 1

@predator8bit Great work! The installer is published now I think. https://lutris.net/api/installers/diablo-gog-devilutionx-win3?format=json

Would you mind updating it to work with the latest DevilutionX (i.e. release 0.4.0)?

@AJenbo, even with the installer script in Lutris, we should probably add the MPQ extraction instructions as a Wiki page for users who do not want to use the full Lutris installer, but just the extraction tool. What do you think?

Edit: Also, @predator8bit, do you think any updates are needed for the install script now that Hellfire is bundled with the setup? The latest setup file from GoG is setup_diablo_1.09_hellfire_v2_(30038).exe (as of the 8th of June, 2019).

from devilutionx.

AJenbo avatar AJenbo commented on April 28, 2024 1

Yeah a guide should definitely be written on the wiki page, that's why the issue is still open :)

from devilutionx.

predator8bit avatar predator8bit commented on April 28, 2024 1

The installer you linked @mewmew wasn't the one I originally submitted, someone deleted that. So I forked it into a new native one.

The hellfire gog installer doesn't work, innoextract throws 1error and 1 warning, looking at the files it managed to successfully extract the DIABDAT.MPQ is only "19.9 MiB (20,889,600 bytes)" instead of "493.5 MiB (517,501,282 bytes)" what you get from the standalone diablo installer.

EDIT: The new installer will have to go through moderation for it to appear.

from devilutionx.

predator8bit avatar predator8bit commented on April 28, 2024

Lutris has innoextract baked in, maybe after the next release someone will make an installer. I actually talked to some Lutris people on their discord and they said they'll look into it. https://lutris.net/games/diablo/

from devilutionx.

AJenbo avatar AJenbo commented on April 28, 2024

Oh, it would be nice if the listed it :)

from devilutionx.

AJenbo avatar AJenbo commented on April 28, 2024

nice

from devilutionx.

matthewrkarlsen avatar matthewrkarlsen commented on April 28, 2024

Hello,
I could update the Wiki page if you want. I don't seem to have edit permissions right now though...

Scratch that, I can see how to clone the wiki now.

Thanks,
Matthew

from devilutionx.

AJenbo avatar AJenbo commented on April 28, 2024

Thanks that would be helpful.

from devilutionx.

matthewrkarlsen avatar matthewrkarlsen commented on April 28, 2024

Hello AJenbo,

I created a local branch of the wiki devilutionX-issue-33 and was then going to create a wiki PR (somehow, UI seems to be missing for this). Unfortunately on push I am getting remote: Permission to diasurgical/devilutionX.wiki.git denied to matthewrkarlsen. I have a complete document, I just need to be able to get it to CR.

Code below, perhaps someone else can add it:

Extracting the DIABDAT.MPQ from the GoG installer

Download GoG's Diablo offline installer

Install required dependencies for innoextract compilation

innoextract requirements

From the innoextract official install instructions the stated dependencies are (taken verbatim and then edited):

  1. a C++ compiler
  2. CMake >= 2.8 or newer
  3. Boost >= 1.37 (including development headers)
  4. liblzma (from xz-utils, including development headers)
  5. iconv (optional, via glibc, uClibc, or a separate libiconv)

Ubuntu

These dependencies can be installed on an Ubuntu system with the following command (as detailed on the innoextract official install instructions page:

sudo apt-get install build-essential cmake libboost-all-dev liblzma-dev

Other Operating Systems

Please consult your operating system's documentation and related texts for information on how to install the required dependencies.

Install the latest git snapshot of innoextract

On Linux systems, and other similar systems, issue the following commands in your terminal:

git clone https://github.com/dscharrer/innoextract.git
cd innoextract/cmake/
cmake ..
make
sudo make install

Please note that this requires that git be installed on your system.

Check innoextract version

The innoextract version must be >= 1.8 for it to be able to extract the MPQ from the GOG Diablo installer.

innoextract --version

Should return something similar to the following:

innoextract 1.8-dev + 08b1ee8
Extracts installers created by Inno Setup 1.2.10 to 6.0.2

Get information about the GOG Diablo installer

In a terminal, run the following command: innoextract --info 'setup_diablo_1.09_hellfire_v2_(30038).exe' (adjust file name as appropriate)

This should return:

Inspecting "Diablo + Hellfire" - setup data version 5.6.2 (unicode)

Languages:
 - en-US

GOG.com game ID is 1412601690

Setup is not passworded!

Extract DIABDAT.MPQ from the installer

innoextract --include DIABDAT.MPQ --lowercase 'setup_diablo_1.09_hellfire_v2_(30038).exe'

Note that we need the file to have a lowercase file name, thus the --lowercase in the above command.

Inspecting "Diablo + Hellfire" - setup data version 5.6.2 (unicode)
 - "diabdat.mpq" [en-US]
Done.

Copy the extracted diabdat.mpq to the required location

cp /some/path/diabdat.mpq /some/new/path/diabdat.mpq

Authors and Credits

  1. Install information for innoextract was adapted from the innoextract install page
  2. The original text was based on this comment by mnhauke

Thanks,
Matthew

from devilutionx.

AJenbo avatar AJenbo commented on April 28, 2024

Thanks I posted it on the wiki:
https://github.com/diasurgical/devilutionX/wiki/Extracting-the-DIABDAT.MPQ-from-the-GoG-installer

Closing this issue, but we should probably promote the guide on the main page or such.

from devilutionx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.