-
Notifications
You must be signed in to change notification settings - Fork 47
Add Heroes of Might and Magic IV #1144
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from 31 commits
254649c
63f898c
71cd3d8
60c3cb5
69e7bf2
5bf56fe
1c4fe31
66bd276
1791c28
9d473d3
afeb994
25b45d5
43932a3
8db0264
2cfd676
8b7a82a
b1b30ac
c21fb41
923f809
d3b3b61
dc204af
5bc1ecc
968f5fb
102486e
3d800f6
cdb5c19
63006a6
65de732
f14a61f
a728085
fbbfdb8
84af7b0
9e64476
9254cf1
ed10422
b5dabbe
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
const LocalInstallerScript = include("engines.wine.quick_script.local_installer_script"); | ||
const Resource = include("utils.functions.net.resource"); | ||
const {LATEST_DEVELOPMENT_VERSION} = include("engines.wine.engine.versions"); | ||
const Downloader = include("utils.functions.net.download"); | ||
|
||
new LocalInstallerScript() | ||
.name("Heroes of Might & Magic IV") | ||
.editor("New World Computing, Inc.") | ||
.applicationHomepage("") | ||
.author("Zemogiter") | ||
.category("Games") | ||
.wineDistribution("upstream") | ||
.wineVersion(LATEST_DEVELOPMENT_VERSION) | ||
Zemogiter marked this conversation as resolved.
Show resolved
Hide resolved
|
||
.executable("H4mod.exe") | ||
.postInstall(function (wine) { | ||
Zemogiter marked this conversation as resolved.
Show resolved
Hide resolved
|
||
const dataDirectory = wine.prefixDirectory() + "drive_c/" + wine.programFiles() + "Ubisoft/Heroes of Might & Magic IV - Złota Edycja/Data"; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this folder really correct? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is a default install location of my cd disc. I've set it in GOG local installer and it is correct. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @madoar is correct. This will very likely not work in other countries. Maybe you can solve it with a regular expression. So: There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @plata the "Ubisoft" part is only there when you install from the disc. GOG installer uses "GOG.com" instead There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Shouldn't we have different installers then? |
||
|
||
const patchForGameExecutable = new Resource() | ||
.wizard(this._wizard) | ||
madoar marked this conversation as resolved.
Show resolved
Hide resolved
|
||
.url("https://equilibris.celestialheavens.com/downloads/heroes4_sfx.exe") | ||
.checksum("373df5403ada0d2bb9285862efeca00415cb0915") | ||
.name("heroes4_sfx.exe") | ||
.get(); | ||
wine.run(patchForGameExecutable); | ||
|
||
const patchForCampaignEditor = new Resource() | ||
.wizard(this._wizard) | ||
Zemogiter marked this conversation as resolved.
Show resolved
Hide resolved
|
||
.url("https://equilibris.celestialheavens.com/downloads/camp_ed_sfx.exe") | ||
.checksum("9d34c409a0358057b0c2d00b7d4c96ccd67c7214") | ||
.name("camp_ed_sfx.exe") | ||
.get(); | ||
wine.run(patchForCampaignEditor); | ||
|
||
new Downloader() | ||
.wizard(this._wizard) | ||
Zemogiter marked this conversation as resolved.
Show resolved
Hide resolved
|
||
.url("https://equilibris.celestialheavens.com/downloads/equi.aop") | ||
.checksum("3a188a45017a1fd7cb38d6883428f6abc9b6e160") | ||
.to(dataDirectory) | ||
.get(); | ||
|
||
const mod = new Resource() | ||
.wizard(this._wizard) | ||
Zemogiter marked this conversation as resolved.
Show resolved
Hide resolved
|
||
.url("https://equilibris.celestialheavens.com/downloads/install_equilibris_v.3.51.exe") | ||
.checksum("3a188a45017a1fd7cb38d6883428f6abc9b6e160") | ||
.name("install_equilibris_v.3.51.exe") | ||
.get(); | ||
wine.run(mod); | ||
}); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"scriptName" : "Local (Gold Edition)", | ||
"id" : "applications.games.heroes_of_might_and_magic_4.local", | ||
"compatibleOperatingSystems" : [ | ||
"MACOSX", | ||
"LINUX" | ||
], | ||
"testingOperatingSystems" : [ | ||
"MACOSX", | ||
"LINUX" | ||
], | ||
"free" : false, | ||
"requiresPatch" : false | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"name" : "Heroes of Might & Magic IV", | ||
"id" : "applications.games.heroes_of_might_and_magic_4", | ||
"description" : "A turn-based strategy game where you build up castles to equip your heroes with vast armies to give them the strength to conquer the enemy and develop themselves in the schools of might and magic" | ||
} |
Uh oh!
There was an error while loading. Please reload this page.