Re: Ren'Py for the web browser
Posted: Tue Apr 16, 2019 10:36 am
Hey, I have just tried running my game locally on firefox. But it's not working. Any Idea what's wrong? I'm using the latest version of Renpy and RenpyWeb.
Here is the log generated by RenpyWeb.
Here is the log generated by RenpyWeb.
Code: Select all
Tue Apr 16 10:34:24 2019
Emscripten-1.0-x86-JS-32bit
Ren'Py 7.2.2.491
Bootstrap to the start of init.init took 0.00s
Early init took 0.02s
import encodings.zlib_codec # precompiled from /lib/python2.7/encodings/zlib_codec.pyo
Loader init took 0.12s
Loading error handling took 0.15s
import emscripten # builtin
Loading script took 0.25s
Loading save slot metadata. took 0.01s
Loading persistent took 0.00s
Full traceback:
File "gui.rpyc", line 11, in script
File "renpy/ast.py", line 900, in execute
File "renpy/python.py", line 1930, in py_exec_bytecode
File "game/gui.rpy", line 12, in <module>
AttributeError: 'StoreModule' object has no attribute 'init'
While running game code:
File "game/gui.rpy", line 12, in <module>
AttributeError: 'StoreModule' object has no attribute 'init'
DPI scale factor: 1.000000
Interface start took 0.05s
import renpy.gl.gldraw # builtin
import renpy.gl.gltexture # builtin
import renpy.gl.gl # builtin
import array # builtin
import renpy.gl.glblacklist # precompiled from ./renpy/gl/glblacklist.pyo
import renpy.gl.glrtt_copy # builtin
import renpy.gl.glrtt_fbo # builtin
import renpy.gl.glenviron_shader # builtin
import renpy.display.swdraw # precompiled from ./renpy/display/swdraw.pyo
primary display bounds: (0, 0, 1536, 864)
swap interval: 1 frames
Windowed mode.
Screen sizes: virtual=(1280, 720) physical=(1536, 750) drawable=(3840, 1875)
Vendor: 'Mozilla'
Renderer: 'Mozilla'
Version: 'OpenGL ES 2.0 (WebGL 1.0)'
Display Info: <Info({'blit_sw_CC': False, 'refresh_rate': 0, 'bitsize': 32, 'wm': True, 'losses': (0, 0, 0, 8), 'hw': False, 'masks': (16711680L, 65280L, 255L, 0L), 'current_h': 864, 'current_w': 1536, 'shifts': (16, 8, 0, 0), 'blit_sw_A': False, 'blit_hw': False, 'blit_sw': False, 'bytesize': 4, 'blit_hw_CC': False, 'blit_hw_A': False, 'video_mem': 268435456})>
Extensions:
ANGLE_instanced_arrays
EXT_blend_minmax
EXT_color_buffer_half_float
EXT_frag_depth
EXT_sRGB
EXT_shader_texture_lod
EXT_texture_filter_anisotropic
GL_ANGLE_instanced_arrays
GL_EXT_blend_minmax
GL_EXT_color_buffer_half_float
GL_EXT_frag_depth
GL_EXT_sRGB
GL_EXT_shader_texture_lod
GL_EXT_texture_filter_anisotropic
GL_OES_element_index_uint
GL_OES_standard_derivatives
GL_OES_texture_float
GL_OES_texture_float_linear
GL_OES_texture_half_float
GL_OES_texture_half_float_linear
GL_OES_vertex_array_object
GL_WEBGL_color_buffer_float
GL_WEBGL_compressed_texture_s3tc
GL_WEBGL_compressed_texture_s3tc_srgb
GL_WEBGL_debug_renderer_info
GL_WEBGL_debug_shaders
GL_WEBGL_depth_texture
GL_WEBGL_draw_buffers
GL_WEBGL_lose_context
OES_element_index_uint
OES_standard_derivatives
OES_texture_float
OES_texture_float_linear
OES_texture_half_float
OES_texture_half_float_linear
OES_vertex_array_object
WEBGL_color_buffer_float
WEBGL_compressed_texture_s3tc
WEBGL_compressed_texture_s3tc_srgb
WEBGL_debug_renderer_info
WEBGL_debug_shaders
WEBGL_depth_texture
WEBGL_draw_buffers
WEBGL_lose_context
Number of texture units: 16
Using shader environment.
Using copy RTT.
Using gl renderer.
Texture testing:
- Hardware max texture size: 16384
- 64px textures work.
- 128px textures work.
- 256px textures work.
- 512px textures work.
- 1024px textures work.
- 2048px textures work.
Total time until interface ready: 1.31599998474s
import encodings.utf_32_be # precompiled from /lib/python2.7/encodings/utf_32_be.pyo
While handling exception:
Traceback (most recent call last):
File "renpy/display/error.py", line 140, in report_exception
File "renpy/game.py", line 281, in invoke_in_new_context
File "renpy/display/error.py", line 45, in call_exception_screen
File "renpy/ui.py", line 289, in interact
File "build/renpy/renpy/./display/core.py", line 2700, in interact
File "build/renpy/renpy/./display/core.py", line 3084, in interact_core
File "build/renpy/renpy/./display/core.py", line 534, in visit_all
File "build/renpy/renpy/./display/core.py", line 534, in visit_all
File "build/renpy/renpy/./display/core.py", line 534, in visit_all
File "renpy/display/screen.py", line 424, in visit_all
File "build/renpy/renpy/./display/core.py", line 3084, in <lambda>
File "renpy/display/screen.py", line 434, in per_interact
File "renpy/display/screen.py", line 619, in update
File "renpy/sl2/slast.py", line 2069, in __call__
File "renpy/sl2/slast.py", line 2012, in execute
File "renpy/sl2/slast.py", line 407, in execute
File "renpy/sl2/slast.py", line 887, in execute
File "renpy/sl2/slast.py", line 887, in execute
File "renpy/sl2/slast.py", line 887, in execute
File "renpy/sl2/slast.py", line 849, in execute
File "renpy/text/text.py", line 1479, in __init__
File "renpy/text/text.py", line 1598, in set_text
File "renpy/substitutions.py", line 244, in substitute
File "//lib/python2.7/string.py", line 563, in vformat
File "//lib/python2.7/string.py", line 585, in _vformat
File "//lib/python2.7/string.py", line 652, in get_field
AttributeError: 'StoreModule' object has no attribute 'version'
Full traceback:
File "build/renpy/renpy/./bootstrap.py", line 313, in bootstrap
File "build/renpy/renpy/./main.py", line 435, in main
File "gui.rpyc", line 11, in script
File "gui.rpyc", line 11, in script
File "renpy/ast.py", line 900, in execute
File "renpy/python.py", line 1930, in py_exec_bytecode
File "game/gui.rpy", line 12, in <module>
AttributeError: 'StoreModule' object has no attribute 'init'
While running game code:
File "game/gui.rpy", line 12, in <module>
AttributeError: 'StoreModule' object has no attribute 'init'
# clear __builtin__._
# clear sys.path
# clear sys.argv
# clear sys.ps1
# clear sys.ps2
# clear sys.exitfunc
# clear sys.exc_type
# clear sys.exc_value
# clear sys.exc_traceback
# clear sys.last_type
# clear sys.last_value
# clear sys.last_traceback
# clear sys.path_hooks
# clear sys.path_importer_cache
# clear sys.meta_path
# clear sys.flags
# clear sys.float_info
# restore sys.stdin
# restore sys.stdout
# restore sys.stderr