Jump to content
Terrorista90

Add llot to custom Bulding

Recommended Posts

Hello, in the previous version of dayz I add this comand on my init.c  GetTesting().ExportProxyData("7500 0 7500", 10000); but in 1.04 it does not work?

Any solution?

Share this post


Link to post
Share on other sites
On 6/26/2019 at 12:45 PM, ImpulZ said:

Tweaked: Renamed method GetTesting() to GetCEApi()

BEFORE :

GetTesting().ExportProxyData("7500 0 7500", 10000);

AFTER :

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

Should be working now 🙂

Share this post


Link to post
Share on other sites

Guys any suggestions? Now on livonia server need to export custom loot maps with GetCEApi().ExportProxyData( "6500 0 6500", 6000 );
Seems not working, may be the function have changed again?
Gives me that
when it's trying to initiate on livonia it says is logs (#2638 is a position of that function)
NULL pointer to instance
Function: 'main'
Stack trace:
$CurrentDir:mpmissions\dayzOffline.enoch\init.c:2638

definitely something has changed on new map... may the function is different now... But it's working just fine on Chernorus servers

 

that's where I have it
.......
//INIT ECONOMY--------------------------------------
Hive ce = CreateHive();
if ( ce )
ce.InitOffline();

GetCEApi().ExportProxyData( "6500 0 6500", 7000 );

Edited by bogusfree

Share this post


Link to post
Share on other sites
On 1/6/2020 at 1:04 PM, bogusfree said:

Guys any suggestions? Now on livonia server need to export custom loot maps with GetCEApi().ExportProxyData( "6500 0 6500", 6000 );
Seems not working, may be the function have changed again?
Gives me that
when it's trying to initiate on livonia it says is logs (#2638 is a position of that function)
NULL pointer to instance
Function: 'main'
Stack trace:
$CurrentDir:mpmissions\dayzOffline.enoch\init.c:2638

definitely something has changed on new map... may the function is different now... But it's working just fine on Chernorus servers

 

that's where I have it
.......
//INIT ECONOMY--------------------------------------
Hive ce = CreateHive();
if ( ce )
ce.InitOffline();

GetCEApi().ExportProxyData( "6500 0 6500", 7000 );

GetCEApi().ExportProxyData(
"7500 0 7500",  -> coords of "center" of map
10000 -> Radius of trigger.
);

So use this function inside main() before "}": GetCEApi().ExportProxyData("7500 0 7500", 10000);

Example:
 

Spoiler

void main()
{
  	//INIT WEATHER BEFORE ECONOMY INIT------------------------
	Weather weather = g_Game.GetWeather();

	weather.MissionWeather(false);    // false = use weather controller from Weather.c

	weather.GetOvercast().Set( Math.RandomFloatInclusive(0.01, 0.2), 1, 0);
    weather.GetRain().Set( 0, 0, 0.05);
    weather.GetFog().Set( Math.RandomFloatInclusive(0.05, 0.1), 1, 0);

	//INIT ECONOMY--------------------------------------
	Hive ce = CreateHive();
	if ( ce )
    {
		ce.InitOffline();
    }
	//DATE RESET AFTER ECONOMY INIT-------------------------
	int year, month, day, hour, minute;
	int reset_month = 9, reset_day = 20;
	GetGame().GetWorld().GetDate(year, month, day, hour, minute);

	if ((month == reset_month) && (day < reset_day))
	{
		GetGame().GetWorld().SetDate(year, reset_month, reset_day, hour, minute);
	}
	else
	{
		if ((month == reset_month + 1) && (day > reset_day))
		{
			GetGame().GetWorld().SetDate(year, reset_month, reset_day, hour, minute);
		}
		else
		{
			if ((month < reset_month) || (month > reset_month + 1))
			{
				GetGame().GetWorld().SetDate(year, reset_month, reset_day, hour, minute);
			}
		}
	}
	GetCEApi().ExportProxyData("7500 0 7500", 10000); // <- ONLY HERE!
}

 

 

Edited by Sid Debian

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×