emlai / ivan-hall-of-fame

Global high-score server for Iter Vehemens ad Necem
https://ivan-hall-of-fame.herokuapp.com
MIT License
2 stars 1 forks source link

IVAN exits when high score submitted #1

Open ryfactor opened 7 years ago

ryfactor commented 7 years ago

I compiled on Debian 8 and it works!! I used configured IVAN to send the score to the heroku server. When my character died and the score was submitted, IVAN exited... Alas, I cannot furnish this bug report with a reason.

emlai commented 7 years ago

Hmm, I cannot reproduce this. Which commit of the IVAN fork did you build?

ryfactor commented 7 years ago

I think this is more of an IVAN bug now that I think about it. Maybe this will help: When building the IVAN hall-of-fame branch, I invoked cmake with this additional flag: -DCMAKE_INSTALL_PREFIX=/emlai so it would install elsewhere.

In the game, when I try to look up the high scores, I get the message:

There are no entries yet. Play a game to correct this.

I have another install on the same linux system, 0.50.7, installed in the default location.

emlai commented 7 years ago

If you pass -DCMAKE_INSTALL_PREFIX=/emlai then it will look for a high-score file in the path /emlai/var/ivan/ivan-highscore.scores, so it won't find any high-scores anywhere else.

ryfactor commented 7 years ago

Problem fixed. I must've invoked it wrongly before. I cleared the cmake cache and rebuilt with cmake -DCMAKE_INSTALL_PREFIX=/emlai . make -j make install

It no longer bugs out to terminal. I can read the high scores from the server when I press ENTER in the high score screen. Simply amazing!

Next I would like to get a list of dependencies to build and test this on M$. I fear that it will a laborious task to hook up an libcurl SDK to my MinGW distro. I just need to know I have exactly the right libraries.

emlai commented 7 years ago

Nice! libcurl should be all you need.