Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 133050 - games-arcade/lbreakout2 : sharing highscores file on local network with NFS
Summary: games-arcade/lbreakout2 : sharing highscores file on local network with NFS
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-11 10:35 UTC by Fab
Modified: 2010-01-30 18:48 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
highscores-nfs.patch (highscores-nfs.patch,746 bytes, patch)
2006-05-11 10:37 UTC, Fab
Details | Diff
(and the patch for the ebuild) (lb2-ebuild-2.5.2.patch,312 bytes, patch)
2006-05-11 10:38 UTC, Fab
Details | Diff
refresh highscores table on click (refresh-highscores-on-click.patch,389 bytes, patch)
2006-05-12 03:50 UTC, Fab
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Fab 2006-05-11 10:35:41 UTC
Consider this situation :

A server :
	- NFS server
	- lbreakout2 installed
	- /var/games shared on local network with NFS

A computer on local network :
	- lbreakout2 installed
	- mounting /var/games from server

Both games instances are sharing the same /var/games/lbreakout2.hscr file.

Now, we play each one in local game :
	1 - You start lbreakout2 on server : the highscore file is read by the game during init sequence.
	2 - I start lbreakout2 on computer : the highscore file is read by the game during init sequence.
	3 - On the server, you explode the score : 50000000 points : congratulations :)
	4 - On the computer, I suck : 10 points.
	5 - You quit the game on the server : scores are saved in /var/games.
	6 - I quit the game on computer : scores are saved in /var/games BUT the 50000000 points disappear to /dev/null.
	7 - I won :-)

So, here is a little patch to read the highscores's file *just before* saving new scores.

That's all folks !
Comment 1 Fab 2006-05-11 10:37:35 UTC
Created attachment 86617 [details, diff]
highscores-nfs.patch
Comment 2 Fab 2006-05-11 10:38:47 UTC
Created attachment 86618 [details, diff]
(and the patch for the ebuild)
Comment 3 Chris Gianelloni (RETIRED) gentoo-dev 2006-05-11 13:11:15 UTC
Did you already submit this patch to upstream?
Comment 4 Fab 2006-05-11 13:44:33 UTC
No, I don't.
Comment 5 Fab 2006-05-12 02:27:04 UTC
(In reply to comment #3)
> Did you already submit this patch to upstream?
> 

Done.
Comment 6 Fab 2006-05-12 03:50:41 UTC
Created attachment 86642 [details, diff]
refresh highscores table on click

Another little hack to refresh the highscores table when you click on it in the main menu.
Comment 7 Fab 2006-05-26 08:17:11 UTC
highscores-nfs.patch has been merged to the trunk.

Please see :
http://sourceforge.net/tracker/index.php?func=detail&aid=1487241&group_id=9301&atid=309301

(not yet for the second)
Comment 8 Mr. Bones. (RETIRED) gentoo-dev 2010-01-30 08:43:27 UTC
This is fixed in lbreakout-2.6.1