Home World Forum
Stars! AutoHost web forums

Jump to Stars! AutoHost


 
 
Home » Stars! 2.6/7 » The Bar » My Stars! Epiphany.
Re: My Stars! Epiphany. Sat, 09 May 2020 17:25 Go to previous messageGo to previous message
ricks03 is currently offline ricks03

 
Officer Cadet 1st Year
Creator of TotalHost and Stars! utilities
Created TotalHost and Stars! utilities

Messages: 222
Registered: January 2012
Location: NC
platon79 wrote on Sat, 09 May 2020 05:32
Hi again. I have now done some testing, and I am sad to report, it seems my original dream is dead. Here is my findings.
It seems to me the checksum you were talking about is in the FileFooterBlock. I therefore made a lot of different r1-files in the stars race wizard, where the only change between files were the growth rate, which I set at all the different values.
Based on these files, I was able to see the pattern in the checksum for this one file. (Another file I tried would give another pattern, I did not try to find out how to generate the checksum at this point, as that would be quite another monster.)
So, after finding out this pattern, Based on reading in the default 19% race with 0 points left, I then wrote two race files via the starsapi project, one with 18% and one with 20% growth rate, and modifying the checksum in the FileFooterBlock to match the pattern while writing the files.
Both of these files are now accepted as non-corrupted files in Stars, they both open fine in the stars race wizard, the 18% race showing 65 points left and the 20% race showing -125 points left.
When I start a new game with the 18% race, everything is fine. Playing a turn does not trigger any hacker flag or anything.
When I start a new game with the 20% race, the race seems to be REPLACED with the default Humanoid-race, with a random name.
So apparently there IS a check at startup checking for negative points (at least for human players), that just replaces the race with humanoids if below zero points left.
The checksum for a race is normally in the .r file as, as you suggest, the FileFooter block (the race file has only Block 6 and Block 0).

However, the race block is also in the .HST and .M file. In the .HST and .M files, the FileFooter block isn't serving as a checksum for the entire file. I'm confident of that, because I can readily modify values in the .M and .X files (decrypting them, changing the value, and then reencrypting them) without modifying the Filefooter block. And in the .HST file, there's only one FileFooter block. Now, it could be serving as a composite check sum for all the races in the game, but I think that more likely it's the checksum for the number of blocks in the .HST file.

If the FileFooter block in the .r file serves as the checksum for the race, this suggests that once a race is in the .HST file, it doesn't have the checksum for it.

So I tried changing the tech level to 20 for E and W in the .M file (a value not tied to the race wizard). The .M file opens just fine, and shows me with a tech level of 20 in each field. I can modify the file, and there's no checksum (at least on those fields). (also means I could likely hack those into a game, but leaving that as a separate question. Hmm, starting a game with Tech 26 but only 25k pop).

I next tried to mod the hab from 15% to 20% in the .M file. That changes to 20%, and shows now -386 points in the race wizard.

So I tried changing 4 of the research values for a race in a test game (in the .M file) to 50% less (from Standard). The .M file will then open, and the advantage points for the race shows those results modified, and the race points now -668!

so there isn't a checksum on the race in there. And it calculates those points from the front end , since all I modified is the race wizard values, no race point values.


Next I try changing those same values for all players in a .HST file, and the .HST file opens OK. However, when I generate a turn, all players again show "Hacker". Opening a .M shows me with > 1000 race points left over. What was interesting is that my <50% change is still there. My "default" hab range was dropped to 7%, and my colonist resources / year has been changed to 2500. That implies that Stars! isn't replacing the race data. It's trying to fix it.

Another pass of experimentation (Base Race to 20%) again got me flagged as a hacker, with the productivity changed to 2500, and the growth changed to 16%, final race score 556. That m
...




https://www.irelandbybicycle.com
http://totalhost.sinister.net:999
https://github.com/ricks03/TotalHost

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
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Your colonists have discovered a strange artifact ... how many of them?
Next Topic: Stars on Chromebook?
Goto Forum:
  


Current Time: Sun May 12 10:53:12 EDT 2024