kivent based game

142 views
Skip to first unread message

Łukasz Mach

unread,
Jan 22, 2018, 4:24:30 AM1/22/18
to KivEnt
Hi folks,

I've just published kivent based game and maybe someone will be
interested in playing or looking into sources.

Source: https://github.com/mahomahomaho/sneak and Android version:
http://play.google.com/apps/testing/maho.sneakk

I will be happy hearing any feedback about eg. crashes.

--
pozdrawiam

Łukasz Mach

larr...@gmail.com

unread,
Jan 22, 2018, 5:56:53 PM1/22/18
to KivEnt
Very nice!

Simon

unread,
Jan 22, 2018, 9:38:04 PM1/22/18
to KivEnt
Cheers!
That is great! there is seldom entry in pyweek using kivy, not to say kivent.
I also want to use kivent in pyweek, but I really can not manage it.
I will carefully check the code and learn how to use kivent :)
Thanks!

在 2018年1月22日星期一 UTC+8下午5:24:30,Maho写道:

Simon

unread,
Feb 14, 2018, 3:41:01 AM2/14/18
to KivEnt
hi, I met a problem when I run it. the message as follows

[INFO   ] [Logger      ] Record log in C:\Users\pc\.kivy\logs\kivy_18-02-14_58.txt
[INFO   ] [Kivy        ] v1.10.0
[INFO   ] [Python      ] v3.6.3 (v3.6.3:2c5fed8, Oct  3 2017, 18:11:49) [MSC v.1900 64 bit (AMD64)]
[INFO   ] [Factory     ] 194 symbols loaded
[INFO   ] [Image       ] Providers: img_tex, img_dds, img_sdl2, img_pil, img_gif (img_ffpyplayer ignored)
[INFO   ] [OSC         ] using <thread> for socket
[INFO   ] [Window      ] Provider: sdl2
[INFO   ] [GL          ] Using the "OpenGL" graphics system
[INFO   ] [GL          ] GLEW initialization succeeded
[INFO   ] [GL          ] Backend used <glew>
[INFO   ] [GL          ] OpenGL version <b'4.6.0 NVIDIA 388.13'>
[INFO   ] [GL          ] OpenGL vendor <b'NVIDIA Corporation'>
[INFO   ] [GL          ] OpenGL renderer <b'GeForce GTX 1060 3GB/PCIe/SSE2'>
[INFO   ] [GL          ] OpenGL parsed version: 4, 6
[INFO   ] [GL          ] Shading version <b'4.60 NVIDIA'>
[INFO   ] [GL          ] Texture max size <32768>
[INFO   ] [GL          ] Texture max units <32>
[INFO   ] [Window      ] auto add sdl2 input provider
[INFO   ] [Window      ] virtual keyboard not allowed, single mode, not docked
[INFO   ] [AudioGstplayer] Using Gstreamer 1.10.2.0
[INFO   ] [Audio       ] Providers: audio_gstplayer, audio_sdl2 (audio_ffpyplayer ignored)
ENDBODY
BEFORE
[INFO   ] [Text        ] Provider: sdl2
[INFO   ] [Shader      ] Read <assets/glsl/positionrotateshader.glsl>
[ERROR  ] [GameSystem  ] System_id: renderer not attached retrying in 1 sec. If you see this error once or twice, we are probably just waiting on the KV file to load. If you see it a whole bunch something is probably wrong. Make sure all systems are setup properly.
[INFO   ] [Base        ] Start application main loop
[INFO   ] [GL          ] NPOT texture support is available
[INFO   ] [Base        ] Leaving application in progress...
 Traceback (most recent call last):
   File "F:\sneak-master\main.py", line 431, in <module>
     SneakApp().run()
   File "C:\Users\pc\AppData\Local\Programs\Python\Python36\lib\site-packages\kivy\app.py", line 828, in run
     runTouchApp()
   File "C:\Users\pc\AppData\Local\Programs\Python\Python36\lib\site-packages\kivy\base.py", line 504, in runTouchApp
     EventLoop.window.mainloop()
   File "C:\Users\pc\AppData\Local\Programs\Python\Python36\lib\site-packages\kivy\core\window\window_sdl2.py", line 663, in mainloop
     self._mainloop()
   File "C:\Users\pc\AppData\Local\Programs\Python\Python36\lib\site-packages\kivy\core\window\window_sdl2.py", line 405, in _mainloop
     EventLoop.idle()
   File "C:\Users\pc\AppData\Local\Programs\Python\Python36\lib\site-packages\kivy\base.py", line 339, in idle
     Clock.tick()
   File "C:\Users\pc\AppData\Local\Programs\Python\Python36\lib\site-packages\kivy\clock.py", line 581, in tick
     self._process_events()
   File "kivy\_clock.pyx", line 367, in kivy._clock.CyClockBase._process_events (kivy\_clock.c:7700)
   File "kivy\_clock.pyx", line 397, in kivy._clock.CyClockBase._process_events (kivy\_clock.c:7577)
   File "kivy\_clock.pyx", line 395, in kivy._clock.CyClockBase._process_events (kivy\_clock.c:7498)
   File "kivy\_clock.pyx", line 167, in kivy._clock.ClockEvent.tick (kivy\_clock.c:3483)
   File "kivent_core\gameworld.pyx", line 278, in kivent_core.gameworld.GameWorld.init_gameworld.lambda
   File "kivent_core\gameworld.pyx", line 272, in kivent_core.gameworld.GameWorld.init_gameworld
   File "kivent_core\gameworld.pyx", line 225, in kivent_core.gameworld.GameWorld.allocate
   File "kivent_core\managers\entity_manager.pyx", line 53, in kivent_core.managers.entity_manager.EntityManager.allocate
   File "kivent_core\memory_handlers\indexing.pyx", line 280, in kivent_core.memory_handlers.indexing.IndexedMemoryZone.__cinit__
   File "kivent_core\memory_handlers\zone.pyx", line 68, in kivent_core.memory_handlers.zone.MemoryZone.__cinit__
   File "kivent_core\memory_handlers\pool.pyx", line 101, in kivent_core.memory_handlers.pool.MemoryPool.__cinit__
   File "kivent_core\memory_handlers\block.pyx", line 53, in kivent_core.memory_handlers.block.MemoryBlock.allocate_memory_with_buffer
   File "kivent_core\memory_handlers\membuffer.pyx", line 148, in kivent_core.memory_handlers.membuffer.Buffer.add_data
 MemoryError

any advice?

hapyga...@gmail.com

unread,
Mar 4, 2018, 8:03:47 PM3/4/18
to KivEnt
Thanks for sharing! I was able to get it running but it crashed after the first level (running on a mac)

 TypeError: 'NoneType' object is not callable
 Exception TypeError: "'NoneType' object is not callable" in 'kivent_core.rendering.fixedvbo.FixedVBO.reload' ignored
 TypeError: 'NoneType' object is not callable
 Exception TypeError: "'NoneType' object is not callable" in 'kivent_core.rendering.fixedvbo.FixedVBO.reload' ignored
 TypeError: 'NoneType' object is not callable
 Exception TypeError: "'NoneType' object is not callable" in 'kivent_core.rendering.fixedvbo.FixedVBO.reload' ignored
 TypeError: 'NoneType' object is not callable
 Exception TypeError: "'NoneType' object is not callable" in 'kivent_core.rendering.fixedvbo.FixedVBO.reload' ignored
[ERROR  ] OpenGL Error (FixedVBO.update_buffer-glBufferSubData) 1281 / 501 for None
Segmentation fault: 11


and previous to that there were these errors/warnings:

 /Users/andreww/development/sneak/fear.py:187: RuntimeWarning: invalid value encountered in divide
   vels -= (vecs.T * c2.safety / dist2s / courages).T
 /Users/andreww/development/sneak/fear.py:190: RuntimeWarning: invalid value encountered in divide
   vels -= (vecs.T * c2.attraction / dist2s * courages).T
 /Users/andreww/development/sneak/fear.py:193: RuntimeWarning: invalid value encountered in divide
   vels += (vecs.T * c2.repulsion**2 / dist2s**2 / courages).T
 /Users/andreww/development/sneak/fear.py:204: RuntimeWarning: invalid value encountered in greater
   runornots = np.linalg.norm(vels, axis=1) > defs.force_threshold
 /Users/andreww/development/sneak/fear.py:210: RuntimeWarning: invalid value encountered in greater
   real_angles = np.where(anglediffs > 0, real_angles + defs.rat_turn_angle,

Kenneth Solano

unread,
Apr 5, 2018, 1:41:59 PM4/5/18
to KivEnt
Did you install KivEnt from some wheels you found ?

I did and I have the same error.

Lawrence Du

unread,
Jun 22, 2018, 4:21:08 PM6/22/18
to KivEnt
Strangely enough, I bought a new mac with a Radeon GPU, and I now get the same VBO error when running any example that uses color changing shaders.
Reply all
Reply to author
Forward
0 new messages