Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: Kazan on September 24, 2003, 09:06:46 pm

Title: (GFX) Developers: Bug in CVS Release - No Screenshots
Post by: Kazan on September 24, 2003, 09:06:46 pm
The current CVS build will not let me take screenshots - it acts like it's processing but then it doesn't save the file - i doubt my changes did this --- more than likely whoever made it so d3d5 is no longer supported broke this function


please resolve ASAP (and what's this i hear about .bmp screens instead of .tga?)
Title: (GFX) Developers: Bug in CVS Release - No Screenshots
Post by: Kazan on September 25, 2003, 09:01:11 am
bump
hello?!
Title: (GFX) Developers: Bug in CVS Release - No Screenshots
Post by: Bobboau on September 25, 2003, 12:05:11 pm
it was working a while ago...
wait, there saved as bmp now or something
Title: (GFX) Developers: Bug in CVS Release - No Screenshots
Post by: Kazan on September 25, 2003, 02:18:54 pm
im not getting any files saved bobboau .. i guess when i go home in a little bit i'll track through the debug and see WTF is going on .. i think it is doing everything but actually writing the file.  maybe a harddrive permissions problem or something like that
Title: (GFX) Developers: Bug in CVS Release - No Screenshots
Post by: Kazan on September 25, 2003, 03:23:57 pm
it's an error in the D3D8 system

the call to
lpD3DDevice->GetFrontBuffer(pDestSurface) in function void gr_d3d_print_screen(char *filename) is failing.
Title: (GFX) Developers: Bug in CVS Release - No Screenshots
Post by: Kazan on September 25, 2003, 03:58:50 pm
Screenshots weren't working for two reasons

A) There was no code in there to save it to a bitmap! I have some borrowed code in there (it's ok to borrow this persons code) -- and they are credited in very eye catching comments

B) lpD3DDevice->GetFrontBuffer(pDestSurface) only works for full screen



-=====================-

Consider this problem resolved as of my next CVS commit
Title: (GFX) Developers: Bug in CVS Release - No Screenshots
Post by: Nico on September 25, 2003, 04:32:07 pm
I just love how people are grateful :doubt:
Nice going, Kazan, I think it's quite helpful to have a screenshot key that actually takes screenshots ( or maybe that's just me? )
Title: (GFX) Developers: Bug in CVS Release - No Screenshots
Post by: deep_eyes on September 25, 2003, 04:37:51 pm
Yes if your using any SCP build not of 3.5.5 build, like bobs for example, you cant do one of the following or all.

1. No Screenies
2. No ETS system (energy transfer)
3. Move shields forward or back to diffrent quadrents

Y key dont work. etc.
Title: (GFX) Developers: Bug in CVS Release - No Screenshots
Post by: Kazan on September 25, 2003, 05:12:09 pm
using the latest cvs version i can

Take Screenies (i just fixed this)
use ETS (just tested this)
shield transfers are working just fine too
Title: (GFX) Developers: Bug in CVS Release - No Screenshots
Post by: Bobboau on September 25, 2003, 11:30:37 pm
I can take screens shots just fine, just tested it, havn't tryed it in windowed mode though. guess that's why no one knew about this, I don't think many non-coders use the window comand line, and most coders don't take screen shots while in wondowed mode.
Title: (GFX) Developers: Bug in CVS Release - No Screenshots
Post by: Kazan on September 25, 2003, 11:44:29 pm
Bobboau: do you have the Direct X 8.1 headers so that you can uncomment the DX8 "Save Surface to File" function?
Title: (GFX) Developers: Bug in CVS Release - No Screenshots
Post by: Bobboau on September 26, 2003, 07:28:07 am
I have the same headers as everyone else, as far as I know
Title: (GFX) Developers: Bug in CVS Release - No Screenshots
Post by: Kazan on September 26, 2003, 09:40:27 am
is the "DX8 Save Surface to File" function uncommented in your code - or are you using a different function with the HT&L