Is there any anti-cheat code

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Message
Author
seanthiar
Newbie
Posts: 3
Joined: Sun Jun 14, 2020 11:55 am
Skype: seanthiar
Contact:

Re: Is there any anti-cheat code

#16 Post by seanthiar » Sun Jun 14, 2020 12:25 pm

Hi,

don't know, but the easiest way I think is to disable the developer tools. I found them enabled in many games/novels and that way you can easy change variables while playing, for example give yourself a ridiculous amount of money. I'm just a beginner with renpy , but I found if the phyton init got config.developer = False as a statement I couldn't open the developer tools ingame any more. That way cheating needs much more work.

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3000
Joined: Mon Dec 14, 2015 5:05 am
Location: Your monitor
Contact:

Re: Is there any anti-cheat code

#17 Post by Imperf3kt » Sun Jun 14, 2020 5:01 pm

Config.developer has been automatic for years, there is no need to manually disable it.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Twitter
Imperf3kt Blackjack - a WIP blackjack game for Android made using Ren'Py
Free Android GUI - Updated occasionally

User avatar
rayminator
Veteran
Posts: 444
Joined: Fri Feb 09, 2018 12:05 am
Projects: Redoing games to fix spelling mistakes other companys that don't care
Location: Canada
Contact:

Re: Is there any anti-cheat code

#18 Post by rayminator » Mon Jun 22, 2020 6:31 pm

Imperf3kt wrote:
Sun Jun 14, 2020 5:01 pm
Config.developer has been automatic for years, there is no need to manually disable it.
you right about that and I know no matter what you do people will find a way to cheat

but I'm going to repeat myself again

I just want a simple code that I can learn from how many time do I have to repeat myself 100 times or 10,000 times

I am not asking for someone to make me one I just to learn how to has to at least 10 line that I can read and learn from and to work with
when I try to help someone I point them into 2 direction what's right and wrong so they can learn how to

User avatar
rayminator
Veteran
Posts: 444
Joined: Fri Feb 09, 2018 12:05 am
Projects: Redoing games to fix spelling mistakes other companys that don't care
Location: Canada
Contact:

Re: Is there any anti-cheat code

#19 Post by rayminator » Mon Jun 22, 2020 8:00 pm

okay here some information

if lust hit one hundred the ends in bad income so I want to make sure if someone that changes lust to 100 it will automatically go back to where it was before it goes to the bad ending that what I'm tying to prevent of happening so if you change it to a hundred it will go back to 50,55,60,65 so on so if you change it will go back to that when you click or enter

so this is what I have so far

Code: Select all

if lust < 99:
        jump start
    elif lust == 100:
        jump rape
when I try to help someone I point them into 2 direction what's right and wrong so they can learn how to

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3000
Joined: Mon Dec 14, 2015 5:05 am
Location: Your monitor
Contact:

Re: Is there any anti-cheat code

#20 Post by Imperf3kt » Mon Jun 22, 2020 10:07 pm

What people are trying to say is there isn't really an answer. Ordinarily players cannot edit the variables unless they're doing some kind of hackery - in which case if they've gone that far then they're just going to disable whatever anti-cheat script you add while they're at it.

However for sake of answering your question, use two variables. Increment them together. Check if they match or not before doing whatever they do. If they don't match someone has tampered with something.
Not foolproof, but better than "nothing"

Maybe record the time the variable changed? Check that.
Check the players current position in the dialogue - is it even possible for them to have that many points yet?

Coming up with these checks is pretty easy to think of, just browse the documentation and you'll see dozens of things that could be used like this, many of which have usage examples.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Twitter
Imperf3kt Blackjack - a WIP blackjack game for Android made using Ren'Py
Free Android GUI - Updated occasionally

User avatar
rayminator
Veteran
Posts: 444
Joined: Fri Feb 09, 2018 12:05 am
Projects: Redoing games to fix spelling mistakes other companys that don't care
Location: Canada
Contact:

Re: Is there any anti-cheat code

#21 Post by rayminator » Mon Jun 22, 2020 10:47 pm

Imperf3kt wrote:
Mon Jun 22, 2020 10:07 pm
What people are trying to say is there isn't really an answer. Ordinarily players cannot edit the variables unless they're doing some kind of hackery - in which case if they've gone that far then they're just going to disable whatever anti-cheat script you add while they're at it.

However for sake of answering your question, use two variables. Increment them together. Check if they match or not before doing whatever they do. If they don't match someone has tampered with something.
Not foolproof, but better than "nothing"

Maybe record the time the variable changed? Check that.
Check the players current position in the dialogue - is it even possible for them to have that many points yet?

Coming up with these checks is pretty easy to think of, just browse the documentation and you'll see dozens of things that could be used like this, many of which have usage examples.
yes I do understand that but there is one game that if you change to courage it will rest no matter what you change it too that is Bright Past try putting this into the game


$ allsmel= 100

better you will go back where it was

the game was bright past

here is the game if you want to try it I do have a mod for it as well
https://f95zone.to/threads/bright-past- ... mes.10622/
when I try to help someone I point them into 2 direction what's right and wrong so they can learn how to

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3000
Joined: Mon Dec 14, 2015 5:05 am
Location: Your monitor
Contact:

Re: Is there any anti-cheat code

#22 Post by Imperf3kt » Mon Jun 22, 2020 10:50 pm

Note that the above link is NSFW and should be posted differently (not linked)
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Twitter
Imperf3kt Blackjack - a WIP blackjack game for Android made using Ren'Py
Free Android GUI - Updated occasionally

User avatar
rayminator
Veteran
Posts: 444
Joined: Fri Feb 09, 2018 12:05 am
Projects: Redoing games to fix spelling mistakes other companys that don't care
Location: Canada
Contact:

Re: Is there any anti-cheat code

#23 Post by rayminator » Mon Jun 22, 2020 11:02 pm

Imperf3kt wrote:
Mon Jun 22, 2020 10:50 pm
Note that the above link is NSFW and should be posted differently (not linked)
yes your right you need to be registered to the site
https://mega.nz/file/7CgVSSQb#84EwqBG20 ... oPFqPUe-LQ
https://www.patreon.com/kosmosgames

what I'm try to do is to see if anyone that changes the lust to 100 meaning $ lust = 100 so it will go back so say it was 25 if the player change it to 100 it will automatically go back to 25 this way it will not go to bad ending
this is the reason why i ask how to reset a variable if someone change lust to 100 it automatically goes back down were it was before the game ends cause he would be charge for rape

yes I know what I asked for but someone could of show something that I can learn something by it instead of repeating myserlf

I know that you tried to help me before with the gallery but you have forgot one important thing I needed to know

hey there... there was one thing was missing

there is only a couple of ways I can learn if someone shows me how to or show video that's detail to detail that the only way I can learn
hope you do understand I might have a learning disorder but my IQ is extremely high

it's this code here

something like this

Code: Select all

$ persistent.unlock_62 = True
and here is mod I made bright past
https://mega.nz/#!HTJkXIwD!-vX52ku3-9cw ... b9BMi8Dp2A
when I try to help someone I point them into 2 direction what's right and wrong so they can learn how to

User avatar
rayminator
Veteran
Posts: 444
Joined: Fri Feb 09, 2018 12:05 am
Projects: Redoing games to fix spelling mistakes other companys that don't care
Location: Canada
Contact:

Re: Is there any anti-cheat code

#24 Post by rayminator » Thu Jul 02, 2020 9:19 pm

okay I do understand you all but you don't understand how I learn

I learn by someone showing me how to to do things or watching videos (but sometime watching videos doesn't help) so I need a sample code so I can play around with itthat all
when I try to help someone I point them into 2 direction what's right and wrong so they can learn how to

Post Reply

Who is online

Users browsing this forum: No registered users