Cheat Mod Ren'Py Rogue-Like Cheat Injector [v1.5.2] [SLDR]

ZLZK

Member
Modder
Jul 2, 2017
293
771
I came up with function that returns all girl object names from game.
(Including any upcoming girls).
You don't have permission to view the spoiler content. Log in or register now.
Works only when called from game though.
__________________________________________________________________________________
About cheats.

Line: if "Xavier\'s photo" and "Xavier\'s files" not in Player.Inventory:
SLDR Above line of yours works only in half.
It works like this: if True and ("Xavier\'s files" not in Player.Inventory):

It should be: if "Xavier\'s photo" not in Player.Inventory and "Xavier\'s files" not in Player.Inventory:
or: if not any(i in Player.Inventory for i in ["Xavier's photo", "Xavier's files"]):

Change "and" to "or", and "any" to "all",
If you want to check only one of items instead of two.

Also you could add keys to rooms:
Python:
if {girl}X not in Keys:
    textbutton "{girl}'s Key" text_size 15 action [
        AddToSet(Keys, {girl}X)
    ]
And adding check: if "{girl}X" in globals():
Makes your injector compatible with older game versions.
 
Last edited:

Mikhail Shueb

Newbie
Sep 22, 2018
31
8
part of the cheat works, I can get all the items and max the girl's levels, but I can't alter the stats by dragging with the mouse, overall good mod, just wish I knew why it wasn't working, I'm on windows, by the way.
 

sleepingkirby

Active Member
Aug 8, 2017
721
1,098
part of the cheat works, I can get all the items and max the girl's levels, but I can't alter the stats by dragging with the mouse, overall good mod, just wish I knew why it wasn't working, I'm on windows, by the way.
It sounds like this part wasn't applied:
Code:
    objects = ["Partner", "Ch_Focus"]

    for i in objects:
        lustBase = "value %s.Lust" % i
        lustNew = 'value FieldValue(%s, "Lust", 100)' % i

        loveBase = "value (%s.Love/10)" % i
        loveNew = 'value FieldValue(%s, "Love", 1000)' % i

        obedBase = "value (%s.Obed/10)" % i
        obedNew = 'value FieldValue(%s, "Obed", 1000)' % i

        inbtBase = "value (%s.Inbt/10)" % i
        inbtNew = 'value FieldValue(%s, "Inbt", 1000)' % i

        addictBase = "value %s.Addict" % i
        addictNew = 'value FieldValue(%s, "Addict", 100)' % i

        rateBase = "value (%s.Addictionrate*10)" % i
        rateNew = 'value FieldValue(%s, "Addictionrate", 10)' % i

        screens = (
            screens.replace(loveBase, loveNew)
            .replace(lustBase, lustNew)
            .replace(obedBase, obedNew)
            .replace(addictBase, addictNew)
            .replace(inbtBase, inbtNew)
            .replace(rateBase, rateNew)
        )
You can do this by hand. Just open the file "<game directory>/game/screen.rpy" and look for these line and replace it with the their complementary lines. (Make a backup first in case of typos)

value Partner.Lust --> value FieldValue(Partner, "Lust", 100)
value (Partner.Love/10) --> value FieldValue(Partner, "Love", 1000)

etc. you probably get the idea. You'll want to do this for both "Partner" and "Ch_Focus". i.e.:
value Ch_Focus.Lust --> value FieldValue(Ch_Focus, "Lust", 100)


If that's tell much, reply to send me a message and I'll send you my copy of screens.rpy for the latest version
 
  • Like
Reactions: ana lizando

shadowtempered

Active Member
Aug 22, 2020
718
1,424
dragging the stat bars doesnt work for me

I'm using the latest ver of 998
I don't know how the mod works so I can't really help troubleshoot, but does the inventory show you the options for adding money and levels? Perhaps it didn't install. Both options are working for me with a fresh 998B install, new save and pre-existing.
 

sleepingkirby

Active Member
Aug 8, 2017
721
1,098
A lot of people seems to be having problems with the patch. I've downloaded the 0.998c and applied my *nix version patch. Put this in the game folder and it should work.
 

arkhamtheknight

Active Member
May 3, 2017
665
216
Is there a current version with the Cheat and Sancho mods installed? Playing using Joiplay and bat files obviously can't be installed.
 

mr biscuits

Member
Aug 12, 2020
143
211
I can get the inventory and money cheats working on latest version but not able to control levels and time. Doesn't say 'cheats enabled' when starting. Have followed instructions and added the two files a few posts above this. Hope this mod gets updated as it's great.
 

sleepingkirby

Active Member
Aug 8, 2017
721
1,098
I can get the inventory and money cheats working on latest version but not able to control levels and time. Doesn't say 'cheats enabled' when starting. Have followed instructions and added the two files a few posts above this. Hope this mod gets updated as it's great.
I'm finally able to get a windows partition recently (don't ask. long story). I was able run this mod without a problem.

It seems windows mode in win10, at least in my tests, cuts off a part of the screen. Notice how there's a gray at the top of that window? That's the "cheats enabled" message. Try turning on "Full screen" mode in preferences to see if you can see the message.
Capture.PNG
If you're still having problems, here's the options.rpy and screens.rpy that's modified.
 

sleepingkirby

Active Member
Aug 8, 2017
721
1,098
Is there a current version with the Cheat and Sancho mods installed? Playing using Joiplay and bat files obviously can't be installed.
If you're trying to play the latest version with Sancho's multi mod, I HIGHLY RECOMMEND AGAINST IT. It looks like Sancho's mod is a replacement for game files. Some of which may remove new content and/or dialogue in 0.999e since the latest Sancho's mod is built against 0.997d. The good news is, I currently don't see any conflict with Sancho's multi mod and this injector.

Which leaves us with Joiplay. I don't have an android phone to test nor do I use Joiplay. But what you can do is run this cheat loader (or my *nix version) on a copy of the game on a windows machine and then move that copy to your phone.

Alternatively, the options.rpy and screens.rpy files I've posted are the latest (0.999e) version. If you put those into the "game" folder in the same directory as "Rogue-Like.exe", it should work. (unless Joiplay caches the game for some reason. But that you'll have to figure out on your own).
 

WeirdTurnedPr0

New Member
May 21, 2018
2
1
I created a rewrite of this script in plain pwsh/Powershell that works on Mac/Windows/Linux (as long as Powershell is installed) for anyone interested. It can be downloaded from MEGA . Similar wrapper for SLDR's python script given in the batch script; since that depended on pwsh anyway figured this was a win.

If pwsh is usable in your path (which pwsh) and the downloaded script is executable (chmod a+x ./RL-Inject_v1.3.1.ps1) you can run directly or from your shell via pwsh -Command ./RL-Inject_v1.3.1.ps1.

Installing Powershell on your system (if needed):

 

sleepingkirby

Active Member
Aug 8, 2017
721
1,098
I created a rewrite of this script in plain pwsh/Powershell that works on Mac/Windows/Linux (as long as Powershell is installed) for anyone interested. It can be downloaded from MEGA . Similar wrapper for SLDR's python script given in the batch script; since that depended on pwsh anyway figured this was a win.

If pwsh is usable in your path (which pwsh) and the downloaded script is executable (chmod a+x ./RL-Inject_v1.3.1.ps1) you can run directly or from your shell via pwsh -Command ./RL-Inject_v1.3.1.ps1.

Installing Powershell on your system (if needed):

The Base64 actually is a python script that does regex finds and replace. If you've rewritten that into powershell and since powershell does regex search and replace, mind replacing the base64 into just straight up powershell functions?