Forums: H2otool - H20 Archive Archiver/Extraction Utility (Modding BR) - Forums

Jump to content

  • (6 Pages)
  • +
  • « First
  • 4
  • 5
  • 6
  • You cannot start a new topic
  • You cannot reply to this topic

H2otool - H20 Archive Archiver/Extraction Utility (Modding BR)

#101 User is offline   Pwned Noob 

  • Golem
  • Pip
  • View blog
  • Group: Members
  • Posts: 9
  • Joined: 01-November 08
  • Fav. TF2 Class:
    N/A

Posted 06 November 2008 - 09:59 PM

Guys, I need help :o
When I repack Models.H2O from the extracted files and play with the repacked file, I get a crash just after the first loading screen.
I did NOT change anything, just extracted and packed, to test. I tried with both cmd and GUI, nothing to do. I noticed the file changes its size a little (original = 97.477 KB, Repacked = 97.816 KB).

By any chance, do I need some kind of patch to Battle Realms in order to get it to work?

UPDATE:

Apparently i'm not the only one with this problem, and I tried to take action.
Opening the original file (this time interface_text.h2o) with the hex editor, all what i could see was a bunch of incomprensible bytes.
Opening the repacked file... surprise... the text was still perfectly readable, just like in the extracted files.
So I looked into the source code.

This is from cmd_extract.c, line 25 and following:
			if (node->file->entrytype == ENTRYTYPE_COMPRESSED) {
				printf("decompressing file: %s\n", node->name);
				dumpchunk(src, dst, node->file->checksum);
			} else 	if (node->file->entrytype == ENTRYTYPE_RAW) {
				printf("extracting file: %s\n", node->name);
				dump(src, dst, node->file->size_raw, node->file->checksum);
			}



This is from cmd_build.c, line 36:
entry->entrytype = ENTRYTYPE_RAW;


Not compressed. Just like the file I checked with hex editor.
Maybe I've figured it out, but i'm a noob (:P) and i can't c0mpile (usually that word gets you an error in forums) it.
I'd try to replace that line with
entry->entrytype = ENTRYTYPE_COMPRESSED;

... and have a test. Who knows.
0

#102 User is offline   marcelo_20xx 

  • Archer
  • PipPipPipPip
  • View blog
  • Group: Members
  • Posts: 96
  • Joined: 07-June 08
  • Location:Zurvan...the Sea of Dreams

Posted 19 November 2008 - 02:51 PM

I will like to add something here. The repacks tools are not always perfect because sometimes they use differents algorithms of compression to achieve the same result, the expected file may vary, while sometimes it will work fine in others it may crash the application (the game) because of misplaced bytes, loss of information in the compression data process and random errors.

You can check this just by extracting the file and then repacking without changing anything, most of the time the CRC and checksum of the file will be different of the original one unless is a well documented type of archive. In BR we don't have such luck, but H2Otool is a good and useful tool nonetheless.
Posted Image
0

#103 User is offline   Pwned Noob 

  • Golem
  • Pip
  • View blog
  • Group: Members
  • Posts: 9
  • Joined: 01-November 08
  • Fav. TF2 Class:
    N/A

Posted 19 November 2008 - 04:59 PM

View Postmarcelo_20xx, on Nov 19 2008, 03:51 PM, said:

I will like to add something here. The repacks tools are not always perfect because sometimes they use differents algorithms of compression to achieve the same result, the expected file may vary, while sometimes it will work fine in others it may crash the application (the game) because of misplaced bytes, loss of information in the compression data process and random errors.

You can check this just by extracting the file and then repacking without changing anything, most of the time the CRC and checksum of the file will be different of the original one unless is a well documented type of archive. In BR we don't have such luck, but H2Otool is a good and useful tool nonetheless.

It extracts perfectly.
But the problem is packing.
I don't think the output is compressed at all; i was able to read each string of the text interface files I included.
While in the original packed .h2o i can't read any string, just some "ÿÿÿà 1•â" for example.
Oh well, i'll have a look at the algorythm and try to make my own VB6 program to extract/pack; i'd better not get my hopes up anyway.
0

#104 User is offline   Dragon Lord 

  • Golem
  • Pip
  • View blog
  • Group: Members
  • Posts: 3
  • Joined: 27-December 08
  • Location:Philippines
  • Fav. TF2 Class:
    Engineer

Posted 27 December 2008 - 04:58 PM

how can i make kenji appear in skirmish with h2otool?.. help pls i dont know what to do
0

#105 User is offline   Mana 

  • Clan Founder smilie
  • View blog
  • Group: Leader
  • Posts: 7,120
  • Joined: 02-September 05
  • Gender:Male
  • Fav. TF2 Class:
    N/A

Posted 27 December 2008 - 09:29 PM

View PostDragon Lord, on Dec 27 2008, 11:58 AM, said:

how can i make kenji appear in skirmish with h2otool?.. help pls i dont know what to do

You don't. But someone has made a mod for that. Try searching.

vic_123from Steampowered forums said:

this game have stupid network code.
valve programmer have skill ultralow. lol.

--------------------------------------------------------------------------------------------------
Lotus TF2 Server Stats | DODS Server Stats | Donator Benefits Page
0

#106 User is offline   Luzifer666 

  • Golem
  • Pip
  • View blog
  • Group: Members
  • Posts: 1
  • Joined: 24-February 09
  • Fav. TF2 Class:
    N/A

Posted 24 February 2009 - 02:47 PM

Ok guys great tool thank you very much.
But I have a problem. I played around with the rice texture, repacked everything and started the game. Everything worked fine and the rice texture was the one I created, BUT when I play the game I see black tiles on the ground:

Posted Image

So I unpacked the original textures again and repacked them immidiately without changing anything to test if the packer is the problem and it seems like it is the problem because the same shit happened again. I tested this with both packers and several times. Any suggestions are appreciated. Thanks!

EDIT: These tiles are under buildings aswell but in a lighter color. I painted the shadow of people green to see if it has an effect but it changed nothing. Black tiles again :-(
0

#107 User is offline   Dark_one 

  • Golem
  • Pip
  • View blog
  • Group: Members
  • Posts: 2
  • Joined: 24-April 09
  • Location:Serpentholm
  • Fav. TF2 Class:
    N/A

Posted 24 April 2009 - 09:11 PM

Hi, im trying to edit the textures on the models.h2o file, but i cant rebuild this file, because when i launch the game , it crash, and says: "GATHERPOINT_DRAGON.lmd"

I know that im not the only with this problem, but i cant figure out, how to solve it, or i dont know if this file cant be repacked again, because i follow the tutorial of extract-build (Zymeth tutorial) with textures.h2o and works, but whit this file not...
0

#108 User is offline   dragonnik1 

  • Cannoner
  • PipPipPipPipPip
  • Group: Members
  • Posts: 118
  • Joined: 25-March 09
  • Fav. TF2 Class:
    Engineer

Posted 07 February 2010 - 09:26 PM

Hey any body found solution this problem..tht extract n repack of models.h20 files?
H20 GUI/cms both gives error..anyluck with anybody?
BR Compiled list for BR..
0

Share this topic:


  • (6 Pages)
  • +
  • « First
  • 4
  • 5
  • 6
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users