Jump to content

Add a custom image to the spawn box


machine6fd

Recommended Posts

hmmm, unless I did something incorrectly, i got the following kick:

 

createvehicle #0 "SeaGull"

so weird.. any one else?

I also see the building of the textures happening, but nothing displays: 

 

17:03:37 "Epoch: Loading teleports and static props"
17:03:37 "[DebugPic]: build texture @ Chernarus [4ba49830# 1061664: usertexture10m.p3d,[1024.62,2033.29,6.53235]] texture '0'"
17:03:37 "[DebugPic]: build texture @ Chernarus [4ba49db0# 1061665: usertexture10m.p3d,[1041.52,2023.69,6.5521]] texture '90'"
17:03:37 "[DebugPic]: build texture @ Chernarus [4ba4ae50# 1061668: usertexture10m.p3d,[1024.62,2013.79,6.5434]] texture '180'"
17:03:37 "[DebugPic]: build texture @ Chernarus [4ba4b3d0# 1061669: usertexture10m.p3d,[1007.82,2023.39,6.52308]] texture '270'"

Image example here

Link to comment
Share on other sites

hmmm, unless I did something incorrectly, i got the following kick:

 

createvehicle #0 "SeaGull"

so weird.. any one else?

I also see the building of the textures happening, but nothing displays: 

 

17:03:37 "Epoch: Loading teleports and static props"
17:03:37 "[DebugPic]: build texture @ Chernarus [4ba49830# 1061664: usertexture10m.p3d,[1024.62,2033.29,6.53235]] texture '0'"
17:03:37 "[DebugPic]: build texture @ Chernarus [4ba49db0# 1061665: usertexture10m.p3d,[1041.52,2023.69,6.5521]] texture '90'"
17:03:37 "[DebugPic]: build texture @ Chernarus [4ba4ae50# 1061668: usertexture10m.p3d,[1024.62,2013.79,6.5434]] texture '180'"
17:03:37 "[DebugPic]: build texture @ Chernarus [4ba4b3d0# 1061669: usertexture10m.p3d,[1007.82,2023.39,6.52308]] texture '270'"

Image example here

 

looks like the pictures arent loaded, try to repack your pbo and try again ... also make sure the picture is saved correctly, dont use windows paint, use gimp or adobe

Link to comment
Share on other sites

  • 1 month later...
  • 1 month later...

Heey guys,

 

Am trying to get the right cords for australia.

I use status bar for it.

If am standing at the place i want the picture is this cords 30399.9,6108.51,0.253461 .

But it doesnt allow this cords.

What i do wrong?

Hope someone helps me.

 

Thnx

Link to comment
Share on other sites

Heey guys,

 

Am trying to get the right cords for australia.

I use status bar for it.

If am standing at the place i want the picture is this cords 30399.9,6108.51,0.253461 .

But it doesnt allow this cords.

What i do wrong?

Hope someone helps me.

 

Thnx

 

if you use the version i created and you wont need to find any coords.

Link to comment
Share on other sites

Eey Halv,

 

I see that it loads the image.jpg cuz the mission file is bigger when join the server but i don't see the picture?

Do you know whats happening?

Nothing in the rpt files.

 

greets

 

most likely one of these 3:

  1. you did not install it correctly.
  2. you did not pack your mission or
  3. the image is corrupt.

but we cant know without you showing your log files or anything.

 

please refrain from sending me pm's with questions like this .. expecially when you already posted here about it (not to mention, you didnt even wait a full 2min before sending a pm).

 

its always better to write in a thread so others can see and learn from your mistake(s).

Link to comment
Share on other sites

yup thats true.

I will look into it.

 

What i did is,

 

made a .sqf file with notepad and insert the tekst and called it Debugpic.sqf   https://gyazo.com/ec06accc8585f87452bdfebb9a089cd4

made a map called custom and placed inside the mission .pbo                       https://gyazo.com/8bd1921d5e6c4e13cab1f72c2ef2d17a

placed the .jpg file into the custom map and call it problemsolving.jpg             https://gyazo.com/73953d8e508a2bc574ffa569367b195b 

 

Is this correct sir?

 

Thnx

Link to comment
Share on other sites

ok it works.

diddnt know i must add a line to the init file till i go to the original post.

 

so what must i do to have an other picture on the other side of the wall?

send me a link where i can easy donate you some money for your help and work.

 

thnx

Link to comment
Share on other sites

  • 5 weeks later...
  • 2 months later...

Hello,
I'm new and i try to apply this method.
Unfortunately when I use MakePbo for packing the mission, it tells me the following error:
decription.ext: Line 15 true and false do not exist
here is a screenshot in Notepad++ of the description.ext i use, as you can see all there.
What have I missed? Can i Pboed anyway ?

Another question is :

I use the install server side pack of Epoch from Epoch.com, i unPbo it, but in the  mission.sqf i see no : "Debug_static_F" nowhere.  ??

And Halvhjearne  say : now anyone can install this on any epoch supported map (or any map, if there is a "Debug_static_F") ... ;)

Again what have i missed? Did this method will work for me? and if yes how?


Thank you in advance for your help.

Capture_description.ext_with_Notepad.jpg

Link to comment
Share on other sites

  • vbawol unpinned this topic
  • 1 year later...

I'm confused. It does not work for me.
I am so naughty and show what I have done.

 

Step 1: Add this to your mission.sqm directly above "class Markers"

I have no class Markers. All I have is highlighted in green

Spoiler

version=51;
class EditorData
{
    moveGridStep=1;
    angleGridStep=0.2617994;
    scaleGridStep=1;
    autoGroupingDist=10;
    toggles=1;
    class ItemIDProvider
    {
        nextID=2;
    };
    class Camera
    {
        pos[]={7542.4932,93.791428,15492.986};
        dir[]={-0.8989169,-0.17364819,-0.40223712};
        up[]={-0.15850332,0.98480779,-0.070925266};
        aside[]={-0.40844229,0,0.91278416};
    };
};
binarizationWanted=0;
addons[]=
{
    "A3_epoch_config",
    "a3_map_altis"
};
randomSeed=12032465;
class ScenarioData
{
    author="[VB]AWOL";
};
class Mission
{
    class Intel
    {
        briefingName="Epoch Mod";
        timeOfChanges=28800;
        startWeather=0;
        startWind=0;
        forecastWeather=0;
        forecastWind=0;
        forecastWaves=0;
        forecastLightnings=0;
        year=2035;
        month=6;
        day=24;
        hour=12;
        minute=0;
        startFogDecay=0;
        forecastFogDecay=0;
    };
    class Vehicles
    {
        items=4;
        class Item0
        {
            position[]={23600.611,2.8548489,17990.768}; 
            azimut=180;
            offsetY=5;
            id=1;
            side="EMPTY";
            vehicle="UserTexture10m_F";
            skill=0.60000002;
            init="this setObjectTexture [0, ""wall.paa""]";
        };
        class Item1
        {
            position[]={23617.1,2.8548489,18001.1}; 
            azimut=90;
            offsetY=5;
            id=1;
            side="EMPTY";
            vehicle="UserTexture10m_F";
            skill=0.60000002;
            init="this setObjectTexture [0, ""wall.paa""]";
        };
        class Item2
        {
            position[]={23584.2,2.8548489,18001.1}; 
            azimut= 270;
            offsetY=5;
            id=1;
            side="EMPTY";
            vehicle="UserTexture10m_F";
            skill=0.60000002;
            init="this setObjectTexture [0, ""wall.paa""]";
        };
        class Item3
        {
            position[]={23600.5,2.8548489,18010.2}; 
            azimut=360;
            offsetY=5;
            id=1;
            side="EMPTY";
            vehicle="UserTexture10m_F";
            skill=0.60000002;
            init="this setObjectTexture [0, ""wall.paa""]";
        };        
    };

    class Entities
    {
        items=203;
        class Item0
        {
            dataType="Marker";
            position[]={14939.934,0.053499073,15083.272};
            name="center";
            type="Empty";
            id=0;
        };
        class Item1
        {
            dataType="Marker";
            position[]={23600.639,3.1900001,18000.721};
            name="respawn_east";
            type="Empty";
            id=1;
        };
        class Item2
        {
            dataType="Marker";
            position[]={23600.611,3.1900001,18000.768};
            name="respawn_west";
            type="Empty";
            id=2;
        };
        class Item3
        {
            dataType="Group";
            side="Civilian";
            class Entities
            {
                items=1;
                class Item0
                {
                    dataType="Object";
                    class PositionInfo
                    {
                        position[]={23598.076,3.1900001,17997.086};
                        angles[]={0,4.7169838,0};
                    };
                    side="Civilian";
                    flags=3;
                    class Attributes
                    {
                        isPlayable=1;
                    };
                    id=4;
                    type="VirtualMan_EPOCH";
                };
            };
            class Attributes
            {
            };
            id=3;
        };
        class Item4
        {
            dataType="Group";
            side="Civilian";
            class Entities
            {
                items=1;
                class Item0
                {
                    dataType="Object";
                    class PositionInfo
                    {
                        position[]={23598.076,3.1900001,17997.086};
                        angles[]={0,4.7169838,0};
                    };
                    side="Civilian";
                    flags=3;
                    class Attributes
                    {
                        isPlayable=1;
                    };
                    id=6;
                    type="VirtualMan_EPOCH";
                };
            };
            class Attributes
            {
            };
            id=5;
        };
        class Item5
        {
            dataType="Group";
            side="Civilian";
            class Entities
            {
                items=1;
                class Item0
                {
                    dataType="Object";
                    class PositionInfo
                    {
                        position[]={23598.076,3.1900001,17997.086};
                        angles[]={0,4.7169838,0};
                    };
                    side="Civilian";
                    flags=3;
                    class Attributes
                    {
                        isPlayable=1;
                    };
                    id=8;
                    type="VirtualMan_EPOCH";
                };
            };
            class Attributes
            {
            };
            id=7;
        };

Step 2: 

1. Create a file called: Debugpic.sqf

2. Paste this code inside.

3. save and upload to mission file.

4. add image file "custom\problemsolving.jpg" or rename.

Spoiler

  /*
        DebugPic script
        by Halv, idea from machine6fd's mission.sqm version
*/
 
//Change to your picture/path below
_pic = "wall.paa";
 
 
//======================== Do not touch anything below this point ========================\\
if(isServer)then{
        diag_log "[DebugPic]: Waiting for 'Debug_static_F' to be build ...";
        waitUntil{count(nearestObjects [getMarkerPos "respawn_west", ["Debug_static_F"], 30]) > 0};
        _list = nearestObjects [getMarkerPos "respawn_west", ["Debug_static_F"], 30];
        _box = _list select 0;
        _rPos = _box modelToWorld [-0.226563,-9.76563,-5.04319];
        _rDir = (getDir _box)+180;
        _obj = createVehicle ["UserTexture10m_F", _rPos, [], 0, "CAN_COLLIDE"];
        _obj setDir _rDir;
        _obj setPos _rPos;
        _obj enableSimulation false;
        _obj setObjectTextureGlobal [0,_pic];
        diag_log format["[DebugPic]: build texture in %1 @ [%2,%3] with texture '%4'",worldName,_rPos,_rDir,_pic];
};

My image is in mission root folder.

In addition I test with Init.sqf

Spoiler

// File created by [Ignatz] - He-Man
if (hasInterface) then{[] execVM "addons\Ignatz_EarPlugs.sqf"};

//Status Bar
if (hasInterface) then{[] execVM "addons\Status_Bar\init_statusBar.sqf"};

//Rules
null =[] execVm "SR.sqf";

//Schwarzmarkt
[] execVM "trader\init.sqf";
[] execVM "trader\resetvehicleammo.sqf";
[] execVM "trader\HALV_takegive_crypto_init.sqf";

//Missionen
execVM "blckClient.sqf";
if (isServer) then {
    [] ExecVM "\q\addons\custom_server\init.sqf";
};

//Stadtmissionen
if hasInterface then
{
    [] ExecVM "VEMFr_client\sqf\initClient.sqf"; // Client-side part of VEMFr
};

//Kill Nachricht
    [] ExecVM "addons\messages\init.sqf";
    
//Spawn Master
    [] execVM "addons\halv_spawn\init.sqf";
    
//Zombie
if (isDedicated) then {
    [] execVM "\q\addons\zombiemission\init.sqf";
};
[] execVM "zombie\compiles.sqf";
"playZSoundHurt" addPublicVariableEventHandler {(_this select 1) call fncNextSound};
"playZSound" addPublicVariableEventHandler {(_this select 1) call fncNextSound};

//Service Point
if(hasInterface) then{
    [] execVM "addons\service_point\service_point.sqf";
};
    
//Spawn Bild
player setObjectTextureGlobal [0, "wall.paa"];

Server works without error.
Hope someone can help me and forgive me my bad english!

thx!

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
×
×
  • Create New...