Use your Xbox Live Arcade Marathon: Durandal textures in Aleph One

Have a question, suggestion, or comment about Aleph One's features and functionality (Lua, MML, the engine itself, etc)? Post such topics here.

Post Sep 13th '09, 14:13

It's possible!
[attachment=3037:full_roaming_vapor.jpg]
But it's not easy.

What you will need:How to do it:
  1. Using your Xbox, copy Marathon: Durandal to the memory card
  2. Plug the memory card into your Windows computer, and run Xplorer360. You're looking for a big file with a huge filename; the file is about 130 MB, and the filename will be a big hexadecimal (capital A-F and digits) string. Copy that file onto your computer
  3. Open that big file in wxPirs and extract its contents
  4. Open a command prompt, and change to the directory that contains the files you just extracted
  5. Run my extracthd.py script (www.python.org has instructions on the ridiculously complicated way to run python scripts). This will create a folder called XBLA; it contains hi-res PNG and DDS files
  6. (Optional) If you want to use the wall textures, you will need to batch convert them in Aorta *from* DDS *to* DDS! Aleph One doesn't like the mipmap count in these files, but Aorta can read them and Aleph One likes the ones it writes. Aorta will let you use the same folder for destination and source. Use these settings: Use DXTC, generate mipmaps, triangle filter, no halo removal.
  7. Copy the XBLA folder into your Marathon 2 folder, and add whichever of my MML scripts you want to your Scripts folder. Should be pretty self explanatory what they do.
I've also included in my zip file an extractmark.py file, which will let you extract the contents of the other .mark files in the scenario. For example, the net maps are in Durandal.scnX in Static.mark

I find the walls, landscapes, and some of the items, scenery, and projectiles work well. Some of the aliens work OK, too--juggernauts, defenders, compilers. Many of the other aliens, as well as Bobs and the player sprites, are different sizes than in the Marathon 2 shapes file, so they will look off-center or weirdly stretched. It might be possible to fix them by creating an all new shapes file, but that's more work than I am willing to put into it.

Weapons in hand don't work, since they are centered in their files, and are also different sizes than in the shapes file. IMO, WEP looks better anyway.

Please do not ask for a copy of the data files--we will not distribute them.
Attachments
XBLA_Scripts.zip
(32.6 KiB) Downloaded 55 times
full_roaming_vapor.jpg
full_roaming_vapor.jpg (214.85 KiB) Viewed 1186 times
Last edited by treellama on Sep 14th '09, 00:36, edited 1 time in total.
User avatar

treellama
Pittsburgh

Post Sep 18th '09, 02:18

That's pretty awesome. I may not be able to try this out for a while, but way to go!
Last edited by Ares Ex Machina on Sep 18th '09, 02:19, edited 1 time in total.
User avatar

Ares Ex Machina

Post Sep 18th '09, 02:44

0.0
i have seen the future... it is wonderful...
ill do this someday... man...
Si tratta di una lacrimosa.
User avatar

envy
Land of the New Rising Sun

Post Sep 18th '09, 16:00

I think Treellama is a pretty cool guy, eh h4x XBox games and doesn't afraid of anything.

EDIT: on a more serious note:
if you convert all the DDS textures into PNG format using a Photoshop plugin or Aorta, the texture sizes (i.e. aspect ratios) can be manipulated so that they might match with those from the originals. I don't know what would be more work - adjusting the shapes file or adjusting the sprites themselves. I might try out both options though I believe that will take a while...

btw: how's the texture alignment on the walls working out Treellama? Any offsets or other anomalies?
Last edited by thedoctor45 on Sep 21st '09, 16:45, edited 1 time in total.
User avatar

thedoctor45

Post Sep 30th '09, 17:50

thedoctor45 wrote:EDIT: on a more serious note:
if you convert all the DDS textures into PNG format using a Photoshop plugin or Aorta, the texture sizes (i.e. aspect ratios) can be manipulated so that they might match with those from the originals. I don't know what would be more work - adjusting the shapes file or adjusting the sprites themselves. I might try out both options though I believe that will take a while...

btw: how's the texture alignment on the walls working out Treellama? Any offsets or other anomalies?

I didn't see this edit until now because edits don't show up in VNP. Changing the texture files is not sufficient, adjusting the shapes file is necessary--that is the only way to make the aspect ratios match the new artwork. Additionally, while we can distribute a new shapes file with the correct ratios, we can not distribute altered XBLA texture files.

Walls work perfectly since they are just square; landscapes are the correct aspect ratio as well.
Last edited by treellama on Sep 30th '09, 17:52, edited 1 time in total.
User avatar

treellama
Pittsburgh

Post Oct 1st '09, 04:07

The Xbox live version of M2 is pretty cool, but some of the monsters just look very wrong to me.
Still I play it.

The Flickta are one of the monsters that really look improved.
What the heck did they do to the Pfhor though? They probably would have been better off just using the old sprites.
It'd look out of place but more correct.

If its just the textures, I'll try this too.
MoppyPuppy
Lake Nebagamon, WI

Post Oct 1st '09, 13:18

MoppyPuppy wrote:If its just the textures, I'll try this too.

There are separate MML files for everything, so you can install whatever you like. If you just want textures, install only XBLA Textures.mml
User avatar

treellama
Pittsburgh

Post Oct 3rd '09, 20:15

ok I'll get my hands onto the XBLA files tomorrow, so I'm definetely going to give it a try and see how it turns out. I just hope I can get everything working...

So what exactly would I need for creating a new XBLA sprites compatible shapes file?

PS: Just to make one thing clear: I'm willing to see this through no matter how long it might take... [MUp]

cheers
User avatar

thedoctor45

Post Oct 3rd '09, 20:40

thedoctor45 wrote:So what exactly would I need for creating a new XBLA sprites compatible shapes file?

You'll need to do a few things. I'll try to help as best I can, since it would benefit me to have such a shapes file.

You need Anvil or ShapeFusion. Anvil is probably better since you can replace a bitmap with it, which ShapeFusion can't do yet. For each frame:
  1. Convert DDS to PNG if necessary
  2. Replace old bitmap with PNG's mask
  3. Adjust origin and keypoint
  4. Replace bitmap with a white box the size of the PNG, just so there's no copyright confusion; also because it will compress better
  5. Remove "real_height" and "real_width" parameters from MML (for each color table!), since the shapes file now reflects the powers-of-two sized sprite
Pretty straightforward, but there are hundreds of sprite frames to do this for. I suggest starting with a small collection, maybe one of the scenery collections, and making sure my approach works. I don't see why it wouldn't, but I haven't tried it yet. Let me know how it works!
Last edited by treellama on Oct 3rd '09, 20:41, edited 1 time in total.
User avatar

treellama
Pittsburgh

Post Oct 8th '09, 15:10

Well, this is just awesome!



my first impressions:

all the HD sprites and textures show up - i batch converted all of them to PNG format many of the weapon and enemy sprites are stretched but that should be easy to fix if you have enough time - the flickta creatures are kinda blurry in this screnshot - idk what causes that but I guess they are magnified a little bit because they seem so huge.... The fusion gun is clinched a little bit as well.

I will start with fixing the weapon-in-hand models and post screenshots of my progress here in this thread.
I got SheepShaver and Anvil installed and I'm ready to get this thing sorted.

It came to my attention that some of the XBLA sprites and textures are kinda ugly compared to Viscioms HD enhancement pack.
I will try to replace them with those pics that would fit better in my opinion in order to achieve the best level of visual quality.

more screenshots to come so stay tuned...
Last edited by thedoctor45 on Oct 8th '09, 15:14, edited 1 time in total.
User avatar

thedoctor45

Post Oct 9th '09, 19:30

This looks really cool. I'm not a big fan of the aliens in the xbla version but its about time we got some updated enemy graphics. I can't wait to see the outcome.
Its just like the story of the grasshopper and the octopus. All year long the grasshopper kept burying acorns for winter while the octopus mooched off his girlfriend and watched TV. Then the winter came, and the grasshopper died, and the octopus ate all his acorns and also he got a racecar. Is any of this getting through to you?
Favorite quote
ASYMPOTATOES http://asympotatoes.blogspot.com/
[viral]
User avatar

megabyte
Asympotatoes, Mars

Post Oct 10th '09, 02:45

are the shots updated too? more screenies plz, i want something to gape at.
Si tratta di una lacrimosa.
User avatar

envy
Land of the New Rising Sun

Post Oct 10th '09, 16:02

Envy wrote:are the shots updated too? more screenies plz, i want something to gape at.

There have been updated shots for a while. Click Me.
Its just like the story of the grasshopper and the octopus. All year long the grasshopper kept burying acorns for winter while the octopus mooched off his girlfriend and watched TV. Then the winter came, and the grasshopper died, and the octopus ate all his acorns and also he got a racecar. Is any of this getting through to you?
Favorite quote
ASYMPOTATOES http://asympotatoes.blogspot.com/
[viral]
User avatar

megabyte
Asympotatoes, Mars

Post Oct 11th '09, 01:35

OK first results with the fist graphics:

Pics:

[attachment=3138:1.jpg]

[attachment=3139:2.jpg]

[attachment=3140:3.jpg]

@Treellama - I'm using Anvil for replacing the 16Bit bitmap graphics and ShapeFusion for adjusting the keypoints and origin of the frames.
However I ran into some problems regarding the scale factor. if I use the standard preset (7) for weapon graphics they turn out really huge (they almost cover up the entire screen) - using a factor of 2 is somewhat acceptable regarding the size of the wepons but i think they are still a bit magnified. Scale factor 1 makes them too small - I can't select any other values between 1 and 2 so it's almost impossible to adequately adjust the sprite size when working with the original resolution of the PNG files (512x512 in this case)


Also correcting the origin for every single frame is a real pain if you basically have to guess the correct position of the current frame in it's context/sequence....

I wonder how Visciom managed to make his weapon graphics fit so perfectly without modifying the shapes file at all. I don't really get how AlephOne handles the scaling here - any help or info would be appreciated.
Attachments
3.jpg
3.jpg (465 KiB) Viewed 1136 times
2.jpg
2.jpg (417.08 KiB) Viewed 1139 times
1.jpg
1.jpg (383.67 KiB) Viewed 1135 times
Last edited by thedoctor45 on Oct 11th '09, 01:37, edited 1 time in total.
User avatar

thedoctor45

Post Oct 11th '09, 01:51

You can adjust the size using the size of the bitmaps you paste in. You only have to make sure that the aspect ratio is correct--so if you scale the image to 256x256 before you paste it in, it will be half the size, which should give you more accuracy using the scale factor.

As for origins, for weapons in hand you pretty much have to guess. As I said, they'll be the hardest, and WEP is already better looking. Maybe try one of the smaller monster collections instead--the origins are easier to get right.
User avatar

treellama
Pittsburgh

Post Oct 11th '09, 03:38

thedoctor45 wrote:[attachment=3139:2.jpg]

Was that blurring a side effect of your messing with the graphics, or was that how the drones were actually displayed? If it wasn't so blurry I'd almost say the sprites would be a nice improvement.
I have been wading in a long river and my feet are wet.
User avatar

L'howon
Somewhere outside the Citadel Of Antiquity

Post Oct 11th '09, 16:57

Lh wrote:Was that blurring a side effect of your messing with the graphics, or was that how the drones were actually displayed? If it wasn't so blurry I'd almost say the sprites would be a nice improvement.

The sprites in XBLA have true alpha transparency, so when they get scaled up they don't have sharp edges. You can turn that off in the MML, but then you don't get cool glow effects like the green light coming from the drone's exhaust port.
User avatar

treellama
Pittsburgh

Post Oct 11th '09, 20:56

Alright, after almost 2 hours of fiddling I finally got the weapon-in-hand graphics all in the right size/place.
Now there´s another issue that slows down my progress..

I noticed that once I save a shapes file with ShapeFusion, Anvil can't read it anymore - this is a problem because most of the time I have to adjust the sprite size again after adjusting the origin and keypoint and testing it ingame. Anvil's frame-adjustment window is just too small and the origin points can only be moved by keypad input.

This is really uncomforable if you have to work on a lot of sprites. or am I missing something? Im not really used to working with Anvil (yet).
User avatar

thedoctor45

Post Oct 11th '09, 23:59

Does it just not show up? You might have to reset the type and creator codes. Anvil isn't as forgiving as Forge IIRC.
User avatar

treellama
Pittsburgh

Post Oct 12th '09, 00:57

the file itself has no label and is not associated with any application. It can't be dragged onto the Anvil icon and it doesn't show up in the Avil explorer window..



can you give some instructions on how/where to reset the type and creator codes?

For now I'll just start pasting all the sprites into the shapes file - If I'm lucky I won't need to resize them later once I edited them with ShapeFusion...
User avatar

thedoctor45

Post Oct 12th '09, 02:38

Download ResEdit, which is free. Open it and cancel out of the "open file" dialog. Now choose "Get Info" from the File menu, and pick a shapes file Anvil can open. Remember the type code in there, and Get Info on the other file and type it in.
User avatar

treellama
Pittsburgh

Post Oct 12th '09, 11:31

Thanks - it worked!

I'm going to finish off the weapons plus the Pfhor fighters and post some more screenshots asap.

PS: From what I've seen the fighter sprites are blurry as hell - I wonder if they appear like that in the XBLA version too - would removing the opacity type value in the MML scripts help sharpening the graphics or is there any other way to filter them with the help of MML code?
User avatar

thedoctor45

Post Oct 12th '09, 13:05

You can try reverting the opac_type to 0 in the MML, but as I said that will ruin glow effects. For consistency's sake I'm going to guess you want it off for all sprites, rather than some sharp and some blurry.

When you get the fighters done, maybe send me your shapes file and I'll see if I can improve things? You are removing the "actual_width" and "actual_height" attributes from the MML as you go, right?
User avatar

treellama
Pittsburgh

Post Oct 12th '09, 16:18

Treellama wrote:When you get the fighters done, maybe send me your shapes file and I'll see if I can improve things? You are removing the "actual_width" and "actual_height" attributes from the MML as you go, right?


I converted all dds files to PNG format adjusted the file extensions in the mml files and removed the width and height values as well.
I had to add the opacity type setting for the weapon models though - otherwise the muzzle falsh looks really weird...
User avatar

thedoctor45

Post Oct 12th '09, 16:27

Is there a reason you're using PNG? DDS won't look less blurry, but it will load faster and take less RAM.
User avatar

treellama
Pittsburgh

Next

Return to Aleph One Discussion



Who is online

Users browsing this forum: No registered users