HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Editing the built-in campaign

11-21-2013, 12:01 PM#1
loktar
I've recently started building a Warcraft II campaign again (before you say anything, I don't expect to get very far, just killing some time).
I thought it would be nice to have all of Warcraft in one EXE under one "Campaign" button, so I started fiddling around in the MPQs.

I've already added the buttons successfully, but obviously that's not enough.
When finishing any of the TFT missions, the equivalent RoC mission is unlocked instead.

This seems to be because of how TFT campaign was implemented. It has a separate offset from the RoC campaign (RoC = 0-4, TFT = 0-3) in Blizzard.j, meaning the TFT campaigns are always "first", no matter how you edit the campaign strings.

I tried editing Blizzard.j, but anything I do seems to result in missions not loading at all. I just get a black screen instead of a loading screen when starting any mission.

I'm pretty much at my wit's end, so any help would be appreciated, if it's even possible.
I think I'll try editing the map scripts to pass on a custom value for SetMissionAvailable next. (edit: map file corrupted, lol)

Note: I have zero experience with JASS, but I'm familiar with programming/scripting.


I know it's pretty useless to do this, but I'm only doing it to kill time and because it seems fun to have it that way to me.

tl;dr: How do I edit blizzard.j without breaking the campaign?

Anyway, thanks!
11-22-2013, 03:48 PM#2
Kyrbi0
Impressive. I wish you luck in your endeavors.

//EDIT// So wait, you want to just (as it were) click one icon, open a sort of "RoC/TFT" mix, and play the campaigns under one "Campaign" button?
11-22-2013, 06:24 PM#3
loktar
Yeah, the idea is to have one .exe that is basically TFT but with the RoC campaign added in the main campaign screen (and also the "bonus campaign" that is supposed to follow after the tutorial campaign), as well as the Tides of Darkness campaign I'm making.

But yeah, it seems that editing the blizzard.j file isn't possible without breaking the campaign? Maybe I'm doing something wrong, I don't know.

If I can't figure this out, I'll just stick to a custom campaign hehe, maybe add in the RoC/TFT campaign into that, why not.

Edit: I really don't get it. Why would replacing one one action with a custom script "corrupt" the map? Why would adding one dummy variable to blizzard.j break map loading?
Edit edit: apparantly even adding in an unedited version of a map "corrupts" it. Probably some CRC check failure or something then. :( The campaigns seem to be hard-coded or something.

I got it to work! All I had to do was place the edited maps in the WC3 folder instead of the .EXE. Yay ^^