VN Ren'Py Tragic Elf Life [v0.04 Beta] [StraponCookie]

StraponCookie

Newbie
Game Developer
Mar 14, 2022
48
96
StraponCookie

Please don't name character variables dir. This is a reserved function name in both python and renpy. Overwriting it doesn't cause a lot of problems, but in general, don't overwrite built-in commands with dynamic ones you create.

This is probably the 3rd or 4th Renpy game where I've seen that happen. Why do I know it happens? Because, I like to muck around in the console and see how things were done in Renpy games. It's a thing I do.

Deal breaker? No. Just a best practice thing to keep in mind as your skills develop and you continue to work on your game.
Good to know thx for reporting, will be added to the "quick fix" list.




Finished the update, the problem occus on every animation except the main menu. It's not always 100%, but on every animation the CPU usage rises by at least 75%.

Other than that, good update.
I have probably found the reason and am now trying to fix it, the files themselves are OK but apparently Renpy is not quite able to display them properly which is why the load increases dramatically.

Thanks again for reporting.
 

skyrfen

Ultimate Torrent Dude
Donor
Jun 13, 2021
4,179
2,408
TragicElfLife-0.04Beta
You don't have permission to view the spoiler content. Log in or register now.
rpdl torrents are unaffiliated with F95Zone and the game developer.
Please note that we do not provide support for games.
For torrent-related issues use here, or join us on !
, . Downloading issues? Look here.​
 

Mommysbuttslut

Forum Fanatic
Feb 19, 2021
4,031
9,813
You've got a typo on the HaremMCT variable. The variable set is HaremMCT but the one that gets called is haremMCT. Capitalization matters with renpy scripts.
You don't have permission to view the spoiler content. Log in or register now.
That scene also causes really bad lag because you're not clearing animations when you switch to the next one. Adding a "scene black" line before calling the next animation will fix that. Too lazy to unpack your RPAs but here's an example of that script trick with a different game

So this
Code:
    fr "[cap]... Can't you wait until we get to bed~~?"
    show fr_h22
    with fade
    hide fr_21
should probably look like this
Code:
    fr "[cap]... Can't you wait until we get to bed~~?"
    scene black
    show fr_h22
    with fade
    hide fr_21
 
  • Like
Reactions: StraponCookie

Shipfan66

Member
Mar 24, 2019
307
565
You've got a typo on the HaremMCT variable. The variable set is HaremMCT but the one that gets called is haremMCT. Capitalization matters with renpy scripts.
You don't have permission to view the spoiler content. Log in or register now.
That scene also causes really bad lag because you're not clearing animations when you switch to the next one. Adding a "scene black" line before calling the next animation will fix that. Too lazy to unpack your RPAs but here's an example of that script trick with a different game

So this
Code:
    fr "[cap]... Can't you wait until we get to bed~~?"
    show fr_h22
    with fade
    hide fr_21
should probably look like this
Code:
    fr "[cap]... Can't you wait until we get to bed~~?"
    scene black
    show fr_h22
    with fade
    hide fr_21
The HaremMCT typo was also reported in Discord, so he's already working on that one, but thanks for reporting it here as well since that lets Cookie know it definitely isn't a once-off thing (it was reported for a different scene in Discord.) Also, he'll be glad to hear that trick with clearing the ani's because he's already been looking for a way to reduce lag and CPU load from the animations. That just might shave off a good chunk of that. I'll forward your post to him in Discord DM so he'll see it once he wakes up. Thanks again!
 
  • Like
Reactions: Mommysbuttslut

StraponCookie

Newbie
Game Developer
Mar 14, 2022
48
96
You've got a typo on the HaremMCT variable. The variable set is HaremMCT but the one that gets called is haremMCT. Capitalization matters with renpy scripts.
You don't have permission to view the spoiler content. Log in or register now.
That scene also causes really bad lag because you're not clearing animations when you switch to the next one. Adding a "scene black" line before calling the next animation will fix that. Too lazy to unpack your RPAs but here's an example of that script trick with a different game

So this
Code:
    fr "[cap]... Can't you wait until we get to bed~~?"
    show fr_h22
    with fade
    hide fr_21
should probably look like this
Code:
    fr "[cap]... Can't you wait until we get to bed~~?"
    scene black
    show fr_h22
    with fade
    hide fr_21


Thank you for reporting and the solution suggestion

Yes, I already discovered this way when I researched it.
I will upload the corrections later today.

As Shipfan66 already mentioned, the typo with the haremMCT has already been reported and will also be eliminated with today's correction update.
 

Skeltom

Engaged Member
Oct 9, 2017
2,631
3,168
That scene also causes really bad lag because you're not clearing animations when you switch to the next one. Adding a "scene black" line before calling the next animation will fix that. Too lazy to unpack your RPAs but here's an example of that script trick with a different game

So this
Code:
    fr "[cap]... Can't you wait until we get to bed~~?"
    show fr_h22
    with fade
    hide fr_21
should probably look like this
Code:
    fr "[cap]... Can't you wait until we get to bed~~?"
    scene black
    show fr_h22
    with fade
    hide fr_21
That scene black isn't needed at all. All that is doing is clearing the screen data. All that they need to do is hide the previous animation.

show animation1
"text example"
hide animation1
show animation2