LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-19-2017, 01:13 PM   #16
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,585

Rep: Reputation: 2351Reputation: 2351Reputation: 2351Reputation: 2351Reputation: 2351Reputation: 2351Reputation: 2351Reputation: 2351Reputation: 2351Reputation: 2351Reputation: 2351

Quote:
Originally Posted by rknichols View Post
A game's "high score" file would not be in any user's home directory. That information is global to all users on the system. Look elsewhere.
The user's home on most installs I see is set to world readable by default and I don't see any files in the listing on the Debian packages website which look like saved game files.
I suspect lsof looped in a terminal window, grepping the program name, while the program is running will work fine?
 
Old 07-20-2017, 07:40 AM   #17
linustalman
Senior Member
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 10 (Buster) x64
Posts: 4,603

Original Poster
Rep: Reputation: 445Reputation: 445Reputation: 445Reputation: 445Reputation: 445
Exclamation

Quote:
Originally Posted by IsaacKuo View Post
The method I suggest does not require beating a high score. It only requires knowing a current high score, and assuming it is stored somewhere in plain text.

For example, if a current high score is 50200, use:

Code:
grep -H -R 50200 ~/.??*
Ah, I see. Ok, I tried:
$ grep -H -R 83333 ~/.??*

No joy.
 
Old 07-20-2017, 08:00 AM   #18
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian Stable
Posts: 2,396
Blog Entries: 8

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Quote:
Originally Posted by linustalman View Post
Ah, I see. Ok, I tried:
$ grep -H -R 83333 ~/.??*

No joy.
I guess the suggestion someone else made that it's not stored in your home directory may be correct, then. Doing a search on /etc and /usr instead of ~ might find it...
 
Old 07-20-2017, 02:49 PM   #19
linustalman
Senior Member
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 10 (Buster) x64
Posts: 4,603

Original Poster
Rep: Reputation: 445Reputation: 445Reputation: 445Reputation: 445Reputation: 445
I also looked in /var/games - it's not there. But perhaps it'd appear there if I managed to set a new high score?
 
Old 07-20-2017, 02:52 PM   #20
linustalman
Senior Member
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 10 (Buster) x64
Posts: 4,603

Original Poster
Rep: Reputation: 445Reputation: 445Reputation: 445Reputation: 445Reputation: 445
Thumbs up

Quote:
Originally Posted by rknichols View Post
A game's "high score" file would not be in any user's home directory. That information is global to all users on the system. Look elsewhere.

Per-user configuration for that game appears to be in ~/.parallelrealities/virusKiller/ .
A bit of the puzzle has been solved. Thank you.
 
Old 07-20-2017, 03:12 PM   #21
!!!
Member
 
Registered: Jan 2017
Location: Fremont, CA, USA
Distribution: Trying any&ALL on old/minimal
Posts: 759

Rep: Reputation: 330Reputation: 330Reputation: 330Reputation: 330
Try: (from http://src.gnu-darwin.org/ports/game...oc/manual.html )
tar xzf viruskiller-0.1-1.tar.gz;cd viruskiller-0.1-1;find . -type f -exec grep -i high {} \;
https://packages.debian.org/jessie/viruskiller

Last edited by !!!; 07-20-2017 at 03:28 PM.
 
Old 07-22-2017, 04:52 AM   #22
linustalman
Senior Member
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 10 (Buster) x64
Posts: 4,603

Original Poster
Rep: Reputation: 445Reputation: 445Reputation: 445Reputation: 445Reputation: 445
Question

Quote:
Originally Posted by !!! View Post
Try: (from http://src.gnu-darwin.org/ports/game...oc/manual.html )
tar xzf viruskiller-0.1-1.tar.gz;cd viruskiller-0.1-1;find . -type f -exec grep -i high {} \;
https://packages.debian.org/jessie/viruskiller
Hi.

What does that do?
 
Old 07-22-2017, 08:23 AM   #23
linustalman
Senior Member
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 10 (Buster) x64
Posts: 4,603

Original Poster
Rep: Reputation: 445Reputation: 445Reputation: 445Reputation: 445Reputation: 445
Post

Quote:
Originally Posted by IsaacKuo View Post
I guess the suggestion someone else made that it's not stored in your home directory may be correct, then. Doing a search on /etc and /usr instead of ~ might find it...
Hi Isaac.

I looked there - no luck.
 
Old 07-22-2017, 11:45 AM   #24
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.8.2003
Posts: 5,435

Rep: Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066
Quote:
Originally Posted by !!! View Post
also from that link:
Code:
Default installation target is /usr/games for the binary and /usr/share/games for the data
 
Old 07-22-2017, 11:53 AM   #25
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.8.2003
Posts: 5,435

Rep: Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066
Quote:
Originally Posted by linustalman View Post
Hi Isaac.

I looked there - no luck.
Why are you presuming that the data is in a hidden file? Try
Code:
grep -H -R 83333 /usr/share/games/*
 
Old 07-22-2017, 01:42 PM   #26
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: CentOS
Posts: 4,555

Rep: Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088
Quote:
Originally Posted by scasey View Post
Try
Code:
grep -H -R 83333 /usr/share/games/*
Files that are updated during operation are not normally kept under /usr. /usr/share is potentially a read-only share among multiple systems, and so is not a suitable location for a game's high score file.

I can't track this down myself because the game just segfaults in my Debian 8 VM.
 
Old 07-22-2017, 02:10 PM   #27
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.8.2003
Posts: 5,435

Rep: Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066
Quote:
Originally Posted by rknichols View Post
Files that are updated during operation are not normally kept under /usr. /usr/share is potentially a read-only share among multiple systems, and so is not a suitable location for a game's high score file.

I can't track this down myself because the game just segfaults in my Debian 8 VM.
That's probably true. I was just going by the "Default installation target is ... /usr/share/games for the data" from the manual link that !!! provided. More to my point, the grep commands posted so far have presumed that the file is hidden. I'm suggesting it might not be.

I can't track it down either 'cause all my currently available servers have no GUI. Working on that.
 
Old 07-22-2017, 04:09 PM   #28
norobro
Member
 
Registered: Feb 2006
Distribution: Debian Sid
Posts: 792

Rep: Reputation: 331Reputation: 331Reputation: 331Reputation: 331
I got the game to run but the initial high scores are hard coded and to make the top ten you have to score >250,000. https://sources.debian.net/src/virus...eData.cpp/#L53

As rknichols mentioned the scores are stored in "~/.parallelrealities/viruskiller/config". It's a binary file.
https://sources.debian.net/src/virus...init.cpp/#L120
https://sources.debian.net/src/virus...init.cpp/#L198
 
2 members found this post helpful.
Old 07-24-2017, 09:07 AM   #29
linustalman
Senior Member
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 10 (Buster) x64
Posts: 4,603

Original Poster
Rep: Reputation: 445Reputation: 445Reputation: 445Reputation: 445Reputation: 445
Post

Quote:
Originally Posted by scasey View Post
Why are you presuming that the data is in a hidden file? Try
Code:
grep -H -R 83333 /usr/share/games/*
Hi Sean.

In /usr/share/games/ there's a file called 'viruskiller.pak' - I doubt that's the high score.
 
Old 07-24-2017, 09:10 AM   #30
linustalman
Senior Member
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 10 (Buster) x64
Posts: 4,603

Original Poster
Rep: Reputation: 445Reputation: 445Reputation: 445Reputation: 445Reputation: 445
Thumbs up

Quote:
Originally Posted by norobro View Post
I got the game to run but the initial high scores are hard coded and to make the top ten you have to score >250,000. https://sources.debian.net/src/virus...eData.cpp/#L53

As rknichols mentioned the scores are stored in "~/.parallelrealities/viruskiller/config". It's a binary file.
https://sources.debian.net/src/virus...init.cpp/#L120
https://sources.debian.net/src/virus...init.cpp/#L198
Cheers norobro & rknichols.

 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to hide a file using file permissions in linux without using dot davender84 Linux - General 4 03-26-2009 12:13 AM
how to locate file in home directory learnfast Linux - Newbie 3 03-14-2005 07:15 AM
Dot Net Program? Kikketer Linux - Software 6 12-07-2004 08:41 PM
How to locate where a program is? minm Linux - Newbie 18 08-16-2004 02:00 AM
useradd not accepting dot so i am not able to use dot in mail id hanu_raob Linux - General 5 05-13-2004 07:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration