Night Hacker

Forum Fanatic
Jul 3, 2021
4,460
21,821
Ran into the most common error I keep seeing in visual novels!!! An UNDEFINED variable, unless it is set it to TRUE; he otherwise doesn't do a thing, because after all, the program will switch to ESP mode and read his mind and just KNOW the variable exists!!!

I needed to add in
Python:
default wingnami = False
...to "PatchSG.rpy" because the DEV didn't define a default. Sorry, a tad annoyed that I keep seeing this SAME ERROR in so many VNs!!! The Dev doesn't bother to define the variable unless he sets it to "True" which is bad programming as when you go to test if it is "True", and it was not set, than it is UNDEFINED and the program doesn't know what variable talking about and so it throws an exception!

If you're going to program these things, DEFINE ALL VARIABLES BEFORE YOU USE THEM ONE WAY OR ANOTHER!!! Man... anyhow... I am done ranting. Thank God I know how to program and it was a relatively easy fix FOR ME.

END RANT.... ;)
Edited language out. LOL

Update: this SEEMS to be a product of the "reworking my old game" that plagues us all, and seeing as how he redone chapter 1 but not 2 and removed an idea and variable from earlier chapter but didn't search his project for other instances of the variable, this happened. CTRL+SHIFT+F... learn to use it to search your project for other instances of your variable folks, and clean it up properly (if you use the ATOM editor anyhow, which you should).
 
Last edited:
  • Like
Reactions: sava75

GodHatesFigs

New Member
Mar 15, 2023
3
8
One of my favorite renders in the game. Man, I really don't want him to rework this scene.
View attachment 2472036
I really hope he doesn't . It always botherd me how ridiculous she looked wearing what ever that is to something as serious as breaking into someone's house. It's one of those moments where the Dev pulls a perv and makes a female character wear something risqué just to show off her assets but the actual scene doesn't call for it in any way shape or form. It was kinda a recurring theme in the beginning of this game. Bella being topless while crying and having a heart to heart convo with the MC in CH3 and Nami crying then removing her bra for no reason while having a heart to heart with the MC. It's ridiculous lol and I'm sure there's more instances like this in the game. Anyways I think a black hoodie and a pair of black leggings will look better on Bella for this scene and it will suit the occasion more.
 
Last edited:

abdje019

Newbie
Mar 20, 2023
83
68
Ran into the most common, and STUPID error I keep seeing in visual novels!!! an UNDEFINED variable because the DEV is too retarded to define it unless he sets it to TRUE, he otherwise goes into retard mode and doesn't do a thing, because after all, the program will switch to ESP mode and read his fucking mind and just KNOW the variable exists!!!

Thank God some of us can program and know a little about these things... I needed to add in
Python:
define wingnami = False
To "PatchSG.rpy" because the DEV is a newb programmer. Sorry, a tad annoyed that I keep seeing this SAME ERROR!!! The Dev doesn't bother to define the damn variable unless he sets it to "True" which is utterly RETARDED as when you go to test if it is "True", and it was not set, than it is UNDEFINED and the program doesn't know what variable you are fucking talking about and so it throws an exception!

If you're going to program these things, DEFINE ALL VARIABLES BEFORE YOU USE THEM ONE WAY OR ANOTHER!!! Man... anyhow... I am done ranting. Thank God I know how to program and it was a relatively easy fix FOR ME.

END RANT.... ;)
So Nami acting like a wingman is not set right by the dev? Is that why she always telling me to fuck other girls or how horny they are even though I'm on her route and she basically told my protagonist she was in love with him? It feels inconsistent....and moments like that are littered throughout the game...
 
  • Like
Reactions: operamini

Sasanid

Active Member
Jan 1, 2019
901
1,968
I've stopped playing AVN's with mods long time ago. It's truely better in the most cases. Sure, I've installed URM and sometimes I use it but you'll have more fun without modding after all.
Never played with mods, I don't see the point personnally.

Some mods can help fix prog mistakes though, glitches, some smoothens animations, and the like, so there are some perks to them.

Modders here work hard to maintain them, that's for sure.

Still, playing to cheat all paths in, it's just being lazy, pure waste of time.
 

Jace_Herondale

Active Member
Apr 2, 2020
772
1,029
Never played with mods, I don't see the point personnally.

Some mods can help fix prog mistakes though, glitches, some smoothens animations, and the like, so there are some perks to them.

Modders here work hard to maintain them, that's for sure.

Still, playing to cheat all paths in, it's just being lazy, pure waste of time.
1679403463695.png
 
  • Wow
  • Haha
Reactions: Ilhares and Sasanid

yossa999

Engaged Member
Dec 5, 2020
2,286
15,317
Ran into the most common, and STUPID error I keep seeing in visual novels!!! an UNDEFINED variable because the DEV is too retarded to define it unless he sets it to TRUE, he otherwise goes into retard mode and doesn't do a thing, because after all, the program will switch to ESP mode and read his fucking mind and just KNOW the variable exists!!!

Thank God some of us can program and know a little about these things... I needed to add in
Python:
define wingnami = False
To "PatchSG.rpy" because the DEV is a newb programmer. Sorry, a tad annoyed that I keep seeing this SAME ERROR!!! The Dev doesn't bother to define the damn variable unless he sets it to "True" which is utterly RETARDED as when you go to test if it is "True", and it was not set, than it is UNDEFINED and the program doesn't know what variable you are fucking talking about and so it throws an exception!

If you're going to program these things, DEFINE ALL VARIABLES BEFORE YOU USE THEM ONE WAY OR ANOTHER!!! Man... anyhow... I am done ranting. Thank God I know how to program and it was a relatively easy fix FOR ME.

END RANT.... ;)
It looks like you're shooting in the wrong direction, this variable only occurs in Chapter2.py in the "if" condition and nowhere else, it seems to be an uncleaned remnant from chapter 2 before the rework. If my memory serves me right, this variable was set in a deleted part of the bathroom scene when MC had the option to say that he likes Mila and that switched Nami into full Cheeto mode about being his wingman.
 
Nov 30, 2022
101
147
So sorry for you, but it happens in 4.5 full :ROFLMAO:
Okay, I was talking about this:

the basketball team's leader (the guy who puts a finger in Trey's ass!) arriving
in old version basketball team's leader is played by "Dolph Lundgren" :KEK: :

You don't have permission to view the spoiler content. Log in or register now.

He started "inspection":

You don't have permission to view the spoiler content. Log in or register now.

Then the leader SLAPPED Trey's ass:

You don't have permission to view the spoiler content. Log in or register now.

Then the leader told Trey about other guy who likes to do deeper inspections :LOL:

You don't have permission to view the spoiler content. Log in or register now.

So in old version the leader didnt put finger in Trey's ass and even special dude who likes to do that didnt do it to Trey. But you are saying things are different in 4.5 full?
 

Ottoeight

Forum Fanatic
Mar 13, 2021
5,182
9,167
Okay, I was talking about this:



Then the leader SLAPPED Trey's ass:

You don't have permission to view the spoiler content. Log in or register now.

Then the leader told Trey about other guy who likes to do deeper inspections :LOL:



So in old version the leader didnt put finger in Trey's ass and even special dude who likes to do that didnt do it to Trey. But you are saying things are different in 4.5 full?
I don't think he's "slapping" his ass, bro :sneaky:. Anyway, I'm not especially fond of / interested in that moment. I guess you were impressed.
 
Nov 30, 2022
101
147
I don't think he's "slapping" his ass, bro :sneaky:.
You don't need to think about that, there is slap sound right at that moment in the game :LOL:

Anyway, I'm not especially fond of / interested in that moment. I guess you were impressed.
Guys, pay attention at the characters in the background.

First day at "university" (sure it is :sneaky: ). Nojiko's talking to MC & Nami: you will notice Sasha and the basketball team's leader (the guy who puts a finger in Trey's ass!) arriving, entering the building and walking around together for a while.
You are so not interested in that moment that you even imagined something about it that didn't actually happen in the game and wrote that imaginative action as the hallmark of the basketball 1st team's leader :KEK:

Bruh, you can still say that you have bad memory.. :Kappa:
 

Night Hacker

Forum Fanatic
Jul 3, 2021
4,460
21,821
So Nami acting like a wingman is not set right by the dev? Is that why she always telling me to fuck other girls or how horny they are even though I'm on her route and she basically told my protagonist she was in love with him? It feels inconsistent....and moments like that are littered throughout the game...
I played two routes, one where I stay home and gain points with NAMI and one where I went to meet with BELLA that night. On the route where you stay home, that gains you +5 points with Nami and that ultimately leads to this problem. I don't know where that variable is ever set, I didn't look through the code, but this is a common problem I see in many many visual novels. Their code probably goes something like...

Python:
menu:
   "Sleep with her":
      default sleepwithher = True
      "You bang her guts out and get an STD"
   "Say goodbye":
      "You wisely avoid her"
Now in this scenario, if you choose the first option, the variable will be defined and set, but if you do not, the variable is never defined at all and so it doesn't exist. The developer is ASSUMING the program will see that variable as false if it is not set, which shows how new they are to coding. The program will throw an exception because you're asking for the value of a non-existent variable! When you set a variable in programming, the variable name itself is just for your own reference. The computer sets a memory address associated with that name and then stores whatever values you wish there. No variable = no memory address and no value, hence the huge exception and program crash. A better way to do this sort of scenario is this...

Python:
default sleepwithher = False
menu:
   "Sleep with her":
      $ sleepwithher = True
      "You bang her guts out and get an STD"
   "Say goodbye":
      "You wisely avoid her"
...this way you define the variable and the default value for it no matter what the player chooses, so memory is asigned and a default value stored in it that the program can later check, and then the value can be changed later if needed. if it is not changed, there will still be a default value (in this case "False" which is usually zero in memory) assigned for that location so when it is checked, the program doesn't fail like it did.

It was EASY for me to fix, but annoying as hell because I see this A LOT.

In the future, if you see an exception where a variable is not defined, this is the problem. if you extracted or have access to the .RPY file, you can load it up and add 'default variablename = "False"' or whatever to the top (if it's a true/false variable, or a number like zero to it if it looks for a value etc). The game will automatically recompile the script at runtime and it will be fixed if you done everything right.
 
Mar 7, 2023
197
214
Python:
default sleepwithher = False
menu:
   "Sleep with her":
      $ sleepwithher = True
      "You bang her guts out and get an STD"
   "Say goodbye":
      "You wisely avoid her"
I watched the source, and the so called walkthrough, and it would be more closely like

$ sleepwithher0x4 = True

In the end we have 600 variables, no idea WTF they do.

I wonder if dev himself knows.
 

Night Hacker

Forum Fanatic
Jul 3, 2021
4,460
21,821
It looks like you're shooting in the wrong direction, this variable only occurs in Chapter2.py in the "if" condition and nowhere else, it seems to be an uncleaned remnant from chapter 2 before the rework. If my memory serves me right, this variable was set in a deleted part of the bathroom scene when MC had the option to say that he likes Mila and that switched Nami into full Cheeto mode about being his wingman.
Whatever the cause, it is still in there and it is checked which causes an exception. I just added a default value to it in the patch script for now and that solved the problem, but the dev needs to fix his program and define his variables. I know if you use the right editor like Atom you can search all your files for a variable, so this is an easy one to fix if he removed it, he didn't check all files like he should have.

Anyhow, no, I am not "shooting in the wrong direction" (not sure what that even means?!). This happens if you don't help Bella that night and you instead stay home with Nami (I decided to check both routes out) and if you stay home with her (it's a good route by the way), the script checks that variable for some extra text. Looks like, he removed that option but didn't thoroughly check all of his code for that variable. Anyhow, my fix patched it for now and that works. But it is poor coding on his part. I have always been fairly organized in my programming, especially when it comes to variables like this as such problems can be hard to find (though, as I said, the Atom editor, which is an option when you first use RenPY, does a nice job at finding text in ALL files you have loaded).

My replay is from the full version 4.5, I just downloaded it the other day to make certain I had a fresh install with NO MODS (which is partially why I did the replay, to avoid errors... worked out well! LOL). I deleted ALL my saved games and persistent files etc.

Someone may wish to inform the dev of this oversight anyhow.
 

Night Hacker

Forum Fanatic
Jul 3, 2021
4,460
21,821
I watched the source, and the so called walkthrough, and it would be more closely like

$ sleepwithher0x4 = True

In the end we have 600 variables, no idea WTF they do.

I wonder if dev himself knows.
If you create a RenPY project for this game and load in all the relevant RPY files into the ATOM editor, you can search for any variable name and it will show you all locations it exists in. Could give you an idea on how it is used if you're really curious.

In this case, it looks like the dev may have removed something from the game but didn't clean up all of his files and properly remove all instances of the variable, if what someone else said is correct.
 

yossa999

Engaged Member
Dec 5, 2020
2,286
15,317
Whatever the cause, it is still in there and it is checked which causes an exception. I just added a default value to it in the patch script for now and that solved the problem, but the dev needs to fix his program and define his variables. I know if you use the right editor like Atom you can search all your files for a variable, so this is an easy one to fix if he removed it, he didn't check all files like he should have.

Anyhow, no, I am not "shooting in the wrong direction" (not sure what that even means?!). This happens if you don't help Bella that night and you instead stay home with Nami (I decided to check both routes out) and if you stay home with her (it's a good route by the way), the script checks that variable for some extra text. Looks like, he removed that option but didn't thoroughly check all of his code for that variable. Anyhow, my fix patched it for now and that works. But it is poor coding on his part. I have always been fairly organized in my programming, especially when it comes to variables like this as such problems can be hard to find (though, as I said, the Atom editor, which is an option when you first use RenPY, does a nice job at finding text in ALL files you have loaded).

My replay is from the full version 4.5, I just downloaded it the other day to make certain I had a fresh install with NO MODS (which is partially why I did the replay, to avoid errors... worked out well! LOL). I deleted ALL my saved games and persistent files etc.

Someone may wish to inform the dev of this oversight anyhow.
What I meant is that the cause of the error was not that the variable was left uninitialized (although it technically is), but that the variable should have been removed as part of the obsolette code. But you're right, it causes the annoying exception and should be fixed anyway. It seems that it's so hard not to help Bella that this bug doesn't shoot that often :)
 

Night Hacker

Forum Fanatic
Jul 3, 2021
4,460
21,821
What I meant is that the cause of the error was not that the variable was left uninitialized (although it technically is), but that the variable should have been removed as part of the obsolette code. But you're right, it causes the annoying exception and should be fixed anyway. It seems that it's so hard not to help Bella that this bug doesn't shoot that often :)
I created a project for the game and done a quick search for it and found it in the following locations and file (except the default I highlighted in red which was what I added to counter this problem). The variable is only ever set in REPLAY code, and as i suspected, it is set inside a menu which is bad practice (unless he used to have it properly defined as you said), but it only took me literally a few seconds to find all instances of it...

Summer's Gone - wingnami.jpg

Don't know where to report this to, but perhaps someone else can <shrug> the above image should help. I guess if you were talking to NAMI in t he bathroom and you have a choice of who you liked, if you said "Mila" she would become your wing-Nami, but as you said, that was removed, except for the replay code and other instances. In the ATOM editor you can press CTRL+SHIFT+F (Find Menu and Find In Project) to find all instances of any text in the entire project (handy).
 

Ottoeight

Forum Fanatic
Mar 13, 2021
5,182
9,167
Whatever the cause, it is still in there and it is checked which causes an exception. I just added a default value to it in the patch script for now and that solved the problem, but the dev needs to fix his program and define his variables. I know if you use the right editor like Atom you can search all your files for a variable, so this is an easy one to fix if he removed it, he didn't check all files like he should have.

Anyhow, no, I am not "shooting in the wrong direction" (not sure what that even means?!). This happens if you don't help Bella that night and you instead stay home with Nami (I decided to check both routes out) and if you stay home with her (it's a good route by the way), the script checks that variable for some extra text. Looks like, he removed that option but didn't thoroughly check all of his code for that variable. Anyhow, my fix patched it for now and that works. But it is poor coding on his part. I have always been fairly organized in my programming, especially when it comes to variables like this as such problems can be hard to find (though, as I said, the Atom editor, which is an option when you first use RenPY, does a nice job at finding text in ALL files you have loaded).

My replay is from the full version 4.5, I just downloaded it the other day to make certain I had a fresh install with NO MODS (which is partially why I did the replay, to avoid errors... worked out well! LOL). I deleted ALL my saved games and persistent files etc.

Someone may wish to inform the dev of this oversight anyhow.

The Author comes here and answers people. I guess he's going to read your posts too.

Anyway, I just want to point out that the whole "go to Bella/stay home with Nami" thing belongs to the second half of chapter 2 - the only remaining "old SG" that the Author hasn't reworked yet.

I think that he's going to wipe out everything and reshape the whole second half of ch.2 like he did with the rest of the early chapters.
 

Night Hacker

Forum Fanatic
Jul 3, 2021
4,460
21,821
The Author comes here and answers people. I guess he's going to read your posts too.

Anyway, I just want to point out that the whole "go to Bella/stay home with Nami" thing belongs to the second half of chapter 2 - the only remaining "old SG" that the Author hasn't reworked yet.

I think that he's going to wipe out everything and reshape the whole second half of ch.2 like he did with the rest of the early chapters.
That makes sense. I think I remember that mentioned somewhere (in game?). Ah well... I patched it for now and the problem is gone. I like the game but... this whole "I need to rework the game" trend is a plague... though I will enjoy it, I can also do without it, and this illustrates why.
 
4.30 star(s) 537 Votes