• To improve security, we will soon start forcing password resets for any account that uses a weak password on the next login. If you have a weak password or a defunct email, please update it now to prevent future disruption.

Mod Ren'Py Universal Gallery Unlocker [2024-01-24] [ZLZK]

5.00 star(s) 2 Votes

ZLZK

Member
Modder
Jul 2, 2017
274
575
I have find out why game doesn't restart on script reload.
(On script reload game removes my mod data,
but hijacks, that requires it, are still present.)
I have hijacked reload_script function to remove mod hijacks before its call.
I will include this fix in the next version.
(Which will come not so fast.)
 

ZLZK

Member
Modder
Jul 2, 2017
274
575
ZLZK I used your mod for Lust Academy S2 v1.7.1d but it didn't work.Can you please take a look at it?
I assume this game won't work with this mod.
I'm not sure because I can't decompile its files.

But there is already gallery unlocker for this game.

As in Configuration section in this thread.
To check if this mod can ever work with certain game,
you need to change in config:
- free
- ztoo
- deep
to True.
If after this it doesn't work you can probably give up.

To avoid using of free we need to add gallery screen name to snms.
I was working on in-game screen name getter and in-game config.
I will finish it some time later.
 

TheGodUncle

Active Member
Dec 2, 2017
612
372
It doesn't really seem to work with Healslut. Two or three scenes are actually playable but the others just play the wrong scene and it seems to be missing a decent amount of scenes.
 

SkorpionJC

New Member
Sep 14, 2021
8
1
i am not a coder or game editor-developer, can u explain a total noob, not where to put it (I got that at least) but how to modify it and when to modify it?

and how to recognize this :

"My mod won't work with custom gallery checks,
it only works with renpy/persistent True/False checks,
not with in list checks. "

I will really appreciate any help
 

ZLZK

Member
Modder
Jul 2, 2017
274
575
but how to modify it and when to modify it?
You shouldn't modify my mod at all.
There is a config file, if my mod doesn't work you can try changing values there.
It it still doesn't work, it will probably not work then.

If anything I look in game files how gallery unlocks things to see if my mod is capable of doing it.
And everything it's capable doing is achievable trough said config file.

The only thing you need to know of is the name of gallery screen.
I'm working on in-game screen name getter that I will implement some other time.

"My mod won't work with custom gallery checks,
it only works with renpy/persistent True/False checks,
not with in list checks. "
You know what list is, right?
List: [ "a", "b", "c" ]
Game: if "a" is in list do x

Well I can't lie to the game that there is "a" in a list if there isn't.
I'm only lying about False being True.

I could probably make it, but what if game wants to use "a"?
I can tell game there is "a" when there is not, but I can't give an "a",
since there is no way to know what "a" may be if it doesn't exist.
 

ZLZK

Member
Modder
Jul 2, 2017
274
575
- what OS you have
By that I meant that I can only help if problem is related to Windows platform.
(Since it's the only one I use.)

- what you have issue with, does not unlock
As I have mentioned earlier my mod won't work with in list persistent checks.

To unlock gallery for that game use this:
persistent.gallery_ids = [ v.id for v in gallery_scenes ]

Enter it in console or in any ".rpy" file in init 1 python: block.
 

Havik79

Conversation Conqueror
Sep 5, 2019
6,352
7,572
Thanks I will just go without you may as well be speaking Chinese.
 

ZLZK

Member
Modder
Jul 2, 2017
274
575
Thanks I will just go without you may as well be speaking Chinese.
It's how any modding is done. Basic of the basics.

Add console enabler to "game" folder and then press Shift + O in game to use console.
Then in console paste code below and press enter.
persistent.gallery_ids = [ v.id for v in gallery_scenes ]

OR

Add gallery unlocker to "game" folder.
 

ZLZK

Member
Modder
Jul 2, 2017
274
575
doesn't work with Summer Story [v0.2.4]
There are no bugs, the gallery just stays closed
What do you expect by telling me this?
At this point it's like request thread of making gallery unlockers.
And such a request shouldn't be posted in my thread.

Gallery has changed and this mod doesn't work anymore for that game.
It's same thing as above: it uses now in list* persistent checks.
*: It uses python set not a list, at least someone smart.

If you would look at code you would find ways to unlock changed gallery.
Now in game there's function that does that: gallery.unlock_all()
Or use this.
 

ZLZK

Member
Modder
Jul 2, 2017
274
575
ok, ok. Sorry. There is no need to be so aggressive. Isn't the mod called "Universal...", thought maybe something else needs to be adjusted to improve the mod to make it work even better. I don't need a mod for this game. If you no longer intend to improve the mod then put the mark " Completed".
And yes, how did I not guess to look at the code, I know everything in this, as all the people in the world.
As always, I wanted to help, but I ran into a rude person.
It was me being polite, and it was honest question.
This issue was already reported-
and I have already explained why I shouldn't resolve it.
The one impolite is you who didn't read previous posts.

To do what you expect requires breaking some games.
Let's go.

(...time pass...)

Okay, I have done it.
The first game I test in list persistent checker hijack,
(The thing you wanted me to add to my mod)
it crash the game.
Who could have expected it???
But it works for the game you mentioned.

And since you admitted that you don't know anything,
From where does come the confidence that this adjustment would be an improvement?
Because I didn't and don't think it is.

I'm trying to make my mod most "universal",
so adding something that can break already working games,
it's not something I would want to do.

The config of this mod makes it more flexible,
but I don't think anyone is using it.
So I'm not convinced to add this adjustment to the config.

And this mod is only alternative if there isn't any other unlocker.
It's not meant to be trustworthy and dependable tool,
that could be used in any game at any time.
 

ZLZK

Member
Modder
Jul 2, 2017
274
575
I decided to get rid of everything unnecessary.

Since there is no more config-
you can just add mod to a game.
But now if you want to play that game-
you need to remove it before doing so.

Mod become simpler, but in return may crash same games.
 
  • Like
Reactions: XV71

herreraaa

Member
Jan 24, 2020
393
723
I decided to get rid of everything unnecessary.

Since there is no more config-
you can just add mod to a game.
But now if you want to play that game-
you need to remove it before doing so.

Mod become simpler, but in return may crash same games.
So the mod doesnt work in a game with Gallery inside of a PT?
Im having problems to use the mod on Stray Incubbus game(Gallery inside a PT)
 

ZLZK

Member
Modder
Jul 2, 2017
274
575
So the mod doesnt work in a game with Gallery inside of a PT?
Im having problems to use the mod on Stray Incubbus game(Gallery inside a PT)
It does unlock gallery in that game.

If you meant this:
Exception: Backslash in filename, use '/' instead: u'gui/textbox.png'
You could have told me that you had an error.

I'm not quite sure why this error pops out.
But I was able to locate source of it. (In my mod only.)
So I have changed my mod code, and it doesn't pops out anymore.

But still, I'm curious what type with __contains__ except set, list, dict, tuple there is to cause it.
 
  • Red Heart
Reactions: herreraaa

herreraaa

Member
Jan 24, 2020
393
723
It does unlock gallery in that game.

If you meant this:
Exception: Backslash in filename, use '/' instead: u'gui/textbox.png'
You could have told me that you had an error.

I'm not quite sure why this error pops out.
But I was able to locate source of it. (In my mod only.)
So I have changed my mod code, and it doesn't pops out anymore.

But still, I'm curious what type with __contains__ except set, list, dict, tuple there is to cause it.
Sorry about not showing you the error.
I thought it was a error you already knew.

Everything is working smoothly now, thank you.
 

ZLZK

Member
Modder
Jul 2, 2017
274
575
Exception: Backslash in filename, use '/' instead: u'gui/textbox.png'
...
But still, I'm curious what type with __contains__ except set, list, dict, tuple there is to cause it.
It was right in front of me.
Error represents string, and it was it.

Game checks if "\\" is in persistent variable which value was "gui/textbox.png".
and throw said error if that was the case.

But there is no "\\" in there, what happened?
This mod happened, it changes all persistent in checks to True.
 

ReaperMania

Member
Aug 8, 2020
276
109
how do you use it for a .rar engine? Because I tried to use it on a game called Viv: The Game by putting the whole thing in the game folder and it didn't work.
 
5.00 star(s) 2 Votes