HOW APPEAR SMALL PICTURE INSIDE THE BOX IN THIS GAME?

Talk about Severance Blade of Darkness modifications and maps here. No tips or tech support questions please, use the forum above. Note that the game is rated 18 so some content may be unsuitable for younger readers.

Moderators: prospero, Ade

_CjCalc_

HOW APPEAR SMALL PICTURE INSIDE THE BOX IN THIS GAME?

Postby _CjCalc_ » Wed Jan 27, 2016 6:33 pm

How making appear in the game, a picture that contains an image of a capture of the game??


For example in the original game, in the savegames, a small box appears with an image of a capture inside the box.

In the code of python, file savegame.py appear this line:

SplashImage() etc..... but...unfortunatelly not working :-(

Sorry for my bad english, I'm spanish :-(

Very thanks!!

User avatar
cieply
Dragon
Posts: 330
Joined: Wed Jun 26, 2013 3:43 pm

Re: HOW APPEAR SMALL PICTURE INSIDE THE BOX IN THIS GAME?

Postby cieply » Tue Feb 02, 2016 10:48 pm

quote from Lib/SaveGame.py

Code: Select all

Bladex.SaveScreenShot('name-of-picture.bmp', 160, 120)
this will save screenshot into bitmap; 160, 120 is resulting resolution
in D3D will be of grey colours in OpenGL in normal colours (RGB->BGR swapped though) - don't know why in D3D its not in normal colours

if you want to show it SplashImage.py module will not help you - it sets background image
to show it, you would like to use Raster module 'DrawBitmap', 'DrawImage' methods but I don't know how to use them, I just found them by using

Code: Select all

dir(Raster)
they are used in Lib/Credits.py but I don't get them so you must try yourself

I tried this:

Code: Select all

Bladex.SaveScreenShot('shot5-ogl.bmp', 100, 100) Bladex.ReadBitMap("shot5-ogl.bmp", "SHOT5") hBmp=Raster.BmpHandle("SHOT5") Raster.DrawBitmap(hBmp, 100, 100)
but don't see any visible effect so you must figure out yourself

when you do share your knowledge as it's something I am interested in too
l'aria fresca,
vino puro, ...


Return to “Severance BoD: Modding Community”

Who is online

Users browsing this forum: No registered users and 5 guests