Mod Ren'Py Midnight Paradise - Lain's Walkthrough & Cheat Mod [v0.14] [Maim Lain]

5.00 star(s) 3 Votes

mrmcfappen

Newbie
Sep 10, 2019
91
125
So I've had the same issue as the previous guys (Isa's and Ruby's tracking are a bit messed) as well after finishing the final sex scene with Isa if I press on the "Phone" it gives me this exception
Python:
I'm sorry, but an uncaught exception occurred.

While running game code:
  File "renpy/common/000statements.rpy", line 569, in execute_call_screen
    store._return = renpy.call_screen(name, *args, **kwargs)
  File "renpy/common/00action_data.rpy", line 79, in get_selected
    return __get_field(self.object, self.field, self.kind) == self.value
  File "renpy/common/00action_data.rpy", line 39, in _m1_00action_data__get_field
    raise NameError("The {} {} does not exist.".format(kind, name))
NameError: The variable lain_complete14 does not exist.

-- Full Traceback ------------------------------------------------------------

Full traceback:
  File "scripts/locations/natsukohome/livingroom/controllers.rpyc", line 14, in script call
  File "scripts/locations/home/isabelroom/controllers.rpyc", line 195, in script call
  File "scripts/locations/home/isabelroom/controllers.rpyc", line 229, in script call
  File "scripts/locations/apartment/mcroom/controllers.rpyc", line 43, in script
  File "renpy/ast.py", line 2015, in execute
    self.call("execute")
  File "renpy/ast.py", line 2003, in call
    return renpy.statements.call(method, parsed, *args, **kwargs)
  File "renpy/statements.py", line 278, in call
    return method(parsed, *args, **kwargs)
  File "renpy/common/000statements.rpy", line 569, in execute_call_screen
    store._return = renpy.call_screen(name, *args, **kwargs)
  File "renpy/exports.py", line 3136, in call_screen
    rv = renpy.ui.interact(mouse="screen", type="screen", roll_forward=roll_forward)
  File "renpy/ui.py", line 298, in interact
    rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
  File "renpy/display/core.py", line 3325, in interact
    repeat, rv = self.interact_core(preloads=preloads, trans_pause=trans_pause, pause=pause, pause_start=pause_start, **kwargs)
  File "renpy/display/core.py", line 3737, in interact_core
    root_widget.visit_all(lambda i : i.per_interact())
  File "renpy/display/core.py", line 568, in visit_all
    d.visit_all(callback, seen)
  File "renpy/display/core.py", line 568, in visit_all
    d.visit_all(callback, seen)
  File "renpy/display/core.py", line 568, in visit_all
    d.visit_all(callback, seen)
  File "renpy/display/screen.py", line 441, in visit_all
    self.child.visit_all(callback, seen=None)
  File "renpy/display/core.py", line 568, in visit_all
    d.visit_all(callback, seen)
  File "renpy/display/core.py", line 568, in visit_all
    d.visit_all(callback, seen)
  File "renpy/display/core.py", line 568, in visit_all
    d.visit_all(callback, seen)
  File "renpy/display/core.py", line 570, in visit_all
    callback(self)
  File "renpy/display/core.py", line 3737, in <lambda>
    root_widget.visit_all(lambda i : i.per_interact())
  File "renpy/display/behavior.py", line 878, in per_interact
    if self.is_selected():
  File "renpy/display/behavior.py", line 866, in is_selected
    return is_selected(self.action)
  File "renpy/display/behavior.py", line 398, in is_selected
    return any(is_selected(i) for i in action)
  File "renpy/display/behavior.py", line 398, in <genexpr>
    return any(is_selected(i) for i in action)
  File "renpy/display/behavior.py", line 401, in is_selected
    return action.get_selected()
  File "renpy/common/00action_data.rpy", line 79, in get_selected
    return __get_field(self.object, self.field, self.kind) == self.value
  File "renpy/common/00action_data.rpy", line 39, in _m1_00action_data__get_field
    raise NameError("The {} {} does not exist.".format(kind, name))
NameError: The variable lain_complete14 does not exist.

Windows-10-10.0.19041
Ren'Py 7.4.11.2266
Midnight Paradise 0.15c
Sat Feb  5 23:15:06 2022
I've attached a savefile if you need to check it out.
Thanks for doing this for us.
View attachment 1636921
This error occurs because game is trying to edit non-existent variable called lain_complete14 in script Lain_Screens.rpy line 323 which is:
textbutton "X" action [Hide("mod_completed_substar"), SetVariable("lain_complete14", True), Show("modmenu")] align (1.0, 0.0) text_font "mod/OSB.ttf" yoffset -6 text_hover_color "#f783bd"
Changing it to as below solves it.
textbutton "X" action [Hide("mod_completed_substar"), SetVariable("lain_complete15", True), Show("modmenu")] align (1.0, 0.0) text_font "mod/OSB.ttf" yoffset -6 text_hover_color "#f783bd"
 

Lord Ashram

Well-Known Member
Modder
Dec 29, 2020
1,870
10,773
momlover3000 mrmcfappen AcTePuKc UnoriginalUserName Crimsonfiend76



Update:
Finally fixed the last error in my update to the mod, about it complaining about lain_complete14, everything works as it should now. I do feel a bit stupid about the last one because I had trouble finding it when it was the easiest thing to fix and it should have never been there in the first place if I hadn't decided to hurry up and release it even though I had not yet finished everything as I still had to finish Ms. Jane's stuff but since I thought I had updated everything on Lain's mod like I had done in Harem Hotel from Lain's mod I thought I was done. I was trying to get this out to you guys ASAP which caused me to forget something.

I'm getting a lot better at being able to mod Lain's mod so hopefully I won't have any issues in the future, besides having to learn Lain's code I also had to learn LewdLab's code for this game.
 

rate61

Newbie
Dec 9, 2017
43
176
So I finally finished with my update to Lain's Mod for this, I was also working on modding the Gallery to unlock everything but even when I changed them from if/else to just the normal action buttons they still won't work unless you played that scene originally. Weird as hell as that shouldn't happen. I might figure it out later but for now my brain needs a rest after everything.

My Changes:
  • Updated for 0.15c Elite Content
  • Updated Lain's story_14 file for the 0.15c update fixes
  • Updated previous version with more context in Walkthrough
  • Added Cheat to be able to have both Eliana and Melissa
  • Modded game for Isa's 0.15 content so that the game doesn't cause the mod to jump the Walkthrough

Link:


Edit:
If you had any issues please update to the latest version of my mod.


View attachment 1635218 View attachment 1635219 View attachment 1635220 View attachment 1635221 View attachment 1635222 View attachment 1635223 View attachment 1635224 View attachment 1635225 View attachment 1635226 View attachment 1635227 View attachment 1635228 View attachment 1635229 View attachment 1635230
You should add these lines to the Lain_Cheats.rpy file.

Because new scenes are not opening in the gallery


Code:
label lain_cheat_scenegallery:
    $ persistent._seen_ever["chadgf1_sex"] = True
    $ persistent._seen_ever["ruby1_prologueBed"] = True
    $ persistent._seen_ever["collegesluts1_dream"] = True
    $ persistent._seen_ever["extra_miranda1_bj"] = True
    $ persistent._seen_ever["extra_mom1_bath"] = True
    $ persistent._seen_ever["ruby2_prologueShower"] = True
    $ persistent._seen_ever["isabel_prologueNight"] = True
    $ persistent._seen_ever["ruby3_prologueNight"] = True
    $ persistent._seen_ever["mom2_prologueDressing"] = True

    python:
        ##
        persistent._seen_ever["elite_scene_0_15"] = True
        persistent._seen_ever["extra_scene_0_15"] = True
        persistent._seen_ever["natsuko_invite"] = True
        persistent._seen_ever["isa_sauna_dialogue"] = True
        persistent._seen_ever["isa_room_sex_1_dialogue"] = True
        persistent._seen_ever["isa_apartment_sex_1_dialogue"] = True
        persistent._seen_ever["booty_call_ruby_bj"] = True
        ##
 

Lord Ashram

Well-Known Member
Modder
Dec 29, 2020
1,870
10,773
You should add these lines to the Lain_Cheats.rpy file.

Because new scenes are not opening in the gallery
...
I had worked on adding them into the mod but got stuck on the isa_sauna_dialogue part and had got lost then forgotten.
I now just added them to the right spot in Lain_Cheats.rpy but isa_sauna_dialogue still does not work for me.
That is the last one on page 4 for Isa, it's still blurred out for me and unselectable. I've even gone into the code on my private build and changed the button to a pure action button that is suppose to be active no matter what but the game still tells me to fuck off.
I'm playing on the Lust Path instead of the Love Path.

Either way, mod is updated and thanks for reminding me.
 

Lord Ashram

Well-Known Member
Modder
Dec 29, 2020
1,870
10,773
Unless anything else, I will move my mod to the game's main thread probably sometime tomorrow.
 

ShaddyGames

Engaged Member
Modder
Donor
Game Developer
Jan 19, 2020
2,372
11,564
You should add these lines to the Lain_Cheats.rpy file.

Because new scenes are not opening in the gallery


Code:
label lain_cheat_scenegallery:
    $ persistent._seen_ever["chadgf1_sex"] = True
    $ persistent._seen_ever["ruby1_prologueBed"] = True
    $ persistent._seen_ever["collegesluts1_dream"] = True
    $ persistent._seen_ever["extra_miranda1_bj"] = True
    $ persistent._seen_ever["extra_mom1_bath"] = True
    $ persistent._seen_ever["ruby2_prologueShower"] = True
    $ persistent._seen_ever["isabel_prologueNight"] = True
    $ persistent._seen_ever["ruby3_prologueNight"] = True
    $ persistent._seen_ever["mom2_prologueDressing"] = True

    python:
        ##
        persistent._seen_ever["elite_scene_0_15"] = True
        persistent._seen_ever["extra_scene_0_15"] = True
        persistent._seen_ever["natsuko_invite"] = True
        persistent._seen_ever["isa_sauna_dialogue"] = True
        persistent._seen_ever["isa_room_sex_1_dialogue"] = True
        persistent._seen_ever["isa_apartment_sex_1_dialogue"] = True
        persistent._seen_ever["booty_call_ruby_bj"] = True
        ##
I had worked on adding them into the mod but got stuck on the isa_sauna_dialogue part and had got lost then forgotten.
I now just added them to the right spot in Lain_Cheats.rpy but isa_sauna_dialogue still does not work for me.
That is the last one on page 4 for Isa, it's still blurred out for me and unselectable. I've even gone into the code on my private build and changed the button to a pure action button that is suppose to be active no matter what but the game still tells me to fuck off.
I'm playing on the Lust Path instead of the Love Path.

Either way, mod is updated and thanks for reminding me.
All you need to unlock the gallery.
Code:
init python:
    for label in renpy.get_all_labels():
        renpy.game.persistent._seen_ever[label] = True
        renpy.game.seen_session[label] = True
 
Last edited:

Lord Ashram

Well-Known Member
Modder
Dec 29, 2020
1,870
10,773
All you need to unlock the gallery.
...
Seems to be a nice quick replacement I won't have to bother with again, thanks.

**Edited me being a dumbass**


Anyways, I updated my mod with your code but I left the name still as rev5.
 
Last edited:

ShaddyGames

Engaged Member
Modder
Donor
Game Developer
Jan 19, 2020
2,372
11,564
Seems to be a nice quick replacement I won't have to bother with again, thanks.

BUT,
isa_sauna_dialogue still does not work for me, it's the last one on page 4 for Isa, it's still blurred out for me and unselectable.

Does that one work for anyone?


Anyways, I updated my mod with your code but I left the name still as rev5.
Works for me using the file I posted in my previous post. Screenshot in spoiler. After deleting both my persistent saves from the game and appdata folders. Haven't even downloaded your mod yet, cause I'm waiting for it to be complete, since I have to restart anyhow.
You don't have permission to view the spoiler content. Log in or register now.
 

Lord Ashram

Well-Known Member
Modder
Dec 29, 2020
1,870
10,773
Works for me using the file I posted in my previous post. Screenshot in spoiler. After deleting both my persistent saves from the game and appdata folders. Haven't even downloaded your mod yet, cause I'm waiting for it to be complete, since I have to restart anyhow.
...
Everything works, including the Scene Gallery. I had forgotten to go back to the Cheat Menu in the Phone and re-click Unlock Scene Gallery. I even went back and deleted both persistent saves to ensure there was nothing available in the Scene Gallery then re-clicked the Unlock Scene Gallery and all good now.

You can give it a go now.
 

ShaddyGames

Engaged Member
Modder
Donor
Game Developer
Jan 19, 2020
2,372
11,564
Everything works, including the Scene Gallery. I had forgotten to go back to the Cheat Menu in the Phone and re-click Unlock Scene Gallery. I even went back and deleted both persistent saves to ensure there was nothing available in the Scene Gallery then re-clicked the Unlock Scene Gallery and all good now.

You can give it a go now.
on the games OP or your mod post here? Speaking of, if it hasn't been updated on the game OP yet, pass me the post link and I can update the mod link to yours when you're ready to have it posted.
 

martinlongbow

Member
Nov 30, 2018
276
377
how to trigger isabelle 23. it says go to her room at the evening but room is empty and she is at living room with only ols talking options
 

Lord Ashram

Well-Known Member
Modder
Dec 29, 2020
1,870
10,773
how to trigger isabelle 23. it says go to her room at the evening but room is empty and she is at living room with only ols talking options
Has the dad talked to you about raising the rent?
Other than that I'm not sure what else other than try advancing the Main Story further than try her room again.
 

Lord Ashram

Well-Known Member
Modder
Dec 29, 2020
1,870
10,773
yes he did and i already got the apartment. for some reason isabelle part does not advance
In the game code the requires to trigger it are her level (level 16), the main story level (level 22) and dad level (level 3).
Levels due not reflect where you are in the walkthrough but internal for the game and walkthrough.

To verify, but this in your game folder.
In your game bring up console mode:
shift + o
and type each of these in, hitting enter afterwards:
[isabel_level]
[mainstory_level]
[dad_level]

When these are all correct then you should be able to go to Isa's room during the evening and ask her out.
 

ShaddyGames

Engaged Member
Modder
Donor
Game Developer
Jan 19, 2020
2,372
11,564
yeah found it thanks, just finished playing the update actually. You might want to add an override in for those that change the mc name. Noticed the name is hardcoded in the dialogue. Only the Sayer name is being changed with the current code. I've attached a file with this override for anyone that wants to use it.
Just rename it by removing the numbers at the start and place it in the 'game' folder
Code:
default mc_name = "Connor"

init 99 python:

    hardcoded = {}

    def hardcoded_text(text):
        def text_repl(t):
            if t.group(0).startswith("Connor"): return "[mc_name]"

        return hardcoded[text] if text in hardcoded else renpy.re.sub( r'(?:(?i)Connor)', text_repl, text )

    config.say_menu_text_filter = hardcoded_text
 
Last edited:

martinlongbow

Member
Nov 30, 2018
276
377
In the game code the requires to trigger it are her level (level 16), the main story level (level 22) and dad level (level 3).
Levels due not reflect where you are in the walkthrough but internal for the game and walkthrough.

To verify, but this in your game folder.
In your game bring up console mode:
shift + o
and type each of these in, hitting enter afterwards:
[isabel_level]
[mainstory_level]
[dad_level]

When these are all correct then you should be able to go to Isa's room during the evening and ask her out.
thank you very much. Looks like i have 2 dad level. how do i increase it to 3 ?
 

Lord Ashram

Well-Known Member
Modder
Dec 29, 2020
1,870
10,773
I'm sorry, but an uncaught exception occurred.

While loading <'Image' u'mod/images/modguide.png'>:
File "renpy/common/000statements.rpy", line 569, in execute_call_screen
store._return = renpy.call_screen(name, *args, **kwargs)
IOError: Couldn't find file 'mod/images/modguide.png'.
...
Have you verified that the file is there?
I could use more information as to when did this occur as in when you try to start the game, load a save or when you try to access the Walkthrough/Cheat Menu from the Phone icon during the game.
 
5.00 star(s) 3 Votes