Home   Help Search Login Register  

Author Topic: Overview image  (Read 417 times)

0 Members and 1 Guest are viewing this topic.

ChickenPax

  • Guest
Overview image
« on: 18 Feb 2003, 20:30:02 »
The overview image of a mission I created refuses to appear at all. This is despite the fact that the path is definitely correct and the image is the correct size 256x128. The intended picture is saved in .jpg and is about 9Kb big. This is a persisting problem in all my user made missions.

Below is the  overview.html source.



<html>

<head>
<meta http-equiv="Content-Type"
content="text/html; charset=windows-1250">
<meta name="GENERATOR" content="VB">

<title>Overview</title>
</head>

<body bgcolor="#FFFFFF">

<br>
<h2 align="center"><a name="Main">Shopping trip</a></h2>
<p align="center"><img src="c:\Program Files\Codemasters\OperationFlashpoint\Users\Games\missions\Disruption.eden\shopping.jpg" width="256" height="128"></p>
<BR>
<p>
This is a trip to the groceries gone sour. The commies are introducing bread rationing and food cards. Protect your varied capitalist diet and your pretty wife back home.
<br>
</p>

</body>
</html>

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Overview image
« Reply #1 on: 18 Feb 2003, 20:34:50 »
try

<p align="center"><img src="shopping.jpg" width="256" height="128"></p>

Plenty of reviewed ArmA missions for you to play

ChickenPax

  • Guest
Re:Overview image
« Reply #2 on: 19 Feb 2003, 13:53:26 »
 Thanks for that suggestion. The image now does appear. However, it is abnormally large and takes up over half the page and even creeps outside of it. Tinkering with resizing it either in a picture editor or in the source file has no effect at all.
 Also, I decripted a single player mission and  checked out its overview file. All in-game single player mission overviews refer to a (*.paa) file for their picture. However, *.paa is not even a recognisable image format and cannot be viewd in any image viewer I have. Even when you open these in-game overview files as html the picture fails to appear. Yet it appears fine in the game.
 I even copied the entire source of one in-game single player mission overview and pasted it into my own overview, only changing the image file name appropriately. No result - just the text below the picture is changed!

 OK. To put it simply: how the hell do I get it the right size??!!  ???

P.S.: Thanks for bearing with me this far.

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Overview image
« Reply #3 on: 19 Feb 2003, 16:31:03 »
Forget .paa, as far as I can tell its a waste of time, energy, effort and disc space - use .jpg.    

The picture that you save in your picture editor (eg Microsoft photo editor) has to have sides a factor of 2 in pixels, as you know.     However it can be any size, so 64x32 or 16x256 or whatever you like.

The actual size that the picture appears in the Overview is determined by the size you define there, not the size you saved it.     The standard size for BIS missions is (I think) 170x64.   Check the Tutorial Mission in the Ed Depot, its designed for you to copy.

So this is what you do.     In your picture editor create a picture that is the size you actually want, say 170x64.   Now distort it and save it as 128x64.       In your Overview file define the size as 170x64 and bingo.

In other words the code for that size of picture is

<p align="center"><img src="shopping.jpg" width="170" height="64"></p>
Plenty of reviewed ArmA missions for you to play