2018-05-19 01:43:27

Does anyone know how I can register treasure hunt or if  bPC can make it open source

2018-05-19 01:46:52

that won't happen

2018-05-19 03:16:36

Sorry... I don't think I have the source code around still. Either way, I'll try to find the keygen for you and post here soon in any event.

2018-05-19 04:02:45

That would be awesome, I have many fond memories of spending hours learning treasure hunt inside and out.

Take care, it's a desert out there.

2018-05-19 04:19:33

that would be awesome
if we can run the treasure hunt
it reminds me old memories! thanks

2018-05-19 04:52:47

If you do not have the source code that’s fine thank you for getting the key generator!

2018-05-19 07:26:11

I’d really love to get back into this game again! I really miss it!

2018-05-19 09:00:16

Wow, was dreaming of playing it a long time ago! would be glad if you will get a keygen!

2018-05-19 14:56:37

Hi everyone! Sadly neither the source code nor the keygen exist anymore. Come to think of it, I don't know why I got rid of it.

What I'm going to do is reverse-engineer the executable and try to patch it, so it's going to take longer than I'd hoped. The end result, if all goes well, will be that the AG archive will have a patched version that doesn't need registration. Either way, I'm working on it and will be back here with an update.

2018-05-19 16:16:36

Hey, Munawar.
I am excited about this.
I remember some time last year I wanted to play this game again.
I hope that everything goes smoothly.

2018-05-19 17:08:01

Oh ho! I remember reverse engineering! Not an easy task! Anyway, I wish you good luck and smooth going with it. This game sounds like it might be similar to Blindside, so I'd love to be able to play it.

2018-05-19 17:21:11

That would be great if that works, that was definitely a classic that had many hours of enjoyment. Glad the game still activates on my machine. Lol.

2018-05-19 19:37:32

Last time I tried to play it I couldn't save my game because it would give me errors. That was only slightly less annoying than having it take two to five minutes, and yes I do mean that literally, to load or save games on the first computer I ever played the game on. Granted that was a win98 machine whereas the more recent one was either a Vista or Win10 machine, I forget which one specifically.

But wait, what's that? A transport! Saved am I! Hark, over here! Hey nonny non, please help!

2018-05-19 21:31:30

good luck on that,  we'll hope it'll works

2018-05-19 23:00:03

Thanks for the well-wishes all big_smile

@11 yup, definitely not easy. Turns out I had protected it using .NET Reactor a long time ago (I don't even remember doing that...) so I had to break that first before Ildasm would even think about loading it.

I've managed to get it into source code form using .NET Reflector (patching the IL dump from Ildasm and then generating the executable using Ilasm wasn't working) but of course, no source code generated from an IL dump is perfect. I have 93 errors to manually correct before VS will stop complaining and let the damn thing compile. One step at a time...

Thinking about fixing five errors, doing a shot, fixing five more, ... big_smile

2018-05-19 23:21:01

Isn't it amazing? You'd think that forgetting a semicolon or a comma would generate only one error, but no, you get a whole slew of errors, and it isn't until you put in the forgotten character that you find out that that one little mistake caused all those other errors. Grrrrr!

2018-05-20 03:00:27

Good luck on that, would love to get back to this game again. It is a very nice game.

2018-05-20 15:36:44

This is a some great news indeed. I'll be keeping an eye on this topic, and will get the patched version on agarchive.net as soon as I can. Thanks to Munawar for being willing to do all this!

2018-05-20 19:14:21

It looks like most of it is working now. The only problem I see immediately is that one of the code sections that lays out a hallway wasn't translated properly from the Ildasm dump, so there's a wide open section on the map I need to rebuild. That particular section was decompiled so badly that it was causing the game to freeze when it was creating the map because it was falling into an infinite loop. Took me the better part of two days to debug and see exactly where the game was hanging.

@18 you're welcome! I'm glad that people are still enjoying my games.

I might put up the source on Github when this is all over now that I'll have the source code (although messy) in hand, and make incremental updates. I don't know if it's Ildasm or not, but wow...the way I coded these hallway constructions and things makes it a nightmare to rebuild the simplest of things.

2018-05-20 19:20:25 (edited by the_ruler_of_dark_forces 2018-05-20 19:21:47)

Yeah, I would be really happy to play the game as well!
I tried the demo back in 2004, but as an teenager at that time I didn't have a creditcard or a paypal account, so I could only try the demo. Still I played it quite extensively. So After 14 years it would be really really cool to revisit my teen memories and play the full version! smile

2018-05-20 19:55:02

Man I remember playing treasure hunt on my old Dell Dimension  2400. LOL  My friend and I would always have a battle to see who's computer could load games and save them the fastest using that game. ahhaha Glad to see work being done on this as well as TDV.

2018-05-20 20:11:32

Just out of pure curiosity, what about a generic registration key that could simply be shared as was done with the soundscapes engine, or did this game use hardware locking such that a registration key only worked on the computer it was generated for.

2018-05-20 20:18:25

Hi Orko,
A generic key is possible but people will have to modify their Windows Product IDs to make it work. The modification won't harm anything, but I think that solution is clunky and I'm more in favor of patching the actual executable than I am in telling people to enter data into the registry. It will be convenient to download it and just have it work.

@austingrace: LOL. Someone else mentioned on this topic how long it used to take the thing to load and save games. Nowadays with the newer binary file write support, I could rewrite it to make it load and save faster but at this point I'm deathly afraid to look at that code.

2018-05-20 22:02:57

That's true, though some people could handle modifying the registry without too much of a problem, most people would be in unfamiliar territory and that could easily lead to a bricked computer. Better not to go that way.

2018-05-20 23:12:24

I'm familiar enough with the registry to feel comfortable modifying values, but "modify the Windows product key" makes me shutter. That sounds like a good way for me to break my windows activation.