VOGONS


The gold of the aztecs

Topic actions

First post, by eL_PuSHeR

User metadata
Rank l33t++
Rank
l33t++

When executing gold.exe, I get the following error message:

Environment not found. This launcher lets you select graphic card.

It runs just fine from WinXP's NTVDM window.

Other than that, I think you can invoke the game directly with one of the three executables (CGA, EGA, Tandy). Yes, and it works fine.

Can anyone confirm?

Important: Using HOTU version. I don't have this game.

Intel i7 5960X
Gigabye GA-X99-Gaming 5
8 GB DDR4 (2100)
8 GB GeForce GTX 1070 G1 Gaming (Gigabyte)

Reply 1 of 18, by ripsaw8080

User metadata
Rank DOSBox Author
Rank
DOSBox Author

This one has some quirks. GOLD.EXE started life as a batch file and was converted to a program with BATtoCOM by Clockwork Software (which you can see inside the file).

It is looking specifically for an environment variable of "OS=DR" for some reason... DrDos? Anyway, if you do a "SET OS=DR" before running it, you can get around that problem.

Once you select the audio and video choices it bails back to the prompt. This is because it failed to execute a program using INT 2E, which DOSBox does not support. A little more about that here: int 2e (exec comspec) support -- Oh Devs, here is a game that uses INT 2E. 😉

Even though it bails out, you will notice that some environment vars have been set for your audio and video choices if you do a SET command. You can manually run the game at this point. For VGA/Adlib the command it tries to run is "ega_8086 a". I guess you can run the other video-specific executables accordingly, with either "a" for Adlib, "r" for Roland, or "i" for internal speaker.

Reply 2 of 18, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

neat int 2e, finally 😀 Although that env variable makes little sense.

Water flows down the stream
How to ask questions the smart way!

Reply 3 of 18, by ripsaw8080

User metadata
Rank DOSBox Author
Rank
DOSBox Author

I agree, it's weird. It might be interesting to debug it more thoroughly. It does some odd looking version detection with INT 21/30... not odd that it uses that service, but what it's looking for as a response seems strange. It may get around to looking for that environment variable after it is confused by something else.

Reply 4 of 18, by eL_PuSHeR

User metadata
Rank l33t++
Rank
l33t++

Yes, ripsaw8080, I have already converted gold.exe to gold.com using UNP.

I didn't know this game was using INT 2Eh because I am not a programmer, but I have read the other related thread. Interesting.

UNP also reports some other files (without extension) as executables. Packed them with UPX and the game stopped working.

Intel i7 5960X
Gigabye GA-X99-Gaming 5
8 GB DDR4 (2100)
8 GB GeForce GTX 1070 G1 Gaming (Gigabyte)

Reply 5 of 18, by peterferrie

User metadata
Rank Oldbie
Rank
Oldbie

So if you build and run my code from the other thread, then you should be able to run the game without any modification. Or can I build the code and post the binary? It is permitted?

Reply 6 of 18, by wd

User metadata
Rank DOSBox Author
Rank
DOSBox Author

dosbox should be adapted to provide int2e for those matters.
Besides that, the "environment" check that they're doing relies on the exact
offset of the int2e vector, and some additional check that seems to indicate
a true msdos (to them).

Reply 7 of 18, by peterferrie

User metadata
Rank Oldbie
Rank
Oldbie

Okay, but until DOSBox is fixed, shall I post a binary that will work (including patching int 2e in a way that they like, etc)?

Reply 8 of 18, by wd

User metadata
Rank DOSBox Author
Rank
DOSBox Author

I don't know if somebody really wants to play that game, but feel free to put
a diff somewhere (not the whole modified executable).

I've tracked the environment problem, they're doing a lot of table walking
(for pretty much nothing, but well), so the only part to get this working as
far as i see is the int2e itself.

Reply 9 of 18, by ripsaw8080

User metadata
Rank DOSBox Author
Rank
DOSBox Author

And that awkward little launcher program doesn't appear to be necessary to play the game, anyway.

Reply 10 of 18, by peterferrie

User metadata
Rank Oldbie
Rank
Oldbie

It's required to set the sound and graphics cards.
Also another problem: parent PSP is always in UMB, even when UMBs are disabled, and it does not have an MCB. That's what is confusing the loader. It can't find the memory block with the global environment.

Anyway... rock'n'roll. :-) Here is source and binary TSR to fix the problem.

Reply 11 of 18, by ripsaw8080

User metadata
Rank DOSBox Author
Rank
DOSBox Author

Great, but as I said, it's not really necessary. You can simply run the video specific executable with a parameter for the sound option. e.g. "ega_8086 a" for VGA/Adlib. That's all the launcher ultimately does is build up the command and then execute it.

Reply 12 of 18, by peterferrie

User metadata
Rank Oldbie
Rank
Oldbie

Yes, you can do that, if you know the right option, but that's not the way for newbies like me.

Reply 13 of 18, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author
peterferrie wrote:

It's required to set the sound and graphics cards.
Also another problem: parent PSP is always in UMB, even when UMBs are disabled, and it does not have an MCB. That's what is confusing the loader. It can't find the memory block with the global environment.

Anyway... rock'n'roll. 😀 Here is source and binary TSR to fix the problem.

thought we had those things correct at one point.

Water flows down the stream
How to ask questions the smart way!

Reply 14 of 18, by wd

User metadata
Rank DOSBox Author
Rank
DOSBox Author

No it's not fully correct, but having command.com psp/env in upper memory
is not wrong either. Anyways as i've already said i've got it working.

Reply 15 of 18, by djp

User metadata
Rank Newbie
Rank
Newbie

I do happen to have this game (code wheel and all!), and I have to wonder why on earth anyone would want to play it 😀

Never try to outstubborn a cat. - Lazarus Long

Reply 16 of 18, by eL_PuSHeR

User metadata
Rank l33t++
Rank
l33t++

OT:

Some people say it's not that bad, but they also say that Silmarils' Le Fetiche Maya is better.

I haven't played neither of them.

Intel i7 5960X
Gigabye GA-X99-Gaming 5
8 GB DDR4 (2100)
8 GB GeForce GTX 1070 G1 Gaming (Gigabyte)

Reply 17 of 18, by peterferrie

User metadata
Rank Oldbie
Rank
Oldbie

We want to play it because we haven't played it yet.
Then maybe we find out why we were wrong.

Reply 18 of 18, by exofreeze

User metadata
Rank Member
Rank
Member

Sorry for the necrotic post, but I wanted to thank you Peter for posting that fix above. While running the options from the command line technically works, I had a specific need to run the gold.exe file, and this was my only means of doing so. Now if I could only get past the second screen...🤣.