Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
  • Need help?

    Create a topic in the appropriate section
    Don't write everything in the chat!
  • Take a look at the marketplace

    There you can buy
    everything related to game servers
  • Don't want a ban?

    Please read our rules
    Don't disturb the order!
  • Sell or buy?

    Use services of the guarantor
    We will make your deal safe
  • 0
eas1ly

Проблемы с кастомным маппингом.

Привет, у меня проблема, некоторые объекты не появляются..

 

void SpawnObject( string type, vector position, vector orientation )
{
	private string NameBlockLog = "[CreateObject] ";
	private string InfoLog = "";
	if(type != "")
	{
		auto obj = GetGame().CreateObject( type, "0 0 0" );
		if(obj)
		{
			if ((position[0] != 0) && (position[1] != 0) && (position[2] != 0))
			{
				obj.SetPosition( position );
				obj.SetOrientation( orientation );
				obj.Update();
				if (obj.CanAffectPathgraph())
				{
					obj.SetAffectPathgraph(true, false);
					GetGame().GetCallQueue(CALL_CATEGORY_SYSTEM).CallLater(GetGame().UpdatePathgraphRegionByObject, 100, false, obj);
				}
				InfoLog = "[Type: '" + obj.GetType() + "' Position: '" + obj.GetPosition().ToString() + "' Orientation: '" + obj.GetOrientation().ToString() + "']";
				Write_Log(NameBlockLog + " Object has been created successfully! Info " + InfoLog);
			} else
			{
				InfoLog = "[Type: '" + type + "' Position: '" + position + "' Orientation: '" + orientation + "']";
				Write_Log(NameBlockLog + " Object can't be created! Incorrect writed position. Info " + InfoLog);
			}
		} else
		{
			InfoLog = "[Type: '" + type + "' Position: '" + position + "' Orientation: '" + orientation + "']";
			Write_Log(NameBlockLog + " Object can't be created! Info " + InfoLog);
		}
	} else
	{
		InfoLog = "[Type: '" + type + "' Position: '" + position + "' Orientation: '" + orientation + "']";
		Write_Log(NameBlockLog + " Object can't be created! Incorrect writed type. Info " + InfoLog);
	}
}
void Write_Log(string message) 
{
	Print(String(message));
}

void CustomMapping()
{
//Hive myHive =  CreateHive();

SpawnObject("Land_Mil_Tent_Big2_1", "6955.580078 42.230499 5817.089844", "5.000000 -3.000000 0.000000");
SpawnObject("Land_Mil_Tent_Big3", "6970.819824 41.445656 5790.359863", "42.000000 -2.000000 1.500000");
SpawnObject("bldr_mil_camonet_tent2", "6959.259766 43.514839 5802.310059", "34.500000 0.000000 0.000000");
SpawnObject("Land_Mil_Fortified_Nest_Watchtower", "6965.419922 42.098114 5849.359863", "113.499992 0.000000 0.000000");
SpawnObject("land_seb_watchtower", "6937.419922 51.058529 5799.439941", "-80.500000 0.000000 0.000000");
SpawnObject("Land_Container_1Mo", "6956.990234 42.035027 5799.169922", "-25.000000 1.000000 0.000000");
SpawnObject("Land_Container_1Moh", "6960.220215 42.006218 5804.910156", "-47.500000 -3.000000 1.000000");
SpawnObject("bldr_sign_stop_new", "6991.333496 41.481480 5824.738281", "-90.000000 0.000000 0.000000");
SpawnObject("bldr_sign_stop", "6913.709961 39.526051 5810.379883", "90.000000 0.000000 0.000000");
SpawnObject("bldr_roadblock_bags_curve", "6936.611328 40.742336 5791.510254", "-51.999996 0.000000 0.000000");
SpawnObject("bldr_roadblock_bags_long", "6934.052246 40.035896 5794.830078", "128.499985 0.000000 0.000000");
SpawnObject("bldr_roadblock_bags_long", "6932.629395 39.940063 5797.235840", "165.500000 0.000000 0.000000");
SpawnObject("bldr_roadblock_bags_curve", "6930.954102 40.682098 5800.829590", "-16.500000 0.000000 0.000000");
SpawnObject("bldr_roadblock_bags_long", "6930.700195 39.811806 5804.939941", "-15.000000 0.000000 0.000000");
SpawnObject("bldr_roadblock_bags_endr", "6930.160156 40.709904 5807.000000", "-27.499998 0.000000 0.000000");
SpawnObject("bldr_roadblock_cncblocks_short", "6916.720215 39.138256 5816.390137", "-23.000000 0.000000 0.000000");
SpawnObject("bldr_roadblock_pillbox", "6944.854980 41.006660 5858.968750", "-99.999985 0.000000 0.000000");
SpawnObject("bldr_roadblock_cncblocks_long", "6954.810059 40.905800 5859.220215", "-75.699997 0.000000 0.000000");
SpawnObject("bldr_roadblock_bags_curve", "6934.040039 40.638290 5854.270020", "49.499996 2.000000 0.500000");
SpawnObject("bldr_roadblock_bags_endr", "6936.950684 40.667339 5854.803711", "54.999989 3.500000 0.000000");
SpawnObject("bldr_roadblock_bags_long", "6974.939941 40.336292 5839.500000", "-33.499996 0.000000 0.000000");
SpawnObject("bldr_roadblock_bags_endl", "6973.500000 41.126202 5841.100098", "163.500000 0.000000 0.000000");
SpawnObject("bldr_roadblock_cncblocks_long", "6980.729980 40.786240 5817.120117", "-13.999999 0.000000 0.000000");
SpawnObject("bldr_roadblock_bags_curve", "6968.240234 41.235229 5769.459961", "-88.999992 0.000000 0.000000");
SpawnObject("bldr_roadblock_cncblocks_long", "6960.479980 40.954025 5770.419922", "91.500000 1.500000 0.000000");
SpawnObject("bldr_roadblock_pillbox", "6944.689941 39.485409 5773.910156", "127.000000 1.000000 1.000000");
SpawnObject("land_wrecked_mi8_frozen", "6939.919922 40.808128 5893.770020", "96.500000 3.000000 8.000000");
SpawnObject("Land_Wreck_hb01_aban1_police", "6979.359863 40.994701 5825.859863", "116.500000 0.000000 0.000000");
SpawnObject("land_wrecked_bmp2", "6954.419922 40.977409 5856.899902", "110.500000 0.000000 1.500000");
SpawnObject("land_wrecked_uaz", "6966.060059 41.003273 5816.549805", "30.000000 0.000000 0.000000");
SpawnObject("land_wrecked_ural", "6940.629883 41.246647 5816.899902", "13.000000 0.000000 0.000000");

//GetCEApi().ExportProxyData( "7500 0 7500" , 10000 );
}

Например тут, могут пару объектов не появится, как будто я их и не создавал..

Например эти:
 

SpawnObject("bldr_roadblock_bags_curve", "6934.040039 40.638290 5854.270020", "49.499996 2.000000 0.500000");
SpawnObject("bldr_roadblock_bags_endr", "6936.950684 40.667339 5854.803711", "54.999989 3.500000 0.000000");
SpawnObject("bldr_roadblock_bags_long", "6974.939941 40.336292 5839.500000", "-33.499996 0.000000 0.000000");
SpawnObject("bldr_roadblock_bags_endl", "6973.500000 41.126202 5841.100098", "163.500000 0.000000 0.000000");

Кто-то сталкивался с такой проблемой?

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 1

ну так если ты в оффлайнере подгружаешь Builderitems а на сервере нет - то они и не создадутся
ванильными предметами чтобы что-то замапить качественное - приходится извращаться.

 

Edited by DOPHAMINE (see edit history)

Share this post


Link to post
Share on other sites







  • 0
1 минуту назад, DOPHAMINE сказал:

ну так если ты в оффлайнере подгружаешь Builderitems а на сервере нет - то они и не создадутся
ванильными предметами чтобы что-то замапить качественное - приходится извращаться.

 

Я понял, делал через мод DayZ Editor, там он по дефолту подключается, спасибо)

Share this post


Link to post
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...

Important Information

By using this site, you automaticly agree to our Guidelines and Privacy Policy.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.