Staredit Network

Staredit Network -> Modding Assistance -> Missing Custom\mgpatch.mgd?
Report, edit, etc...Posted by Storm_Templar on 2006-11-01 at 11:19:48
Ok I am making a MOD obviously but whenever I try to load the Memgraft patch it always says "Missing Custom\mgpatch.mgd... I checked and its there but its called my custom name "Mercury Mirror.mgd" What is wrong??
Report, edit, etc...Posted by TheNomad on 2006-11-01 at 11:41:43
QUOTE(Storm_Templar @ Nov 1 2006, 07:19 PM)
Ok I am making a MOD obviously but whenever I try to load the Memgraft patch it always says "Missing Custom\mgpatch.mgd... I checked and its there but its called my custom name "Mercury Mirror.mgd" What is wrong??
[right][snapback]581738[/snapback][/right]


The limitation of MG (apart from the obvious tongue.gif) is that it HAS to find the MGpatch.mgd file (mgd = MemGraft Data file). Any other name = no can do.
The only 2 things you can change are the MPQ it uses and the EXE that loads and injects the MG patches.
Report, edit, etc...Posted by Storm_Templar on 2006-11-01 at 12:17:03
So all I have to do is rename "Mercury Mirror.mgd" to "mgpatch.mgd?

Addition:

Ok well I tried that but it didnt work...
Report, edit, etc...Posted by DiscipleOfAdun on 2006-11-01 at 12:52:20
Is the full path in the mpq custom\mgpatch.mgd? it needs to be exactly that, otherwise there is problems with it. (the SFileOpenFile call can't find it if you don't have the path exactly right)
Report, edit, etc...Posted by Storm_Templar on 2006-11-01 at 12:54:51
yes its exact name is "Custom\mgpatch.mgd"
Report, edit, etc...Posted by TheNomad on 2006-11-01 at 12:58:59
QUOTE(Storm_Templar @ Nov 1 2006, 08:54 PM)
yes its exact name is "Custom\mgpatch.mgd"
[right][snapback]581768[/snapback][/right]


Make sure you are using the correct mpq. You have to add the Custom/MGpatch.mgd in the MPQ you specified as a replacement for patch_rt.mpq in the last tab. You can't do it in ANY MPQ you want smile.gif
Report, edit, etc...Posted by Storm_Templar on 2006-11-01 at 13:54:49
Umm I lost you...
Report, edit, etc...Posted by TheNomad on 2006-11-01 at 14:23:07
ok... you have all the tabs right ? Units, Buttons, Action, Req, Unit Req etc...

You have the MISC tab with the mpqs that you need. You can replace patch_rt.mpq there with the one that your mod needs. To use it you'd need to copy-paste patch_rt.mpq to that filename and add the MGpatch.mgd in that mpq.

Since I assume that you didn't change it by your questions, I will also assume you already amde your mpq, but didn't tell MG to use it. Which is why you can't find it. At which point the only thing you can do is to bytehack the EXE file MG made to change patch_rt.mpq to the file you have. REMEMBER THAT YOU MusT KEEP THE SAME BYTE AMOUNT so renaming patch_rt.mpq to "super_duper_mod.mpq" will mess up the EXE. Also remember that if you don't know what you're doing you might do more bad than good, so if you are scared better just remake the whole thing in MG (preset saving doesn't work except for the first version of MG, not for the other 2).

As for bytehacking change patch_rt.mpq to MercMirr.mpq. The EXE name doesn't matter. Also remember that the mpq should not have spaces for safer results. (the EXE doesn't need to have the MPQ name).
Report, edit, etc...Posted by Corbo(MM) on 2006-11-01 at 15:48:50
Ignore that just like I did.
Make sure you are in the same version as the memgraft version you are using
SC V1.11b = MG 1.11b
Like that tongue.gif
If it's not that, pay attention to what he said tongue.gif
Report, edit, etc...Posted by TheNomad on 2006-11-01 at 16:39:20
QUOTE(Corbo(MM) @ Nov 1 2006, 11:48 PM)
Ignore that just like I did.
Make sure you are in the same version as the memgraft version you are using
SC V1.11b = MG 1.11b
Like that tongue.gif
If it's not that, pay attention to what he said tongue.gif

[right][snapback]581816[/snapback][/right]


It is not about the version. MG first does a version check on StarCraft.exe and if it fails the check it lets the user know. His error was one specific of what I said.
Report, edit, etc...Posted by Lord_Agamemnon(MM) on 2006-11-01 at 16:54:57
Hm. Is the file name Custom\MGPatch.mgd or mgpatch.mgd, with the file it's in as custom? Case might matter; I'm not sure.
Report, edit, etc...Posted by DiscipleOfAdun on 2006-11-01 at 17:00:50
Both of you are right and wrong. The "Missing Custom\mgpatch.mgd" error is when the SFileOpenFile call fails. That's all it is. This can be caused by 2 things.

1. Memgraft cannot find your mpq, so the call is failing on the patch_rt.mpq file.
2. Memgraft can find your mpq, but it does not have the custom\mgpatch.mgd file in it.

In the first case, you need to make sure that you saved the patch to use your mpq(misc tab. you can go shorter on the mpq name, not sure about longer...). For either case, you need to make sure you save the .mgd file you get from save release in the mpq under that path. Finally, you MPQ must go in your Starcraft folder.

Version is also important, although I don't remember the error if you don't have the right version. Make sure that the version you are attempting to apply the patch on is the version that the copy of MG you have supports.
Report, edit, etc...Posted by TheNomad on 2006-11-01 at 17:19:49
QUOTE(DiscipleOfAdun @ Nov 2 2006, 01:00 AM)
1.  Memgraft cannot find your mpq, so the call is failing on the patch_rt.mpq file.
[right][snapback]581848[/snapback][/right]


That's actually the scenario I covered. I can't be wrong wink.gif Unless the problem is that he doesn't have it in his SC folder.

The error about the version mismatch is a popup that informs the user of the needed version and the version they have. And I didn't mention the fact that both the exe and mpq need to be in the SC folder as that is obvious I'd say wink.gif

And no, nothing in windows is case-sensitive (apart from the programming languages tongue.gif) and maybe some other insignificant stuff I can't think of right now wink.gif
Report, edit, etc...Posted by Pie_Sniper on 2006-11-01 at 18:55:40
Are you sure Memgraft does a version check? When I'm on the wrong version it either gives me one of those error report things, or it waits till I start a game and then crashes.
Report, edit, etc...Posted by TheNomad on 2006-11-01 at 19:19:42
I had it once. Still, an error sating that mgpatch.mgd is missing can't be confused for a version mismatch crash wink.gif

So it's either what I said (wrong mpq) or what DoA said (wrong folder/placement)
Report, edit, etc...Posted by Storm_Templar on 2006-11-01 at 21:09:31
QUOTE
Hm. Is the file name Custom\MGPatch.mgd or mgpatch.mgd, with the file it's in as custom? Case might matter; I'm not sure.


Its mgpatch.mgd


It has nothing to do with the version.


QUOTE
Finally, you MPQ must go in your Starcraft folder.


Ive put the correct mpq file in the Starcraft Folder. Thought the .exe isnt in the starcraft folder. That doesnt matter anyway right?


I would post my MOD folder but Staredit isnt allowing me...
Report, edit, etc...Posted by TheNomad on 2006-11-01 at 21:23:18
As DoA and I said, both the MPQ and the EXE must be in the SC folder.
Report, edit, etc...Posted by WoAHorde2 on 2006-11-01 at 21:30:26
The MPQ must be in the MAIN SC Directory. You can place the EXE anywhere. WHen I test my mods, I take my test mpq(which I named MPQ.MPQ), and replace my mgpatch everytime I updddde my mod's tech tree.
Report, edit, etc...Posted by TheNomad on 2006-11-02 at 05:07:39
QUOTE(WoAHorde2 @ Nov 2 2006, 05:30 AM)
The MPQ must be in the MAIN SC Directory. You can place the EXE anywhere. WHen I test my mods, I take my test mpq(which I named MPQ.MPQ), and replace my mgpatch everytime I updddde my mod's tech tree.
[right][snapback]582007[/snapback][/right]


I'd say the condition is to have SC installed and not just copy pasted (e.g. have registry entries that get lost after a format even though SC still works)
Report, edit, etc...Posted by Ojan on 2006-11-02 at 09:59:56
QUOTE
And I didn't mention the fact that both the exe and mpq need to be in the SC folder as that is obvious I'd say wink.gif

And no, nothing in windows is case-sensitive (apart from the programming languages tongue.gif) and maybe some other insignificant stuff I can't think of right now wink.gif

Where the files must be to run correctly is not obvious. And only the MPQ needs to be in the SC dir, as said. The .exe can be anywhere.

The fact that file names are case insensitive has nothing to do with windows. When files are added to an MPQ, the string is converted to uppercase before the hash is calculated. It's thus due to how the MPQs work, not anything windows-related.


QUOTE
QUOTE
Hm. Is the file name Custom\MGPatch.mgd or mgpatch.mgd, with the file it's in as custom? Case might matter; I'm not sure.



Its mgpatch.mgd

It must be "Custom\mgpatch.mgd". You can't skip the "custom\" part of it.
Report, edit, etc...Posted by TheNomad on 2006-11-02 at 10:25:25
QUOTE(Ojan @ Nov 2 2006, 05:59 PM)
The fact that file names are case insensitive has nothing to do with windows. When files are added to an MPQ, the string is converted to uppercase before the hash is calculated. It's thus due to how the MPQs work, not anything windows-related.
[right][snapback]582157[/snapback][/right]


I was making hints how windows is not a case sensitive OS wink.gif
But yeah I won't comment on MPQs since I don't know much about them (apart from the obvious)
Report, edit, etc...Posted by Storm_Templar on 2006-11-02 at 16:02:22
QUOTE
It must be "Custom\mgpatch.mgd". You can't skip the "custom\" part of it.


Word Typo... the exact script is this,"custom\mgpatch.mgd"


Im thinking this has something to do with stargraft or memgraft not WinMPQ. For I have tried 4 times to rename the mgppatch.mgd to "custom\mgppatch.mgd","Custom\MGpatch.mgd",custom\MGPATCH.mgd", and "CUSTOM\MGPATCH.mgd"... none have worked. Not that I expected that capitalization would matter.

In Stargraft I do my modifications.

Then I save as "MercMirr.pat"


In Memgraft I open my Stargraft .pat file and my edited stat_txt.tbl file.

Then I go to my misc tab and I change the "\patch_rt.mpq" to "\MercMirr.mpq.

Then I go to the menu tab and click save release.

I name the .mgd file "mgpatch.mgd" and I save the .exe "MercuryMirror.exe"

I add my .dat files. to MercMirr.mpq

I add my mgd file

And I copy/paste the mpq file in the Starcraft Folder...

I run my .exe (not in my Starcraft Folder) and...It says same thing

What is wrong??


Could the modified .tbl file be doing this?
Report, edit, etc...Posted by Ojan on 2006-11-02 at 16:48:32
As said, case does not matter.

QUOTE
Im thinking this has something to do with stargraft or memgraft not mpqdraft.

It has to do with MemGraft. What I'm wondering is how you fit MPQDraft into the picture. You shouldn't use it, unless you're using version 1.09b or 1.10 of StarCraft, in which case you do not use MemGraft in the same way.
  • Did you add the custom\mgpatch.mgd to MercMirr.mpq? I assume you did, but you didn't include that step in your last post, so I'm just checking...
  • You used \ in the filename, right? Not / ?
  • Are you sure you have the right version of StarCraft? If you use MemGraft 1.13e, you MUST have StarCraft 1.13e. I don't know if you need Broodwar, but I suppose it could be a problem if you haven't got it.
  • Is the StarCraft dir the same as the one you installed it into? The reason I'm asking is because MemGraft looks in the Windows Registry to get the path to SC, and if you have moved SC, the path won't be right. If the registry path is incorrect, you will probably be prompted if you want to install SC when you insert the SC CD, instead of being asked if you want to play the game
Here's a tutorial on how to do it. If it still doesn't work after you check what I just said above, then follow it EXACTLY.
Report, edit, etc...Posted by Ojan on 2006-11-02 at 16:55:57
He said "Then I go to my misc tab and I change the "\patch_rt.mpq" to "\MercMirr.mpq". There's nothing wrong there?
Report, edit, etc...Posted by TheNomad on 2006-11-02 at 17:15:00
Yeah I noticed just now.

Templar, do you happen to have 2 SC folders: one to dev and one to play by any chance ? (I assume yes since you can't use MG on 1.14)
Next Page (1)