google-code-export / cocoslive

Automatically exported from code.google.com/p/cocoslive
GNU General Public License v3.0
0 stars 0 forks source link

usr_ fields not always updating when calling update_score #11

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Enable rankings for the game.
2. Create a usr field, usr_test
3. Score 100 points and set usr_test to "a"
4. Score 50 points and set usr_test to "b"

What is the expected output? What do you see instead?
The expected result is the score to be left at 100 and usr_test to contain "b".
What's seen is 100 points and usr_test == "a"

What version of the product are you using? On what operating system?
v0.3.6

Please provide any additional information below.
A patch is attached to correct this issue.

Original issue reported on code.google.com by pbender...@gmail.com on 7 Jan 2010 at 7:42

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by ricardoq...@gmail.com on 8 Jan 2010 at 9:55

GoogleCodeExporter commented 9 years ago
I've review the patch and I don't agree with the proposed patch.
It will affect many existent games.

The alternative is that you run your own instance of the server.
The server is open source, and running an instance of the server in Google App 
Engine is free[*]

http://code.google.com/appengine/

The only thing that you need to modify is the connection URL in cocoslive.h.

[*] It's free if your game doesn't consume a lot of bandwidth.

Original comment by ricardoq...@gmail.com on 11 Jan 2010 at 7:15