TheoPo

Newbie
Jun 25, 2022
17
30
I tried to crack the hash for 6 hours so I dont think ill be able to crack this one, and if future ones are similar I wont be able to crack them
 

TheoPo

Newbie
Jun 25, 2022
17
30
I may have found a solution to this.

I managed to download the whole game + images off of

by using windows wget on the directory, which downloaded all of the game images.
(use the command created by the wizard below in CMD)
(to create the wget command)
If you are using this for other games, I found the image directory by opening the index.html with notepad and looking for the path of image files

Put all these images into a folder called img (same as the path in the index.html, e.g. <img src="img/dlc0/cousin/firstSex.webp)
Then download the index file by right clicking the page -> inspect element -> Sources (Top bar) -> right click dlc.html -> Save As
1736657685834.png

To bypass the password you can then modify the game by looking for the line that hashes the passcode, in this instance: if hashStr($patron) == -349438983
and then changing it to accept all passwords inputted: if hashStr($patron) != -349438983

You can also do this for the Advanced Start Options: hashStr($secretCode) == -892483570 -> hashStr($secretCode) != -892483570
Put any code into the boxes and then press enter and it should allow you in.

If when playing you discover some images do not appear, this may be because wget saved webp files as webp.html. To fix this i created a python script you can place in the game folder and run it to convert them all back to webp found attached to the post in a ZIP folder.

It is currently 4am so I am not sure if any of this makes sense, ask if you are stuck on anything. I will be uploading the current 1.20 game but this guide is to be used when a new version comes out.
 
Last edited:

TheRespond

Newbie
Oct 23, 2021
55
46
I may have found a solution to this.

I managed to download the whole game + images off of

by using windows wget on the directory, which downloaded all of the game images.
(use the command created by the wizard below in CMD)
(to create the wget command)
If you are using this for other games, I found the image directory by opening the index.html with notepad and looking for the path of image files

Put all these images into a folder called img (same as the path in the index.html, e.g. <img src="img/dlc0/cousin/firstSex.webp)
Then download the index file by right clicking the page -> inspect element -> Sources (Top bar) -> right click dlc.html -> Save As
View attachment 4435958

To bypass the password you can then modify the game by looking for the line that hashes the passcode, in this instance: if hashStr($patron) == -349438983
and then changing it to accept all passwords inputted: if hashStr($patron) != -349438983

You can also do this for the Advanced Start Options: hashStr($secretCode) == -892483570 -> hashStr($secretCode) != -892483570
Put any code into the boxes and then press enter and it should allow you in.

If when playing you discover some images do not appear, this may be because wget saved webp files as webp.html. To fix this i created a python script you can place in the game folder and run it to convert them all back to webp found attached to the post in a ZIP folder.

It is currently 4am so I am not sure if any of this makes sense, ask if you are stuck on anything. I will be uploading the current 1.20 game but this guide is to be used when a new version comes out.
I never thought about it like this! nice to know, thank you
 
  • Wow
Reactions: Xeron_Xr

mcmania

Member
Dec 4, 2016
125
903
I may have found a solution to this.

I managed to download the whole game + images off of

by using windows wget on the directory, which downloaded all of the game images.
(use the command created by the wizard below in CMD)
(to create the wget command)
If you are using this for other games, I found the image directory by opening the index.html with notepad and looking for the path of image files

Put all these images into a folder called img (same as the path in the index.html, e.g. <img src="img/dlc0/cousin/firstSex.webp)
Then download the index file by right clicking the page -> inspect element -> Sources (Top bar) -> right click dlc.html -> Save As
View attachment 4435958

To bypass the password you can then modify the game by looking for the line that hashes the passcode, in this instance: if hashStr($patron) == -349438983
and then changing it to accept all passwords inputted: if hashStr($patron) != -349438983

You can also do this for the Advanced Start Options: hashStr($secretCode) == -892483570 -> hashStr($secretCode) != -892483570
Put any code into the boxes and then press enter and it should allow you in.

If when playing you discover some images do not appear, this may be because wget saved webp files as webp.html. To fix this i created a python script you can place in the game folder and run it to convert them all back to webp found attached to the post in a ZIP folder.

It is currently 4am so I am not sure if any of this makes sense, ask if you are stuck on anything. I will be uploading the current 1.20 game but this guide is to be used when a new version comes out.
you can also just override the hashstring function in the chrome console to play it online:

open the console (ctrl + shift + I or F12) and paste:
JavaScript:
origHashStr=window.hashStr;
window.hashStr = function(txt) {
    if (txt == "start") return 35655988;
    if (txt == "secret") return -1349988898;

    return origHashStr(txt);
};
the start code is now start and to cheat it is secret

... that cheat works for all games that rely to HashStr to work just replace the returned hashes with the expected one.

UPDATE: Since some people don't seem to understand the concept, I'll try to explain it in detail. The code I provided works ONLY as is (without adaptation) for the current version (DLC 1.21) of Small Town as it is actually deployed on argntm.com.

For any other version or game, you need to look in the html file and search for something like "if hashStr" and take the value behind the equality check. For example, if you look at the html code of dlc.html, on line 6263 you will find if hashStr($patron) == 35655988. Here 35655988 is the hash value of the start code which we don't have. So we're going to override the hashStr function making it output 35655988 when we type 'start'. So that's what my code does with if (txt == "start") return 35655988;

By the way, I replaced my code with a more compact version. It does exactly the same thing as my previous version.
 
Last edited:

Cago

Newbie
May 27, 2018
49
14
anyone know how to get the sex scenes on the drive to the cabin during dlc2? cause I'm at full corruption and relationship with the family and nothing happens
 
  • Like
Reactions: kpaton23

KiraJames

Well-Known Member
Dec 5, 2017
1,187
2,251
you can also just override the hashstring function in the chrome console to play it online:

open the console (ctrl + shift + I or F12) and paste:
JavaScript:
window.hashStr = function(txt) {
    if (txt == "start") return 35655988;
    if (txt == "secret") return -1349988898;

    var hash = 0, i, chr;
    if (txt.length === 0) return hash;

    for (i = 0; i < txt.length; i++) {
        chr   = txt.charCodeAt(i);
        hash  = ((hash << 5) - hash) + chr;
        hash |= 0; // Convert to 32bit integer
    }
    return hash;
};
the start code is now start and to cheat it is secret

... that cheat works for all games that rely to HashStr to work just replace the returned hashes with the expected one.
but the bookshelf cheat still does not work.
 

mcmania

Member
Dec 4, 2016
125
903
but the bookshelf cheat still does not work.
It works but you have to use the proper cheat codes (1st post):

At Character's Book Shelf:
plaha - +99999 corruption and +$1,000,000,000 cash for the player
november - lock lust level at 101
cat - sets lives to 69
stuck - +9999 sister corruption and +100 sister lust
urmom - +9999 mom corruption and +100 mom lust
chessclub - +9999 bro corruption and +100 bro lust
freegas - +9999 dad corruption and +100 dad lust
alabama - +9999 corruption (sis, bro, mom, and dad) and +100 lust (sis, bro, mom, and dad)


Those are not related with the method I described they are in plain text in the source file (not obfuscated using hashes)
 

BigDaddyBlade

Newbie
Sep 27, 2022
37
23
you can also just override the hashstring function in the chrome console to play it online:

open the console (ctrl + shift + I or F12) and paste:
JavaScript:
window.hashStr = function(txt) {
    if (txt == "start") return 35655988;
    if (txt == "secret") return -1349988898;

    var hash = 0, i, chr;
    if (txt.length === 0) return hash;

    for (i = 0; i < txt.length; i++) {
        chr   = txt.charCodeAt(i);
        hash  = ((hash << 5) - hash) + chr;
        hash |= 0; // Convert to 32bit integer
    }
    return hash;
};
the start code is now start and to cheat it is secret

... that cheat works for all games that rely to HashStr to work just replace the returned hashes with the expected one.
I just tried putting in just start on the version on mopoga.com and the argntm.com one but it still didn't work, also is there a way to do this on mobile?
 

Anewrai

Member
Dec 6, 2019
103
39
I just tried putting in just start on the version on mopoga.com and the argntm.com one but it still didn't work, also is there a way to do this on mobile?
I just tried it and it works remember to type "start" for patreon code then "secret" for advance code. Also the copy and paste is for developer tools then console tab.
 

Shazz23

Member
Mar 24, 2022
148
69
How the fuck are you supposed to play this game? Everything results in death. What kind of dummy is scared to beat it in their room or shower? Stupid as hell. This isn't fun.
 

Anewrai

Member
Dec 6, 2019
103
39
How the fuck are you supposed to play this game? Everything results in death. What kind of dummy is scared to beat it in their room or shower? Stupid as hell. This isn't fun.
There's two arrows above the title on the right you use them to get the desired event going back and forth.
 

Shazz23

Member
Mar 24, 2022
148
69
There's two arrows above the title on the right you use them to get the desired event going back and forth.
it doesn't seemed balance. blowing a load in a girl's throat is a-ok, but being scared of getting caught jerking it by the same chick is bizarre. doesnt make sense.
 

Anewrai

Member
Dec 6, 2019
103
39
it doesn't seemed balance. blowing a load in a girl's throat is a-ok, but being scared of getting caught jerking it by the same chick is bizarre. doesnt make since.
You have to raise your corruption or cheat using plaha code.
 

BigDaddyBlade

Newbie
Sep 27, 2022
37
23
I just tried it and it works remember to type "start" for patreon code then "secret" for advance code. Also the copy and paste is for developer tools then console tab.
I'm doing that, like with quotation marks, without quotation marks, caps, no caps on both versions and it's not working. Also I'm still confused on what you meant for the last part. Also it says 1.21 now so maybe that's why it's not working for the argntm.com version? Also could you maybe send a screenshot of what you typed in, maybe I'm still doing something wrong
 

mcmania

Member
Dec 4, 2016
125
903
I'm doing that, like with quotation marks, without quotation marks, caps, no caps on both versions and it's not working. Also I'm still confused on what you meant for the last part. Also it says 1.21 now so maybe that's why it's not working for the argntm.com version? Also could you maybe send a screenshot of what you typed in, maybe I'm still doing something wrong
What are you doing exactly?
Here I provide a screen capture of my browser (edge) with the code pasted in the console and the start and secret codes used.

1737164724611.png
 
2.60 star(s) 31 Votes