Jump to content
Sign in to follow this  
CaptainBravo

Can not get pictures to show in briefing!! why?

Recommended Posts

I know the command to pput jpgs in briefing, yet when I click notes it says the jpg was not found!

Related part of the briefing:

(side player) do

{

case WEST: // BLUFOR briefing goes here

{

player createDiaryRecord["Diary", ["Briefing", "<br/>Today Bravo Company is ready to clear the Russians from the area. You are to head a SF team and your mission is to end the battle early by terminating the Russian General.The Russian general is at the enemy's <marker name='ebase'>HQ</marker><br/><img image='russian.jpg'/><br/>"]];

I have an image folder with russian.jpg in mission folder. I have also used <img image=russian.jpg' width='200' height='200'/> with same issue.

So what am I missing?

Thanks for any help.

Edited by CaptainBravo

Share this post


Link to post
Share on other sites

<img image='image.jpg'/>

is correct. So that's not the problem.

My guess is that your jpg image is not within the allowed dimensions. Graphics/Pictures must always be something like 256x256 px, 256x512 px and so on.

If your jpg image is 483x396 px it probably simply isn't shown. However there should be a report in your rpt file about this then.

Share this post


Link to post
Share on other sites
<img image='image.jpg'/>

is correct. So that's not the problem.

My guess is that your jpg image is not within the allowed dimensions. Graphics/Pictures must always be something like 256x256 px, 256x512 px and so on.

If your jpg image is 483x396 px it probably simply isn't shown. However there should be a report in your rpt file about this then.

I have those dimensions so I am not sure why its not showing up in briefing.

I have eclosed a link to a simlpe example mission. I'd appreciate it if you can showme my mistake.

Thanks.

http://www.mediafire.com/?fa45uuhfyfxsypc

Share this post


Link to post
Share on other sites
Use size width 242 and Height 121.

Cheers

I have just tried with width 242 and Height 121 and still same issue, pic will not show in briefing. Any chance of a simple example mission with briefing with jpgs please? :confused:

Share this post


Link to post
Share on other sites

I've had this issue before, but it seems it was only for one mission (Can't explain why) but I had to use a .paa image file in order to make it work...

Not sure if you're experiencing the same issue as me, but it wouldn't hurt to use a recommended image size ie. 240x120, 512x256, 100x50, 1000x500 and so on...

If you are still having the issue with the .jpg, then use .png or .paa.

Hope this helps,

-Bigshot

Share this post


Link to post
Share on other sites

Have you an overview.html and a briefing html in your mission folder? Without them you won't get the jpg's displayed.

Share this post


Link to post
Share on other sites

I have tried just about every dimension there is for the jpg and still can not get it to show in briefing.

I have briefing html but its for debriefing. Is there a code that is supposed to be there for the jpgs?

Anyone has a woking example of jpg in briefings. It seems straight forward so I am not sure why its not working :mad:

Share this post


Link to post
Share on other sites

Found this.... see if might help you...

http://www.ofpec.com/forum/index.php?topic=33468.15

Also here is code that works.....

waitUntil {!(isNull player)};
waitUntil {player==player};

if (playerSide == WEST) then {

player createDiaryRecord
	["Diary", ["Double Up", "Objectives are the enemy base <marker name='mkr_Obj1'>here</marker>
	and once that is secure...then move to <marker name='mkr_Obj2'>the airfield</marker>
	[color="Red"]<img image='briefing.jpg' width='256' height='256'/>[/color]"]];

tskExample2 = player createSimpleTask ["Secure airport roads"];
tskExample2 setSimpleTaskDescription ["Take the crossroads", "Secure airport roads", "Obj 2"];
tskExample2 setSimpleTaskDestination (getMarkerPos "mkr_Obj2");

tskExample1 = player createSimpleTask ["Secure enemy base"];
tskExample1 setSimpleTaskDescription ["Take enemy base", "Secure enemy base", "Obj 1"];
tskExample1 setSimpleTaskDestination (getMarkerPos "mkr_Obj1");

player setCurrentTask tskExample1;

//can do this in the trigger for tskExample1
//waituntil {(taskCompleted tskExample1)};
//player setCurrentTask tskExample2;


};

....and here is an example that works.....

http://www.mediafire.com/?cowd7op38c5os42

...also discovered that if it does not work the first time you run the mission...you have to exit the game before you can try again. No matter what it shows the failed briefing until you restart the entire game. That's really shitty.

Edited by twirly
Added stuff

Share this post


Link to post
Share on other sites
Found this.... see if might help you...

http://www.ofpec.com/forum/index.php?topic=33468.15

Also here is code that works.....

waitUntil {!(isNull player)};
waitUntil {player==player};

if (playerSide == WEST) then {

player createDiaryRecord
	["Diary", ["Double Up", "Objectives are the enemy base <marker name='mkr_Obj1'>here</marker>
	and once that is secure...then move to <marker name='mkr_Obj2'>the airfield</marker>
	[color="Red"]<img image='briefing.jpg' width='256' height='256'/>[/color]"]];

tskExample2 = player createSimpleTask ["Secure airport roads"];
tskExample2 setSimpleTaskDescription ["Take the crossroads", "Secure airport roads", "Obj 2"];
tskExample2 setSimpleTaskDestination (getMarkerPos "mkr_Obj2");

tskExample1 = player createSimpleTask ["Secure enemy base"];
tskExample1 setSimpleTaskDescription ["Take enemy base", "Secure enemy base", "Obj 1"];
tskExample1 setSimpleTaskDestination (getMarkerPos "mkr_Obj1");

player setCurrentTask tskExample1;

//can do this in the trigger for tskExample1
//waituntil {(taskCompleted tskExample1)};
//player setCurrentTask tskExample2;


};

....and here is an example that works.....

http://www.mediafire.com/?cowd7op38c5os42

...also discovered that if it does not work the first time you run the mission...you have to exit the game before you can try again. No matter what it shows the failed briefing until you restart the entire game. That's really shitty.

Thanks twirly. Your example works. It seems issue with my mission is the jpg is inside image folder while yours are inside main mission folder. So no need for image folder for jpgs?

Thanks.

Share this post


Link to post
Share on other sites
Thanks twirly. Your example works. It seems issue with my mission is the jpg is inside image folder while yours are inside main mission folder. So no need for image folder for jpgs?

Thanks.

Your computer is dominating you? :D

You can use an image folder if you want or not. The only thing you have to do is to customize the link to the image...

:p

Share this post


Link to post
Share on other sites
Your computer is dominating you? :D

You can use an image folder if you want or not. The only thing you have to do is to customize the link to the image...

:p

You are right, the computer is getting me worked up! :)

I thought image in <img image='briefing.jpg' width='256' height='256'/>"]]; was refering to image folder. Am I worng? How would you customize link jpg to folder called image folder?

Share this post


Link to post
Share on other sites

Did you try this (assuming briefing.jpg is in a folder called images in your mission folder)?

<img image='images\briefing.jpg' width='256' height='256'/>

Edited by twirly
Spelling!

Share this post


Link to post
Share on other sites
Did you try this (assuming briefing.jpg is in a folder called images in your mission folder)?

<img image='images\briefing.jpg' width='256' height='256'/>

Yes, all images were in images folder inside mission folder. I guess I understood incorrecly images for name of folder?

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×