Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

About patching all BMPs

Newbie Spellweaver
Joined
Jun 3, 2013
Messages
33
Reaction score
6
Hi guys

I was 'installing' a new interface in bPT, and happened that only the tga files were visible,
all the patched BMPs could not be read by priston.
So I recompilled the PT File Patcher of bobsobol and recoded the patched BMPs of the new interface,
and.... some worked, and some not. :ehh:

Well. It happens that the files now can only be read with the original header in BMPs, so I manually edited all the various hex headers in the files I need and it worked. And there is pretty much various headers, for example, the image\Sinimage\Inter folder:
Code:
       +---Inter
       |   |   Bar_Life.bmp > 41 38 dc 1a 10 19 24 31
       |   |   Bar_LifeSpot.bmp > 41 38 08 0a 10 19 24 31
       |   |   Bar_Mana.bmp > 41 38 dc 1a 10 19 24 31 
       |   |   Bar_ManaSpot.bmp > 41 38 08 0a 10 19 24 31
       |   |   Bar_Stamina.bmp > 41 38 5c 10 10 19 24 31
       |   |   Bar_StaminaSpot.bmp > 41 38 9c 09 10 19 24 31
       |   |   bInvenTory-1.bmp > 41 38 44 10 10 19 24 31
       |   |   bInvenTory.bmp > 41 38 40 11 10 19 24 31
       |   |   block.tga
       |   |   bParty-1.bmp > 41 38 44 10 10 19 24 31
       |   |   bParty.bmp > 41 38 40 11 10 19 24 31
       |   |   bQuest-1.bmp > 41 38 44 10 10 19 24 31
       |   |   bQuest.bmp > 41 38 40 11 10 19 24 31
       |   |   bSkill-1.bmp > 41 38 44 10 10 19 24 31
       |   |   bSkill.bmp > 41 38 40 11 10 19 24 31
       |   |   bStatus-1.bmp > 41 38 44 10 10 19 24 31
       |   |   bStatus.bmp > 41 38 40 11 10 19 24 31
       |   |   bSystem-1.bmp > 41 38 44 10 10 19 24 31
       |   |   bSystem.bmp > 41 38 40 11 10 19 24 31
       |   |   Clock.tga
       |   |   Compass.tga
       |   |   defense.tga
       |   |   Evade.tga
       |   |   Exit.bmp > 41 38 9c 1e 10 19 24 31
       |   |   ExitMenu.tga
       |   |   inter_01.bmp > 41 38 3c 3b 10 19 24 31
       |   |   inter_02.bmp > 41 38 3c 39 10 19 24 31
       |   |   inter_03.bmp > 41 38 3c 27 10 19 24 31
       |   |   Menu-1.tga
       |   |   Menu-2.tga
       |   |   MenuBox.tga
       |   |   mike.tga
       |   |   Option.bmp > 41 38 9c 1e 10 19 24 31
       |   |   Replay.bmp > 41 38 1c 1f 10 19 24 31
       |   |   ShadowLife.tga
       |   |   
       |   +---Button
       |   |       AutoCameraImage.bmp > 41 38 5c 11 10 19 24 31
       |   |       MapOnImage.bmp > 41 38 5c 11 10 19 24 31
       |   |       PixCameraImage.bmp > 41 38 5c 11 10 19 24 31
       |   |       Walk.bmp > 41 38 5c 11 10 19 24 31
       |   |       
       |   +---ButtonInfo
       |   |       Camera_Auto.bmp > 41 38 b4 21 10 19 24 31
       |   |       Camera_Fix.bmp > 41 38 b4 21 10 19 24 31
       |   |       Camera_Hand.bmp > 41 38 b4 21 10 19 24 31
       |   |       InvenInfo.bmp > 41 38 b4 21 10 19 24 31
       |   |       MapOff.bmp > 41 38 b4 21 10 19 24 31
       |   |       MapOn.bmp > 41 38 b4 21 10 19 24 31
       |   |       PartyInfo.bmp > 41 38 b4 21 10 19 24 31
       |   |       QuestInfo.bmp > 41 38 b4 21 10 19 24 31
       |   |       Run.bmp > 41 38 b4 21 10 19 24 31
       |   |       SkillInfo.bmp > 41 38 b4 21 10 19 24 31
       |   |       StatusInfo.bmp > 41 38 b4 21 10 19 24 31
       |   |       SystemInfo.bmp > 41 38 b4 21 10 19 24 31
       |   |       Walk.bmp > 41 38 b4 21 10 19 24 31
       |   |       
       |   +---Chat
       |   |       ChatDefault-1.tga
       |   |       ChatDefault-2.tga
       |   |       ChatDoc-1.tga
       |   |       ChatDoc-2.tga
       |   |       ChatDownButton.bmp > 41 38 48 0e 10 19 24 31
       |   |       ChatSmall-1.tga
       |   |       ChatSmall-2.tga
       |   |       ChatTap_01.bmp > 41 38 bc 10 10 19 24 31
       |   |       ChatTap_02.bmp > 41 38 bc 10 10 19 24 31
       |   |       ChatTap_03.bmp > 41 38 bc 10 10 19 24 31
       |   |       ChatTap_04.bmp > 41 38 bc 10 10 19 24 31
       |   |       ChatTap_05.bmp > 41 38 bc 10 10 19 24 31
       |   |       ChatTap_N11.bmp > 41 38 bc 11 10 19 24 31
       |   |       ChatTap_N12.bmp > 41 38 bc 11 10 19 24 31
       |   |       ChatTap_N22.bmp > 41 38 bc 11 10 19 24 31
       |   |       Chatting06.tga
       |   |       n_line.bmp > 41 38 5c 13 10 19 24 31
       |   |       
       |   +---flash
       |   |       Moon.bmp > 41 38 44 0b 10 19 24 31
       |   |       Sun.bmp > 41 38 44 0b 10 19 24 31
       |   |       
       |   +---ReStart
       |   |       ReStartMain.bmp > 41 38 3c 23 11 19 24 31
       |   |       ReStart_Exit.bmp > 41 38 ec 1f 10 19 24 31
       |   |       ReStart_Field.bmp > 41 38 ec 1f 10 19 24 31
       |   |       ReStart_Town.bmp > 41 38 ec 1f 10 19 24 31
       |   |       
       |   +---sinGage
       |   |       Bar_Anger.bmp > 41 38 24 0f 10 19 24 31
       |   |       Bar_Exp.bmp > 41 38 f4 0f 10 19 24 31
       |   |       Bar_Time.bmp > 41 38 34 0c 10 19 24 31
       |   |       Button_Anger.bmp > 41 38 70 0a 10 19 24 31
       |   |       
       |   \---SkillIcon
       |           G_Select_ChangeJob.bmp > 41 38 ec 1f 10 19 24 31
       |           G_Select_Skill.bmp > 41 38 ec 1f 10 19 24 31
       |           Select_ChangeJob.bmp > 41 38 ec 1f 10 19 24 31
       |           Select_Skill.bmp > 41 38 ec 1f 10 19 24 31

As you all can see, the headers are all messed ! Sometimes one header apply for all BMPs in a folder, but in other folders there are 3 or more different headers for the BMPs.
Oh God, what we're gonna do now ?!
It seems that a batch recoder will not work if there are a thousand different headers :/

Well this is it. Thanks for your attention.
 
Joined
Jul 24, 2006
Messages
881
Reaction score
580
Yeah. I had this problem when EPT went to their new version 3.17.2
That was acompinied by teh direct x version update (not sure if that has anything to do with it)

All my BMP graphic mods failed to load in game properly.

What I found out was that if I opened the bmp in a graphic editor like Adobe Fireworks, (NOT PAINT), and resaved the image as a bitmap it would be visible in game again.

What I did was use Adobe Fireworks auto batch conversion tool to open and resave every single bitmap file.

Then everything worked perfectly.
 
Newbie Spellweaver
Joined
Jun 3, 2013
Messages
33
Reaction score
6
thanks for reply SunnyZ, I will download Fireworks and try this later :)

--Edit:
Well, your method seems to work for me too, if i discover something new, i post here.
Thanks for teh help !
 
Last edited:
Moderator
Staff member
Moderator
Joined
Feb 22, 2008
Messages
2,404
Reaction score
723
Well, you could try to make a tool to replace the headers for all files... its quite easy. Do you know any programming languages? I can only point the direction to you in C#... You should use BinaryWriter to open the files for writing and play around with Directory class, it should have all methods to search for files in a directory (can search for, *.bmp, *,*, *.txt anything.) and subfolders aswell.
 
Back
Top