Jump to content
  • 0

Spawn Areas


arc7r7

Question

I've been working on a United Sahrani map and have a question about where the server pulls the buildings and trader positions for the spawn areas from. I would have thought it was from the map.h file in the @epochhive\addons\a3_epoch_server_settings\configs\maps

Spoiler

    Author: Aaron Clark - EpochMod.com

    Contributors:

    Description:
    Epoch gamemode server Side map specific configs for Sahrani.

    Licence:
    Arma Public License Share Alike (APL-SA) - https://www.bistudio.com/community/licenses/arma-public-license-share-alike

    Github:
    https://github.com/EpochModTeam/Epoch/tree/master/Sources/epoch_server_settngs/configs/maps/Sara_dbe1.h
*/
class Sara_dbe1 : Default
{
    worldSize = 0; // 0 = default to worldSize command
    plantLimit = 10;
    vehicleSpawnTypes[] = {
        {"FlatAreaCity",1},
        {"FlatAreaCitySmall",1},
        {"NameCity",2},
        {"NameVillage",1},
        {"NameCityCapital",4},
        {"Airport",5},
        {"NameLocal",2},
        {"StrongpointArea",1},
        {"VegetationBroadleaf",1},
        {"VegetationFir",1},
        {"ViewPoint",1}
    };
    traderBlds[] = {};
    containerPos[] = {};
    telePos[] = {
        // N [-0.286865,8.17383,-10.3098]
        // S [-0.415527,-7.05298,-10.3098]
        // E [13.5127,0.410156,-10.3098]
        // W [-14.4316,0.112793,-10.3098]
            { "Transport_N_EPOCH", { -0.286865, 8.17383, -10.3098 }, "", "north" },
            { "Transport_W_EPOCH", { -14.4316, 0.112793, -10.3098 }, "", "west" },
            { "Transport_E_EPOCH", { 13.5127,0.410156,-10.3098 }, "", "east" }
            //{ "Transport_C_EPOCH", { 13.5127, 0.410156, -10.3098 }, "", "south" }
    };
    propsPos[] = {
    };
    staticNpcPos[] = {
    };
};

but this file is empty of anything in the propPos or staticNpcPos. where is the server finding the building and trader postions for the spawn areas, I would like to remove these objects.

Thanks

Link to comment
Share on other sites

10 answers to this question

Recommended Posts

  • 0
9 minutes ago, He-Man said:

telePos are the defines of the teleporter and spawn positions

Are there other files that contain the building classnames and traders postions for the spawn areas other than the map.h file?

Link to comment
Share on other sites

  • 0
2 hours ago, axeman said:

They should all be in there as standard. If no static traders are specified then dynamic traders are spawned up to the maximum trader limit.

If it is a map object (House) try: https://community.bistudio.com/wiki/hideObjectGlobal

 

These spawn/trader buildings are not in the base map. There is a circle of garage buildings with an ATM and several traders at each spawn point, if they are not being pulled from the map.h file, where is the server finding these objects? 

http://i.imgur.com/UtCTyZR.jpg

Link to comment
Share on other sites

  • 0
1 minute ago, axeman said:

Is this on your own server ?

If so, what addons do you have that could be spawning those objects ? Doesn't look like a normal creation..

I have a local test server setup on my PC. I have Epoch, CUP terrains Core and Maps, CBA_A3, CUP units, weapons and vehicles running. I'm using the epoch.Sara_dbe1 mission pbo.

Link to comment
Share on other sites

  • 0
1 minute ago, He-Man said:

Hmm, I have no idea, where these buildings can come from.

As axeman said, the standard buildings created by Epoch should be in this file.

Thanks He-Man and Axeman for helping. I'm at a loss also. I have no idea where these spawn bases are coming from if the map.h file is empty. 

Link to comment
Share on other sites

  • 0

These are actually from a new feature that makes adding bases and support for new maps easier. 

The templates are located here: 
https://github.com/EpochModTeam/Epoch/blob/release/Sources/epoch_server_settings/configs/templates/CfgPropTemplate.h

You can use them by creating a marker with the same name as the templates. For example on Napf we use the (north, east, and west) city templates: https://github.com/EpochModTeam/Epoch/blob/release/Sources/epoch_server_settings/configs/templates/CfgPropTemplate.h 

These are then referenced in the <mapName>.h file by giving the marker/template name for the 4th array element instead of the xyz position: 
https://github.com/EpochModTeam/Epoch/blob/release/Sources/epoch_server_settings/configs/maps/Napf.h#L39-L41
as compared to Altis that uses the "old" way: https://github.com/EpochModTeam/Epoch/blob/release/Sources/epoch_server_settings/configs/maps/Napf.h#L39-L41

:smile:

 

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

×
×
  • Create New...