Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Scripts / Save image in game

Author
Message
morphosis comics
18
Years of Service
User Offline
Joined: 20th Feb 2006
Location:
Posted: 7th Dec 2012 03:30
When you save a game it generates a bmp file. Is there code to generate a screenshot when you hit a trigger zone?

Thanks!
BlackFox
FPSC Master
16
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 7th Dec 2012 03:56
Quote: "When you save a game it generates a bmp file. Is there code to generate a screenshot when you hit a trigger zone"


There is no script that I know of currently to take a screenshot- the only method is to use F12 to take one. The only other "screenshot" that gets generated is when you use the "savegame/quicksave" command, which the screens then reside in the "gamesaves" folder.


There's no problem that can't be solved without applying a little scripting.
unfamillia
14
Years of Service
User Offline
Joined: 26th Jul 2010
Location: Preston, Lancashire
Posted: 7th Dec 2012 14:05
Could you not use a command to force a keypress using keycodepressed=x

I know you could force the use of any key on the keyboard in X10, but, not sure if this is true in X9.

Unfamillia

Flatlander
FPSC Tool Maker
17
Years of Service
User Offline
Joined: 22nd Jan 2007
Location: The Flatlands
Posted: 11th Dec 2012 04:46
Quote: "Could you not use a command to force a keypress using keycodepressed=x "


I don't know of any way to do this. Also, one could mod this but there is nothing available in the current command codes as Blackfox has said. It actually would be easy to mod. Two commands in DBPro would be used, "Get Image" and "Save Image". So all you need to do is create a new FPSC command to do this.

THEORY - you know everything but nothing works. PRACTICE - when everything works but don't know why. For me, theory and practice are combined: nothing works and I don't know why.
BlackFox
FPSC Master
16
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 12th Dec 2012 00:01
Quote: "I don't know of any way to do this. Also, one could mod this but there is nothing available in the current command codes as Blackfox has said. It actually would be easy to mod. Two commands in DBPro would be used, "Get Image" and "Save Image". So all you need to do is create a new FPSC command to do this."


Flatlander nailed it on the head. We have added a command to our source that allows us to save an image via script (we can save via F12 as well, but script method is nice now and again). We can even choose JPG or PNG types. Another thing we have done is save an image capture and display it in a "mini screen" while playing. This works similar to a minimap concept but instead of a top-down view, it is in forward view. We can even have it update the image in real-time.

Many ideas can be achieved, if you can mod the source.


There's no problem that can't be solved without applying a little scripting.
Flatlander
FPSC Tool Maker
17
Years of Service
User Offline
Joined: 22nd Jan 2007
Location: The Flatlands
Posted: 12th Dec 2012 03:55
Quote: "Another thing we have done is save an image capture and display it in a "mini screen" while playing."


Now that's cool.

Quote: "Many ideas can be achieved, if you can mod the source."


Yup, and you can start out slow with one or two added commands -- whether they be conditions or actions or one of each.

THEORY - you know everything but nothing works. PRACTICE - when everything works but don't know why. For me, theory and practice are combined: nothing works and I don't know why.

Login to post a reply

Server time is: 2024-11-23 17:05:58
Your offset time is: 2024-11-23 17:05:58