Can a HAM file be embedded into a HOG archive?

For Descent, Descent II and Descent3 level editing and modification assistance.
Post Reply
User avatar
Xfing
DBB Admiral
DBB Admiral
Posts: 1492
Joined: Mon Jun 15, 2009 3:03 am
Location: Ringing Satan's Doorbell

Can a HAM file be embedded into a HOG archive?

Post by Xfing » Wed Sep 27, 2017 9:42 am

As per the title. Is it possible to insert a HAM file into a mission archive so that the game reads it in precedence over the regular HAM file? If it's possible, is it only for Rebirth, or also for vanilla?

Also, for Rebirth only, if you make a DXA addon file with the same name as the mission's name, will the same functionality be achieved?
Descent 1,5: Level layouts done: 34/54 Secret level layouts done: 1/6
User avatar
Sirius
DBB Master
DBB Master
Posts: 5435
Joined: Fri May 28, 1999 2:01 am
Location: Bellevue, WA
Contact:

Re: Can a HAM file be embedded into a HOG archive?

Post by Sirius » Wed Sep 27, 2017 11:46 pm

Not familiar with DXA, but loading HAM files from the mission HOG is a Rebirth-only feature, yeah. Except for Vertigo-format HAMs, which only replace the Vertigo stuff.
User avatar
Xfing
DBB Admiral
DBB Admiral
Posts: 1492
Joined: Mon Jun 15, 2009 3:03 am
Location: Ringing Satan's Doorbell

Re: Can a HAM file be embedded into a HOG archive?

Post by Xfing » Thu Sep 28, 2017 3:14 am

Sirius wrote:Not familiar with DXA, but loading HAM files from the mission HOG is a Rebirth-only feature, yeah. Except for Vertigo-format HAMs, which only replace the Vertigo stuff.
So the only way to play a mission with replaced HAM assets in DOS is to use a HXM file or to replace the game's native HAM, I take it?
Descent 1,5: Level layouts done: 34/54 Secret level layouts done: 1/6
User avatar
Sirius
DBB Master
DBB Master
Posts: 5435
Joined: Fri May 28, 1999 2:01 am
Location: Bellevue, WA
Contact:

Re: Can a HAM file be embedded into a HOG archive?

Post by Sirius » Thu Sep 28, 2017 8:43 am

Correct. Yes, you are pretty limited. Well, kind of - the most common thing you'd actually want to change but can't is the weapons.
User avatar
Xfing
DBB Admiral
DBB Admiral
Posts: 1492
Joined: Mon Jun 15, 2009 3:03 am
Location: Ringing Satan's Doorbell

Re: Can a HAM file be embedded into a HOG archive?

Post by Xfing » Fri Sep 29, 2017 11:36 am

Sirius wrote:Correct. Yes, you are pretty limited. Well, kind of - the most common thing you'd actually want to change but can't is the weapons.
Exactly, HXMs only let you change robots. Well, DXA would be an acceptable option for Rebirth, but I'm not sure if Rebirth can recognize that a DXA is only supposed to be used with a single mission if their names are identical. But no harm done, you said Rebirth could accept HAM files inside HOG missions anyway.

If you're not familiar with DXAs - that's just what you rename regular ZIP archives to, so that Rebirth can make use of extra assets, such as hi-res textures etc. I think the abbreviation develops into "descent x addon".
Descent 1,5: Level layouts done: 34/54 Secret level layouts done: 1/6
User avatar
LightWolf
DBB Captain
DBB Captain
Posts: 512
Joined: Sat Mar 09, 2013 2:27 pm
Location: Kingdom of God

Re: Can a HAM file be embedded into a HOG archive?

Post by LightWolf » Fri Sep 29, 2017 6:48 pm

I've always gotten around the DXA problem with a simple batch file:

Code: Select all

if exist mission.dxa ren mission.dxa mission.zip else ren mission.zip mission.dxa
where mission.dxa/zip is the filename.
Your friendly neighborhood diamond-loving light wolf.
(Who wouldn't love diamonds? They're so strong! Ever wonder why Diamond Claws did so much damage?)
Substance: 5/30 (6/35) Click here!
New Age Mod: Now hiring! Click here!
User avatar
Xfing
DBB Admiral
DBB Admiral
Posts: 1492
Joined: Mon Jun 15, 2009 3:03 am
Location: Ringing Satan's Doorbell

Re: Can a HAM file be embedded into a HOG archive?

Post by Xfing » Mon Oct 02, 2017 3:16 pm

LightWolf wrote:I've always gotten around the DXA problem with a simple batch file:

Code: Select all

if exist mission.dxa ren mission.dxa mission.zip else ren mission.zip mission.dxa
where mission.dxa/zip is the filename.
What does the order of putting them in change? In both cases you have both zip and dxa :O
Descent 1,5: Level layouts done: 34/54 Secret level layouts done: 1/6
User avatar
Xfing
DBB Admiral
DBB Admiral
Posts: 1492
Joined: Mon Jun 15, 2009 3:03 am
Location: Ringing Satan's Doorbell

Re: Can a HAM file be embedded into a HOG archive?

Post by Xfing » Mon Oct 02, 2017 3:26 pm

BTW, I tried running The Enemy Within in DOSBox D2. The mission obviously makes use of drastically altered assets, and yet vanilla was able to run it no problem. I did get a hang-up after finishing the first level - black screen and nothing else - but the game did render the new robots and cockpit just fine. Is this all HXMs? I thought the cockpit can only be changed by altering the base HAM. That leads me to believe that TEW does indeed have a HAM in it, and Descent 2 was able to read it. Of course going black after exiting every mine doesn't mean it's playable but well, it's a start :lol:
Descent 1,5: Level layouts done: 34/54 Secret level layouts done: 1/6
User avatar
LightWolf
DBB Captain
DBB Captain
Posts: 512
Joined: Sat Mar 09, 2013 2:27 pm
Location: Kingdom of God

Re: Can a HAM file be embedded into a HOG archive?

Post by LightWolf » Mon Oct 02, 2017 3:32 pm

The cockpit is actually a graphic asset. You'll find it in the POGs.

You can do the batch in either order - just make sure the order is opposite on one side of the "else" than the other.

You will also want to make sure you don't say "if the DXA exists turn the ZIP into a DXA" or else it won't do anything.
Your friendly neighborhood diamond-loving light wolf.
(Who wouldn't love diamonds? They're so strong! Ever wonder why Diamond Claws did so much damage?)
Substance: 5/30 (6/35) Click here!
New Age Mod: Now hiring! Click here!
User avatar
Sirius
DBB Master
DBB Master
Posts: 5435
Joined: Fri May 28, 1999 2:01 am
Location: Bellevue, WA
Contact:

Re: Can a HAM file be embedded into a HOG archive?

Post by Sirius » Mon Oct 02, 2017 4:34 pm

Right, it's all HXMs and POGs. POGs can replace practically anything you want - they just can't add textures. TEW is supposed to be able to run in DOS, and mostly does, but there are some glitches we never really figured out.
User avatar
Xfing
DBB Admiral
DBB Admiral
Posts: 1492
Joined: Mon Jun 15, 2009 3:03 am
Location: Ringing Satan's Doorbell

Re: Can a HAM file be embedded into a HOG archive?

Post by Xfing » Wed Oct 04, 2017 4:44 am

Ok, so vanilla Descent can indeed read V-HAMS embedded in the HOG. Haven't tried with a regular Descent2.HAM, but I'll take your word and assume it doesn't work. Still, for D1,5, we'll need both a d2x.HAM and a replacement descent2.HAM, both at the same time. How to go about doing this?

Vanilla: Embed the d2x.HAM in the HOG, replace descent2.HAM entirely
Rebirth: Embed the d2h.HAM in the HOG, create a DXA with the altered descent2.HAM?
Descent 1,5: Level layouts done: 34/54 Secret level layouts done: 1/6
User avatar
Sirius
DBB Master
DBB Master
Posts: 5435
Joined: Fri May 28, 1999 2:01 am
Location: Bellevue, WA
Contact:

Re: Can a HAM file be embedded into a HOG archive?

Post by Sirius » Wed Oct 04, 2017 10:20 pm

I... think so. It's been a while. Though I don't think you call the V-HAM "d2x", just missionname.ham.
User avatar
Xfing
DBB Admiral
DBB Admiral
Posts: 1492
Joined: Mon Jun 15, 2009 3:03 am
Location: Ringing Satan's Doorbell

Re: Can a HAM file be embedded into a HOG archive?

Post by Xfing » Thu Oct 05, 2017 4:11 am

Sirius wrote:I... think so. It's been a while. Though I don't think you call the V-HAM "d2x", just missionname.ham.
Yeah, that one I know :D
Descent 1,5: Level layouts done: 34/54 Secret level layouts done: 1/6
User avatar
LightWolf
DBB Captain
DBB Captain
Posts: 512
Joined: Sat Mar 09, 2013 2:27 pm
Location: Kingdom of God

Re: Can a HAM file be embedded into a HOG archive?

Post by LightWolf » Thu Oct 05, 2017 6:43 pm

The DXA works - it's how the Rebirth version of my mod works

@Sirius What glitches?
Your friendly neighborhood diamond-loving light wolf.
(Who wouldn't love diamonds? They're so strong! Ever wonder why Diamond Claws did so much damage?)
Substance: 5/30 (6/35) Click here!
New Age Mod: Now hiring! Click here!
User avatar
Sirius
DBB Master
DBB Master
Posts: 5435
Joined: Fri May 28, 1999 2:01 am
Location: Bellevue, WA
Contact:

Re: Can a HAM file be embedded into a HOG archive?

Post by Sirius » Fri Oct 06, 2017 9:20 am

The main one I recall is that a few of the robots seem to be prone to graphical artifacts, specifically that it looks like one of the vertices jumps way off into space at certain angles. My guess was that there were problems with the normals, but attempting to recalculate and fix them didn't seem to have any effect, so either the fix was wrong or the problem was something else.
User avatar
LightWolf
DBB Captain
DBB Captain
Posts: 512
Joined: Sat Mar 09, 2013 2:27 pm
Location: Kingdom of God

Re: Can a HAM file be embedded into a HOG archive?

Post by LightWolf » Fri Oct 06, 2017 9:12 pm

Do you mean that it winds up 326(ish) standard cubes away or it renders in the wrong order? If the latter, BSP crap is your answer. If the former... I dunno.
Your friendly neighborhood diamond-loving light wolf.
(Who wouldn't love diamonds? They're so strong! Ever wonder why Diamond Claws did so much damage?)
Substance: 5/30 (6/35) Click here!
New Age Mod: Now hiring! Click here!
User avatar
Sirius
DBB Master
DBB Master
Posts: 5435
Joined: Fri May 28, 1999 2:01 am
Location: Bellevue, WA
Contact:

Re: Can a HAM file be embedded into a HOG archive?

Post by Sirius » Mon Oct 09, 2017 9:13 am

I don't know the distance - it just looks like random spikes - but it's more like the former.
Post Reply