Jump to content
  • 0

Pictures on big SIGNS / Billboards


CrixzGamez

Question

Hello, I was wondering if anyone had or could make a tutorial on how to add pictures to signs? 

Iv seen this on a couple of servers, and looked around on the web.. Havent really found anything "helpfull"

If you wonder what I mean here is a picture example:

8Je8Q.jpg

 

Iv tried doing what this video says.. but I cant get it to work :/

Link to comment
Share on other sites

Recommended Posts

  • 0

You can't place textures on those big billboards.  It's a shame.  I've made a bunch of those with the old versions weathered, graffiti strewn and generally looking much more apocalyptic.

 

Um... No.  I'm sorry, you are wrong.  I've definitely gotten this to work for flags and the Wooden signs.

 

In your init.sqf place this line at the bottom.

[] execVM "custom\yourscriptname.sqf";

In the folder "custom" place your "yourscriptname.sqf".  Now in that sqf, put this:

if (isServer) then {

_vehicle_0 = objNull;
if (true) then
{
  _this = createVehicle ["WarfareBunkerSign", [10012.61, 17963.418, 0.00016212463], [], 0, "CAN_COLLIDE"];
  _vehicle_137 = _this;
  _this setVehicleInit "this setObjectTexture [0, ""custom\yoursignhere.jpg""]";
  _this setDir 90.629662;
  _this setPos [10012.61, 17963.418, 0.00016212463];
};

_vehicle_1 = objNull;
if (true) then
{
  _this = createVehicle ["FlagCarrierTFKnight_EP1", [952.39612, 9223.5273, 1.2874603e-005], [], 0, "CAN_COLLIDE"];
  _vehicle_476 = _this;
  _this setVehicleInit "this SetFlagTexture ""custom\yourflaghere.jpg""";
  _this setPos [952.39612, 9223.5273, 1.2874603e-005];
};
};

I've used one sign and one flag as examples above.  As far as the textures go, you will want to refer to one of the BI tutorials for the proper sizes as this will cause it to fail 99% of the time.

Example sizes: Sign - 1024 X 1024 || Flag - 256 X 256.  That's in pixels, btw.

 

Place the two images in "custom" folder indicated above and you are done.  Textures will appear black until a player gets close enough to the object for the server to tell the client to display it.

 

That's it though, you are done.

Link to comment
Share on other sites

  • 0

Billboards work fine, set this in your sqf where your map additions are stored

_vehicle_447 = objNull;
if (true) then
{
  _this = createVehicle ["WarfareBunkerSign", [6329.4814, 7792.4043, 6.1035156e-005], [], 0, "CAN_COLLIDE"];
  _vehicle_447 = _this;
  _this setDir -50.964287;
  _this setVehicleInit "this setObjectTexture [0, ""xxx.jpg""]";
  _this setPos [6329.4814, 7792.4043, 6.1035156e-005];
};

Where xxx.jpg is the image, start with image 1024x512 then change size to 1024x1024 and place it in the root of your mission file

Link to comment
Share on other sites

  • 0

Billboards work fine, set this in your sqf where your map additions are stored

_vehicle_447 = objNull;
if (true) then
{
  _this = createVehicle ["WarfareBunkerSign", [6329.4814, 7792.4043, 6.1035156e-005], [], 0, "CAN_COLLIDE"];
  _vehicle_447 = _this;
  _this setDir -50.964287;
  _this setVehicleInit "this setObjectTexture [0, ""xxx.jpg""]";
  _this setPos [6329.4814, 7792.4043, 6.1035156e-005];
};

Where xxx.jpg is the image, start with image 1024x512 then change size to 1024x1024 and place it in the root of your mission file

 

Won't that cause the pictures to appear stretched?

Link to comment
Share on other sites

  • 0

I guess he was talking about big "ad' billboard, like this one :

 

dVhCEpS.jpg

I haven't had a lot of luck with the "ad" billboards, but as I said earlier 99% of the time it is a issue with the "expected" size and the actual "size".

 

Won't that cause the pictures to appear stretched?

When you change the size to a square, don't change the image size. Change the canvas size and fill the empty area black or white.

Link to comment
Share on other sites

  • 0

I haven't had a lot of luck with the "ad" billboards, but as I said earlier 99% of the time it is a issue with the "expected" size and the actual "size".

 

When you change the size to a square, don't change the image size. Change the canvas size and fill the empty area black or white.

 

I don't understand why I start with 1024x512, then switch it? Why can't I just start with it at 1024x1024?

Link to comment
Share on other sites

  • 0

Um... No.  I'm sorry, you are wrong.  I've definitely gotten this to work for flags and the Wooden signs.

 

In your init.sqf place this line at the bottom.

[] execVM "custom\yourscriptname.sqf";

In the folder "custom" place your "yourscriptname.sqf".  Now in that sqf, put this:

if (isServer) then {

_vehicle_0 = objNull;
if (true) then
{
  _this = createVehicle ["WarfareBunkerSign", [10012.61, 17963.418, 0.00016212463], [], 0, "CAN_COLLIDE"];
  _vehicle_137 = _this;
  _this setVehicleInit "this setObjectTexture [0, ""custom\yoursignhere.jpg""]";
  _this setDir 90.629662;
  _this setPos [10012.61, 17963.418, 0.00016212463];
};

_vehicle_1 = objNull;
if (true) then
{
  _this = createVehicle ["FlagCarrierTFKnight_EP1", [952.39612, 9223.5273, 1.2874603e-005], [], 0, "CAN_COLLIDE"];
  _vehicle_476 = _this;
  _this setVehicleInit "this SetFlagTexture ""custom\yourflaghere.jpg""";
  _this setPos [952.39612, 9223.5273, 1.2874603e-005];
};
};

I've used one sign and one flag as examples above.  As far as the textures go, you will want to refer to one of the BI tutorials for the proper sizes as this will cause it to fail 99% of the time.

Example sizes: Sign - 1024 X 1024 || Flag - 256 X 256.  That's in pixels, btw.

 

Place the two images in "custom" folder indicated above and you are done.  Textures will appear black until a player gets close enough to the object for the server to tell the client to display it.

 

That's it though, you are done.

 

Ok, I did this, but only for the sign, not the flag. I placed the sign where I wanted it in the editor, then got the coordinates, put those in my signs.sqf but when I go on the server, I see the default American flag on that sign instead of the custom picture.

 

Here's my sign.sqf:

if (isServer) then {


_vehicle_0 = objNull;
if (true) then
{
  _this = createVehicle ["WarfareBunkerSign", [7482.4634, 14841.904, 5.7220459e-006], [], 0, "CAN_COLLIDE"];
  _vehicle_0 = _this;
  _this setVehicleInit "this setObjectTexture [0, ""custom\safezone\safezone.jpg""]";
  _this setDir -16.505148;
  _this setPos [7482.4634, 14841.904, 5.7220459e-006];
};
};

The sign tells players that guns can not be used in the safezone, just as a test to get this working. There's no error in my server's log file.

Link to comment
Share on other sites

  • 0

if (isServer) then {

  _this = createVehicle ["SignM_FARP_Winchester_EP1", [7482.4634, 14841.904, 5.7220459e-006], [], 0, "CAN_COLLIDE"];
  _sign1 = _this;
  _this setDir -16.505148;

  _this setVehicleInit "this setObjectTexture [0, ""custom\safezone\safezone.jpg""]";
  _this setPos [7482.4634, 14841.904, 5.7220459e-006];
};

Link to comment
Share on other sites

  • 0

can anybody help me with image dimensions for any signs 

I have tried 1024x512 ind 512x512 but I just get blank signs

so if anyone could just list the classnames and dimensions that work for them

or a free program that lets me load the .Paa file and see the dimensions

Link to comment
Share on other sites

  • 0

help please

 

My flag shows and the costum flag shows in the editor

but my costum flag dossent show on my server only the flagpole whith no flag

if (isServer) then {

_vehicle_0 = objNull;
if (true) then
{
  _this = createVehicle ["FlagCarrierCDF_EP1", [12731.5, 12275, 12.85], [], 0, "CAN_COLLIDE"];
  _vehicle_1000 = _this;
  _this setVehicleInit "this SetFlagTexture ""custom\dk.jpg""";
  _this setPos [12731.5, 12275, 12.85];
};

};
Link to comment
Share on other sites

  • 0

I'm going to bump up an old topic because I decided to give this another shot. The sign isn't appearing for me. I added a sign in with the editor and used those coordinates. In my init, I have this:

	[] execVM "custom\signs\signs.sqf";

I have it below the _playermonitor line. In the custom\signs folder, I have the .jpg, which was first made at 1024x512, then I adjusted the canvas to 1024x1024. I also have the signs.sqf there as well.

if (isServer) then {

_vehicle_0 = objNull;
if (true) then
{
  _this = createVehicle ["WarfareBunkerSign", [7415.9443, 28.656021, -9.1552734e-005], [], 0, "CAN_COLLIDE"];
  _vehicle_0 = _this;
  _this setVehicleInit "this setObjectTexture [0, ""custom\signs\sign.jpg""]";
  _this setDir -172.83408;
  _this setPos [7415.9443, 28.656021, -9.1552734e-005];
};
};

As far as I can tell, I am following the instructions but the sign isn't showing up for me.

Link to comment
Share on other sites

  • 0

Hi,

 

Just checking,

 

You have this:

 

processInitCommands;

 

after your setVehicleInit command, I have this sign code in my mission.sqf with my traders stuff and that file has processInitCommands; at the bottom.

 

I am not sure if you will need it or not, but its there in my file.

Link to comment
Share on other sites

  • 0

Hi,

 

Just checking,

 

You have this:

 

processInitCommands;

 

after your setVehicleInit command, I have this sign code in my mission.sqf with my traders stuff and that file has processInitCommands; at the bottom.

 

I am not sure if you will need it or not, but its there in my file.

 

No. I only have this:

if (isServer) then {

_vehicle_447 = objNull;
if (true) then
{
  _this = createVehicle ["SignM_FARP_Winchester_EP1", [7415.9443, 28.656021, 0], [], 0, "CAN_COLLIDE"];
  _vehicle_447 = _this;
  _this setVehicleInit "this setObjectTexture [0, ""custom\signs\sign.jpg""]";
  _this setDir -172.83408;
  _this setPos [7415.9443, 28.656021, -9.1552734e-005];
};
};

Can you post your sqf that places the sign?

Link to comment
Share on other sites

  • 0

Hi,

 

Sorry for wait, I had to clean it up a bit, and then I had to test it to make sure it still worked.

 

This is my mission.sqf in \z\addons\dayz_server\missions\DayZ_Epoch_13.Tavi

 

if (isServer) then {

  call compile preProcessFileLineNumbers "\z\addons\dayz_server\missions\DayZ_Epoch_13.Tavi\miscvendors.sqf";
  call compile preProcessFileLineNumbers "\z\addons\dayz_server\missions\DayZ_Epoch_13.Tavi\origins.sqf";

_unit_124 = objNull;
if (true) then
{
  _this = createAgent ["GUE_Woodlander1", [23386,5298, 0], [], 0, "CAN_COLLIDE"];
  _unit_124 = _this;
  _this setDir 90;
  _this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
  _this setUnitAbility 0.60000002;
  _this allowDammage false; _this disableAI 'FSM'; _this disableAI 'MOVE'; _this disableAI 'AUTOTARGET'; _this disableAI 'TARGET'; _this setBehaviour 'CARELESS'; _this forceSpeed 0;_this enableSimulation false;
};

_unit_134 = objNull;
if (true) then
{
  _this = createAgent ["Profiteer2_EP1", [23390, 5324, 0], [], 0, "CAN_COLLIDE"];
  _unit_134 = _this;
  _this setDir 270;
  _this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
  _this setUnitAbility 0.60000002;
  _this allowDammage false; _this disableAI 'FSM'; _this disableAI 'MOVE'; _this disableAI 'AUTOTARGET'; _this disableAI 'TARGET'; _this setBehaviour 'CARELESS'; _this forceSpeed 0;_this enableSimulation false;
};

_unit_135 = objNull;
if (true) then
{
  _this = createAgent ["Worker4", [3117.05,2450.71,21.8015], [], 0, "CAN_COLLIDE"];
  _unit_135 = _this;
  _this setDir 40;
  _this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
  _this setUnitAbility 0.60000002;
  _this allowDammage false; _this disableAI 'FSM'; _this disableAI 'MOVE'; _this disableAI 'AUTOTARGET'; _this disableAI 'TARGET'; _this setBehaviour 'CARELESS'; _this forceSpeed 0;_this enableSimulation false;
};


_unit_138 = objNull;
if (true) then
{
  _this = createAgent ["GUE_Commander", [14804.3,9939.08,0.675935], [], 0, "CAN_COLLIDE"];
  _unit_138 = _this;
  _this setDir 0;
  _this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
  _this setUnitAbility 0.60000002;
  _this allowDammage false; _this disableAI 'FSM'; _this disableAI 'MOVE'; _this disableAI 'AUTOTARGET'; _this disableAI 'TARGET'; _this setBehaviour 'CARELESS'; _this forceSpeed 0;_this enableSimulation false;
};

_unit_13811 = objNull;
if (true) then
{
  _this = createAgent ["UN_CDF_Soldier_Pilot_EP1", [1157.27,19219.2,0.00149918], [], 0, "CAN_COLLIDE"];
  _unit_13811 = _this;
  _this setDir 180;
  _this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
  _this setUnitAbility 0.60000002;
  _this allowDammage false; _this disableAI 'FSM'; _this disableAI 'MOVE'; _this disableAI 'AUTOTARGET'; _this disableAI 'TARGET'; _this setBehaviour 'CARELESS'; _this forceSpeed 0;_this enableSimulation false;
};

_unit_13812 = objNull;
if (true) then
{
  _this = createAgent ["Soldier_Sniper_PMC", [22271.9,19853.2,0.00143862], [], 0, "CAN_COLLIDE"];
  _unit_13812 = _this;
  _this setDir 90;
  _this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
  _this setUnitAbility 0.60000002;
  _this allowDammage false; _this disableAI 'FSM'; _this disableAI 'MOVE'; _this disableAI 'AUTOTARGET'; _this disableAI 'TARGET'; _this setBehaviour 'CARELESS'; _this forceSpeed 0;_this enableSimulation false;
};

_unit_13813 = objNull;
if (true) then
{
  _this = createAgent ["GUE_Soldier_Pilot", [22746,20069.6,0.00143862], [], 0, "CAN_COLLIDE"];
  _unit_13813 = _this;
  _this setDir 270;
  _this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
  _this setUnitAbility 0.60000002;
  _this allowDammage false; _this disableAI 'FSM'; _this disableAI 'MOVE'; _this disableAI 'AUTOTARGET'; _this disableAI 'TARGET'; _this setBehaviour 'CARELESS'; _this forceSpeed 0;_this enableSimulation false;
};

_vehicle_46 = objNull;
if (true) then
{
  _this = createVehicle ["Land_bags_stack_EP1", [16093.4,16271.3,0.00168443], [], 0, "CAN_COLLIDE"];
  _vehicle_46 = _this;
  _this setDir 119.87155;
  _this setPos [16093.4,16271.3,0.00168443];
};

_vehicle_47 = objNull;
if (true) then
{
  _this = createVehicle ["Paleta2", [16098.4,16271.3,0.00168443], [], 0, "CAN_COLLIDE"];
  _vehicle_47 = _this;
  _this setDir 130.87155;
  _this setPos [16098.4,16271.3,0.00168443];
};

_vehicle_48 = objNull;
if (true) then
{
  _this = createVehicle ["Paleta2", [16095.7,16265.1,0.00174451], [], 0, "CAN_COLLIDE"];
  _vehicle_48 = _this;
  _this setDir 100.87155;
  _this setPos [16095.7,16265.1,0.00174451];
};
_vehicle_49 = objNull;
if (true) then
{
  _this = createVehicle ["WarfareBunkerSign", [16050,16225,0], [], 0, "CAN_COLLIDE"];
  _vehicle_49 = _this;
  _this setDir 260;
  _this setVehicleInit "this setObjectTexture [0, ""map1a.jpg""]";
  _this setPos [16050,16225,0];
}; 

_vehicle_50 = objNull;
if (true) then
{
  _this = createVehicle ["Land_bags_stack_EP1", [18521,5061.61,0.00195622], [], 0, "CAN_COLLIDE"];
  _vehicle_50 = _this;
  _this setDir 119.87155;
  _this setPos [18521,5061.61,0.00195622];
};

_vehicle_50 = objNull;
if (true) then
{
  _this = createVehicle ["Paleta2", [18515.5,5055.02,0.00099802], [], 0, "CAN_COLLIDE"];
  _vehicle_51 = _this;
  _this setDir 130.87155;
  _this setPos [18515.5,5055.02,0.00099802];
};

_vehicle_52 = objNull;
if (true) then
{
  _this = createVehicle ["Paleta2", [18519.1,5048.55,0.00206304], [], 0, "CAN_COLLIDE"];
  _vehicle_52 = _this;
  _this setDir 100.87155;
  _this setPos [18519.1,5048.55,0.00206304];
};
_vehicle_53 = objNull;
if (true) then
{
  _this = createVehicle ["WarfareBunkerSign", [18420.1,5062.36,0.00113297], [], 0, "CAN_COLLIDE"];
  _vehicle_53 = _this;
  _this setDir 180;
  _this setVehicleInit "this setObjectTexture [0, ""map1b.jpg""]";
  _this setPos [18420.1,5062.36,0.00113297];

};

_vehicle_530 = objNull;
if (true) then
{
  _this = createVehicle ["WarfareBunkerSign", [23378.1,5296.04,0.00143909], [], 0, "CAN_COLLIDE"];
  _vehicle_530 = _this;
  _this setDir 180;
  _this setVehicleInit "this setObjectTexture [0, ""map1c.jpg""]";
  _this setPos [23378.1,5296.04,0.00143909];

};
_vehicle_521 = objNull;
if (true) then
{
  _this = createVehicle ["Paleta2", [23385.6,5295.4,0.00143862], [], 0, "CAN_COLLIDE"];
  _vehicle_521 = _this;
  _this setDir 190;
  _this setPos [23385.6,5295.4,0.00143862];
};
_vehicle_522 = objNull;
if (true) then
{
  _this = createVehicle ["Misc_palletsfoiled_heap", [23388.5,5292.2,0.00143909], [], 0, "CAN_COLLIDE"];
  _vehicle_522 = _this;
  _this setDir 270;
  _this setPos [23388.5,5292.2,0.00143909];
};
_vehicle_523 = objNull;
if (true) then
{
  _this = createVehicle ["MAP_GuerillaCache", [23394.4,5298.64,0.00143909], [], 0, "CAN_COLLIDE"];
  _vehicle_523 = _this;
  _this setDir 90;
  _this setPos [23394.4,5298.64,0.00143909];
};
_vehicle_524 = objNull;
if (true) then
{
  _this = createVehicle ["Land_stand_small_EP1", [23380.4,5298.32,0.00143862], [], 0, "CAN_COLLIDE"];
  _vehicle_524 = _this;
  _this setDir 270;
  _this setPos [23380.4,5298.32,0.00143862];
};
_vehicle_525 = objNull;
if (true) then
{
  _this = createVehicle ["Land_bags_stack_EP1", [23383.2,5292.25,0.00143909], [], 0, "CAN_COLLIDE"];
  _vehicle_525 = _this;
  _this setDir 90;
  _this setPos [23383.2,5292.25,0.00143909];
};

processInitCommands;
};

Link to comment
Share on other sites

  • 0

Hi,

 

Yes it is called in init.sqf using :

 

    // Add trader citys
    _nil = [] execVM "\z\addons\dayz_server\missions\DayZ_Epoch_13.Tavi\mission.sqf";

 

in the

 

if (isServer) then {

 

section.

Link to comment
Share on other sites

  • 0

Hi,

 

Yes it is called in init.sqf using :

 

    // Add trader citys

    _nil = [] execVM "\z\addons\dayz_server\missions\DayZ_Epoch_13.Tavi\mission.sqf";

 

in the

 

if (isServer) then {

 

section.

 

Where do you have your map1c.jpg stored at? The same folder as mission.sqf? That doesn't seem like it would work because the client needs to download it and your code doesn't have a path to the jpg file.

Link to comment
Share on other sites

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
  • Advertisement
  • Discord

×
×
  • Create New...