Jump to content

[HowTo] Add Buildings or other Objects


Suppe

Recommended Posts

Morning and sry for my bad english,

 

I try to add buildings in my Altis map.

I download the a3_epoch_server_settings.pbo open the Altis.h file and place the buildings in it.

 

{"Land_Dome_Big_F", {26844.6, 24877.3, 0}, 314.545},

    {"Land_Dome_Small_F", {26836.7, 24827.7, 0}, 100.909},
    {"Land_Dome_Small_F", {26895.3, 24879.4, 0}, 2.27273},
    {"Land_Hangar_F", {26734.4, 24627.5, 0.4}, 311.818},
    {"Land_Hangar_F", {26778, 24680.1, 1}, 312.727},
    {"Land_BarGate_F", {26787.2, 24380.6, 0}, 38.1818},
    {"Land_BarGate_F", {26812.5, 24410.1, 0}, 38.6363},
    {"Land_Cargo_House_V1_F", {26785.3, 24390.6, 0}, 310.909},
    {"Land_Cargo_House_V1_F", {26800.8, 24407.6, 0}, 311.818},
    {"Land_BagBunker_Small_F", {26792.9, 24400.8, 0}, 1.81819},
    {"Land_BagBunker_Small_F", {26799.3, 24382.6, 0}, 80},
    {"Land_BagBunker_Small_F", {26811.2, 24396.7, 0}, 75.9091},
    {"Land_Mil_WiredFence_Gate_F", {26787.3, 24380.6, 0}, 40.4545},
    {"Land_Mil_WiredFence_Gate_F", {26812.7, 24410.1, 0}, 40},
    {"Land_Mil_WiredFence_F", {26794.5, 24375.3, 0}, 38.6364},
    {"Land_Mil_WiredFence_F", {26800.7, 24370.3, 0}, 38.6364},
    {"Land_Mil_WiredFence_F", {26805.6, 24370.7, 0}, 310.909},
    {"Land_Mil_WiredFence_F", {26819.4, 24404.1, 0}, 218.636},
    {"Land_Mil_WiredFence_F", {26825.5, 24399.3, 0}, 218.636},
    {"Land_Mil_WiredFence_F", {26810.7, 24376.6, 0}, 310.909}
 
then i open the config.cpp and insert the buildings from the copy to clipboard button
 
#include "configs\maps\altis.h"
#include "configs\maps\chernarus.h"
};
//camp
{"Land_Dome_Big_F", {26844.6, 24877.3, 0}, 314.545},
{"Land_Dome_Small_F", {26836.7, 24827.7, 0}, 100.909},
{"Land_Dome_Small_F", {26895.3, 24879.4, 0}, 2.27273},
{"Land_Hangar_F", {26734.4, 24627.5, 0.4}, 311.818},
{"Land_Hangar_F", {26778, 24680.1, 1}, 312.727},
{"Land_BarGate_F", {26787.2, 24380.6, 0}, 38.1818},
{"Land_BarGate_F", {26812.5, 24410.1, 0}, 38.6363},
{"Land_Cargo_House_V1_F", {26785.3, 24390.6, 0}, 310.909},
{"Land_Cargo_House_V1_F", {26800.8, 24407.6, 0}, 311.818},
{"Land_BagBunker_Small_F", {26792.9, 24400.8, 0}, 1.81819},
{"Land_BagBunker_Small_F", {26799.3, 24382.6, 0}, 80},
{"Land_BagBunker_Small_F", {26811.2, 24396.7, 0}, 75.9091}

 

i pack it to the PBO and on the server, start it and in won´t work 

but why???

 

plz help thx

Link to comment
Share on other sites

add the buildings in the altis.h not the config.cpp

 

in the altis.h:

 

        propsPos[] = {                            // = the position were houses spawn then:
                //trader city #1
                {"Land_MarketShelter_F", { 13315.3, 14512.4, 0.0361125 }, 119.966},
                { "Land_ScrapHeap_2_F", { 13315.9, 14499, 0.00584948 }, 255.706 }             // last one without comma !

Link to comment
Share on other sites

add the buildings in the altis.h not the config.cpp

 

in the altis.h:

 

        propsPos[] = {                            // = the position were houses spawn then:

                //trader city #1

                {"Land_MarketShelter_F", { 13315.3, 14512.4, 0.0361125 }, 119.966},

                { "Land_ScrapHeap_2_F", { 13315.9, 14499, 0.00584948 }, 255.706 }             // last one without comma !

Ok and what comes in the cpp?

Link to comment
Share on other sites

@ dex

 

since epoch 0.3... is in the cpp only this:

#include "BIS_AddonInfo.hpp"
/****************************************************************************
Copyright © 2015 - ARMA 3 EPOCH MOD [EpochMod.com] (v0.3.0.1)
*****************************************************************************/

#define _ARMA_

class CfgPatches {
    class A3_server_settings {
        units[] = {};
        weapons[] = {};
        requiredVersion = 0.1;
        epochVersion = "0.3.0.3";
        requiredAddons[] = {};
    };
};

// inport loot tables
#include "configs\Loots.h"
#include "configs\security\security_checks.h"

// import settings
class CfgEpochServer
{
    #include "\@epochhive\epochah.hpp"
    #include "\@epochhive\epochconfig.hpp"
};

// map config
class CfgEpoch
{
    class Default
    {
        worldSize = 12000;
        traderBlds[] = {};
        containerPos[] = {};
        telePos[] = {};
        propsPos[] = {};
        staticNpcPos[] = {};
    };
    #include "configs\maps\bornholm.h"
    #include "configs\maps\stratis.h"
    #include "configs\maps\altis.h"
    #include "configs\maps\chernarus.h"
};

    #include "configs\maps\altis.h"

This calls the Altis settings.

 

sso... open altis.h and add it in:

  propsPos[] = {                            // = the position were houses spawn then:
                //trader city #1
                {"Land_MarketShelter_F", { 13315.3, 14512.4, 0.0361125 }, 119.966},
                { "Land_ScrapHeap_2_F", { 13315.9, 14499, 0.00584948 }, 255.706 }             // last one without comma !

 

Greetz Suppe

Link to comment
Share on other sites

ok i have all in my Altis.h but now i become a BattleEye kick (Script restriction #0)  an i looked at my script.log and find this:

 

24.05.2015 07:12:51: Dex (31.18.171.33:2304) 6af83edfd......... - #0 "this select 0)) then {[(_this select 0), "", [], true] call bis_fnc_initVehicle;};"

 

but what i must write in the script.txt ?

 

!="this select 0)) then {[(_this select 0)" ????

 

thx

Dex

 

EDIT:

ok i have found my problem i have things edit that is not allowed in epoch.

Link to comment
Share on other sites

  • 1 year later...
Quote

*with the custom pbo you can specify more features, such as set vector and so

I need to add a line in the init field of an object (Flag).

I'm trying to install Bons AI recruit script which requires this line: this addAction["<t color='#ff9900'>Recruit Infantry</t>", "bon_recruit_units\open_dialog.sqf"];

Is this possible?

 

Thank you.

Link to comment
Share on other sites

Quote

Build what you want with the A3 Editor, save coordinates for your cpp (press "copy Epoch CFG to Clipbord"), then past this in a empty txt file, or directly into the cpp.

I used Eden editor to create a flag with the line: this addAction["<t color='#ff9900'>Recruit Infantry</t>", "bon_recruit_units\open_dialog.sqf"];   in the init field.

Then I clicked on the button "copy Epoch CFG to Clipbord"  but when I go to paste in text file I only get a set of [ ]

No code is pasted in.

I previewed what I made with eden editor then switched to M3 editor to "copy Epoch CFG to Clipbord"  so I don't know what I'm doing wrong.

Link to comment
Share on other sites

  • 1 month later...

The code seems to be set up differently since the last update.

Example:

{ "Land_WoodenShelter_01_F", {10855.6,9685.38,0.490318}, {{-0.418326,-0.908297,0},{0,0,1}}, false },

 

Could someone explain how this works?

 

Thank you.

Link to comment
Share on other sites

5 hours ago, He-Man said:

If you only want to place objects, take 3DEN. 

This is the easiest way.

If you want to add actions or codes, you have to make it by Hand, I think

So I can't add buildings in server settings tanoa map file?

I just didn't understand the 3 sets of coords and the "false"

I just wanted to try spawning the LHD Carrier in this way.

 

Thanks for the reply.

Link to comment
Share on other sites

Sure, you can also add it with epochsettings.

{ "Land_WoodenShelter_01_F", {10855.6,9685.38,0.490318}, {{-0.418326,-0.908297,0},{0,0,1}}, false },

{"Classname", {pos},{{vectordir},{vectorup}}, ignore this},

 

ignore this is original made to change between setposatl (terrain level) or setposasl (sea level), but not used by epoch

Link to comment
Share on other sites

2 hours ago, He-Man said:

Sure, you can also add it with epochsettings.

{ "Land_WoodenShelter_01_F", {10855.6,9685.38,0.490318}, {{-0.418326,-0.908297,0},{0,0,1}}, false },

{"Classname", {pos},{{vectordir},{vectorup}}, ignore this},

 

ignore this is original made to change between setposatl (terrain level) or setposasl (sea level), but not used by epoch

Ok, the numbers make sense now.

What do you mean by Ignore? Should I just leave the "false" there or have that part empty?

And where is the epochsettings?

 

Thanks for the help.

Link to comment
Share on other sites

let it false.

 

@epochhive\addons\epoch_server_settings\configs\maps\mapname.h

Spoiler

    propsPos[] = {
            //Air Drop Event Helipad Start
            { "Land_dp_bigTank_F", { 14328.1, 13488.2, -0.64909101 }, 182, true }
    };

 

{ " Classname ", { pos }, dir, true }

{"Classname", {pos},{{vectordir},{vectorup}}, false} 

both should work

 

edit:

Sorry, the true / false is used by epoch. But not for posasl / posatl. It is used for enablesimulation:

Spoiler

    if (count _x >= 4) then {
        _deSimulate = (_x select 3) isEqualTo "true";
    };

 

Link to comment
Share on other sites

1 hour ago, He-Man said:

let it false.

 

@epochhive\addons\epoch_server_settings\configs\maps\mapname.h

  Hide contents

    propsPos[] = {
            //Air Drop Event Helipad Start
            { "Land_dp_bigTank_F", { 14328.1, 13488.2, -0.64909101 }, 182, true }
    };

 

{ " Classname ", { pos }, dir, true }

{"Classname", {pos},{{vectordir},{vectorup}}, false} 

both should work

 

edit:

Sorry, the true / false is used by epoch. But not for posasl / posatl. It is used for enablesimulation:

  Hide contents

    if (count _x >= 4) then {
        _deSimulate = (_x select 3) isEqualTo "true";
    };

 

Ok, you were talking server settings in epoch hive...

That makes it clear.

I'll give that a go.

 

Thank you very much.

 

Link to comment
Share on other sites

  • 2 months later...

Hi Guys,

 

hoping someone can help me.  I am trying to add some custom map content but cant seam to export changes made in the editor to the desired format for map.h files.

 

I have tryed with the standard editor and the m3 exporter 

 

the 2 closest formats I have achieved are:

 

["Land_Mil_WallBig_4m_F",[13274,14501.5,2.48925],[[0.92015,0.391567,0],[0,0,1]],[false,false]],

and

 

"Mil_WallBig_4m_F";213269.96875;14535.321289;138.384;-0;-0;1;2.381439;

neither match the format using the {} brackets.

 

also I am not sure if I am using m3 correctly I launch it via a3 launcher and get an extra dropdown in the editor for exporting however I don't seam to have the scroll wheel option thats indicated in the videos.

 

any help would be appreciated

 

Dave

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