|
Author
|
Topic: ZLIB.DLL
|
Malte Member Posts: 166 From:Germany Registered: Apr 2002
|
posted 05-08-2002 07:23 AM
Hi I have known making programs in C++ since some years. Now I'm learning Visual C++. I'd like to make a tool for the LE. Many tools for the LE (like TRWEST, TR2WAD, . . .) use the "dynamic link library" ZLIB.DLL. What functions are saved in this file? Are there any functions included for working with WAD's? That would be very cool.IP: Logged |
Turbo Pascal Member Posts: 153 From: Registered: Dec 2000
|
posted 05-08-2002 08:48 AM
Some Data in Tomb Raider 4 and Tomb raider 5 levels are compressed using a method called Zlib.Zlib.dll allow you to uncompress the chunks so you can edit the data, later you have to compress back the edited data. The WADs are not in compressed way so you only need to known the file format and build your own reader/writer. tp.
IP: Logged |
TRWad Member Posts: 362 From:Rotterdam Registered: Dec 2001
|
posted 05-08-2002 02:13 PM
quote: Originally posted by Malte: Hi I'd like to make a tool for the LE.
What kind of tool? If it's something with tom files, I have 30% of the tom file format somewhere on my pc.IP: Logged |
Malte Member Posts: 166 From:Germany Registered: Apr 2002
|
posted 05-09-2002 03:17 AM
Thank you, Turbo Pascal!I don't know what kind of tool. I'm learning at the moment Visual C++. All the handles . . . Do you have any suggestions for the tool? IP: Logged |
TRWad Member Posts: 362 From:Rotterdam Registered: Dec 2001
|
posted 05-09-2002 01:43 PM
Well, there aren't any tools with tom files yet. Maybe a better level convertor since the one from core always crashes.IP: Logged |
Malte Member Posts: 166 From:Germany Registered: Apr 2002
|
posted 05-10-2002 12:48 AM
That's a good idea. I don't know anything about the format of tom files and TR4 files. Could it be possible for example that I create a new converter that supports alloc file buffer over 7500000 for example?IP: Logged |
aktrekker Member Posts: 1096 From:WA, USA Registered: Apr 2001
|
posted 05-10-2002 10:00 AM
The problem is not the converter. The limit is in the game engine itself. tom2pc has never crashed for me.
IP: Logged |
Malte Member Posts: 166 From:Germany Registered: Apr 2002
|
posted 05-10-2002 11:51 AM
I think such a tool would be little bit to big for me at the moment.  KEEP COOL MALTE!  IP: Logged |
TRWad Member Posts: 362 From:Rotterdam Registered: Dec 2001
|
posted 05-10-2002 12:22 PM
quote: Originally posted by aktrekker: The problem is not the converter. The limit is in the game engine itself. tom2pc has never crashed for me.
Well, the convertor needs some better error handling anyway. But it's a bit hard. But I've no idea of something else yet. IP: Logged |
Malte Member Posts: 166 From:Germany Registered: Apr 2002
|
posted 05-10-2002 01:24 PM
I mean the Interface is easy. Simply open a TOM file and click "Convert".The main function is the converting of course. And that's of what I'm a bit afraid. There are so many things that must be done. I need the format of all files that are used, all the WAD files, samples, meshes, sprites, textures, TR4, the limits, bla bla bla and ZLIB.DLL I think. Boahh! IP: Logged |
TRWad Member Posts: 362 From:Rotterdam Registered: Dec 2001
|
posted 05-11-2002 09:30 AM
Yeah, but many file formats are hard. The wad files for example: the format is easy, and so is reading and writing them. But in order to edit them all structures must be splitted and rebuilded. The script files are easier, but there are many tools with them already. And the font files are easy too. And they don't use zlib. Maybe a font editor that allows to edit 1 charachter and not the whole file can be done.IP: Logged |
Malte Member Posts: 166 From:Germany Registered: Apr 2002
|
posted 05-11-2002 10:43 AM
As start a have another idea:I started a tool that converts BMP files into RAW files. The sizes and other settings are hardcoded. You have only to creat your BMP file for the logo and open it with the tool and save it then as RAW file. The format of the RAW files are easy I think: 384 kb means 512 * 256 * 24 bit (3). I know you can do this with Paint Shop Pro but that program is espacially created for the TR Logo. I think somebody asked for such a tool. The interace is already finished. I only have to write the open function and the save function. IP: Logged |
TRWad Member Posts: 362 From:Rotterdam Registered: Dec 2001
|
posted 05-11-2002 11:28 AM
I thought the logo used zlib too. You can try using it too so it compressed the raw file.IP: Logged |
Malte Member Posts: 166 From:Germany Registered: Apr 2002
|
posted 05-11-2002 11:44 AM
I'm a beginner in VC++ so I think in the first version the program can only save the RAW file. Later I can update it.P.S. Do you know whether the pixels in a RAW file are saved in lines or in columns? IP: Logged |
aktrekker Member Posts: 1096 From:WA, USA Registered: Apr 2001
|
posted 05-11-2002 11:56 AM
The RAW files are in lines - left to right, top to bottom.TOM files are not compressed. They are almost the same format as the TR4 file (I think, from the little I have looked at) but without the wad objects and animations. tom2pc loads the wad, tom, sfx, etc., compresses the textures to only what is actually used in the level, and puts it all together. There are some "limits" that are built into winroomedit instead of tom2pc, and I'm thinking of ways to exploit these features. If someone wants to attempt a new tom2pc, a neat feature would be if it could compress the wad file by only including the objects that are placed in the level. Then it could maybe allow including objects from more than one wad. Maybe I'm saying too much... 
IP: Logged |
TRWad Member Posts: 362 From:Rotterdam Registered: Dec 2001
|
posted 05-11-2002 12:16 PM
Well, what I know about the tom files is that the sector data is stored almos the same way as in the prj files (so the height for each of the 4 edges) and the bumpmapping textures still need to be calculated. I currently got the file format until the sectors of the first room and I'm to lazy to try looking after it for the moment.IP: Logged |
Malte Member Posts: 166 From:Germany Registered: Apr 2002
|
posted 05-11-2002 12:44 PM
Thank you, now I think "BmpToRaw" Version 1 will be released soon. Juhu, I'm a TR tool programer ( )!When the time comes I will think of a new converter ( )! IP: Logged |
TRWad Member Posts: 362 From:Rotterdam Registered: Dec 2001
|
posted 05-12-2002 03:35 AM
Do you have msn? Then I can learn you the other file formats.IP: Logged |
Malte Member Posts: 166 From:Germany Registered: Apr 2002
|
posted 05-13-2002 05:07 AM
Yes, I have.IP: Logged |
traider28 Junior Member Posts: 11 From:kentucky Registered: May 2002
|
posted 05-13-2002 05:23 AM
I would love to learn the format for those files.I was wondering if it would be possible to make a program that would take the tr4 file and return it back to a prj. file or to much data to uncompress?ThanksIP: Logged |
Malte Member Posts: 166 From:Germany Registered: Apr 2002
|
posted 05-13-2002 08:12 AM
Well, there are already many programs for that. TR2PRJ extracts the PRJ but without textures and lights. TR2WAD extracts the WAD, Jack! the textures, SoundJack the sounds, . . .IP: Logged |
aktrekker Member Posts: 1096 From:WA, USA Registered: Apr 2001
|
posted 05-13-2002 12:26 PM
TR2Prj does do lights. It also does the textures, but without transparency correction. I have been working on the textures for a couple of weeks now, and it just keeps eluding me. Very irritating, but trying to recover the information into the right format is causing some strange interactions with other data. I'll keep trying a bit longer.
IP: Logged |
Malte Member Posts: 166 From:Germany Registered: Apr 2002
|
posted 05-13-2002 02:19 PM
Ups, I think I should download an update . . .IP: Logged |
Malte Member Posts: 166 From:Germany Registered: Apr 2002
|
posted 05-14-2002 09:05 AM
Hey, TRWad, where are you?I don't know what you exactly meant by "do you have msn?". I use MSN sometimes as provider. I'm interrested in the file formats. That would be really cool. IP: Logged |
ObsessiveAttitude Member Posts: 79 From:Kitchener, ON, Canada Registered: Apr 2002
|
posted 05-14-2002 01:17 PM
i don't think there is a program that you create textures for your TGA files... that would be cool if someone could make that... i know about textureEdit... but you can only mix TGA's with that right? if there is a program like the one i suggested can somebody please tell me where to download it  IP: Logged |
Malte Member Posts: 166 From:Germany Registered: Apr 2002
|
posted 05-15-2002 06:27 AM
There are some paint programs that allow you to create your own textures like CORELTexture. But I don't know any program that can be downloaded.IP: Logged |
aktrekker Member Posts: 1096 From:WA, USA Registered: Apr 2001
|
posted 05-15-2002 08:43 AM
You can download a demo of Paintshop Pro. And I think they made a previous version of it freeware.
IP: Logged |
Malte Member Posts: 166 From:Germany Registered: Apr 2002
|
posted 05-15-2002 10:50 AM
BmpToRaw 1 is almost ready. The converting works great. I only have to remake the bitmap-show-part because it works very slow . . .IP: Logged |
TRWad Member Posts: 362 From:Rotterdam Registered: Dec 2001
|
posted 05-15-2002 01:02 PM
quote: Originally posted by Malte: Hey, TRWad, where are you?I don't know what you exactly meant by "do you have msn?". I use MSN sometimes as provider. I'm interrested in the file formats. That would be really cool.
I ment the msn messenger. If you have it, give your address. If you don't have it, get it now!
IP: Logged |
Malte Member Posts: 166 From:Germany Registered: Apr 2002
|
posted 05-15-2002 01:35 PM
Ahh, now I understand!I don't have it yet, but I will get it soon. IP: Logged |