In game screen shots

For all the help you need with Armagetron!
Post Reply
tgrey
On Lightcycle Grid
Posts: 26
Joined: Tue Apr 19, 2005 8:50 pm

In game screen shots

Post by tgrey »

I was in the middle of typing that I could not get these to work, but I decided to look harder first. I realized that it *IS* working, it's just putting the screenshots somewhere a little ridiculous (in /home/tgrey)

IMHO it would be a good idea to put these in ~/.armagetronad/screenshots/ or something similar. My ~ directory is about the equivalent of dropping files on a windows desktop. I'll find them eventually, but it's not going to be the first place I look, and it's hard to find in the clutter.

I finally noticed when there were >20 bmp's there, lol
User avatar
Tank Program
Forum & Project Admin, PhD
Posts: 6715
Joined: Thu Dec 18, 2003 7:03 pm

Post by Tank Program »

Hmm yes... Some sort of customizable drop off point would be good...
Image
User avatar
Z-Man
God & Project Admin
Posts: 11770
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Post by Z-Man »

tgrey: You're right. Screenshots were put into the current directory ( certainly the home directory if you start AA from a start menu and the main AA directory in Windows ), and they belong somewhere into the var subdirectory like all output files. I changed that in current CVS. I omitted the screenshots subdirectory since the crossplatform directory creation code is not yet available in the CVS trunk.

I also made it so that screenshots don't get overwritten with other screenshots. The algorithm is slow ( tries each number in perfect order and sees if the screenshot filename is already taken ), but does its job.

Tank: Let's not get too crazy with customization. It's only screenshots, they have no ingame function. Wherever they are put, you can move them easily to where you want them to be after leaving the game.

If someone else wants to improve screenshots: the relevant code is in rSysdep.cpp, function make_screenshot.
User avatar
iceman
Reverse Adjust Outside Corner Grinder
Posts: 2448
Joined: Fri Jan 09, 2004 9:54 am
Location: Yorkshire, England. Quote: Its the fumes, they make one want to play
Contact:

Post by iceman »

when you restart armagetron it resets the file number back to 1 so taking more screen shots overwrites the previous

you may want to fix this would be simple to keep a counter in a cfg file or if ya wanna be real fancy then scan the folder to determine the last number used :o
Image He who laughs last, probably has a back-up
Image
Image
sorry about the large animated gif
tgrey
On Lightcycle Grid
Posts: 26
Joined: Tue Apr 19, 2005 8:50 pm

Post by tgrey »

i like to stamp output files like that with date/time instead. 04-21-05_09-08.bmp or something similar. then there will be no dupes.
User avatar
Z-Man
God & Project Admin
Posts: 11770
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Post by Z-Man »

Iceman:
z-man wrote:I also made it so that screenshots don't get overwritten with other screenshots. The algorithm is slow ( tries each number in perfect order and sees if the screenshot filename is already taken ), but does its job.
I scan the directory for that. That's better than a config variable because tons of people would not know how to reset a config variable to one.

tgrey: that's a good idea, too.
User avatar
Jonathan
A Brave Victim
Posts: 3391
Joined: Thu Feb 03, 2005 12:50 am
Location: Not really lurking anymore

Post by Jonathan »

Reminds me of something... On OS X screenshots are written to Armagetron.app/Contents/Resources/ (tedious to get there every time) in RGB (BMP is BGR).
ˌɑrməˈɡɛˌtrɑn
User avatar
dlh
Formerly That OS X Guy
Posts: 2035
Joined: Fri Jan 02, 2004 12:05 am
Contact:

Post by dlh »

Jonathan wrote:Reminds me of something... On OS X screenshots are written to Armagetron.app/Contents/Resources/ (tedious to get there every time) in RGB (BMP is BGR).
That annoys me too, especially the messed up colors.
User avatar
Jonathan
A Brave Victim
Posts: 3391
Joined: Thu Feb 03, 2005 12:50 am
Location: Not really lurking anymore

Post by Jonathan »

You can fix the colors in Photoshop with the color matrix (I think it is called the channel mixer). You could write a program which fixes the BMPs, or just fix Armagetron.
ˌɑrməˈɡɛˌtrɑn
User avatar
dlh
Formerly That OS X Guy
Posts: 2035
Joined: Fri Jan 02, 2004 12:05 am
Contact:

Post by dlh »

Jonathan wrote:You can fix the colors in Photoshop with the color matrix (I think it is called the channel mixer). You could write a program which fixes the BMPs, or just fix Armagetron.
In 2.6.0 (or 2.5.2, can't remember), your config files were stored at ~/Library/Application Support/Armagetron, but now they are in /Library/Application Support/Armagetron. The whole file structure for arma os x needs to be redone, I think. Screenshots should go to ~/Library/AS/Armagetron/Screenshots, and config files should move back to there also.
User avatar
Phytotron
Formerly Oscilloscope
Posts: 5042
Joined: Thu Jun 09, 2005 10:06 pm
Location: A site or situation, especially considered in regard to its surroundings.
Contact:

Post by Phytotron »

Jonathan wrote:You can fix the colors in Photoshop with the color matrix (I think it is called the channel mixer). You could write a program which fixes the BMPs, or just fix Armagetron.
Um, that doesn't work. Anyone have any other ideas, especially for a quick fix? I have Photoshop 7 and have tried numerous things...there's probably something simple that I've overlooked.
User avatar
Jonathan
A Brave Victim
Posts: 3391
Joined: Thu Feb 03, 2005 12:50 am
Location: Not really lurking anymore

Post by Jonathan »

Image -> Adjustments -> Channel Mixer
Swap red and blue.
ˌɑrməˈɡɛˌtrɑn
User avatar
Phytotron
Formerly Oscilloscope
Posts: 5042
Joined: Thu Jun 09, 2005 10:06 pm
Location: A site or situation, especially considered in regard to its surroundings.
Contact:

Post by Phytotron »

Oh. Duh. I knew it'd be something simple. I was over-adjusting everything. Danke.
Post Reply