Home World Forum
Stars! AutoHost web forums

Jump to Stars! AutoHost


 
 
Home » Stars! 2.6/7 » The Bar » 5 game ideas(long)
Re: 5 game ideas(long) Wed, 14 March 2007 13:35 Go to previous messageGo to previous message
Kotk

 
Commander

Messages: 1227
Registered: May 2003
Carn wrote on Wed, 14 March 2007 16:08

How to do this exactly?


First Download some hex editor. Say XVI32 or something. Open also windows "Calculator", view set to Scientific. Make a game "hacker training" where the race you want to hack is on #1, save it as HT.XY. You may use some existing testbed where you have no MT parts. Make backup of game files and then open HT.HST (or whatever you took) in your hex editor. You see lot of bytes and if you change one somewhere in it ... it never opens again.
But ... you got a backup and me as guide, so dont fear. Here we go... in 7 steps. Wink

1) First two bytes of file are 10 and 20. Go into Hex mode with calculator and write 2010 <- note the order!!! into it.
Now go into Bin mode with your calculator. you see "10000000010000"
last 10 bits are size, rest are structure type, so: "1000" and "0000010000"
Typing "1000" into calculator in Bin mode and going into Dec mode reveals its 8.
Type is 8 and size is 16.
If you have same results you know how to detect types and sizes of various structures in Stars! .HST file.

2) That structure (type 8 is file header) is of no interest to us so we take next one. Count starting from after 10 20 so 4a 33 4a 33 ... etc bla bla 16 bytes ... bypass our first structure.

3) What is next? Something like 80 and 18 say... (may be slightly different since race sturcture has variable size) repeating the process of extracting type and size reveals: hex 1880 -> binary 110 0010000000 -> decimals 6 and 128
Since type is 6 it is races structure and all has gone well so far. If its not 6 you are done something wrong also if you got way different size than 130 bytes, (it is race name that vary the size) then you have failed. Wink

4) Now count to 83-th byte in the crap that follows 80 18 (or whatever it was on your case). Careful here, counting to 83 within such a noise of numbers is difficult for human beings. Very Happy

5) What you see can be whatever but you know that you have no MT parts.
Say its something like 79 F8 there , F879 in binary is 1111100001111001.
Last 10 bits are MT part bits (one for every part).
So to set the parts you have to replace 0001111001 in it with 1110000110 <- each bit what was 0 changed to 1 and vice versa.
All together 1111101110000110 or FB86 or 86 FB.

6) Change the bytes. Save the file.

7) Generate a turn. <- so the race gets information about having MT parts. Open the Tech browser, if race has all MT parts then Congratulations! SUCCESSFUL HACK. If you failed then restore backup and repeat.

Now we did it only with first race and added all MT parts to it. All race structures are after each other in beginning of .HST file. Knowing how to calc size and type and that size must be about 130 bytes and type must be 6 it cant go wrong. I havent unfortunatelly written down what bit exactly is for what MT part there but that is not too hard to figure out just by some testing?


[Updated on: Wed, 14 March 2007 15:33]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Red Rover, Red Rover!
Next Topic: Host and Map Creation
Goto Forum:
  


Current Time: Fri May 03 17:23:55 EDT 2024