Jump to content

Recommended Posts

  • 2 weeks later...

Quick question for you guys. I notice that the colored circles defining the safezone on the map does not come with this script. So I went into the editor and made my own circles and now i am just curious where to go from here as far as getting them to show up on my map on my epoch server.

So when I originally made the circles, it saves the file as a pbo in my Arma 3 folder.

Where would I add that to my server to make it show up (and stay) when the server starts up? Also is there anything I would need to put into the init or some other file to call it to start up?

 

Thanks

Link to comment
Share on other sites

@Prae, for Markers, I have a simple Script for you.

Just add the coordinates and run it server side.

The SafeZones will get numbers in the same order as the array (Safe Zone 1 / Safe Zone 2/...)

Spoiler

_safeZones = [
    [xxx,yyy,zzz],
    [xxx,yyy,zzz],
    [xxx,yyy,zzz]
];
_c = 1;
{
    _marker = createMarker [('Safezonemarker'+(str _c)+'1'), _x];
    _marker setmarkertype "empty";
    _marker setmarkercolor 'ColorGreen';
    _marker setMarkerSize [250,250];
    _marker setMarkerShape "ELLIPSE";
    _marker setMarkerBrush "Grid";
    
    _marker = createMarker [('Safezonemarker'+(str _c)+'2'), _x];
    _marker setmarkertype "mil_warning";
    _marker setmarkercolor 'ColorRed';
    _marker setMarkerSize [1,1];
    _marker setMarkerText ("Safe Zone "+(str _c));
    _c = _c+1;
} forEach _safeZones;
 

@Sp4rkY could add it to his Script, if he want.

Link to comment
Share on other sites

Well this is what I currently have:

Spoiler

version=52;
class EditorData
{
    moveGridStep=1;
    angleGridStep=0.2617994;
    scaleGridStep=1;
    autoGroupingDist=10;
    toggles=1;
    class ItemIDProvider
    {
        nextID=11;
    };
    class MarkerIDProvider
    {
        nextID=1;
    };
    class Camera
    {
        pos[]={13420.574,100.73902,14384.322};
        dir[]={-0.26340264,-0.78155667,0.56551558};
        up[]={-0.32999545,0.62380821,0.70849293};
        aside[]={0.90650254,1.1523662e-007,0.42222407};
    };
};
binarizationWanted=0;
addons[]=
{
    "A3_Ui_F"
};
class AddonsMetaData
{
    class List
    {
        items=1;
        class Item0
        {
            className="A3_Ui_F";
            name="Arma 3 - User Interface";
            author="Bohemia Interactive";
            url="http://www.arma3.com";
        };
    };
};
randomSeed=4197370;
class ScenarioData
{
    author="Vanquish";
};
class Mission
{
    class Intel
    {
        timeOfChanges=1800.0002;
        startWeather=0.30000001;
        startWind=0.1;
        startWaves=0.1;
        forecastWeather=0.30000001;
        forecastWind=0.1;
        forecastWaves=0.1;
        forecastLightnings=0.1;
        year=2035;
        month=6;
        day=24;
        hour=12;
        minute=0;
        startFogDecay=0.014;
        forecastFogDecay=0.014;
    };
    class Entities
    {
        items=3;
        class Item0
        {
            dataType="Marker";
            position[]={13318.2,-1.8760421e-028,14534.1};
            name="Neochori (Central)";
            markerType="ELLIPSE";
            type="ellipse";
            colorName="ColorGreen";
            alpha=0.89817029;
            fillName="Grid";
            a=150;
            b=150;
            id=0;
            atlOffset=-2.2788;
        };
        class Item1
        {
            dataType="Marker";
            position[]={6151.52,6.4168185e+019,16808.1};
            name="Kore (West)";
            markerType="ELLIPSE";
            type="ellipse";
            colorName="ColorGreen";
            alpha=0.89817029;
            fillName="Grid";
            a=150;
            b=150;
            id=9;
            atlOffset=6.4168185e+019;
        };
        class Item2
        {
            dataType="Marker";
            position[]={18456.199,6.4168185e+019,14283.1};
            name="Charkia (East)";
            markerType="ELLIPSE";
            type="ellipse";
            colorName="ColorGreen";
            alpha=0.89817029;
            fillName="Grid";
            a=150;
            b=150;
            id=10;
            atlOffset=6.4168185e+019;
        };
    };
};
 

it would seem that i dont need this part?

Spoiler

version=52;
class EditorData
{
    moveGridStep=1;
    angleGridStep=0.2617994;
    scaleGridStep=1;
    autoGroupingDist=10;
    toggles=1;
    class ItemIDProvider
    {
        nextID=11;
    };
    class MarkerIDProvider
    {
        nextID=1;
    };
    class Camera
    {
        pos[]={13420.574,100.73902,14384.322};
        dir[]={-0.26340264,-0.78155667,0.56551558};
        up[]={-0.32999545,0.62380821,0.70849293};
        aside[]={0.90650254,1.1523662e-007,0.42222407};
    };
};
binarizationWanted=0;
addons[]=
{
    "A3_Ui_F"
};
class AddonsMetaData
{
    class List
    {
        items=1;
        class Item0
        {
            className="A3_Ui_F";
            name="Arma 3 - User Interface";
            author="Bohemia Interactive";
            url="http://www.arma3.com";
        };
    };
};
randomSeed=4197370;
class ScenarioData
{
    author="Vanquish";
};
class Mission
{
    class Intel
    {
        timeOfChanges=1800.0002;
        startWeather=0.30000001;
        startWind=0.1;
        startWaves=0.1;
        forecastWeather=0.30000001;
        forecastWind=0.1;
        forecastWaves=0.1;
        forecastLightnings=0.1;
        year=2035;
        month=6;
        day=24;
        hour=12;
        minute=0;
        startFogDecay=0.014;
        forecastFogDecay=0.014;
    };
    class Entities

and then after i take that out i just copy paste the rest into the mission?

 

I really have no idea what i am doing when it comes to scripting. All the scripts that I currently am running on my server had fairly detailed instructions on how to install them. That being said, I know it seems easy to everyone else to just say "run this server side", but I actually don't understand what that means. 

 

I appreciate all the help I can get on figuring out where to put certain stuff within all my server files.

And thank you for providing the code He-Man, but could you provide a little more detailed description of what I need to do with it?

Link to comment
Share on other sites

@Prae, just paste in your init.sqf:

Spoiler

if (isserver) then {
    _safeZones = [
        [13318.2,14534.1,0],
        [6151.52,16808.1,0],
        [18456.199,14283.1,0]
    ];
    _c = 1;
    {
        _marker = createMarker [('Safezonemarker'+(str _c)+'1'), _x];
        _marker setmarkertype "empty";
        _marker setmarkercolor 'ColorGreen';
        _marker setMarkerSize [250,250];
        _marker setMarkerShape "ELLIPSE";
        _marker setMarkerBrush "Grid";
        
        _marker = createMarker [('Safezonemarker'+(str _c)+'2'), _x];
        _marker setmarkertype "mil_warning";
        _marker setmarkercolor 'ColorRed';
        _marker setMarkerSize [1,1];
        _marker setMarkerText ("Safe Zone "+(str _c));
        _c = _c+1;
    } forEach _safeZones;
};

"if (isserver)" means it runs only serverside.

The Coordinates I have from your Mission.sqm.

Note, that the coordinates in the mission.sqm are {xx,zz,yy} and in a script it is [xx,yy,zz].

Because that, it is different in your mission and in my script.

Link to comment
Share on other sites

  • 1 month later...
  • 2 weeks later...
On 8.4.2017 at 7:17 PM, Sp4rkY said:

No problem.

Hey are the be filters up to date? Having probs with the setvariable restriction.

I readded ESVP to my server but somehow the hints are missing when you enter safezones. But you cant kill other players so they seem to be safe. Any idea whats missing?

Link to comment
Share on other sites

5 hours ago, Drokz said:

Hey are the be filters up to date? Having probs with the setvariable restriction.

I readded ESVP to my server but somehow the hints are missing when you enter safezones. But you cant kill other players so they seem to be safe. Any idea whats missing?

BE filter's problem, had same issue... Just re-check BE filters.

Link to comment
Share on other sites

12 hours ago, sunnus01 said:

BE filter's problem, had same issue... Just re-check BE filters.

Tried to add them like i usually added filters using != but still doesnt work. It also seems to be variable value restriction so has to be added to variableval.txt but i didnt get this to work.

Edit: Fixed the Hints issue, needed to change #include in description.txt before some other addons

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
×
×
  • Create New...