Chaos Project

RPG Maker => RPG Maker Scripts => Script Requests => Topic started by: Calintz on February 03, 2008, 09:08:55 pm

Title: [RESOLVED] Screenshots...
Post by: Calintz on February 03, 2008, 09:08:55 pm
So what syntax gets used for printing screenshots and setting them in a temporary folder for menus and what not...
Title: Re: Screenshots...
Post by: Nortos on February 03, 2008, 11:54:28 pm
you don't need a screenshot just at def main
    
@sprite = Spriteset_Map.new
viewport = Viewport.new(0, 0, 640, 480)
Title: Re: Screenshots...
Post by: Calintz on February 04, 2008, 12:03:54 am
Oh...
Kewl, this is gonna help a lot!
Title: Re: Screenshots...
Post by: Fantasist on February 04, 2008, 09:36:02 am
QuoteSo what syntax gets used for printing screenshots and setting them in a temporary folder for menus and what not...


If you really mean screenshots, you need the Screenshot.dll and some code to be able to take screenshots anytime you want. But if you just want the 'map-in-the-back' effect, use what Nortos posted. Spriteset_Map is basically the class which handles all the sprites on the map together. So in the menu scene, you just make a map spriteset (the graphics will be loaded just like for a map, it's not really a screenshot). The viewport comes in when you want to tint the whole thing.

to Nortos: ShowHide
I guess I'm finding time to be active after all :D
Title: Re: Screenshots...
Post by: Calintz on February 04, 2008, 06:11:02 pm
I would like both actually. That way I can manipulate the game to it's fullest...
Title: Re: Screenshots...
Post by: Fantasist on February 05, 2008, 01:03:31 am
Search rmxp.org, there are at least a couple of scripts (demos?) there.
Title: Re: Screenshots...
Post by: Calintz on February 14, 2008, 04:40:29 pm
Ok, thank you.
I understand what Nortos was showing. It takes the screen's picture, and then makes the viewport so nothing else can interfere with the screenshot right?
Title: Re: Screenshots...
Post by: Nortos on February 14, 2008, 04:50:36 pm
it just takes the screen of the map when button is clicked and pauses it say something is in animation it sometimes has it so it's halfway through the animation
Title: Re: Screenshots...
Post by: Calintz on February 14, 2008, 05:19:00 pm
Oh...
Title: Re: Screenshots...
Post by: Calintz on July 14, 2008, 07:00:46 pm
So how would one go about making a script that will take screenshots, automatically name them, and place them in the chosen directory like in Blizzard's game??

Blizzard, I know you use Imageshack from time to time. Did you get the idea for this script when Imageshack made the Quickshot app??
Title: Re: Screenshots...
Post by: Blizzard on July 15, 2008, 07:38:00 am
It's not my script. Gimme a couple of minutes, I'll put together what you need for it and post it here.

EDIT: I use a modified version (of course, I'm Blizzard, I have to xD). I still have the original script that calls the dll functions, but it's a bit messy so I edited my own calling script and put it in here. Here you go:

http://www.sendspace.com/file/1d1991

I have added instructions and all what you need for it. Don't forget to credit Andreas21 for it!

EDIT: I think I'll post this later in the scripts section as well. :)
Title: Re: Screenshots...
Post by: Fantasist on July 15, 2008, 01:40:44 pm
Yup ^_^ Exactly what you from Blizzard ^_^
I was wondering though, does BMP save the screenshots faster? I need to test it.

EDIT:

Assumptions
- The image doesn't affect the compression speed (probably false for PNG)
- Ignoring other random factors (system's state, without running anything, is stable)

Times taken in each format for snapping a black screen:

bmp(avg time 0.03594): ShowHide

0.031
0.032
0.015
0.078
0.016
0.031
0.094
0.031
0.016
0.031
0.031
0.032
0.015
0.032
0.031
0.031
0.016
0.031
0.031
0.031
0.016
0.078
0.047
0.063
0.203
0.015
0.016
0.031
0.016
0.015
0.079
0.031
0.031
0.031
0.032
0.031
0.015
0.032
0.031
0.016
0.031
0.031
0.031
0.016
0.031
0.031
0.032
0.015
0.078
0.016
-----------------
Average = 0.03594


jpg(avg time 0.04062): ShowHide

0.078
0.078
0.078
0.078
0.078
0.032
0.046
0.032
0.047
0.031
0.031
0.047
0.031
0.031
0.047
0.032
0.031
0.047
0.031
0.031
0.047
0.031
0.032
0.046
0.032
0.031
0.047
0.031
0.031
0.047
0.031
0.032
0.047
0.031
0.047
0.031
0.031
0.047
0.031
0.032
0.031
0.047
0.031
0.031
0.047
0.031
0.047
0.031
0.032
0.031
-----------------
Average = 0.04062


png(avg time 0.05): ShowHide

0.046
0.047
0.047
0.047
0.047
0.047
0.062
0.047
0.047
0.047
0.047
0.062
0.047
0.047
0.047
0.047
0.047
0.047
0.046
0.063
0.047
0.047
0.047
0.062
0.047
0.047
0.047
0.047
0.062
0.047
0.047
0.047
0.047
0.062
0.047
0.047
0.047
0.047
0.062
0.047
0.047
0.062
0.047
0.047
0.047
0.062
0.047
0.047
0.047
0.063
-----------------
Average = 0.05


Individual values are a erratic for bmp and jpg.
Title: Re: Screenshots...
Post by: Blizzard on July 17, 2008, 07:52:11 am
This pretty much makes sense. Don't forget the time needed by a HDD to write bigger files such as BMPs. ;)
Title: Re: Screenshots...
Post by: Fantasist on July 17, 2008, 03:46:22 pm
Oh, and there's a typo in the script. When you called '@screen.call', you used 'extension', instead of 'EXTENSION'.
Title: Re: Screenshots...
Post by: Blizzard on July 17, 2008, 05:02:56 pm
True, it should be EXTENSION. I'll keep that in mind when I post that script later.
Title: Re: [RESOLVED] Screenshots...
Post by: Calintz on September 14, 2008, 01:53:44 am
Very nice guys, thank you.