Jump to content
Sign in to follow this  
Ikavnieks

Image not showing

Recommended Posts

Hey guys, let me start of by saying I was amazed at home quick some people were in answering my queries in my old topic and helpful they are, so thank you guys!

I've encountered another problem, I can't seem to get my image to show up on the scenarios page. I've put this in my Briefing.sqf:

<img image='BanditProblem.jpg' width='512' height='512'//>

I tried it without specifying dimensions and still the same, the picture is 512x512 is it's n^2 and .JPG...

I can't for the life of my figure this out!

Share this post


Link to post
Share on other sites

it should work.

maybe post your file here.

here is a example to look at incase you got something wrong.

waitUntil { !isNil {player} };
waitUntil { isPlayer player };
_info="<br/>TEST<br/><img image='test.jpg'/> " ;
player createDiaryRecord ["Diary", ["Info!",_info]]; 

Share this post


Link to post
Share on other sites

My Briefing.sqf:

//NOTES

//OBJECTIVES

tskobj_1 = player createSimpleTask["PRIMARY: Talk to Vladimir"];
tskobj_1 setSimpleTaskDescription ["I should talk to Vladimir about my assignments before anything else", "PRIMARY: Talk to Vladimir", "Vladimir"];
tskobj_1 setSimpleTaskDestination (getMarkerPos "Vladimir");


//PICTURES

<img image='BanditProblem.jpg'/> 

Share this post


Link to post
Share on other sites

Shouldn't this be double quotes?.... <img image="BanditProblem.jpg"/>

Share this post


Link to post
Share on other sites

Thanks, The overview.html worked, however none of the other text is showing? Like the description etc...

Share this post


Link to post
Share on other sites

The overview.html is picky about the markup. This is a template that I use, maybe it will help.

<html>
<head>
<title>Overview</title>
</head>
<body bgcolor="#FFFFFF">
<h3 align="center">Name of Mission</h3>
<br /><p align="center">Description about the mission.</p>
<br /><p align="center"><img src="image_file" width="512" height="256" /></p>
</body>
</html>

Of course the width and height should match the image size you have, but I think you got that part working anyway.

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  

×