~ Forums of Enroth ~
Would you like to react to this message? Create an account in a few clicks or log in to continue.

~ Forums of Enroth ~

An Enroth diehard fan community
 
HomeHome  SearchSearch  RegisterRegister  Log inLog in  
Latest topics
» Immortal Realms: Vampire Wars (HoMM like game)
Heroes II localisation: how to make no-CD patch. Icon_minitimeby Unknown_Hero 2020-09-18, 23:10

» They talked about fheroes2!
Heroes II localisation: how to make no-CD patch. Icon_minitimeby sirDranik 2020-09-13, 02:51

» GoG Homm2 vs fheroes2 comparison review
Heroes II localisation: how to make no-CD patch. Icon_minitimeby sirDranik 2020-09-11, 01:19

» Resurrection of fheroes2 with 0.8 version
Heroes II localisation: how to make no-CD patch. Icon_minitimeby Tibor0803 2020-09-08, 06:32

» [Enhancement] Enhancement for the information displayed when the player right clicks on an object
Heroes II localisation: how to make no-CD patch. Icon_minitimeby sirDranik 2020-09-07, 20:45

» Free Heroes of Might and Magic II (fheroes2) General Announcements
Heroes II localisation: how to make no-CD patch. Icon_minitimeby ihhub 2020-09-05, 02:34

» [Enhancement] Enhancement for Scouting secondary skill
Heroes II localisation: how to make no-CD patch. Icon_minitimeby Unknown_Hero 2020-09-03, 21:26

Poll
Global announcements should be:
Everlasting, 1 for each project.
Heroes II localisation: how to make no-CD patch. Redbar110%Heroes II localisation: how to make no-CD patch. Redbar12
 0% [ 0 ]
Temporary, when there is something new to announce.
Heroes II localisation: how to make no-CD patch. Redbar11100%Heroes II localisation: how to make no-CD patch. Redbar12
 100% [ 6 ]
Holalala... No idea where the Ultimate artifact is.
Heroes II localisation: how to make no-CD patch. Redbar110%Heroes II localisation: how to make no-CD patch. Redbar12
 0% [ 0 ]
Total Votes : 6
Most Viewed Topics
H3SW: General Graphics discussion
Ragoon's Graphics For HoMM3SW
H3SW General Discussion
H3SW Map List: Work in progress
H3SW: Dwelling Development
Heroes III: The Succession Wars v0.8.1 Beta
Heroes of Might and Magic 3: The Succession Wars - General info & Announcements
Project Ironfist announcements
Introduce yourself
Welcome fellow Enrothians!

 

 Heroes II localisation: how to make no-CD patch.

Go down 
AuthorMessage
Baronus
Nomad
Nomad
Baronus

Messages : 56
Quality Points : 1
Registration Date : 2016-06-12

Heroes II localisation: how to make no-CD patch. Empty
PostSubject: Heroes II localisation: how to make no-CD patch.   Heroes II localisation: how to make no-CD patch. Icon_minitime2020-02-09, 08:56

As you know to play H2 in local language you must have local version of the game. In my case is polish. Cant play it without cdroom. Cant use english nocd because it change language. If someone has knowledge and can do it fast please do it! As I read its some bits but I dont know which in my local exe.
Here is all to run it using eng rest.
http://wrzucplik.pl/pokaz/1941134---kbdl.html
Disc image is probably heroes2/anim etc.
Thanks.


Last edited by Baronus on 2020-02-11, 09:51; edited 1 time in total
Back to top Go down
GodRage
Webmaster
Webmaster
GodRage

Messages : 937
Quality Points : 223
Registration Date : 2009-09-21
Location : France

Heroes II localisation: how to make no-CD patch. Empty
PostSubject: Re: Heroes II localisation: how to make no-CD patch.   Heroes II localisation: how to make no-CD patch. Icon_minitime2020-02-10, 00:05

Yes, the agg file is all the images. Heroes II localisation: how to make no-CD patch. 3584857407
Your Heroes2.exe seems to be a Price of Loyalty version 2.1. Can you confirm? Heroes II localisation: how to make no-CD patch. 3293758093

I will try to make it no CD, but I get some crashes, so, I hope I don't need all the polish files to make it. Heroes II localisation: how to make no-CD patch. 555873010


edit :
I'm sorry but for the moment I can't make it no cd.
I don't even remember how I made the French PoL to a no-cd version...
There is the few things I kept:
Code:
================
(2014, for French Heroes2w PoL 2.0)
=-...no CD...-=

84 => 85
Message "CD-ROM de price of L. n'est pas dans le lecteur..." 00 00 0f 84 1f 00 00 000ac865 84 => 85 2.2e
Dégriser les menus solo 00 00 0f 84 3b 00 00 00 0006f549 84=>85 2.2e

Version " no CD " ! 000ece60 ; (usually: hex 74 => 75) http://www.fileforums.com/showthread.php?t=59480
51 PUSH ecx
FFD7 CALL edi
85C0   TEST eax, eax
7420 JE 00401A52
74 represents JE (Jump if Equal), 75 would be JNE (Jump if Not Equal)
=-../no CD/..-=

================
But even, I don't know how I found out what to search in the exe. Heroes II localisation: how to make no-CD patch. 2789701914

Seems I just had to replace "84" with a "85", two times.
So, there is a list of what I tried with your Polish version of the exe:
Code:
0f 84 1f  ::: 84 => 85
0001d010    no effects
00055340    no effects
00099ae0    crash black screen (need to restart the computer)
000a0060    crash black screen 2
00098ae0 no effects
000d02f0 no effects

84 1f 01 => 85 1f 00
00098ae0 no effects

00 0f 84 3b 02 => 00 0f 85 3b 02
0008f0c0 no effects
00 0f 84 3b 02 => 00 0f 85 3b 01
0008f0c0 no effects
00 0f 84 3b 02 => 00 0f 85 3b 00
0008f0c0 no effects
Nothing worked.  Sad

I used W32dsm87.exe to try to find a way to get informations about the datas in my French Heroes2w at offsets 000ac865 and 0006f549.
But I failed, the disassembly program i use seems very old, is a freeware, and I am not even used to disassembly in general. (neither to programmation xD)
Maybe if you find a program that can tell you an information about why/how Heroes2 checks the no-cd by looking at the English no-cd and the French no-cd, you should be able to do the same for the Polish version.

Spoiler:
 

________________________
~Lands of Enroth~
Back to top Go down
http://homm2.free.fr
Baronus
Nomad
Nomad
Baronus

Messages : 56
Quality Points : 1
Registration Date : 2016-06-12

Heroes II localisation: how to make no-CD patch. Empty
PostSubject: Re: Heroes II localisation: how to make no-CD patch.   Heroes II localisation: how to make no-CD patch. Icon_minitime2020-02-11, 06:44

Thanks a lot! It gives mi big help!
I monut these two files on eng version and was the same like polish. Wing smack miss can be from all.
I think thats is special polish version. It has 1.1 Mb but eng has 1.5! They built his own exe and its a big problem. How they codded it?!

w32dsm gives two references:
B928b350 ox 669cf
00D0d84700 ox e3004

But i cant find 74 and 84 jumps there. Only 84 gives crash.
And I see something sholud be changed from 02 to 00...
Eg.
For dos:
https://cloakedthargoid.wordpress.com/no-cd/no-cd-homm2/

For russian:
http://faqs.org.ru/games/strat/hmm26.htm

But thanks a lot for fast reply! I learned how to do nocd using disassembler! May be helpfull!
Back to top Go down
GodRage
Webmaster
Webmaster
GodRage

Messages : 937
Quality Points : 223
Registration Date : 2009-09-21
Location : France

Heroes II localisation: how to make no-CD patch. Empty
PostSubject: Re: Heroes II localisation: how to make no-CD patch.   Heroes II localisation: how to make no-CD patch. Icon_minitime2020-02-11, 08:16

Heroes II localisation: how to make no-CD patch. 3862677156 I can't understand what you said:
@Baronus wrote:
I monut these two files on eng version and was the same like polish. Wing smack miss can be from all.

Yeah, each language has a different Heroes2w.exe file-size Heroes II localisation: how to make no-CD patch. 400282857
The Japanese version is even worst, the game have extra cinematics and extra protections that prevent me to use it on my French Windows  Heroes II localisation: how to make no-CD patch. 555873010 .


According to this post, seems that i followed theses steps :

  1. found where the call is,
  2. where is the jne...
  3. And then, problem.  Heroes II localisation: how to make no-CD patch. 3293758093


Okay, seems I followed theses steps from this post (on another forum) :
Quote :
[...] better to use a disassembler like W32DASM. You could, for example, disassemble the program (assuming it isn't packed) with w32dasm, open the string data reference window and find the message you get (e.g. "please insert the CD into your CD rom") and then double click it. It takes you to a bunch of code and usually right above it is some type of check that usually looks like this:

Code:
00401A2B 51    PUSH ecx
00401A2C FFD7  CALL edi
00401A2E 85C0      TEST eax, eax
00401A30 7420   JE 00401A52

The 74 represents JE (Jump if Equal), 75 would be JNE (Jump if Not Equal) and in some cases is the only thing you'd need to change. Some CDs actually require the files on the CD, but most of them don't. You won't always be able to disassemble the program, and the string won't always be in the string data references either.

I'd suggest you read some beginner tutorials on reverse engineering. Get a copy of W32DASM and Softice (or as it's called now, "Compuware Driver Studio"). You already have a hex editor (UltraEdit) so you're good there, those 3 would be enough to get started. You should be able to find some helpful tutorials on krobar.cjb.net (If it doesn't work, google the term "The Krobar Collection") which'll get you started.

[...] Reversing CD checks isn't hard. [...] You can find loads of reverse engineering tutorials with any major search engine, and if you look, you'll also be able to find how to get started with cracking CD checks.

I can't remember the URL (so you'll have to google it) but there are still a few sites that have crackmes' for reversing CD checks. They're useful, especially to beginners.

I also remembered that I had a MSDOS box on the right (a program similar to SoftICE maybe?), that was telling me what Heroes2w.exe was doing. And it somehow helped me to get the offset of the first CD check when we open the game.

ps: I changed the title of the topic. Heroes II localisation: how to make no-CD patch. 3822145216

________________________
~Lands of Enroth~
Back to top Go down
http://homm2.free.fr
Sponsored content




Heroes II localisation: how to make no-CD patch. Empty
PostSubject: Re: Heroes II localisation: how to make no-CD patch.   Heroes II localisation: how to make no-CD patch. Icon_minitime

Back to top Go down
 
Heroes II localisation: how to make no-CD patch.
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
~ Forums of Enroth ~ :: Modding Guild :: General Heroes II Modding-
Jump to: