Oddworld Forums

Oddworld Forums (http://www.oddworldforums.net/index.php)
-   Oddworld Mods & Hacks (http://www.oddworldforums.net/forumdisplay.php?f=24)
-   -   .lvl files (http://www.oddworldforums.net/showthread.php?t=15680)

Zerox 07-02-2007 09:57 AM

Even so, it would only be an image, not so you'd have no idea what you were doing, unless it was a plain flat floor or something, and the original programming was also.

Would be interesting, though.

If we could, let's replace Abe's sprites with Scrab ones, and see what happens. Or replace all the Mudokons with Sligs (and Sligs with Mudokons), since they don't need to jump or climb or anything. That would be funny. Save all the Sligs from the evil, gun-toting Mudokons!

SligStorm 07-02-2007 10:14 AM

:

()
Even so, it would only be an image, not so you'd have no idea what you were doing, unless it was a plain flat floor or something, and the original programming was also.

Would be interesting, though.

If we could, let's replace Abe's sprites with Scrab ones, and see what happens. Or replace all the Mudokons with Sligs (and Sligs with Mudokons), since they don't need to jump or climb or anything. That would be funny. Save all the Sligs from the evil, gun-toting Mudokons!

Hahahaha! that would be awsome! :D what would the mud shooting animation be? them saying hi? lol

Chubfish 07-02-2007 11:24 AM

Lol, although it would be better if it was their blowing up anim...but I would like to see a background change as that could be interesting, like Zerox said...

Paul 07-02-2007 02:04 PM

:

()
Has Paul or anyone else tried making a recompressor to load edited images back into the game? First step towards a full-blown editor. :P

I do have one but its poinltess if you dont know how to make your own .cam files, basicly you could edit all the background images, replacing a slig with a scrab or somthing requires a lot more than just changing the sprites, if you do that it will just crash :/ figuring out how to do anything with the files by looking a the disassembled exe file and hex dumps of the files is easier said than done..

ZANGG 07-02-2007 07:50 PM

So there's a file that stores level data as well that you've extracted? That's great, even if you don't have any idea, if you can extract and recompress it, other people could probably try for themself to edit stuff.

zimfromBM 07-02-2007 08:51 PM

Wow this is history in the making right here! finally getting close to a level editor after 10 years.

Paul 07-03-2007 04:45 AM

:

()
So there's a file that stores level data as well that you've extracted? That's great, even if you don't have any idea, if you can extract and recompress it, other people could probably try for themself to edit stuff.

I have an idea, it just takes time.. the "[levelname]path.bnd" seems to have the level map in it from what I can tell.. but anyway heres my other quick buggy app to rebuild .lvl files, i'll say rebuild because "compress" means make smaller, adding stuff to .lvl files adds a few mb of nulls.
Also note that there is some stuff that you wont beable to change, for example the strings that have the messages on the lcd screens are hard coded into the exe, so you couldnt distribute that with the .lvl file you'd have to have some kind patch to change the strings in the exe too.
Info on how to use the .lvl archive builder are in the zip.

ZANGG 07-03-2007 05:32 AM

Alright, time to see what I can do with this.

Any chance of a converter back to CAM?

Wil 07-03-2007 09:18 AM

Excellent work, Paul. Not knowing half of what you say means I am much impressed. Also, Xav: YAY! I love you. Downloading now. :D

SligStorm 07-03-2007 01:09 PM

CAM Encoder
 
:

()
Alright, time to see what I can do with this.

Any chance of a converter back to CAM?

I agree with ZANGG.
Without a .CAM Encoder the game crashes when u try putting the bmps in the file along with the other stuff and converting it to a .lvl again.

ParamiteSurprise 07-04-2007 11:27 AM

It'd be cool if you could make a room full of sligs!

SligStorm 07-04-2007 11:58 AM

Heh yeh, It would lag abit though... :/

ZANGG 07-05-2007 08:24 AM

How about a room full of snakes on a plane?

Chubfish 07-05-2007 08:29 AM

How about a room with a slig, 20 meat grinders(mega fast ones real close to the ground) and 3 floating mines, with almost no flooring. Lol, impossible.

Zerox 07-05-2007 08:40 AM

That could be used in areas where there's normally a really high pit you'd fall into. Lol.

ZANGG 07-05-2007 08:51 AM

How about a room with a scrab, a paramite, and a slig, all eating stuff?

Wil 07-05-2007 09:03 AM

How about a room with sixty Scrabs all fighting each other? LOL

How about you stop wasting words and space with extreme suggestions? If your ideas will work, you can share them with us when a level editor emerges. Until then, this isn’t really the place to brainstorm.

ZANGG 07-05-2007 09:17 AM

How about a level where Max gets pwned by sixty scrabs? :P

Chubfish 07-05-2007 10:02 AM

What I want to know is what is Paul doing now with the Level Editor? Cause I dont want this thread to get closed cause of flaming and the such...stop with the "How About" stuff now!

Xavier 07-05-2007 10:56 AM

Seriously, Paul if you need any files from AE I can send them to you via one way or another.

SligStorm 07-05-2007 05:07 PM

Update?
 
Hey Paul, Any progress from ripping the sprites yet? And do you think you could give us a .cam converter? cuz ur .lvl builder isun't much use without it :(

Xavier 07-05-2007 10:38 PM

hum...

He gave us a cam converter... it converts the .cam files to .bmp files
Look at the first posts ;)

Paul 07-06-2007 04:06 AM

not much progress since one of my hdd's died :( still recovering data from it
however the "it_is_me_your_father" appears to be some kind of debugging stuff.
It seems to check for a key combination being held or some such, i dont remeber how but I managed to get it to display the frame buffer

ZANGG 07-06-2007 04:24 AM

:

()
hum...

He gave us a cam converter... it converts the .cam files to .bmp files
Look at the first posts ;)

He means in reverse. IE: BMP to CAM

Paul 07-09-2007 10:38 AM

it would be a bit of a pain .cam files contain OTHER information to so you'd have to replace the orignal file with the new image data and then hope it still works (because it prolly wont, at least until i figure everything out which wont be for a while since i dont have much spare time lately)
also check the file sizes, that should prove that there is extra info since theyre not all the same size ;) or just whip youre fav hex editor out

ParamiteSurprise 07-11-2007 12:03 PM

:

()
not much progress since one of my hdd's died :( still recovering data from it
however the "it_is_me_your_father" appears to be some kind of debugging stuff.
It seems to check for a key combination being held or some such, i dont remeber how but I managed to get it to display the frame buffer

That "frame buffer" happens when ya turn the Scroll Lock on, it happens ingame too :p - - i just dont understand it

Paul 07-11-2007 03:34 PM

hmm it just works for you when you use the "it_is_me_your_father" and turn scroll lock on?

ZANGG 07-26-2007 02:58 AM

Anything new on the lvl files?

Paul 07-26-2007 11:39 AM

not yet, been playing around with the "path" files, you can change the background but the collision detection remains the same, very strange

ParamiteSurprise 07-28-2007 07:54 AM

RE:Lvl.EDITO
 
:

()
hmm it just works for you when you use the "it_is_me_your_father" and turn scroll lock on?


No i only turn scroll lock on without it_is_me_your_father, btw, what is it_is_me_your_father??



Oh and i've found something out with the scroll lock thingy, when i play the game, on the right, eg if i was in the first screen in scrabania, the red flash alarm would go off and tell me that theres sligs in the other room... :O

Xavier 07-28-2007 02:56 PM

Paul, for the AE backgrounds, if your .exe file is broken, you can toy around with the one of the demo, available on the official site: http://www.oddworld.com/firsttenyear...s/exoddemo.exe

LIJI 07-29-2007 07:17 AM

Very interesting stuff. :)
Paul, Correct me if I'm wrong, but are CAM files raw bitmaps with 15-bits color and an header?
If so, I could make a BMP to CAM converter. :)
Also, I'm glad that someone finally found out what it_is_me_your_father do.

Edit:
Also, You can see the order of the CAM files to see which parts were added first and which parts were added later. ;)
For example the first level didn't have the 2 screens with the Slig and the door originally (Where the background is orange), and it jumped to the screen where you have to jump over the landmines.

Paul 07-29-2007 07:47 AM

Yeah I thought that was intresting how they added those extra bits in, but I think that might have been because the screens they added have the "distant/small" parts where abe is in the background, maybe they didn't implement that yet?
Also yes, CAM files are pretty much just raw bmp's but they're in segments and each word is an RGB segment or 15/16bit colour.
A level is made of CAMeras, Paths and Levels, the level contains all the game engine data, the cameras are the backgrounds, and the path's are the level maps which tell how the cam's link up, the collision detection, placing of sligs, chant orbs and just about everything.

edit: oh whoops, forgot to mention if you make a bmp to cam converter the game will crash unless you include the extra information from the orignal cam file, e.g its more than just a bitmap theres fonts etc in a lot of them

edit again: some info on path files, the start is just a lot of file names stuck together, where there isnt a file name or just null's means that there is no screen in that area of the map, the data after this is everything else which will take a while to figure out, ive managed to figure out Palt's too which is simple, and Fonts for the most part just a few things need to be discovered for those (e.g how do you know which palt they use??)

LIJI 07-29-2007 07:59 AM

If it's like that, Why not make it a gui or add more command lines and use 2 parameters, the original cam file and the modified BMP. That should do the job. :)

Paul 07-29-2007 08:01 AM

basicly because im lazy and want to make some super tool at the end of all this to edit everything :p

LIJI 07-29-2007 08:10 AM

Ah, good. :)

Paul 07-29-2007 12:10 PM

:

()
Very interesting stuff. :)
Paul, Correct me if I'm wrong, but are CAM files raw bitmaps with 15-bits color and an header?
If so, I could make a BMP to CAM converter. :)
Also, I'm glad that someone finally found out what it_is_me_your_father do.

Edit:
Also, You can see the order of the CAM files to see which parts were added first and which parts were added later. ;)
For example the first level didn't have the 2 screens with the Slig and the door originally (Where the background is orange), and it jumped to the screen where you have to jump over the landmines.

check the other thread for the it_is_me_your_father stuff, its basicly the ddcheat for oddysee

LIJI 08-03-2007 04:53 AM

I managed to modify and "compile" the first level a little. :)
I replaced the 2 first screens with some random image (I actually tried to swap the background of the 2 first screens, but I can random stuff instead).
The game can read the cam files without crash.
Yet the cam converter crashes when trying to process them. :P

Paul, can you post more information about how are the cam files working? Especially the header.
If you can post the source code of the cam converter (If it's C or C++) that would be great. :)

Paul 08-03-2007 12:59 PM

Im not gonna give the source to that util because im prolly gonna use this as a uni project so I can't.. however I was about to write a cam patcher/bmp to cam or whatever you wanna call it because theres a few extra things I need to find out from them, so i'll post that exe up later

SligStorm 08-05-2007 06:43 PM

I was just thinking, when you convert the CAM files into BMP how come it dosen't rip the forground as a seperate image?