De-coding BZ Source code, its possible?

Moderators: GSH, Ultraken

User avatar
Ded10c
Recycler
Posts: 3815
Joined: Sun Feb 20, 2011 11:05 am
Location: Stoke-on-Trent
Contact:

Re: De-coding BZ Source code, its possible?

Post by Ded10c »

Developers are typically more responsible for making that call than publishers. It's simply common sense; why re-invent the wheel? We still see games today that can be traced back to the Quake and Doom engines.
battlezone.wikia.com needs your help!
User avatar
Red Devil
Recycler
Posts: 4398
Joined: Fri Feb 18, 2011 5:10 pm
Location: High in the Rocky Mountains

Re: De-coding BZ Source code, its possible?

Post by Red Devil »

MrTwosheds wrote:A mountain does not become lower just because someone climbed it before you. :)
:D too true; i have enough trouble understanding someone else's working code without coming up with some of my own.
If given the truth, the people can be depended upon to meet any national crisis. The great point is to bring them the real facts - and beer.
Abraham Lincoln

Battlestrat, FE, G66, In The Shadows, Starfleet, Uler, & ZTV

Lifetime member of JBS and NRA
Roscoe
Rattler
Posts: 93
Joined: Tue Jan 22, 2013 5:00 pm

Re: De-coding BZ Source code, its possible?

Post by Roscoe »

Everybody else's code is CRAP!
User avatar
General BlackDragon
Flying Mauler
Posts: 2408
Joined: Sat Feb 19, 2011 6:37 am
Contact:

Re: De-coding BZ Source code, its possible?

Post by General BlackDragon »

What a shotty thing to say...
Battlezone Classic Public Forums
*****General BlackDragon*****
Roscoe
Rattler
Posts: 93
Joined: Tue Jan 22, 2013 5:00 pm

Re: De-coding BZ Source code, its possible?

Post by Roscoe »

It was a joke based on years of seeing people react to other people's code.
User avatar
Red Devil
Recycler
Posts: 4398
Joined: Fri Feb 18, 2011 5:10 pm
Location: High in the Rocky Mountains

Re: De-coding BZ Source code, its possible?

Post by Red Devil »

i decoded the BZ2 code awhile back. i have it on a CD...somewhere.
If given the truth, the people can be depended upon to meet any national crisis. The great point is to bring them the real facts - and beer.
Abraham Lincoln

Battlestrat, FE, G66, In The Shadows, Starfleet, Uler, & ZTV

Lifetime member of JBS and NRA
Apollo
Sabre
Posts: 456
Joined: Sat Feb 19, 2011 9:51 pm

Re: De-coding BZ Source code, its possible?

Post by Apollo »

Red Devil wrote:i decoded the BZ2 code awhile back. i have it on a CD...somewhere.
You too?
Activision anet servers for all legacy anet games: Anet Servers
BattleZone Club (Supporting BattleZone 1.4, The Red Odyssey, BattleZone Enhanced, BattleZone 1.5 and Bionite)
BattleZone 1 Community Since 2002
arcanise
Scrap
Posts: 5
Joined: Wed Jul 10, 2013 8:24 pm

Re: De-coding BZ Source code, its possible?

Post by arcanise »

you could start by looking at the game engine BZ uses which is i76 from their decoding it shouldnt be "that" hard
User avatar
Ded10c
Recycler
Posts: 3815
Joined: Sun Feb 20, 2011 11:05 am
Location: Stoke-on-Trent
Contact:

Re: De-coding BZ Source code, its possible?

Post by Ded10c »

First, decompiling BZ2 would be illegal. People have been sued for this, and the only cases I've seen where they were acquitted were where they had to decompile the program to get it to work at all (that's not the case here).

Second, decompiling BZ2 would not produce a perfect result. Even on a program as simple as Hello World, you're unlikely to get a perfect result from the decompiler. In a game like BZ2, which would be hundreds of thousands of lines of code at the minimum, you're not even going to get close.

Frankly, I think Apollo and Red Devil's claims are nothing but hyperbole. Unless they can back their claims up, of course. Anything that deviates from the norm should be dismissed until evidence is provided.
battlezone.wikia.com needs your help!
User avatar
Sporkinator
Drunken Constructor
Posts: 33
Joined: Mon Feb 21, 2011 10:18 pm

Re: De-coding BZ Source code, its possible?

Post by Sporkinator »

I don't know what this "De-coding" thing is, but I'm assuming we're referring to "decompiling", attempting to reverse the process of compiling a programming language down to byte code or machine code with a decompiler. Converting binary machine code back to its original source code is virtually impossible. There are many different programming languages. Let's suppose I write a program or a game in Pascal and compile it. Let's also suppose you have no idea what language the program was written in, and you just assume C++. Suppose you run it through some kind of C++ decompiler and it (somehow) generates some code. Even if the original program had been written in C++, the identifiers (variable names, object names, constant names, etc) aren't actually stored anywhere in the compiled code, they only exist for the understanding of the human programmer. So now you've got all kinds of generic identifiers such as var1, var2, etc. The entire structure of this code will most likely be different as well, nothing like the original. Comments aren't kept either, as they aren't even essential for the program to run. At this point you might be better off with obfuscated code. In this theoretical example, since the original program wasn't even written in C++, you're even further from having the original code, you've got something new.

I don't actually have any experience with decompiling machine code, so this post's accuracy is not guaranteed.
User avatar
Ded10c
Recycler
Posts: 3815
Joined: Sun Feb 20, 2011 11:05 am
Location: Stoke-on-Trent
Contact:

Re: De-coding BZ Source code, its possible?

Post by Ded10c »

No Spork, you're perfectly correct. I haven't decompiled anything myself because I've never had the need, but that's what happens when you try to reach high-level languages from a low-level starting point. It just doesn't work.
battlezone.wikia.com needs your help!
arcanise
Scrap
Posts: 5
Joined: Wed Jul 10, 2013 8:24 pm

Re: De-coding BZ Source code, its possible?

Post by arcanise »

well if you do some research and fine that the i76 engine or the mechwarrior2 engine used C/C++ which means decompiling is a bit easier, both of these engines are the best candidates for BZ
User avatar
Ded10c
Recycler
Posts: 3815
Joined: Sun Feb 20, 2011 11:05 am
Location: Stoke-on-Trent
Contact:

Re: De-coding BZ Source code, its possible?

Post by Ded10c »

Over thousands, even millions, of lines of code? A perfect - hell, even a *working* replication - is, as Spork said, virtually impossible.
battlezone.wikia.com needs your help!
User avatar
DuoRanger
Thunderbolt
Posts: 136
Joined: Sun Sep 04, 2011 12:02 am
Location: in your mother's house

Re: De-coding BZ Source code, its possible?

Post by DuoRanger »

isn't like MW4/Mercs that Jeho managed to decode that in a year and few weeks to build the mekpacks(manly because he works for nasa, and MS gave the code for him and mektek)
Eddy
Rattler
Posts: 56
Joined: Sun Feb 20, 2011 4:47 pm

Re: De-coding BZ Source code, its possible?

Post by Eddy »

Decompiling typically produces assembly language code. Even if you find a C++ decompiler, the code it produces would not be the same as the original code. It's a version that should produce the same results but will be significantly different. The moment you make a change to the decompiled program, it will likely cause side effects that will drive more changes. Sounds like a rat hole to me...

A good test is to use the Hello World example - write it in GCC, compile it, run it through a decompiler and compare the original code to the machine code. Then try something more sophisticated and compare the code again. I think you will end up with two completely different programs that produce the same results.

Eddy
Post Reply