BetterDeadThanZed

Custom jpg can't be found

3 posts in this topic

I've created custom billboards that I've placed in my trader zones. I have an sqf that is called from the init.sqf:

/*
	File: billboards.sqf
	Author: Trill
	Contact: 
	
	Description: Custom Buildings
*/

diag_log format['Custom %1 - Starting billboards.sqf',time];

//Trader East
_pos = [6374.97, 4786.07, -0.729708];
_object = createVehicle ["SignAd_Sponsor_F", _pos, [], 0, "CAN_COLLIDE"];
_object setDir 264;
_object setPosATL _pos;
_object setObjectTextureGlobal [0, "trader_sign.jpg"];
_object allowDamage false;

//Trader North
_pos = [2828.46, 9268.84, 0];
_object = createVehicle ["SignAd_Sponsor_F", _pos, [], 0, "CAN_COLLIDE"];
_object setDir 183;
_object setPosATL _pos;
_object setObjectTextureGlobal [0, "trader_sign.jpg"];
_object allowDamage false;

//Trader South
_pos = [2437.6, 1630.29, -0.36298];
_object = createVehicle ["SignAd_Sponsor_F", _pos, [], 0, "CAN_COLLIDE"];
_object setDir 7;
_object setPosATL _pos;
_object setObjectTextureGlobal [0, "trader_sign.jpg"];
_object allowDamage false;

//President's Village
_pos = [6667.43, 5775.39, 0];
_object = createVehicle ["Land_Billboard_F", _pos, [], 0, "CAN_COLLIDE"];
_object setDir 98;
_object setPosATL _pos;
_object setObjectTextureGlobal [0, "village.jpg"];
_object allowDamage false;

The first three entries are the same sign and they show up fine. The .sqf with this code and the jpg files are all in the same folder. When I added the fourth billboard and I connect to the server, I get a message "Warning Message: Picture village.jpg not found" in a popup. Now, the jpg is certainly there in the folder. It's on the server. When I go to the billboard, if I look at it from the front, I can see through the sign. From the back, it's the normal backside. So, any suggestions? Any idea why one jpg would work and another wouldn't? When I first tried the custom billboard thing, I did use the "Land_Billboard_F" sign, but I switched to the smaller "SignAd_Sponsor_F" because it looked better in the trader, so I know that other billboard does work with my other jpg.

Edited by BetterDeadThan

Share this post


Link to post
Share on other sites

Hi,

are the image dimensions height and width divisible by 2 ? 

other than that i think it looks right unless your jpg has gone funky.

3 people like this

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.