Author Topic: Remove unit limit map editor  (Read 27835 times)

Offline Delete mine too

  • Death Knight
  • *********
  • Posts: 2652
  • http://meatspin.com
    • View Profile
    • http://meatspin.com
Remove unit limit map editor
« on: June 24, 2016, 02:28:18 AM »
From dijhkahn @ occult forums

   Fix for War2 Map Editor 'Player X has too many units.'
I'm guessing no one cares, but here it goes...

The Map Editor only lets you save maps with a certain amount of units per color. The limit seems to be 600/#colors. So for an 8-player map the limit is 600/8 = 75 units per color.

But, there is a way to get rid of this limit:

- Make a backup copy of "Warcraft II Map Editor.exe", in case something goes wrong
- open "Warcraft II Map Editor.exe" in a hex editor
- look at byte location B9E5, and verify that the value is 02
- change the 02 to a 40
- save the file

Or, I'll upload the modified EXE sometime, if people actually want it : )


for non-English languages, search for the byte sequence b8 58 02 00 00 99 f7 ff and change the 02 to 40

Offline salvadorc17

  • Grunt
  • ***
  • Posts: 120
    • View Profile
Re: Remove unit limit map editor
« Reply #1 on: June 24, 2016, 08:31:06 PM »
Good finding, still the problem should exist in the game, so better will be to find how to remove pop cap in game..

Offline Tilogour

  • Critter
  • *
  • Posts: 2
    • View Profile
Re: Remove unit limit map editor
« Reply #2 on: July 03, 2016, 08:29:50 AM »
It will be helpful if you upload exe

Offline Delete mine too

  • Death Knight
  • *********
  • Posts: 2652
  • http://meatspin.com
    • View Profile
    • http://meatspin.com
Re: Remove unit limit map editor
« Reply #3 on: July 05, 2016, 01:28:09 AM »
It will be helpful if you upload exe
It's very simple.
Get warcraft 2 map editor .exe
Download Hxd editor
Open the map editor exe with Hxd
Search for these bytes

 b8 58 02 00 00 99 f7 ff

Should take a second

Replace 02 with 04

Then click save.

You just patched your war2 editor to not have a limit on units. But war2xed editor already capable of this. Over a certain amount they won't appear when you play the map.

Offline shesycompany

  • Death Knight
  • *********
  • Posts: 3587
  • retired, be in music section
    • View Profile
Re: Remove unit limit map editor
« Reply #4 on: July 05, 2016, 01:33:57 AM »
yeah i tested it with minions thought i could bypass...800 or so it stops.

there is maybe another way but would be alot of work.

Offline Delete mine too

  • Death Knight
  • *********
  • Posts: 2652
  • http://meatspin.com
    • View Profile
    • http://meatspin.com
Re: Remove unit limit map editor
« Reply #5 on: July 05, 2016, 02:10:09 AM »
yeah i tested it with minions thought i could bypass...800 or so it stops.

there is maybe another way but would be alot of work.
We could try to locate the one on the exe side. Been so lazy never even looked. Been reading about our map editor.

Offline Szwagier

  • Ogre Mage
  • ********
  • Posts: 1752
    • View Profile
Re: Remove unit limit map editor
« Reply #6 on: January 11, 2017, 06:37:21 AM »
okey i try to change 02 -> 04 but if i change and click save then reload its still 02
http://www.youtube.com/user/SzwagierR


Equinox - the dumbest person in this game, do not argue with an idiot, because he will bring you to his level and overcome with experience

Offline shesycompany

  • Death Knight
  • *********
  • Posts: 3587
  • retired, be in music section
    • View Profile
Re: Remove unit limit map editor
« Reply #7 on: January 11, 2017, 02:30:45 PM »
unit cap can exceed 200 units, with the -1 value set on farms ...but havent looked at it in awhile or is it even needed.

but this is in exe not the map editor.

it should set swaz. u using hxd?
« Last Edit: January 11, 2017, 04:07:05 PM by easycompany »

Offline shesycompany

  • Death Knight
  • *********
  • Posts: 3587
  • retired, be in music section
    • View Profile
Re: Remove unit limit map editor
« Reply #8 on: January 16, 2017, 03:46:09 PM »
ahh i see what he is saying! program files likes to make sure people dont mess with them..take the file out and doit in c:\new folder etc..
and take off read only on the folder...dam these newer windows is nothing like win98 days  >:(
there it is if u wanna try it.i havent.

« Last Edit: January 16, 2017, 03:49:47 PM by easycompany »

Offline Szwagier

  • Ogre Mage
  • ********
  • Posts: 1752
    • View Profile
Re: Remove unit limit map editor
« Reply #9 on: January 16, 2017, 05:16:18 PM »
thank you  :D
yes my main w2bne is in program files
http://www.youtube.com/user/SzwagierR


Equinox - the dumbest person in this game, do not argue with an idiot, because he will bring you to his level and overcome with experience

Offline Delete mine too

  • Death Knight
  • *********
  • Posts: 2652
  • http://meatspin.com
    • View Profile
    • http://meatspin.com
Re: Remove unit limit map editor
« Reply #10 on: January 16, 2017, 07:49:27 PM »
The other war2 editors don't have a unit cap. I was bored one day and filled every spot with a cpu unit. When I load the map most units are gone. But open editor and they are in the map. I think we would have to hex war2 unit limit also for this to fully work.

Offline Szwagier

  • Ogre Mage
  • ********
  • Posts: 1752
    • View Profile
Re: Remove unit limit map editor
« Reply #11 on: January 16, 2017, 08:45:17 PM »
would be nice if u try add ai in ai.bin i tried but failed many times ^^
http://www.youtube.com/user/SzwagierR


Equinox - the dumbest person in this game, do not argue with an idiot, because he will bring you to his level and overcome with experience

Offline Delete mine too

  • Death Knight
  • *********
  • Posts: 2652
  • http://meatspin.com
    • View Profile
    • http://meatspin.com
Re: Remove unit limit map editor
« Reply #12 on: January 16, 2017, 09:02:22 PM »
would be nice if u try add ai in ai.bin i tried but failed many times ^^
That's easy! Use wardraft 2 export the AI and create it. Then get a MPQ editor rename the file to ai.bin and place where the old one I'd in mpq then load ur map it plays your custom AI.

Offline Szwagier

  • Ogre Mage
  • ********
  • Posts: 1752
    • View Profile
Re: Remove unit limit map editor
« Reply #13 on: January 17, 2017, 05:50:36 AM »
Ok i will try it, i was copying in hex one ai i thought it will double it and icould change it

ok it isnt work. how u are doing it? i can save files as "aaa" but i still cant add(for example last ai is orc 3 how to add orc 3d?



This is last ai in file human 9d(white) how to make 2 ai ?for example human 9d(white) human 9E(white)?
« Last Edit: January 17, 2017, 06:24:36 AM by Szwagier »
http://www.youtube.com/user/SzwagierR


Equinox - the dumbest person in this game, do not argue with an idiot, because he will bring you to his level and overcome with experience