Staredit Network > Forums > Modding Assistance > Topic: First mod crashes horribly [solved using ugly method]
First mod crashes horribly [solved using ugly method]
Jan 1 2017, 11:47 pm
By: DirectShift  

Jan 1 2017, 11:47 pm DirectShift Post #1



Hello guys!

So, I just followed the tutorial named "How to Write a Starcraft MOD" with all the steps for a super easy modification:

- disabled shields for zealot
- zealot now has 60 hp
- zealot is a medium sized unit

I compiled the mpq, loaded it with mpqDraft, and it totally crashes!!

What info can I give so you can assist me here?

I'm using starcraft broodwar downloaded by torrent (cd version) with the 1.161 Patch.

Thank you guys!!

Post has been edited 1 time(s), last time on Jan 2 2017, 1:38 am by DirectShift.



None.

Jan 2 2017, 12:03 am Dem0n Post #2

ᕕ( ᐛ )ᕗ

Can you attach your mpq so we can take a look at it?




Jan 2 2017, 12:35 am Pr0nogo Post #3



If those are the only changes, it should only income changing the units.dat file. Is your file imported to the correct path in the mpq? arr/units.dat should be it.

Where does it crash? During gameplay? Upon start-up? As soon as a zealot is on screen? Do you have any files besides the units.dat file in your mpq?




Jan 2 2017, 12:55 am DirectShift Post #4



Thanks for your answers, just tried it again but doing a modification on weapons.dat (gauss riffle of normal marine now does 26 damage) but didn't work neither.

It crashes the moment I do "finalize" on mpqdraft, using "load mpq patch" option.

I'm totally clueless, maybe the starcraft versios is not compatible?



None.

Jan 2 2017, 1:01 am Dem0n Post #5

ᕕ( ᐛ )ᕗ

The changes you made will work on any version, so that's not the issue. Are you properly selecting the Starcraft directory on the first screen of MPQDraft? Maybe you're choosing an invalid path or something.




Jan 2 2017, 1:06 am DirectShift Post #6



Yes, the path is correct.

Not sure if this helps... but.. this is the error

https://postimg.org/image/aphq057ix/

and I'm attaching the mpq (this is another one, the only modification is in units.dat -> marine with 90hp...)



None.

Jan 2 2017, 1:37 am DirectShift Post #7



OK, so I uninstalled starcraft and deleted everything.

Then installed it again, applied last patch (1.16.1 I think).

Followed the tutorial again but... nothing... NADA, didn't work.

HOWEVER, I managed to make it work using a "dangerous" method.

I just picked up the Patch_rt.mpq and DIRECTLY added the units.dat there... and voilá... just opened starcraft.exe normally and it worked.

So, for the moment I will stick to this UGLY method, haha!!

Thank you guys!



None.

Jan 2 2017, 1:41 am Dem0n Post #8

ᕕ( ᐛ )ᕗ

If you post your mpq file, we can tell you exactly what you're doing wrong so you don't have to use that 'ugly' method.




Jan 2 2017, 1:56 am DirectShift Post #9



OK, here it is.

Attachments:
dalecarlos.mpq
Hits: 2 Size: 22.29kb



None.

Jan 2 2017, 5:57 am Pr0nogo Post #10



If it's crashing upon finalizing in MPQDraft, it's definitely a problem with your programs and not with your modded files. I was able to commit the changes fine when using the mpq you provided.

Make sure you're running everything as administrator. Try using mpqdraft to compile it as a Self-Executing MPQ (SEMPQ) and see if you have any better luck with that. If that still doesn't work, get FireGraft, make a new project, and save it as a new .exe, importing your mpq into it when it asks for one.




Jan 2 2017, 6:59 pm Neiv Post #11



If you didn't download your MPQDraft from https://sourceforge.net/projects/mpqdraft/ it might be an older version which can cause a crash like you're seeing.



None.

Jan 5 2017, 12:26 am DirectShift Post #12



Thanks for the answers.
I might use Firegraft



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[06:24 pm]
Oh_Man -- https://youtu.be/pPZafFJOi48 crazy good
[09:51 am]
NimoStar -- And Pathfinding in SC1 was not *that* bad, the problem is that it was designed as a flat 2D game like WC1 (and it was in the alpha) and then switched to isometric without changing the base code. So its actually a flat game pretending to be isometric. With the custom competitive maps that use larger ramps and elevation, pathfinding is quite fixed.
[09:47 am]
NimoStar -- The unlocking and map choice was fine, but mostly in WoL - In HoTS the worst of all units are irrelevant because Kerrigan has infinite summon and stuff. And even in WoL the spaceship instakill map powers are better than units. If I could RTS in my RTS that'd be great.
[2026-3-05. : 8:45 pm]
NudeRaider -- Nekron
Nekron shouted: NudeRaider not that the og sc1 campaigns are particularly good mechanically but cmon, SC2 map mechanics are the opposite of fun
There's many parts to it. I think the raw rts gameplay of sc1 is unsurpassed to this day. And I too never liked that sc2 missions always rush you in some way or another, because I like to take my time. However I still have to admit that they way they did it often was always pretty cool. Like lava rising and receding, a huge-ass mothership destroying bases, undead coming at night, just to name a few, those are definitely creative, so I'm sure there's people that liked it. But that's not even what I meant. It's the unlocking of new features and upgrades and choice which map to play next that made it so much more motivating for me.
[2026-3-05. : 6:49 pm]
Nekron -- like the train maps, enemies just kind of come at you (I'm not sure if there is a real enemy base, there might be one just on a technicality - you are to never interact with its production) and then you gotta chase trains for lulz
[2026-3-05. : 6:48 pm]
Nekron -- and even in WoL imo everything ends up feeling like you're just getting a lot of hidden timers that kind of force you into awkward resource management between main objective and defending your base against enemies from beyond this world
[2026-3-05. : 6:47 pm]
Nekron -- some ideas were okay in WoL but the further you go the worse it gets
[2026-3-05. : 6:46 pm]
Nekron -- NudeRaider
NudeRaider shouted: also the sc2 campaign mechanics were way more fun and involving
not that the og sc1 campaigns are particularly good mechanically but cmon, SC2 map mechanics are the opposite of fun
[2026-3-03. : 9:33 pm]
Ultraviolet -- boo sacrilege, get outta here
[2026-3-03. : 8:47 am]
NudeRaider -- also the sc2 campaign mechanics were way more fun and involving
Please log in to shout.


Members Online: Excalibur, armitage, Roy