Home   Help Search Login Register  

Author Topic: how to make jpg's appear in a mission  (Read 578 times)

0 Members and 1 Guest are viewing this topic.

Nim_Editor

  • Guest
how to make jpg's appear in a mission
« on: 09 Oct 2003, 22:44:53 »
i have searched for this everywhere but i cant seem to find it could someone explain? or have me a link?

Cheers

Offline Tomb

  • Contributing Member
  • **
  • in2 Metal? Go 2 my sig
Re:how to make jpg's appear in a mission
« Reply #1 on: 09 Oct 2003, 22:57:22 »


hehehehe  ;)


Pic's in overviews are added via putting a screenshot in the mission folder & then refer to it in the overview html.
 
  like this :
----------------------------------------------------------------------------------------------------------
<html>
<head>
<title>Overview</title>
</head>

<body>

<br>
<h2 align="center"><a name="Main">YourMissonName</a></h2>

<p align="center"><img src="YourPicHere.jpg" width="170" height="64"></p>
<BR>

<p>
YOURTEXTHERE
<br>
</p>

<br>

</body>
</html>

 
-----------------------------------------------------------------------
The line of the picture is this one:

<p align="center"><img src="warpic.jpg" width="170" height="64"></p>

 or :

 Put in your briefing file the code;

<p align="center"><img src="montignac.jpg" width="200" height="160"></p>

Where you can align the picture, Left, Right , Center.  
The file anme of the image, you can only use jpgs in version 1.3 and later, otherwise you must use a paa, or pac.  
The width and height are in pixels.  200 is as wide as the briefing can fit.
 
-----------------------------------------------------------------------
 
...where "warpic.jpg"  is the name of the screenshot ya put in the miss. folder  
 
Read some of the tutes on the subject, m8 - it can take a few hours to get used to if
yer not into html stuff at all.

-----------------------------------------------------------------------

Q by Mike:
How can i get a picture in the overview or what size does it have to be?

Misc. Reps:

Download the OFP Mission Assistant, it's a pretty handy tool.

How to do it manually, well this is how:

    <img src="image.jpg" width="170" height="64">


          Just put that at the top of the Overview, below the name of the mission.  

----------------------------------------------------------------------------------------------------------

how are u getting the pics so clear ?

-Set time 12.00 (if u want in daytime) + no fog
-Copy and paste in paint (Windows default program).
-Stretch and skew to 256x128 (pixels)
-save as .jpg
----------------------------------------------------------------------------------------------------------

Here's how it should look in your overview file:
 
<p align="center"><img src="NAMEof PIC.jpg" width="170" height="64"></p>
 
The 170x64 looks better on the notebook.

----------------------------------------------------------------------------------------------------------

PICTURES IN THE MISSION AS SCEEN EFFECTS, like "thanx to bla-bla" :

I was wondering if it was possible to add custom pictures or logo in your missions.
The game allowd you to put those BIS Logos and Codemasters logos on the screen during a mission,
so i was wondering if it was possible to define custom "Resources" as they are called, via a Description.ext.

Black_feather  Rep:

yeah its possible, your pictures need to be 256*256 that is their maximum size and they need to be in .paa format.
Then you have to create a description.ext file and put this in it,  

 
class RscPicture  
{  
type=0;  
idc=-1;  
style=48;  
colorBackground[]={0,0,0,0};  
colorText[]={1,1,1,1};  
font="tahomaB24";  
size=0;  
};  
 
class RscTitles  
{  
 
class yourpic  
{  
idd=-1;  
 
movingEnable=0;  
 
duration=6;  
 
name="yourpic";  
 
controls[]={"pic1"};  
 
class pic1: RscPicture  
{  
text="yourpic.paa";  
x=0;  
y=0;  
w=0.25;  
h=0.25;  
};  
 
};  
titles[]={"yourpic"};  
};  
 
 
Then in the game create a trigger and press the effects button, then in the titles section
press type and select resource, then in the box below it select yourpic it will be right at the bottom
only partially in veiw, and then when the trigger is activated it should show up in the middle of the screen.

------------------------------------------------------------

How to put JPGs in your Missions Overview and Briefing (by fishion) :

OFP can use any JPG that has sidelength to the power of 2 (in Pixles), so basically all you have do is make sure you
pictures have sidelengths of 2,4,8,16,32,64,128,256,512. Please note that OFP does not give all that much space
in the Overview and Briefing to show a picture. In the Overview 64x128 works fine sizewise.

"What the heck, I wanna make a picture with 170x23 pixels"

No biggie, all you have to do is resize the picture the next higher allowed resolution, in this case 256x32.

Now the picture looks somewhat wierd. Well, but most of you should know that the Briefing and Overview are actually
 HTML files, and all you gotta do is put your original Width and Height values in there. And voila, it shows as it was
suppost to in the Briefing.

A Mistake that seems to be often made is to put the picture with some sort of HTML-Editor in which also inserts the name.
The line with the picture should look like this:

img src="mypic.jpg" width="128" height="64"

Make sure there is no URL or Pathname where the picture name should be, only the name of the picture.

A few notes on the side:

To make it look somewhat fitting with the already existing official Paa's, I usually create a small
white border around my picture (I use PSP), and add a little noise before that.
I also noticed that the size you give in the HTML files seem not to be the size it is actually shown.
I usually go to a higher resolution and let it scale down by OFP via the HTML files because somehow
it seems to be a better quality then.


got that?