4.20 star(s) 125 Votes

CarbonBlue

Developer of Unleashed
Game Developer
Oct 25, 2018
1,131
7,711
Yeah someone else reported that problem too. Weird. Try dropping this file into your game folder and seeing if that fixes it?
 
  • Like
Reactions: SpikeZg

MLBnoob

Active Member
Mar 13, 2019
585
1,807
You almost got me, almost made me think whether this is paranormal game or not. My MC's keeping his virginity for little longer, going for that gentleman route still conflicted who's the best girl for me. But Imma show my weeb-on to the professor if you know what I mean.
 

wurg

Active Member
Modder
Apr 19, 2018
705
1,629
Yeah someone else reported that problem too. Weird. Try dropping this file into your game folder and seeing if that fixes it?
Carbon, I got the error too, 'Guy not defined', in your script instead of $ Guy = Character("Guy"), use define Guy = Character ( "Guy" ).

It's what I did to fix it in my copy, just saved before the scene, modified, and relaunched the game.

Edit: Using define initializes the variable/character when the game launches so whenever the user encounters the variable/character it will always already be defined. I'm assuming you added this character in 2.1 and I did not encounter this in my playthrough of 2.0, hence why my game threw the error.
 
Last edited:
  • Like
Reactions: CarbonBlue

CarbonBlue

Developer of Unleashed
Game Developer
Oct 25, 2018
1,131
7,711
Edit: Using define initializes the variable/character when the game launches so whenever the user encounters the variable/character it will always already be defined. I'm assuming you added this character in 2.1 and I did not encounter this in my playthrough of 2.0, hence why my game threw the error.
That's what confuses me. I added the character in 2.0. It was Ethan. And everyone had to run in to him.
 

wurg

Active Member
Modder
Apr 19, 2018
705
1,629
That's what confuses me. I added the character in 2.0. It was Ethan. And everyone had to run in to him.
I see what happened, see pictures, first is v2, second is v3. In v2 you have the characters in an init block, which is basically the same as "define", in v3 there is no init block for the character, hence unless the user comes across that line of code in the current playthrough the character is "undefined", because it wasn't initialized at launch.

Any character or variable in an init block is not saved when the user saves their game unless the variable is modified in the code, ie 'kindness +=1', then the variable will be saved in the save file, otherwise it is ignored.

My advice, make a separate file for you characters and have them all together in one place instead of scattered through the code, it makes them easier to reference and find if there is an issue. You can have as many files as you want in the game, use them to organize everything, it's what I do, compartmentalize.
 
  • Like
Reactions: CarbonBlue
4.20 star(s) 125 Votes