theziz / hase Goto Github PK
View Code? Open in Web Editor NEWLicense: GNU General Public License v3.0
License: GNU General Public License v3.0
I had been playing a networked game for a while, including chatting. At one point I opened the chat window and it wouldn't respond to typing. Esc or Left Alt would not close it either. I just had to wait for the game to end and couldn't take my turn.
Hase v02.11.15 for i386 downloaded binary from http://ziz.openhandhelds.org/hase/index.htm#downloads
In Hase 1.6.5, the clusters released by the cluster bomb have no timeout.
If you play in a match with the “infinite” border, this can effectively delay a turn for a very long time if the clusters are floating in space for a long time.
Thus, clusters should have a timeout just like everything else.
Wow, works great now! Except chat. Freenode now requires SASL login from most countries, which is an unnecessary barrier.
While it does look easy to host one's own Hase server (documented in server.md (thanks)) I wonder if perhaps client/user could specify an alternate IRC server to chat in?
(aside) Did you upgrade the music? The main theme sounds punchier to me somehow. Cheers!
Found the issue i was having with hase and chat. Neither hase nor weechat can connect to irc.freenode.net 6666. But if I go into client.c around line 448 and comment-out the block where it gets the port from ziz's server (irc_port = atoi(mom->content); ) it works fine with the hardcoded default port 6667.
Great game. Would package for debian/ubuntu/mint if allowed.
df2b65c hints that this is actually a released game yet https://github.com/theZiz/hase/releases is completely empty.
Seems like it'd be best to let clients pick server and channel. Any thoughts Ziz?
Here's the output from valgrind:
==1518== Invalid read of size 4
==1518== at 0x54D3CE0: SDL_UnlockSurface (SDL_surface.c:767)
==1518== by 0x5ADD14D: spSelectRenderTarget (sparrowPrimitives.c:320)
==1518== by 0x5A59090: spHandleEvent (sparrowCore.c:920)
==1518== by 0x5A59090: spLoop (sparrowCore.c:1182)
==1518== by 0x40EA5D: modal_window (window.c:555)
==1518== by 0x404301: main (lobby.c:269)
==1518== Address 0xc671124 is 68 bytes inside a block of size 88 free'd
==1518== at 0x4C2B200: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==1518== by 0x54D690B: SDL_SetVideoMode (SDL_video.c:664)
==1518== by 0x5A542EB: spResizeWindow (sparrowCore.c:264)
==1518== by 0x5A59090: spHandleEvent (sparrowCore.c:920)
==1518== by 0x5A59090: spLoop (sparrowCore.c:1182)
==1518== by 0x40EA5D: modal_window (window.c:555)
==1518== by 0x404301: main (lobby.c:269)
==1518==
==1518== Invalid read of size 8
==1518== at 0x5ADD14E: spSelectRenderTarget (sparrowPrimitives.c:322)
==1518== by 0x404600: resize (lobby.c:25)
==1518== by 0x5A590DF: spLoop (sparrowCore.c:1184)
==1518== by 0x40EA5D: modal_window (window.c:555)
==1518== by 0x404301: main (lobby.c:269)
==1518== Address 0xc6710e8 is 8 bytes inside a block of size 88 free'd
==1518== at 0x4C2B200: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==1518== by 0x54D690B: SDL_SetVideoMode (SDL_video.c:664)
==1518== by 0x5A542EB: spResizeWindow (sparrowCore.c:264)
==1518== by 0x5A59090: spHandleEvent (sparrowCore.c:920)
==1518== by 0x5A59090: spLoop (sparrowCore.c:1182)
==1518== by 0x40EA5D: modal_window (window.c:555)
==1518== by 0x404301: main (lobby.c:269)
==1518==
==1518== Invalid read of size 2
==1518== at 0x5ADD156: spSelectRenderTarget (sparrowPrimitives.c:322)
==1518== by 0x404600: resize (lobby.c:25)
==1518== by 0x5A590DF: spLoop (sparrowCore.c:1184)
==1518== by 0x40EA5D: modal_window (window.c:555)
==1518== by 0x404301: main (lobby.c:269)
==1518== Address 0xc6710f8 is 24 bytes inside a block of size 88 free'd
==1518== at 0x4C2B200: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==1518== by 0x54D690B: SDL_SetVideoMode (SDL_video.c:664)
==1518== by 0x5A542EB: spResizeWindow (sparrowCore.c:264)
==1518== by 0x5A59090: spHandleEvent (sparrowCore.c:920)
==1518== by 0x5A59090: spLoop (sparrowCore.c:1182)
==1518== by 0x40EA5D: modal_window (window.c:555)
==1518== by 0x404301: main (lobby.c:269)
Almost no webmin skills here: How could i host a local server with the .php files in /server?
Thanks!
``Using server ziz.gp2x.de/hase/server17 with Version 17
Thread 1 "hase" received signal SIGSEGV, Segmentation fault.
0x0000555555563eca in start_lobby_game (font=0x55555588db40, resize=0x5555555579a5 , game=0x0,
spectate=0) at lobbyGame.c:1331
1331 after_start = (game->status != 0);
(gdb) bt
#0 0x0000555555563eca in start_lobby_game (font=0x55555588db40, resize=0x5555555579a5 , game=0x0,
spectate=0) at lobbyGame.c:1331
#1 0x000055555555e5c0 in ll_calc (steps=10) at lobbyList.c:296
#2 0x0000555555587f8a in spLoop ()
#3 0x000055555555f052 in start_lobby (font=0x55555588db40, resize=0x5555555579a5 , start_chat=1)
at lobbyList.c:541
#4 0x00005555555587d6 in main (argc=1, argv=0x7fffffffe078) at lobby.c:285
I am using a gamer laptop on Parabola (Arch Linux derivate) yet the game it somewhat slow at times (low FPS). While the game runs, it makes one of the CPU cores go 100%.
Specs:
This just doesn't seem right, especially for a simple 2D game. I am able to run much more demanding games just fine.
Seems like Hase is pretty wasteful on CPU time.
It's not so bad that Hase is unplayable, but the fact that it eats my CPU feels wrong.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.