Jump to content

[HowTo] Add Buildings or other Objects


Suppe

Recommended Posts

Don't work, maybe a mistake somewhere, but i'm not friendly with .cpp or .cpp not friendly with me :D

 

My CPP

 

 

class CfgPatches {
    class A3_epoch_building {
        units[] = {};
        weapons[] = {};
        requiredVersion = 0.1;
        requiredAddons[] = {};
    };
};
class CfgFunctions {
    class building {
        class main {
            file = "x\addons\a3_epoch_server_building\init";
            class init {
                postInit = 1;
            };
        };
    class Chernarus
    {
        worldSize = 12000;
        };
        propsPos[] = {
                    {"MAP_nav_pier_c", {6610.28, 7563.4, 3.54443}, 156.539},
                    {"MAP_nav_pier_c", {6594.39, 7599.97, 0.760986}, 156.539},
                    {"MAP_nav_pier_c", {6578.65, 7636.24, -1.43481}, 156.539},
                    {"MAP_nav_pier_c", {6562.91, 7672.52, -3.85724}, 156.539},
                    {"MAP_nav_pier_c", {6626.02, 7527.13, 5.24921}, 156.539},
                    {"MAP_nav_pier_c", {6641.76, 7490.86, 5.88644}, 156.539}
        };
    };
};

 

Link to comment
Share on other sites

@ Blackcircle

it looks like there's something missing in your cpp, unless you do not have now copied everything for the forum.

 

or what exactly does not work? no pier there? or the server does not start?

 

I have to correct my post itself, the a3 editor does not have the correct coordinates for the cpp. I correct my first post now :D

Link to comment
Share on other sites

first contribution was again revised , I now think it helps much better :D

 

and I have published the "coordinates formater" or the "mission.sqm converter".... do not know, we have never given the tool a proper name :D

 

( Instructions for the Tool after the verification by an Mod, than here im Forum under Tools )

Link to comment
Share on other sites

Have a question how I can convert the coordinates of the 2D editor.
example:

    class Vehicles
    {
        items=11017;
        class Item0
        {
            position[]={17300.084,15.139067,13188.257};
            azimut=137;
            id=1;
            side="EMPTY";
            vehicle="Land_CncWall4_F";
            skill=1;
            init="this enableSimulation false;";
        };
        class Item1
        {
            position[]={17307.605,15.059016,13195.27};
            azimut=137;
            id=2;
            side="EMPTY";
            vehicle="Land_CncWall4_F";
            skill=0.60000002;
            init="this enableSimulation false;";
        };
        class Item2
        {
            position[]={17303.854,15.108535,13191.758};
            azimut=137;
            id=3;
            side="EMPTY";
            vehicle="Land_CncWall4_F";
            skill=0.60000002;
            init="this enableSimulation false;";
        };

 

 

Or is this the same as already explained ??????

 

 

Sorry my english is not so good , better german

 

Wollte mal fragen wie man das umrechnet wenn man es in einem normalen 2 D editor abspeichert ?

Oder ist es das Selbe wie oben erklärt ?

Link to comment
Share on other sites

mission.sqm coordinates after saving with MCC:

       };
        class Item4
        {
            position[]={1325.1554,13.24902,8729.6484};
            azimut=-303.53421;
            id=4;
            side="EMPTY";
            vehicle="Land_CampingChair_V2_F";
            skill=0.60000002;

            offsetY=0.0144939;
        };

 

you need to save with the MCC Sandbox Tool to get offsetY=0.0144939. with offsetY the converter has everything he need.

 

 

( Du musst mit mcc sandbox speichern um offsetY zu bekommen, nur damit hast du alle cords und das tool funktioniert. )

Link to comment
Share on other sites

Danke

Suppe

 

Aber wie bekomme ich schon vorhandene Objekte die ich im 2 D Editor schon gesetzt habe in die MCC gespeichert?

Es geht darum habe eine Map gebaut vor ca. 4 Monaten mit 4 großen Basen und es sind mehr als 400 Objekten, dies habe ich aber in mühe voller Arbeit ;-) heul im 2 D Editor gesetzt.

Diese 4 Basen brauche ich jetzt und habe keine Lust wieder von vorne an zu fangen, ist es möglich mit der MCC diese zu Speichern? wenn ja wie muss ich das machen?

 

 

Wäre nett wenn du Suppe mir nen Tipp geben könntest, danke schon mal im vor raus ;-)

Link to comment
Share on other sites

ok i just can't get this done i made a miliary base but i just can't get it on my server this is the save file can someone convert it for me ? its for A3 epoch cernarus 

 

here is the config cpp :    https://www.dropbox.com/s/vjmsdkpu24viyjg/config.cpp?dl=0

and the save from the M3editor ( SQF) https://www.dropbox.com/s/7rlnpd6r0j32yz5/ghostdivb.sqf?dl=0

 

the one who can make this work would save my day !! 

Link to comment
Share on other sites

Ok, so I have an issue if anyone can help please.

 

I made a small test base for players to start building on...Pre-Canned base if you will.

 

The editor code gives this:

 

    {"Land_HBarrier_Big_F", {26229.2, 23526.7, 0}, 48.3935},
 
{"Land_HBarrier_Big_F", {26217.2, 23540.2, -0.00202942}, 48.3935},
 
etc etc.
 
In the config file it changed to this:
 
["Land_HBarrier_Big_F",[26229.2,23526.7,0],48.3935,0,0,false],
["Land_HBarrier_Big_F",[26217.2,23540.2,-0.00202942],48.3935,0,0,false],
 
Notice the "false". This is at the end of each live. The base doesn't load into the map...could it be the "false" or have I done something wrong.
 
Below is a spoiler of the config.cpp file:
 

["Land_HBarrier_Big_F",[26229.2,23526.7,0],48.3935,0,0,false],
["Land_HBarrier_Big_F",[26217.2,23540.2,-0.00202942],48.3935,0,0,false],
["Land_HBarrier_Big_F",[26205.2,23553.7,-0.00202942],48.3935,0,0,false],
["Land_HBarrier_Big_F",[26203.2,23552,-0.00056839],140,0,0,false],
["Land_HBarrier_Big_F",[26186.2,23538.7,-0.00056839],140,0,0,false],
["Land_HBarrier_Big_F",[26173.5,23527.4,-0.00056839],140,0,0,false],
["Land_Cargo_HQ_V3_F",[26186.5,23531.4,0.00117874],317.46,0,0,true],
["Land_HelipadCivil_F",[26206.7,23519.1,0],0,0,0,false],
["Land_HBarrier_Big_F",[26224.4,23520.7,0],136.836,0,0,true],
["Land_HBarrier_Big_F",[26221.7,23514.4,0.493059],136.653,0,0,true],
["Land_HBarrier_Big_F",[26204.6,23497,0.515244],136.726,0,0,true],
["Land_HBarrier_Big_F",[26193.1,23503.1,0.553501],223.624,0,0,true],
["Land_HBarrier_Big_F",[26181.6,23513.7,0.564705],223.667,0,0,true],
["Land_HBarrier_Big_F",[26176,23518.6,0.567467],223.666,0,0,true],
["Land_wpp_Turbine_V1_F",[26178.5,23525.4,0],0,0,0,false]

Link to comment
Share on other sites

 

Ok, so I have an issue if anyone can help please.

 

I made a small test base for players to start building on...Pre-Canned base if you will.

 

The editor code gives this:

 

    {"Land_HBarrier_Big_F", {26229.2, 23526.7, 0}, 48.3935},
 
{"Land_HBarrier_Big_F", {26217.2, 23540.2, -0.00202942}, 48.3935},
 
etc etc.
 
In the config file it changed to this:
 
["Land_HBarrier_Big_F",[26229.2,23526.7,0],48.3935,0,0,false],
["Land_HBarrier_Big_F",[26217.2,23540.2,-0.00202942],48.3935,0,0,false],
 
Notice the "false". This is at the end of each live. The base doesn't load into the map...could it be the "false" or have I done something wrong.
 
Below is a spoiler of the config.cpp file:
 

["Land_HBarrier_Big_F",[26229.2,23526.7,0],48.3935,0,0,false],
["Land_HBarrier_Big_F",[26217.2,23540.2,-0.00202942],48.3935,0,0,false],
["Land_HBarrier_Big_F",[26205.2,23553.7,-0.00202942],48.3935,0,0,false],
["Land_HBarrier_Big_F",[26203.2,23552,-0.00056839],140,0,0,false],

 

 

hey,

 

please just read my first post here, u use only the wrong button, use in the a3 editor the ""copy Epoch CFG to Clipbord" for your cpp..... or just read my tut

 

Link to comment
Share on other sites

any clue how to remove spawn box?

 

 

second this - cant modify it so would like to remove it relocate it and create my own.

 

hey,

 

I think it's only possible if takes your spawnpoints in the editor and move them over the water, builds a platform under the points, the debug cave is then underwater.... must try her again, but should work in something as

Link to comment
Share on other sites

Is it possible to "pitch" and "bank" the objects?

 

what do u mean ? if u need setvector or u want to pitch a part, than u need to work with the a3 editor and the costum pbo, than u can add setvactor or pitch a part.

 

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...