0% found this document useful (0 votes)
27 views3 pages

Ren'Py Game Initialization Errors

The document is a log from a Ren'Py application running on an Android device, detailing the initialization process and errors encountered. It indicates issues with loading certain libraries and syntax warnings in the script, as well as multiple TypeErrors related to comparisons involving NoneType. The log captures the time taken for various initialization steps and highlights a failure to load the game due to script incompatibilities.

Uploaded by

1132141354
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
27 views3 pages

Ren'Py Game Initialization Errors

The document is a log from a Ren'Py application running on an Android device, detailing the initialization process and errors encountered. It indicates issues with loading certain libraries and syntax warnings in the script, as well as multiple TypeErrors related to comparisons involving NoneType. The log captures the time taken for various initialization steps and highlights a failure to load the game due to script incompatibilities.

Uploaded by

1132141354
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

Wed Apr 23 17:13:54 2025

Unknown platform.
Ren'Py 8.0.3.22090809

Bootstrap to the start of [Link] took 0.00s


Bootstrap to the start of [Link] took 0.00s
Manufacturer OnePlus model PJE110
Screen diagonal is 5.107837115648853 inches.
Early init took 0.03s
Early init took 0.03s
Android search paths:
/storage/emulated/0/Android/data/[Link]/files/../../../../Documents/
RenPy_Saves/[Link]/game /data/user/0/[Link]/files/game
Loader init took 0.02s
Loader init took 0.02s
Loading error handling took 0.24s
Loading error handling took 0.24s
Loading script took 0.80s
Loading script took 0.80s
Saving to /storage/emulated/0/Android/data/[Link]/files/../../../../
Documents/RenPy_Saves/[Link]
Loading save slot metadata. took 0.06s
Loading save slot metadata. took 0.06s
Loading persistent took 0.00s
Loading persistent took 0.00s
Faled to initialize steam: OSError('dlopen failed: library
"/data/user/0/[Link]/files/libsteam_api.so" not found')
Set script version to: (7, 4, 8)
Running init code took 0.12s
Running init code took 0.12s
Loading analysis data took 0.03s
Loading analysis data took 0.03s
Analyze and compile ATL took 0.01s
Analyze and compile ATL took 0.01s
Index archives took 0.00s
Index archives took 0.00s
Dump and make backups. took 0.00s
Dump and make backups. took 0.00s
Cleaning cache took 0.00s
Cleaning cache took 0.00s
Making clean stores took 0.00s
Making clean stores took 0.00s
Initial gc. took 0.11s
Initial gc. took 0.11s
DPI scale factor: 1.000000
Creating interface object took 0.00s
Creating interface object took 0.00s
Cleaning stores took 0.00s
Cleaning stores took 0.00s
Init translation took 0.13s
Init translation took 0.13s
Build styles took 0.00s
Build styles took 0.00s
Load screen analysis took 0.08s
Load screen analysis took 0.08s
Analyze screens took 0.00s
Analyze screens took 0.00s
Save screen analysis took 0.00s
Save screen analysis took 0.00s
game/Z_KoGa3Mod.rpy:1198: SyntaxWarning: "is" with a literal. Did you mean "=="?
game/Z_KoGa3Mod.rpy:1209: SyntaxWarning: "is" with a literal. Did you mean "=="?
game/Z_KoGa3Mod.rpy:1220: SyntaxWarning: "is" with a literal. Did you mean "=="?
Prepare screens took 0.23s
Prepare screens took 0.23s
Save pyanalysis. took 0.00s
Save pyanalysis. took 0.00s
Save bytecode. took 0.00s
Save bytecode. took 0.00s
Running _start took 0.00s
Running _start took 0.00s
Interface start took 0.28s
Interface start took 0.28s

Initializing gles2 renderer:


primary display bounds: (0, 0, 2256, 960)
swap interval: 1 frames
Fullscreen mode.
Vendor: "b'Qualcomm'"
Renderer: b'Adreno (TM) 740'
Version: b'OpenGL ES 3.2 V@0676.65 (GIT@d4072932f4, Ie89cf9a769, 1730731391)
(Date:11/04/24)'
Display Info: None
Screen sizes: virtual=(1920, 1080) physical=(2256, 1080) drawable=(2256, 1080)
Maximum texture size: 4096x4096
Total time until interface ready: 2.3341522216796875s
Hid presplash.

Full traceback:
File "_layout/screen_main_menu.rpymc", line 28, in script
File "renpy/[Link]", line 1131, in execute
File "renpy/[Link]", line 1061, in py_exec_bytecode
File "renpy/common/_layout/screen_main_menu.rpym", line 28, in <module>
File "renpy/common/_layout/screen_main_menu.rpym", line 35, in
_execute_python_hide
File "renpy/[Link]", line 299, in interact
File "renpy/display\[Link]", line 3377, in interact
File "renpy/display\[Link]", line 4258, in interact_core
File "renpy/display\[Link]", line 1175, in event
File "renpy/display\[Link]", line 53, in event
File "renpy/display\[Link]", line 1175, in event
File "renpy/display\[Link]", line 1175, in event
File "renpy/display\[Link]", line 743, in event
File "renpy/display\[Link]", line 1175, in event
File "renpy/display\[Link]", line 1399, in event
File "renpy/display\[Link]", line 279, in event
File "renpy/display\[Link]", line 1175, in event
File "renpy/display\[Link]", line 1399, in event
File "renpy/display\[Link]", line 279, in event
File "renpy/display\[Link]", line 1175, in event
File "renpy/display\[Link]", line 279, in event
File "renpy/display\[Link]", line 1073, in event
File "renpy/display\[Link]", line 1008, in handle_click
File "renpy/display\[Link]", line 322, in run
File "renpy/display\[Link]", line 329, in run
File "renpy/common/00action_file.rpy", line 463, in __call__
File "renpy/[Link]", line 769, in load
File "renpy/[Link]", line 1078, in unfreeze
File "renpy/[Link]", line 889, in rollback
File "renpy/[Link]", line 807, in load_failed
Exception: Couldn't find a place to stop rolling back. Perhaps the script changed
in an incompatible way?

While running game code:


File "renpy/common/00action_file.rpy", line 463, in __call__
Exception: Couldn't find a place to stop rolling back. Perhaps the script changed
in an incompatible way?
Cleaning stores took 0.00s
Cleaning stores took 0.00s
Init translation took 0.01s
Init translation took 0.01s
Build styles took 0.01s
Build styles took 0.01s
Load screen analysis took 0.06s
Load screen analysis took 0.06s
Analyze screens took 0.00s
Analyze screens took 0.00s
Prepare screens took 0.00s
Prepare screens took 0.00s
Running _start took 0.00s
Running _start took 0.00s

Full traceback:
File "[Link]", line 603, in script
File "renpy/[Link]", line 2115, in execute
File "renpy/[Link]", line 1092, in py_eval
File "renpy/[Link]", line 1085, in py_eval_bytecode
File "game/[Link]", line 603, in <module>
TypeError: '>' not supported between instances of 'NoneType' and 'int'

While running game code:


File "game/[Link]", line 603, in <module>
TypeError: '>' not supported between instances of 'NoneType' and 'int'

Full traceback:
File "[Link]", line 765, in script
File "renpy/[Link]", line 2115, in execute
File "renpy/[Link]", line 1092, in py_eval
File "renpy/[Link]", line 1085, in py_eval_bytecode
File "game/[Link]", line 765, in <module>
TypeError: '>' not supported between instances of 'NoneType' and 'int'

While running game code:


File "game/[Link]", line 765, in <module>
TypeError: '>' not supported between instances of 'NoneType' and 'int'

Full traceback:
File "[Link]", line 8419, in script
File "renpy/[Link]", line 2115, in execute
File "renpy/[Link]", line 1092, in py_eval
File "renpy/[Link]", line 1085, in py_eval_bytecode
File "game/[Link]", line 8419, in <module>
TypeError: '>' not supported between instances of 'NoneType' and 'int'

While running game code:


File "game/[Link]", line 8419, in <module>
TypeError: '>' not supported between instances of 'NoneType' and 'int'

Common questions

Powered by AI

Using "is" with a literal in Python can lead to a SyntaxWarning because "is" checks for identity, not equality. This can create errors if the intention is to compare values rather than objects. In Ren'Py, warnings such as game/Z_KoGa3Mod.rpy:1198, 1209, 1220 indicate potential mistakes where '==' should be used for value comparison instead of 'is' . Ignoring these warnings may result in incorrect game logic.

The initial garbage collection (gc), which takes 0.11 seconds, serves to clean up any unused resources prior to the full execution of a Ren'Py game. This preemptive memory management step helps in optimizing the game's performance by freeing up memory that might otherwise be occupied by unnecessary data, ensuring a smoother execution of processes . Effective garbage collection aids in reducing memory overhead and potential slowdowns during gameplay.

Optimizing DLL and library dependencies, as illustrated by the failure to load 'libsteam_api.so', is crucial for maintaining seamless integration of external services like Steam . Proper management of these dependencies ensures that the game can fully utilize external functionalities, such as online services and additional game features, which are vital for extended user interaction and enhanced gameplay experience. Mismanagement leads to lost functionality and possible runtime errors.

Ren’Py’s error handling during the loading phase, which takes 0.24 seconds, significantly influences game stability and user experience by preemptively identifying and addressing potential issues. Efficient error handling ensures that scripts are free from critical errors before gameplay, minimizing runtime disruptions . By promptly resolving loading errors, the game maintains higher stability and reliability, directly impacting user satisfaction and reducing frustration from unexpected crashes.

The Ren'Py initialization process involves several stages that collectively manage the game's startup time to optimize performance. It begins with a bootstrap phase to start the init.init, which completes in 0.00 seconds, followed by early initialization that takes 0.03 seconds . The loader initialization, error handling, script loading, and save slot metadata loading are subsequent steps, each with precise time allocations such as loader init at 0.02 seconds and script loading at 0.80 seconds . These steps demonstrate a structured approach to efficiently manage computational resources and minimize startup time.

Screen analysis during the Ren'Py startup process serves to ensure that the graphical interface components are correctly initialized and optimized before gameplay begins. The load screen analysis takes 0.08 seconds and is essential for verifying that the game components render appropriately on different screens . This analysis helps in determining compatibility and performance across devices with varying resolutions and graphical capabilities.

Optimizing script loading contributes significantly to a game's performance by reducing the time taken to load critical components, thus improving responsiveness and the player's initial experience. Ren'Py script loading takes 0.80 seconds, showing efficient handling of game scripts to minimize wait times . Efficient script loading ensures smoother transitions and quicker access to game features, enhancing overall performance and user satisfaction.

A TypeError, such as '>' not supported between instances of 'NoneType' and 'int', arises when the code attempts to compare a value that hasn't been properly initialized or assigned a definitive integer value, leading to operational errors in logic flow . This indicates missing or incorrect data assignments, causing the game to malfunction, as seen in 'game/scenes.rpy' lines 603, 765, and 8419 . This error could disrupt gameplay or logical flows, making game functions unpredictable or leading to crashes.

A failure to initialize the steam library, as indicated by the error 'OSError('dlopen failed: library "/.../libsteam_api.so" not found')', prevents the game from integrating with Steam features such as achievements, cloud saves, and community functionality . This can limit the game's distribution on Steam and reduce engagement due to the lack of community features and player support typically provided through Steam.

Clean store preparation during Ren’Py initialization stabilizes the game's environment by resetting and allocating necessary storage space for game data. This process, taking essentially no time, ensures that only required and current data is active, reducing potential errors from outdated or conflicting data remnants . It helps maintain data integrity, supports smoother save/load operations, and ensures that the game's logic and states are consistent and reliable, preventing data corruption.

You might also like