Comments (14)
It's because the server is not working properly, and replies Internal Server Error
.
So we have in create_game()
in line 499 of client.c :
result = sendMessage(message,NULL,NULL,0,"create_game.php",hase_url);
sendMessage
sends POST /hase/server17/create_game.php HTTP/1.1
etc.
The server replies
HTTP/1.1 500 Internal Server Error
Date: Sat, 07 Sep 2019 20:30:57 GMT
Server: Apache/2.4.38
X-Powered-By: PHP/7.0.33-10+0~20190807.18+debian10~1.gbp5452d8
Strict-Transport-Security: max-age=63072000; includeSubDomains; preload
X-Content-Type-Options: nosniff
Connection: close
Transfer-Encoding: chunked
Content-Type: text/html; charset=UTF-8
1
0
result
becomes NULL and thus create_game
returns NULL, which is then used in ll_calc()
without checking if it's valid.
from hase.
if i print after_start, gdb says it's zero / 0, so if i change
after_start = (game->status != 0);
to
after_start = 0; //temptest
the next segfault comes line 1342
1342 (game->local == 1 && text_box(font,resize,"Enter player name:",gop_username(),32,1,NULL,0) == 1)
so looks like game has a null pointer... why this?
(gdb) print game $1 = (pGame) 0x0
from hase.
So to start a game maybe I can host own server? Anyone interested in tweaking hase to make it easy to do?
from hase.
Hey guys, I don't have time to dig into this null pointer bug, but at least the server is working again :)
from hase.
Er, I'm still getting Internal Server Error responses...
from hase.
No Internal Server Error anymore but a crash instead. >.< I will see what I can do. 😉
from hase.
Okay, no crash for me anymore, but still an internal server error at ed's site and I know now why: I am using mysql_connect
which is not supported by php7 anymore. -_-
Let's see what I can do 😃
from hase.
Thank you for your time theZiz.
How often does Hase really need to communicate with other players? Could turn-data be sent to other players in a private irc channel, so the game can run serverless?
from hase.
@clort81 Technically that would be possible, but is still not serverless. A irc server is a server, too. However as I did not receive an answer from the server owner yet and I have my own homeserver running in my apartment I will move the hase server to my own hardware afap. Unfortunately that does not mean a lot as I have not very much spare time atm. But I will keep you updated!
from hase.
Still no luck with server. And starting a local game in gdb gives me:
`[New Thread 0x7fb5ed6130 (LWP 7081)]
Try to open Sound: Success
8 channels are avaible as default
Load mapping...
Save mapping...
Load mapping...
Save mapping...
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
Thread 1 "hase" received signal SIGINT, Interrupt.
__GI_raise (sig=) at ../sysdeps/unix/sysv/linux/raise.c:50
50 ../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) bt
#0 __GI_raise (sig=) at ../sysdeps/unix/sysv/linux/raise.c:50
#1 0x000000555555c3b8 in create_game (game_name=0x5555610140 "New game", options=125841442,
seconds_per_turn=45,
level_string=0x7fffffea30 "4 16o 16orz qb akz o9 4y*h2 rt 18^on fv l1 o8 of k7^nh er lu f8 mm f8-^ve uj xr u1 ve uj#dk m0 gu m7 h1 ix dr iq#eh o5 ho sp m9 pi j1 kx#hk r0 qy pe pc g0 fy hm", local=1,
hares_per_player=3) at client.c:506
#2 0x000000555555a6e0 in main (argc=1, argv=0x7fffffeda8) at lobby.c:263
`
from hase.
I just released a new version. Hopefully this is working for you now. :)
from hase.
thanks ziz! hope your year is going well (cough)
Currently online games are broken again
0x0040dbc0 in start_lobby_game (font=0x6ec718, resize=0x402969 , game=0x0, spectate=0)
at lobbyGame.c:1331
1331 after_start = (game->status != 0);
Right after i finally persuaded some friends to try hase :)
Of course i can host my own server, which maybe i should have been doing for a long time anyway.
from hase.
Okay, I just checked, to server works. And my hase build, too. Can you try to most recent version?
Sorry for the late response. I got a new job and it's quite exhausting. Hope to be able to increase my response time in the future... :\
Please make also sure that hase sets up the right server. It should do this automatically but well this is quite untested. 🙄 So in your config.ini (probably in $HOME/.config/hase
) should be this line:
server: hase.schmidt-matthes.de/hase.php
from hase.
Thanks for response theZiz. I occasionally try to insist that friends try Hase. I'm stubborn like that :) Will give it a try by the weekend. And hopefully get a package finished. We still have SDL problems on leste.
from hase.
Related Issues (13)
- 24.04.2015 GCW Zero build stuck at "Drawing Level" screen HOT 5
- Crash when resizing window HOT 1
- In online multiplayer, having multiple players per user causes turn data transfer to fail
- After opening in-game chat window, won't repond to keyboard
- Can't connect to chat on port 6666, 6667 works. HOT 1
- Clusters don't have timeout
- Hase eats away my CPU HOT 5
- Request: howto or script for server setup. HOT 2
- Client-Side IRC server choice? HOT 3
- Droid4- On the road to 60fps :) HOT 2
- Freenode IRC is now SASL only, blocks hase. HOT 1
- Tagged releases
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hase.