Wednesday, November 16, 2016

Game Cheat



Cheat Engine is a program that searches for variables in a program and allows them to be changed. It's an open source program, that works well for vintage games.



One of my favorite games from way back, is Diablo (1996). I had a great time fighting my way to the end on this one. However, I'd like to revisit it at some time without all the fuss. This can be done easily with Cheat Engine. Most of the numerical values for the Diablo character attributes can be changed to create a character with god-like powers. This is how it works:

First, download the program from http://www.cheatengine.org/downloads.php. Install the program.





Start up the game program. Locate a value you would like to change. In Diablo there is a pop up with character stats.




I'm going to change the gold amount from 113 to something higher.



Next, hit the window key to hide the game in progress. Open the Cheat Engine application. A window will open like the one above.


Cheat Engine needs to know which program to search for variables. This is accomplished by going to File and choosing Open Process.


A list of programs that are currently running are listed. Choose the game. In this case, it's 00000C64-diablo.exe.


Now enter the present value that you want to change. In this case it's 113. Left-click on the First Scan button.



A large list of current variables holding the number 113 is listed. Not all of these are the correct ones. Usually only one or two variable addresses will be the correct location for the chosen value. 


To find the correct variable, go back to the game and change the value of the number to something different. In this case I added 6 more gold to make a total of 119.


 Hit the Widows key to hide the game program and look at Cheat Engine. Click on Next Scan. Now the correct address for the variable is indicated by the red highlighted 119 and a list of previous values (113 in this case) is shown to the right. There are two addresses for this variable.


Double-left click on the address lines and they will appear in the Game Cheat window below.


Click on one of the addresses and a pop up will appear. The value can be changed up to whatever the game program will allow for a maximum value. In this case, I'm changing it to 2000.


Sometimes, only one address will allow a new input. In this case, I tried to change the first address value, but the value would revert back to the original 119.  By changing the second address first, the both addresses changed from 119 to 2000.


The game character now has 2000 gold.







Running vintage Java applets

I have a program that requires an older version of Java to run. My modern Chrome browser and final version of Microsoft Explorer will not open the browser applet. I decided to create an offline version for my Dell Windows XP laptop.

The program is called Bsim. It's a web application that simulates a programming environment for study of robot behavior. It's an important addition to the book Robot Programming : A Practical Guide to Behavior-Based Robotics by Joe Jones and Daniel Roth.

First, I need to add Java to my Windows Explorer version 6. The proper Java package is Java SE Runtime Environment 6u16 and the file jre-6u16-windows-i586 can be found at http://www.oracle.com/technetwork/java/javase/downloads/java-archive-downloads-javase6-419409.html#jre-6u16-oth-JPR


Once Java is installed, Microsoft Explorer is ready for the applet. Since I want to run this offline, a few more steps are required.

Create a folder to hold the Java applet. Using a computer with Microsoft Explorer 6 with online status, save the page that brings up the applet. In this case, it's http://www.behaviorbasedprogramming.net/. 

Put the html document in the folder. Next, download the .jar application. This is rather tricky since it requires knowledge of the file name. In this case I guessed it would be bsim.jar. It was a correct assumption. Other applets may be accessed if you can get into the file directory.

To reiterate, I typed http://www.behaviorbasedprogramming.net/bsim.jar into the browser command line and hit enter. The file bsim.jar downloaded immediately.



Put the .jar applet into the folder. Now while offline, by double clicking on the html document of the saved web page, the Java applet will load and operate.









Dell Inspiron 9300



I need a native Windows XP laptop for various reasons, and after some research decided on a Dell Inspiron 9300 laptop. I found a unit on eBay for $70.00 that was reconditioned with Windows 7 and a stamp affixed to the keyboard to confirm it. 


Here are some of the specs:
  • Released March 2005
  • Intel Pentium M Processor 750 (1.86 GHz/2MB Cache/533MHz FSB)-Sonoma
  • 2GB RAM
  • 80 GB (5400 RPM hard drive)
  • 17 inch UltraSharp Wide Screen XGA+ Display (without TruLife, and it is a Samsung screen)
  • ATI MobilityRadeon X300
  • 24X CD Burner/DVD Combo Drive
  • 6-cell Lithium Ion Primary Battery (53 WHr)


The unit works well, but I plan to convert it back to its original state by installing Windows XP.


First, I acquired a copy of Windows XP Professional Service Pack 2 specifically marketed for Dell. I found one on eBay for slightly more than 10 USD. Installing and licensing was typical.Windows XP requires a validation from Microsoft in order to keep working past the 30 day grace period.



I do not want to operate my system on line, so my method of validation was by phone. I requested a text to be sent to my phone in order to initiate the process and a key was generated.

                 

Since I'm annoyed by some trivial matters, (as in this case) I had to replace the Windows 7 sticker on the keyboard with a Windows XP sticker. I found one on eBay for  $3.95 and swapped them out.

Installing the drivers for Windows XP was not difficult. By going to the Dell support site at http://www.dell.com/support/home/us/en/04/product-support/product/inspiron-9300/drivers , all of the necessary drivers for Windows XP can be downloaded.



First, locate the Service Tag number on the back of the Dell laptop. In this case, it's 64F0Z81. By using the reference on the Dell site, all the necessary drivers are collected for download.






Fully loaded, the Inspiron 9300 sold for 2,839 USD.  The average price for a Dell 9300 with my features  was around 1400 USD after coupons and rebates. In today's dollars that would be $1,740.07.