Jump to content


Photo

Detecting Modmerge'd games


23 replies to this topic

#1 CamDawg

CamDawg

    Seven billion ton robot monster

  • Gibberling Poobah
  • 9239 posts
  • Gender:Not Telling

Posted 23 July 2017 - 05:45 AM

Games with Siege of Dragonspear from either Steam or GOG need to have a program called Modmerge run on them first to make them available to be modded. The nice thing is that this is pretty easy to detect and work around. On these platforms, the SOD content is distributed as a zip file in dlc/sod-dlc.zip. Among other adjustments, Modmerge unpacks the zip and then renames it (to sod-dlc.disabled) so the engine won't pick it up, meaning we can detect games that need Modmerge with a simple file check:
ACTION_IF ((FILE_EXISTS ~dlc/sod-dlc.zip~) OR (FILE_EXISTS ~sod-dlc.zip~)) THEN BEGIN
  FAIL ~Modmerge is required before mods can be installed on this game. Check the readme for more information and a link to download Modmerge.~
END
Stick this in your ALWAYS block and you're good to go. For lone components, you can also use REQUIRE_PREDICATE.

Edited by CamDawg, 23 July 2017 - 08:52 AM.
added root folder check for GOG-SOD

I came here with a simple dream: a dream of killing all humans. And this is how it must end? Who's the real seven billion ton robot monster here? Not I. Not... I.


#2 Roxanne

Roxanne

    Modder

  • Modders
  • 1618 posts
  • Gender:Female
  • Location:Auckland, NZ

Posted 23 July 2017 - 08:31 AM

Hm...are you sure?

I have such a game but not that file. Chances are that I deleted it after I ran modmerge and now all the unpacked stuff is in my sod-dlc folder? It has been a while so I am not sure anymore, but I often do such clean-up of unnecessary files.

But maybe I am a weird person and not the average user.

 

Maybe it makes sense to check for one of the unpacked files, e.g. SoDAreas.bif?


Edited by Roxanne, 23 July 2017 - 08:33 AM.

The Sandrah Saga

another piece of *buggy, cheesy, unbalanced junk*


#3 argent77

argent77
  • Modders
  • 722 posts
  • Gender:Male

Posted 23 July 2017 - 08:48 AM

I think CamDawg's code snippet is alright. If sod-dlc.zip can't be found, then it has either been merged already (and is detected by GAME_INCLUDES ~sod~) or doesn't exist to begin with.

However, I think GOG places the DLC into the root folder of the game, so we should check that path as well.
 



#4 CamDawg

CamDawg

    Seven billion ton robot monster

  • Gibberling Poobah
  • 9239 posts
  • Gender:Not Telling

Posted 23 July 2017 - 08:51 AM

Hm...are you sure?
I have such a game but not that file. Chances are that I deleted it after I ran modmerge and now all the unpacked stuff is in my sod-dlc folder? It has been a while so I am not sure anymore, but I often do such clean-up of unnecessary files.
But maybe I am a weird person and not the average user.
 
Maybe it makes sense to check for one of the unpacked files, e.g. SoDAreas.bif?

I think the first version of Modmerge did it slightly differently. This is from my before-and-after Steam version that I checked today. If anyone has SOD from GOG, I'd like to verify it works the same there as well.

Checking for SoDAreas.bif would be fine if I was just looking for an SoD game; what I want here is to avoid installing on a game that needs Modmerge.

Edited by CamDawg, 23 July 2017 - 08:57 AM.
added SoDAreas stuff

I came here with a simple dream: a dream of killing all humans. And this is how it must end? Who's the real seven billion ton robot monster here? Not I. Not... I.


#5 CamDawg

CamDawg

    Seven billion ton robot monster

  • Gibberling Poobah
  • 9239 posts
  • Gender:Not Telling

Posted 23 July 2017 - 08:52 AM

However, I think GOG places the DLC into the root folder of the game, so we should check that path as well.

Cheers, updated.

I came here with a simple dream: a dream of killing all humans. And this is how it must end? Who's the real seven billion ton robot monster here? Not I. Not... I.


#6 Roxanne

Roxanne

    Modder

  • Modders
  • 1618 posts
  • Gender:Female
  • Location:Auckland, NZ

Posted 23 July 2017 - 08:55 AM

 

Hm...are you sure?
I have such a game but not that file. Chances are that I deleted it after I ran modmerge and now all the unpacked stuff is in my sod-dlc folder? It has been a while so I am not sure anymore, but I often do such clean-up of unnecessary files.
But maybe I am a weird person and not the average user.
 
Maybe it makes sense to check for one of the unpacked files, e.g. SoDAreas.bif?

I think the first version of Modmerge did it slightly differently. This is from my before-and-after Steam version that I checked today. If anyone has SOD from GOG, I'd like to verify it works the same there as well.

 

Sorry - my mistake - of course it is checked that the file is no longer there.


The Sandrah Saga

another piece of *buggy, cheesy, unbalanced junk*


#7 jastey

jastey
  • Gibberlings
  • 6926 posts
  • Gender:Female

Posted 23 July 2017 - 09:00 AM

This is like, really cool. Thank you!



#8 Jarno Mikkola

Jarno Mikkola

    The Imp

  • Modders
  • 6249 posts
  • Gender:Male
  • Location:The town where the dead haven't keeled over, yet. In Finland.

Posted 23 July 2017 - 12:35 PM

Hmm, but does the modmerger actually remove the file from the location ?
Cause that's kinda destructive... cause you might as well just find any file the dlc extracts into the game folder and that would be it... <gameinstallfolder>\sod-dlc/25CREANI.BIF .
Welcome to the sanity, you are free to search for the limit, it's out there, we drew it in the sand.
Here's how to install all the ... mods you ever really could want to Infinity Engine games. I removed the stable word from there as Roxanne began to add BS mods that are likely to break compatibility from the BWS.

#9 argent77

argent77
  • Modders
  • 722 posts
  • Gender:Male

Posted 23 July 2017 - 01:05 PM

The merge operation is reversible. modmerge renames sod-dlc.zip to sod-dlc.disabled and creates a backup of the original chitin.key, so that they can be easily restored. It will be time-consuming to remove all SoD-related files from the various game folders though. It's probably more feasible to reinstall the game via game manager/client if you need a clean game.



#10 CamDawg

CamDawg

    Seven billion ton robot monster

  • Gibberling Poobah
  • 9239 posts
  • Gender:Not Telling

Posted 23 July 2017 - 01:21 PM

The merge operation is reversible. modmerge renames sod-dlc.zip to sod-dlc.disabled and creates a backup of the original chitin.key, so that they can be easily restored. It will be time-consuming to remove all SoD-related files from the various game folders though. It's probably more feasible to reinstall the game via game manager/client if you need a clean game.

A clean install would be best, yeah. Looking at files, most of it is a pile of biffs in /sod-dlc with a handful of new files in /movies and /music, but the problem is that about 20 of the original biffs in /data have also been updated. There's also no backup for the tlk file, but I don't think that ultimately has an effect here.


I came here with a simple dream: a dream of killing all humans. And this is how it must end? Who's the real seven billion ton robot monster here? Not I. Not... I.


#11 Miloch

Miloch

    Barbarian

  • Modders
  • 4782 posts
  • Gender:Male
  • Location:At Large

Posted 26 July 2017 - 05:57 PM

a pile of biffs

Sigh. And here I was *almost* ready to get back into modding until I read that unfortunate phrase.


Infinity Engine Contributions
Aurora * BG1 NPC * BG1 Fixpack * Haiass * Infinity Animations * Level 1 NPCs * P5Tweaks
PnP Free Action * Thrown Hammers * Unique Containers * BG:EE * BGII:EE * IWD:EE
================================================================
Player & Modder Resources
BAM Batcher * Creature Lister * Creature Checker * Creature Fixer * Tutu/BGT Area Map & List * Tutu Mod List
================================================================
"The trouble with having an open mind, of course, is that people will insist on coming along and trying to put things in it." -Terry Pratchett

#12 CamDawg

CamDawg

    Seven billion ton robot monster

  • Gibberling Poobah
  • 9239 posts
  • Gender:Not Telling

Posted 26 July 2017 - 09:48 PM

 

a pile of biffs

Sigh. And here I was *almost* ready to get back into modding until I read that unfortunate phrase.

 

Yeah, we need a better group name for biffs, like a murder of crows, clowder of cats, or parliament of owls. A horror of biffs? An insanity of biffs?


I came here with a simple dream: a dream of killing all humans. And this is how it must end? Who's the real seven billion ton robot monster here? Not I. Not... I.


#13 lynx

lynx
  • Modders
  • 3009 posts
  • Gender:Male
  • Location:Ljubljana, Slovenija

Posted 26 July 2017 - 10:38 PM

Understudy of biffs. ;)


GemRB - IE anywhere.
Mages needed! Looking for Planescape: Torment testers
Market android version IS NOT SUPPORTED ANYMORE: reported bugs will be ignored! Still looking for builders ...

#14 jastey

jastey
  • Gibberlings
  • 6926 posts
  • Gender:Female

Posted 27 July 2017 - 01:11 AM

Understudy of biffs. ;)

Good one. :)

#15 Grammarsalad

Grammarsalad
  • Modders
  • 445 posts
  • Gender:Male

Posted 27 July 2017 - 04:24 AM

Understudy of biffs. ;)


Lol. Brilliant



Reply to this topic



  


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users