Skeezix programmed an easy client for pushing up a score to c4all.
Info here . It sounds like you can do it with curl and some JSON code too.. but that seemed to much work. You will need to talk to Skeezix when you have a client ready and he will set it up on the server, Milkshake handles the c4a webpage page.
For OpenTyrian, I've added code that would run a command line call to run that client to push the current score on level completion, If it passed or failed would change the message on the end of level summary.. I wanted it integrated into the game and not something you would have to run separately outside the game.
Some C code in opentyrian that I threw together...
//TOP OF C code..
#ifdef PANDORA_C4ALL
char c4all_command[50]; //RGG Pandora Comp4all
int c4_all_ret = 0;
#endif
//This is code in the end of level section..
#ifdef PANDORA_C4ALL
//OpenPandora Comp4ALL Support - Roy Gillotti
if (onePlayerAction) {
sprintf(c4all_command, "./sc so push opentyrian_ep_%d pandora %lu >/dev/null 2>&1",episodeNum,player[0].cash);
//printf("c4all - Episode: %d - Score: %lu\n",episodeNum,player[0].cash);
c4_all_ret = WEXITSTATUS(system(c4all_command)); //This gets the return code from the spaghetti client..
//printf("sc exitstatus: %d\n", c4_all_ret);
//shows in game if it failed to update the score or not.
if (c4_all_ret != 0) {
JE_outTextGlow(VGAScreenSeg, 30, 90, "Comp4All Submit Failed");
} else {
JE_outTextGlow(VGAScreenSeg, 30, 90, "Comp4All Score Submitted");
}
}//RGG
#endif
Re-posting this for visibility as it's now on the previous page.. I was hoping to have some opinions on this change to the c4all version.
I need a few opinions on my next comp4all release.. I have an experimental build that will allow you to carry your score/weapons to the next episode.. It will force you to start at episode 1 and continue on to the next episode in order.. this way I can eliminate having 4 episodes on the c4all server.
So once you finish the game(complete all episodes), should I have the score/weapons reset? or should I allow you to go through the episodes again with what weapons and score you have and do another play through? Currently by default it's the latter. I still need to find a proper way of resetting the game if we want the former.
I've also disabled some cheats that I missed, I hope this didn't inflate any scores.