Can a HAM file be embedded into a HOG archive?
- Xfing
- DBB Fleet Admiral
- Posts: 2022
- Joined: Mon Jun 15, 2009 3:03 am
- Location: Ringing Satan's Doorbell
Can a HAM file be embedded into a HOG archive?
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?
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: 52/54 Secret level layouts done: 1/6
Re: Can a HAM file be embedded into a HOG archive?
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.
- Xfing
- DBB Fleet Admiral
- Posts: 2022
- Joined: Mon Jun 15, 2009 3:03 am
- Location: Ringing Satan's Doorbell
Re: Can a HAM file be embedded into a HOG archive?
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?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.
Descent 1,5: Level layouts done: 52/54 Secret level layouts done: 1/6
Re: Can a HAM file be embedded into a HOG archive?
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.
- Xfing
- DBB Fleet Admiral
- Posts: 2022
- Joined: Mon Jun 15, 2009 3:03 am
- Location: Ringing Satan's Doorbell
Re: Can a HAM file be embedded into a HOG archive?
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.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.
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: 52/54 Secret level layouts done: 1/6
Re: Can a HAM file be embedded into a HOG archive?
I've always gotten around the DXA problem with a simple batch file:
where mission.dxa/zip is the filename.
Code: Select all
if exist mission.dxa ren mission.dxa mission.zip else ren mission.zip mission.dxa
Whatever I just said, I hope you understood it correctly. Understood what I meant, I mean.
#AllLivesMatter
#AllLivesMatter
- Xfing
- DBB Fleet Admiral
- Posts: 2022
- Joined: Mon Jun 15, 2009 3:03 am
- Location: Ringing Satan's Doorbell
Re: Can a HAM file be embedded into a HOG archive?
What does the order of putting them in change? In both cases you have both zip and dxa :OLightWolf wrote:I've always gotten around the DXA problem with a simple batch file:where mission.dxa/zip is the filename.Code: Select all
if exist mission.dxa ren mission.dxa mission.zip else ren mission.zip mission.dxa
Descent 1,5: Level layouts done: 52/54 Secret level layouts done: 1/6
- Xfing
- DBB Fleet Admiral
- Posts: 2022
- Joined: Mon Jun 15, 2009 3:03 am
- Location: Ringing Satan's Doorbell
Re: Can a HAM file be embedded into a HOG archive?
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
Descent 1,5: Level layouts done: 52/54 Secret level layouts done: 1/6
Re: Can a HAM file be embedded into a HOG archive?
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.
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.
Whatever I just said, I hope you understood it correctly. Understood what I meant, I mean.
#AllLivesMatter
#AllLivesMatter
Re: Can a HAM file be embedded into a HOG archive?
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.
- Xfing
- DBB Fleet Admiral
- Posts: 2022
- Joined: Mon Jun 15, 2009 3:03 am
- Location: Ringing Satan's Doorbell
Re: Can a HAM file be embedded into a HOG archive?
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?
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: 52/54 Secret level layouts done: 1/6
Re: Can a HAM file be embedded into a HOG archive?
I... think so. It's been a while. Though I don't think you call the V-HAM "d2x", just missionname.ham.
- Xfing
- DBB Fleet Admiral
- Posts: 2022
- Joined: Mon Jun 15, 2009 3:03 am
- Location: Ringing Satan's Doorbell
Re: Can a HAM file be embedded into a HOG archive?
Yeah, that one I knowSirius wrote:I... think so. It's been a while. Though I don't think you call the V-HAM "d2x", just missionname.ham.
Descent 1,5: Level layouts done: 52/54 Secret level layouts done: 1/6
Re: Can a HAM file be embedded into a HOG archive?
The DXA works - it's how the Rebirth version of my mod works
@Sirius What glitches?
@Sirius What glitches?
Whatever I just said, I hope you understood it correctly. Understood what I meant, I mean.
#AllLivesMatter
#AllLivesMatter
Re: Can a HAM file be embedded into a HOG archive?
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.
Re: Can a HAM file be embedded into a HOG archive?
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.
Whatever I just said, I hope you understood it correctly. Understood what I meant, I mean.
#AllLivesMatter
#AllLivesMatter
Re: Can a HAM file be embedded into a HOG archive?
I don't know the distance - it just looks like random spikes - but it's more like the former.