<?xml version="1.0"?>
<rss version="2.0"><channel><title>&#x41F;&#x43E;&#x441;&#x43B;&#x435;&#x434;&#x43D;&#x438;&#x435; &#x432;&#x43E;&#x43F;&#x440;&#x43E;&#x441;&#x44B;: Help</title><link>https://s-platoon.magicbyte.org/forum/282-help/</link><description>&#x41F;&#x43E;&#x441;&#x43B;&#x435;&#x434;&#x43D;&#x438;&#x435; &#x432;&#x43E;&#x43F;&#x440;&#x43E;&#x441;&#x44B;: Help</description><language>ru</language><item><title>DayZ Supply Drop Plus</title><link>https://s-platoon.magicbyte.org/topic/16103-dayz-supply-drop-plus/</link><description><![CDATA[
<p>
	HI! I would like to ask for help with this script. Thank you very much! <br /><br />
	When you throw the drop, the server is crash<br />
	 
</p>

<p>
	<a href="https://github.com/VanillaPlusPlus/SupplyDropPlus" rel="external nofollow">https://github.com/VanillaPlusPlus/SupplyDropPlus</a><br />
	 
</p>

<pre class="ipsCode prettyprint lang-html prettyprinted">
<span class="pln">WIN-UK70O9BUIST, 27.09 2024 18:25:49
NULL pointer to instance
Class:      'SupplyDropPlusPlane'
Function: 'SupplyDropPlusPlane'
Stack trace:
$CurrentDir://mpmissions//dayzOffline.chernarusplus//SupplyDropPlus//SupplyDropPlusPlane.c:29
$CurrentDir://mpmissions//dayzOffline.chernarusplus//SupplyDropPlus//SupplyDropPlusManager.c:51
$CurrentDir:mpmissions\dayzOffline.chernarusplus\init.c:46
scripts/3_Game/dayzgame.c:2846
GameLabs/Scripts/3_Game/3_Hooking/рфіяФ*ќпор.ogg:7
JM/CF/Scripts/3_Game/communityframework\game\dayzgame.c:23
VPPAdminTools/3_Game/vppadmintools\vanillaplusplus.c:211</span></pre>

<p>
	My Init.c
</p>

<pre class="ipsCode prettyprint lang-html prettyprinted">
<span class="pln">#include "$CurrentDir:mpmissions\dayzOffline.chernarusplus\Restart_System.c"
#include "$CurrentDir:\\mpmissions\\dayzOffline.chernarusplus\\SupplyDropPlus\\SupplyDropPlusManager.c"

void main()
{
	//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) &amp;&amp; (day &lt; reset_day))
	{
		GetGame().GetWorld().SetDate(year, reset_month, reset_day, hour, minute);
	}
	else
	{
		if ((month == reset_month + 1) &amp;&amp; (day &gt; reset_day))
		{
			GetGame().GetWorld().SetDate(year, reset_month, reset_day, hour, minute);
		}
		else
		{
			if ((month &lt; reset_month) || (month &gt; reset_month + 1))
			{
				GetGame().GetWorld().SetDate(year, reset_month, reset_day, hour, minute);
			}
		}
	}
}

class CustomMission: MissionServer
{
	
	ref SupplyDropPlusManager airdrop;
	void CustomMission(){
    airdrop = new SupplyDropPlusManager();
	}

	override void OnUpdate(float timeslice){
	super.OnUpdate(timeslice);
    airdrop.onUpdate(timeslice);
	}
	
	void SetRandomHealth(EntityAI itemEnt)
	{
		if ( itemEnt )
		{
			float rndHlt = Math.RandomFloat( 0.45, 0.65 );
			itemEnt.SetHealth01( "", "", rndHlt );
		}
	}

	override PlayerBase CreateCharacter(PlayerIdentity identity, vector pos, ParamsReadContext ctx, string characterName)
	{
		Entity playerEnt;
		playerEnt = GetGame().CreatePlayer( identity, characterName, pos, 0, "NONE" );
		Class.CastTo( m_player, playerEnt );

		GetGame().SelectPlayer( identity, m_player );

		return m_player;
	}

	override void StartingEquipSetup(PlayerBase player, bool clothesChosen)
	{
		EntityAI itemClothing;
		EntityAI itemEnt;
		ItemBase itemBs;
		float rand;

		itemClothing = player.FindAttachmentBySlotName( "Body" );
		if ( itemClothing )
		{
			SetRandomHealth( itemClothing );
			
			itemEnt = itemClothing.GetInventory().CreateInInventory( "BandageDressing" );
			player.SetQuickBarEntityShortcut(itemEnt, 2);
			
			string chemlightArray[] = { "Chemlight_White", "Chemlight_Yellow", "Chemlight_Green", "Chemlight_Red" };
			int rndIndex = Math.RandomInt( 0, 4 );
			itemEnt = itemClothing.GetInventory().CreateInInventory( chemlightArray[rndIndex] );
			SetRandomHealth( itemEnt );
			player.SetQuickBarEntityShortcut(itemEnt, 1);

			rand = Math.RandomFloatInclusive( 0.0, 1.0 );
			if ( rand &lt; 0.35 )
				itemEnt = player.GetInventory().CreateInInventory( "Apple" );
			else if ( rand &gt; 0.65 )
				itemEnt = player.GetInventory().CreateInInventory( "Pear" );
			else
				itemEnt = player.GetInventory().CreateInInventory( "Plum" );
			player.SetQuickBarEntityShortcut(itemEnt, 3);
			SetRandomHealth( itemEnt );
		}
		
		itemClothing = player.FindAttachmentBySlotName( "Legs" );
		if ( itemClothing )
			SetRandomHealth( itemClothing );
		
		itemClothing = player.FindAttachmentBySlotName( "Feet" );
	}

};

Mission CreateCustomMission(string path)
{
	return new CustomMission();
	
}</span></pre>

<p>
	<br />
	 
</p>
]]></description><guid isPermaLink="false">16103</guid><pubDate>Fri, 27 Sep 2024 16:44:38 +0000</pubDate></item><item><title>does anyone know which mod includes this watch?</title><link>https://s-platoon.magicbyte.org/topic/13677-does-anyone-know-which-mod-includes-this-watch/</link><description><![CDATA[
<p>
	does anyone know which mod includes this watch?
</p>

<p>
	 
</p>

<p><p class='ipsMessage ipsMessage_error cloak'>Пожалуйста, Войдите или Зарегистрируйтесь, чтобы увидеть это: Вложение.</p> </p>]]></description><guid isPermaLink="false">13677</guid><pubDate>Sat, 26 Nov 2022 08:27:21 +0000</pubDate></item><item><title>Kolobov Helicopters Despawning</title><link>https://s-platoon.magicbyte.org/topic/10861-kolobov-helicopters-despawning/</link><description><![CDATA[
<p>
	Hello I am having problems with kolobovs helicopters despawning on server restart, Types.xml is set correctly, lifetime set to 45 days.
</p>

<p>
	 
</p>

<p>
	Anyone else having a similar experience ? <br>
	 
</p>

<p>
	 
</p>
]]></description><guid isPermaLink="false">10861</guid><pubDate>Thu, 01 Apr 2021 01:11:35 +0000</pubDate></item></channel></rss>
