Новые предметы

Вызываешь ты такой сантехника: "у меня вода не течет".

Приходит, спрашивает : "вы воду то не выключали?" Отвечаешь: "нет, можете глянуть". Смотрит - действительно, включена. Начинает копаться с твоими трубами. Час, два. Все перепробовал. И тут ты ему задвигаешь: "знаете, а у нас тут на районе трубу прорвало, может в этом проблема"?
 
Последнее редактирование модератором:
Ох..

Если хочешь, чтобы тебе продуктивно помогли - не надо темнить! Выкладываешь все и рассказываешь обо всем, иначе очень долго можно ходить вокруг да около.
Не работает и сейчас. Так вот:
Есть Радик, который делается из простого Радика
Код:
"item_dummy_datadriven"
{
	// General
	//-------------------------------------------------------------------------------------------------------------
	"ID"              "2001"
	"BaseClass"           "item_datadriven"
	"ItemBaseLevel"         "1"
}

"item_recipe_radiance_2"
{
	// General
	//-------------------------------------------------------------------------------------------------------------
	"BaseClass"				"item_datadriven"
	"ID"					"1362" //Valve's version of this item uses the ID "136".
	"Model"					"models/props_gameplay/recipe.mdl"
	"AbilityTextureName"			"item_recipe"
	
	// Item Info
	//-------------------------------------------------------------------------------------------------------------
	"ItemCost"						"1350"
	"ItemShopTags"					""
	
	// Recipe
	//-------------------------------------------------------------------------------------------------------------
	"ItemRecipe"					"1"
	"ItemResult"					"item_radiance_2"
	"ItemRequirements"
	{
		"01"						"item_radiance"
	}
}

"item_radiance_2"
{
	// General
	//-------------------------------------------------------------------------------------------------------------
	"BaseClass"						"item_datadriven"
	"ID"							"1372" //Valve's version of this item uses the ID "137".
	"AbilityBehavior"					"DOTA_ABILITY_BEHAVIOR_IMMEDIATE | DOTA_ABILITY_BEHAVIOR_NO_TARGET | DOTA_ABILITY_BEHAVIOR_IGNORE_CHANNEL"
	"Model"							"models/props_gameplay/red_box.vmdl" 
	"Effect"						"particles/generic_gameplay/dropped_item.vpcf"
	"AbilityTextureName"					"item_radiance_2"
	
	// Item Info
	//-------------------------------------------------------------------------------------------------------------
	"ItemCost"						"6500"
	"ItemShopTags"					"damage"
	"ItemQuality"					"epic"
	"ItemAliases"					"radiance"
	"ItemDeclarations"				"DECLARE_PURCHASES_TO_TEAMMATES | DECLARE_PURCHASES_IN_SPEECH | DECLARE_PURCHASES_TO_SPECTATORS"
	
	"AbilitySpecial"
	{
		"01"
		{
			"var_type"				"FIELD_INTEGER"
			"bonus_damage"			"75"
		}
		"02"
		{
			"var_type"				"FIELD_INTEGER"
			"blind_pct"			"17"
		"03"
		{
			"var_type"				"FIELD_INTEGER"
			"aura_radius"			"700"
		}
		"04"
		{
			"var_type"				"FIELD_INTEGER"
			"aura_damage_per_second"	"65"
		}
		"05"
		{
			"var_type"				"FIELD_INTEGER"
			"aura_damage_interval"		"1"
	}
	
	"OnSpellStart" //Switch to the inactive version of Radiance.
	{
		"RunScript"
		{
			"ScriptFile"			"items/item_radiance_2.lua"
			"Function"			"item_radiance_2_on_spell_start"
		}
	}
	
	"Modifiers"
	{
		"modifier_item_radiance_2"
		{
			"Passive"			"1"
			"IsHidden"			"1"
			"Attributes" 		"MODIFIER_ATTRIBUTE_MULTIPLE"
			
			"Properties"
			{
				"MODIFIER_PROPERTY_PREATTACK_BONUS_DAMAGE"	"%bonus_damage"
				"MODIFIER_PROPERTY_EVASION_CONSTANT"		"%blind_pct"
			}
		}
		"modifier_item_radiance_2_aura_emitter"
		{
			"Passive"				"1"
			"IsHidden"				"1"
			"EffectName"			"particles/items2_fx/radiance_owner.vpcf"
			"EffectAttachType"		"follow_origin"
			"ControlPoints"
	        	{
             "01"  "0 0 2000"
			}
			"Aura" 					"modifier_item_radiance_2_datadriven_aura"
			"Aura_Radius" 			"%aura_radius"
			"Aura_Teams" 			"DOTA_UNIT_TARGET_TEAM_ENEMY"
			"Aura_Types" 			"DOTA_UNIT_TARGET_HERO | DOTA_UNIT_TARGET_BASIC"
			"Aura_Flags" 			"DOTA_UNIT_TARGET_FLAG_MAGIC_IMMUNE_ENEMIES"
			"Aura_ApplyToCaster" 	"0"
		}
		"modifier_item_radiance_2_aura"
		{
			"Passive"			"0"
			"IsHidden"			"1"
			"IsBuff"			"0"
			"IsDebuff"			"1"
			"IsPurgable"		"0"
			"EffectName"			"particles/items2_fx/radiance.vpcf"
			"EffectAttachType"		"follow_origin"
			"ControlPoints"
	        	{
             "01"  "0 0 2000"
			}
			"ThinkInterval" 		"%aura_damage_interval"
			"OnIntervalThink"
			{
				"RunScript"
				{
					"ScriptFile"		"items/item_radiance_2.lua"
					"Function"		"modifier_item_radiance_2_aura_on_interval_think"
					"AuraDamageInterval"	"%aura_damage_interval"
					"AuraDamagePerSecond"	"%aura_damage_per_second"
				}
			}
			
		}
	}
}

"item_radiance_2_inactive_datadriven"
{
	// General
	//-------------------------------------------------------------------------------------------------------------
	"BaseClass"						"item_datadriven"
	"ID"							"1372" //Valve's version of this item uses the ID "137".
	"AbilityBehavior"				"DOTA_ABILITY_BEHAVIOR_IMMEDIATE | DOTA_ABILITY_BEHAVIOR_NO_TARGET | DOTA_ABILITY_BEHAVIOR_IGNORE_CHANNEL"
	"Model"							"models/props_gameplay/red_box.vmdl" 
	"Effect"						"particles/generic_gameplay/dropped_item.vpcf"
	"AbilityTextureName"			"item_radiance_2_inactive"
	
	// Item Info
	//-------------------------------------------------------------------------------------------------------------
	"ItemCost"						"6500"
	"ItemShopTags"					"damage"
	"ItemQuality"					"epic"
	"ItemAliases"					"radiance"
	"ItemDeclarations"				"DECLARE_PURCHASES_TO_TEAMMATES | DECLARE_PURCHASES_IN_SPEECH | DECLARE_PURCHASES_TO_SPECTATORS"
	"ItemPurchasable"				"0"
	
	"AbilitySpecial"
	{
		"01"
		{
			"var_type"				"FIELD_INTEGER"
			"bonus_damage"			"75"
		}
		"02"
		{
			"var_type"				"FIELD_INTEGER"
			"aura_radius"			"700"
		}
		"03"
		{
			"var_type"				"FIELD_INTEGER"
			"aura_damage_per_second"	"65"
		}
		"04"
		{
			"var_type"				"FIELD_INTEGER"
			"aura_damage_interval"		"1"
	}
	
	"OnSpellStart" //Switch to the active version of Radiance.
	{
		"RunScript"
		{
			"ScriptFile"			"items/item_radiance_2.lua"
			"Function"			"item_radiance_2_inactive_on_spell_start"
		}
	}
	
	"Modifiers"
	{
		"modifier_item_radiance_2_inactive_datadriven"
		{
			"Passive"			"1"
			"IsHidden"			"1"
			"Attributes" 		"MODIFIER_ATTRIBUTE_MULTIPLE"
			
			"Properties"
			{
				"MODIFIER_PROPERTY_BASEATTACK_BONUSDAMAGE"	"%bonus_damage"
			}
		}
	}
}
И люа-код к нему:
Код:
--[[ ============================================================================================================
	Author: Rook
	Date: January 30, 2015
	A helper method that switches the keys.ability item to one with the inputted name.
================================================================================================================= ]]
function swap_to_item(keys, ItemName)
	for i=0, 5, 1 do --Fill all empty slots in the player's inventory with "dummy" items.
		local current_item = keys.caster:GetItemInSlot(i)
		if current_item == nil then
			keys.caster:AddItem(CreateItem("item_dummy", keys.caster, keys.caster))
		end
	end
	
	keys.caster:RemoveItem(keys.ability)
	keys.caster:AddItem(CreateItem(ItemName, keys.caster, keys.caster)) --This should be put into the same slot that the removed item was in.
	
	for i=0, 5, 1 do --Remove all dummy items from the player's inventory.
		local current_item = keys.caster:GetItemInSlot(i)
		if current_item ~= nil then
			if current_item:GetName() == "item_dummy_datadriven" then
				keys.caster:RemoveItem(current_item)
			end
		end
	end
end


--[[ ============================================================================================================
	Author: Rook
	Date: January 30, 2015
	Called regularly while Radiance's aura is affecting a unit. Damages them.
	Additional parameters: keys.AuraDamageInterval and keys.AuraDamagePerSecond
================================================================================================================= ]]
function modifier_item_radiance_2_aura_on_interval_think(keys)
	local damage_to_deal = keys.AuraDamagePerSecond * keys.AuraDamageInterval  --This gives us the damage per interval.
	ApplyDamage({victim = keys.target, attacker = keys.caster, damage = damage_to_deal, damage_type = DAMAGE_TYPE_MAGICAL,})
end


--[[ ============================================================================================================
	Author: Rook
	Date: January 30, 2015
	Called when Radiance (active) is cast. Swaps the item to Radiance (inactive).
================================================================================================================= ]]
function item_radiance_2_on_spell_start(keys)
	swap_to_item(keys, "item_radiance_2_inactive")
end


--[[ ============================================================================================================
	Author: Rook
	Date: January 30, 2015
	Called when Radiance (inactive) is cast. Swaps the item to Radiance (active).
================================================================================================================= ]]
function item_radiance_inactive_2_on_spell_start(keys)
	swap_to_item(keys, "item_radiance_2")
end
Итог: Не показывается в магазине, значит ошибка где-то.
 
Последнее редактирование модератором:
Что за item_dummy_datadriven ? Файл вообще нормально отрабатывает с таким неполноценным предметом?
 
Что за item_dummy_datadriven ? Файл вообще нормально отрабатывает с таким неполноценным предметом?
Раньше всё работало просто замечательно, правда эффект от Радика шёл от центра карты, но сейчас не работает.
 
Последнее редактирование модератором:
Консоль то что пишет?
Код:
[ W Vfx         ]: No valid vcs file found for shader gaussian_bloom_blur.vfx
[ W MaterialSystem    ]: 
[ W MaterialSystem    ]: CMaterial2::LoadShadersAndSetupModes(863): Error creating shader gaussian_bloom_blur.vfx for material materials/dev/gaussian_bloom_blur.vmat!
[ W MaterialSystem    ]: 
[ W MaterialSystem    ]: CMaterial2::LoadShadersAndSetupModes(863): Error creating shader gaussian_bloom_blur.vfx for material materials/dev/gaussian_bloom_blur.vmat!
[ W MaterialSystem    ]: 
[ W MaterialSystem    ]: CMaterial2::LoadShadersAndSetupModes(863): Error creating shader gaussian_bloom_blur.vfx for material materials/dev/gaussian_bloom_blur.vmat!
[ W MaterialSystem    ]: 
[ W MaterialSystem    ]: CMaterial2::LoadShadersAndSetupModes(863): Error creating shader gaussian_bloom_blur.vfx for material materials/dev/gaussian_bloom_blur.vmat!
[ W MaterialSystem    ]: 
[ W MaterialSystem    ]: CMaterial2::LoadShadersAndSetupModes(863): Error creating shader gaussian_bloom_blur.vfx for material materials/dev/gaussian_bloom_blur.vmat!
[ W MaterialSystem    ]: 
[ W MaterialSystem    ]: CMaterial2::LoadShadersAndSetupModes(863): Error creating shader gaussian_bloom_blur.vfx for material materials/dev/gaussian_bloom_blur.vmat!
[ W MaterialSystem    ]: 
[ W MaterialSystem    ]: CMaterial2::LoadShadersAndSetupModes(863): Error creating shader gaussian_bloom_blur.vfx for material materials/dev/gaussian_bloom_blur.vmat!
[  AssetSystem     ]: AssetSystem: Mod 'dota' set to read-only
[  AssetSystem     ]: AssetSystem: Mod 'core' set to read-only
[  ToolFramework2    ]: Registering external tool for extension:      '.mp3':       Ïðîèãðûâàòåëü Windows Media (command line: '"C:\Program Files (x86)\Windows Media Player\wmplayer.exe" /prefetch:6 /Open "%L"')
[  ToolFramework2    ]: Registering external tool for extension:      '.wav':       Ïðîèãðûâàòåëü Windows Media (command line: '"C:\Program Files (x86)\Windows Media Player\wmplayer.exe" /Open "%L"')
[  ToolFramework2    ]: Registering external tool for extension:      '.css':                 Áëîêíîò (command line: 'C:\Windows\system32\NOTEPAD.EXE %1')
[  ToolFramework2    ]: Registering external tool for extension:      '.xml':                XML Editor (command line: '"C:\Program Files (x86)\Common Files\Microsoft Shared\OFFICE11\MSOXMLED.EXE" /verb open "%1"')
[  ToolFramework2    ]: Registering external tool for extension:      '.js':  Microsoft ® Windows Based Script Host (command line: 'C:\Windows\System32\WScript.exe "%1" %*')
[  ToolFramework2    ]: Registering external tool for extension:      '.tif':       Ïðîñìîòð ôîòîãðàôèé Windows (command line: 'C:\Windows\System32\rundll32.exe "C:\Program Files\Windows Photo Viewer\PhotoViewer.dll", ImageView_Fullscreen %1')
[  ToolFramework2    ]: Adding external tool for extension:        '.tiff':       Ïðîñìîòð ôîòîãðàôèé Windows (command line: 'C:\Windows\System32\rundll32.exe "C:\Program Files\Windows Photo Viewer\PhotoViewer.dll", ImageView_Fullscreen %1')
[  ToolFramework2    ]: Adding external tool for extension:        '.jpg':       Ïðîñìîòð ôîòîãðàôèé Windows (command line: 'C:\Windows\System32\rundll32.exe "C:\Program Files\Windows Photo Viewer\PhotoViewer.dll", ImageView_Fullscreen %1')
[  ToolFramework2    ]: Registering external tool for extension:      '.lua': Notepad++ : a free (GNU) source code edi (command line: '"C:\Program Files (x86)\Notepad++\notepad++.exe" "%1"')
[  ToolFramework2    ]: Adding external tool for extension:        '.txt':                 Áëîêíîò (command line: 'C:\Windows\system32\NOTEPAD.EXE %1')
[  ToolFramework2    ]: Registering external tool for extension:      '.vtx':            Internet Explorer (command line: '"C:\Program Files\Internet Explorer\iexplore.exe" -nohome')
[  AssetSystem     ]: AssetSystem loaded persistent info from 3 layers / 162425 assets in 0.42s
[  AssetSystem     ]: Scanning for Asset Files (1/6): 'Game (dota_addons/test1)' = C:\Program Files (x86)\Steam\steamapps\common\dota 2 beta\game\dota_addons\test1\, previously scanned 0 directories and 0 files
[  AssetSystem     ]: Scanning for Asset Files (2/6): 'Game (dota)' = C:\Program Files (x86)\Steam\steamapps\common\dota 2 beta\game\dota\, previously scanned 21 directories and 35 files
[  AssetSystem     ]: Scanning for Asset Files (3/6): 'Game (core)' = C:\Program Files (x86)\Steam\steamapps\common\dota 2 beta\game\core\, previously scanned 21 directories and 35 files
[  AssetSystem     ]: Scanning for Asset Files (4/6): 'Content (dota_addons/test1)' = C:\Program Files (x86)\Steam\steamapps\common\dota 2 beta\content\dota_addons\test1\, previously scanned 21 directories and 35 files
[  AssetSystem     ]: Scanning for Asset Files (5/6): 'Content (dota)' = C:\Program Files (x86)\Steam\steamapps\common\dota 2 beta\content\dota\, previously scanned 33 directories and 71 files
[  AssetSystem     ]: Scanning for Asset Files (6/6): 'Content (core)' = C:\Program Files (x86)\Steam\steamapps\common\dota 2 beta\content\core\, previously scanned 33 directories and 71 files
[  AssetSystem     ]: AssetSystem files scanned in 0.01 seconds.
[  AssetSystem     ]: AssetSystem pruned 0 stale assets
[  AssetSystem     ]: Asset System - Updating dependency information...
[  AssetSystem     ]: AssetSystem dependency data propagated in 0.43s (refreshed 0 of 162238)
[  AssetSystem     ]: AssetSystem dependency graph created in 0.44 seconds.
[  AssetSystem     ]: AssetSystem saved persistent info for 1 layers / 35 assets in 0.004 sec
[  AssetSystem     ]: AssetSystem initialized in 0.87 seconds. [0.42 load, 0.01 scan, 0.44 dependencies, 0.00 save]
[  SplitScreen     ]: Clamping split screen users to 1 due to -tools mode.
[  Developer      ]: CreateEvent: event 'colorblind_mode_changed' not registered.
[  SoundSystem     ]: Sound Initialization: Finish, Sampling Rate: 44100
[ W General       ]: ILocalize::AddFile() failed to load file "resource/keybindings_russian.txt".
[  General       ]: Failed to load localization file for language russian, ignoring
[  Developer      ]: Localization key '[english]Comp_2733_PG_page_qualifier_predictions2elementlistcompendium_self_and_ownedelementlistpredictionlistelementlisttextte' is too long. Truncating.
[  Developer      ]: Localization key '[english]Comp_2733_PG_page_me_pred1elementlistacross_single_gameelementlistpredictionselementlistmostkillsresultinfo_dialog_inf' is too long. Truncating.
[  Developer      ]: Localization key '[english]Comp_2733_PG_page_me_pred1elementlistacross_single_gameelementlistpredictionselementlisthmostkillsresultinfo_dialog_in' is too long. Truncating.
[  Developer      ]: Localization key '[english]Comp_2733_PG_page_me_pred1elementlistacross_single_gameelementlistpredictionselementlisthmostdeathsresultinfo_dialog_i' is too long. Truncating.
[  Developer      ]: Localization key '[english]Comp_2733_PG_page_me_pred1elementlistacross_single_gameelementlistpredictionselementlistlfirstbloodresultinfo_dialog_i' is too long. Truncating.
[  Developer      ]: Localization key '[english]Comp_2733_PG_page_me_pred1elementlistacross_single_gameelementlistpredictionselementlistroshkillsresultinfo_dialog_inf' is too long. Truncating.
[  Developer      ]: Localization key '[english]Comp_2733_PG_page_me_pred1elementlistacross_single_gameelementlistpredictionselementlisthighestcritresultinfo_dialog_i' is too long. Truncating.
[  Developer      ]: Localization key '[english]Comp_2733_PG_page_me_pred1elementlistacross_single_gameelementlistpredictionselementlisthighestgpmresultinfo_dialog_in' is too long. Truncating.
[  Developer      ]: Localization key '[english]Comp_2733_PG_page_me_pred2elementlistacross_all_gameselementlistpredictionselementlistlongestgameresultinfo_dialog_inf' is too long. Truncating.
[  Developer      ]: Localization key '[english]Comp_2733_PG_page_me_pred2elementlistacross_all_gameselementlistpredictionselementlistshortestgameresultinfo_dialog_in' is too long. Truncating.
[  Developer      ]: Localization key '[english]Comp_2733_PG_page_me_pred2elementlistacross_all_gameselementlistpredictionselementlistrapiersboughtresultinfo_dialog_i' is too long. Truncating.
[  Networking      ]: CEntitySystem::BuildEntityNetworking (parallel build of server) took 159.499 msecs for 686 out of 704 classes
[  Server        ]: SV: parsing 'scripts/items/items_game.txt' took 709.752 msec
[  General       ]: ReadSteamRemoteStorageFile( bufOut, "cfg/dotakeys_personal.lst" ) -> 0.000315 seconds
[  Workshop       ]: Requesting page 1 of items
[  Workshop       ]: Requesting page 1 of items
[  Networking      ]: CEntitySystem::BuildEntityNetworking (parallel build of client) took 172.707 msecs for 693 out of 713 classes
[  Client        ]: CL: parsing 'scripts/items/items_game.txt' took 920.042 msec
[  General       ]: ReadSteamRemoteStorageFile( bufOut, "cfg/dota_player_loadout_shuffle.txt" ) -> 0.000272 seconds
[  General       ]: Telling Steam it is safe to udpate the app
[ W MaterialSystem    ]: Texture g_tNoise doesn't exist in materials/deferred_lights/ssao_strong.vmat!
[ W MaterialSystem    ]: Texture g_tNoise doesn't exist in materials/deferred_lights/ssao_med.vmat!
[ W InputService     ]: config file 'cfg/game_convars.vcfg' is overriding an archived convar 'snd_ducktovolume' with value '1'. User will not be able to change this value!
[  EngineServiceManager ]: SwitchToLoop levelload requested: id [1] addons []
[  Console       ]: 4 CPUs, Frequency: 3.2 Ghz, Features: GenuineIntel SSE SSE2 SSE4.1 SSE4.2 AVX MMX RDTSC CMOV FCMOV 
[  General       ]: ChangeGameUIState: DOTA_GAME_UI_STATE_INVALID -> DOTA_GAME_UI_STATE_LOADING_SCREEN
[  General       ]: ChangeGameUIState: DOTA_GAME_UI_STATE_LOADING_SCREEN -> DOTA_GAME_UI_STATE_LOADING_SCREEN
[  Panorama       ]: CSource2Surface::BCreateDeviceResources()
[  Panorama       ]: CSource2Surface::BCreateDeviceResources()
[  General       ]: ReadSteamRemoteStorageFile( bufOut, "scripts/lobby_settings.txt" ) -> 0.000560 seconds
[  General       ]: ReadSteamRemoteStorageFile( bufOut, "scripts/dota_acknowledged_violators.txt" ) -> 0.000199 seconds
[  Panorama       ]: CSource2Surface::BCreateDeviceResources()
[  HostStateManager   ]: Idle (levelload)
[  General       ]: ReadSteamRemoteStorageFile( bufOut, "cfg/chat.cfg" ) -> 0.000196 seconds
[  Developer      ]: Trying to send message type 7009 (Unknown MsgType - Not Found) before GC connection established. This is guaranteed to fail.
[  Developer      ]: Trying to send message type 7009 (Unknown MsgType - Not Found) before GC connection established. This is guaranteed to fail.
[  Developer      ]: Trying to send message type 7009 (Unknown MsgType - Not Found) before GC connection established. This is guaranteed to fail.
[  Developer      ]: Trying to send message type 7009 (Unknown MsgType - Not Found) before GC connection established. This is guaranteed to fail.
[  General       ]: DispatchAsyncEvent backlog, failed to dispatch all this frame. Queue depth: 167 (1799 input number was)
[ W General       ]: Allocating new transform texture!
[  SplitScreen     ]: Writing configuration for slot 0
[  Workshop       ]: Requesting page 2 of items
[  Client        ]: CL: CLoopModeLevelLoad::OnClientFrameSimulate switching to "game" loopmode with addons: 
[  EngineServiceManager ]: SwitchToLoop game requested: id [1] addons []
[  SteamDatagramClient ]: Loaded default network config file. Loaded revision 37 OK
[  SteamDatagramClient ]: Loaded cached network config file. Data contains revision 37, not newer than current revision 37; ignoring.
[  Server        ]: SV: maxplayers set to 1
[  General       ]: Initializing script VM...
[  General       ]: ...done
[  SteamDatagramClient ]: Network configuration revision changed 0 -> 37
[  SteamDatagramClient ]: Got network config from CDN. Data contains revision 37, not newer than current revision 37; ignoring.
[ W ResourceSystem    ]: File error loading resource header "models/controllers/vr_controller.vmdl_c" (Error: ERROR_FILEOPEN)
[  Server        ]: SV: Spawn Server: <empty>
[  Client        ]: CL: CWaitForGameServerStartupPrerequisite done waiting for server
[  Client        ]: CL: CCreateGameClientJob creating client connection to 'loopback'
[  Client        ]: CL: Sending connect to loopback
[  Server        ]: SV: Sending S2C_CHALLENGE [3640903572 auth 2] to loopback
[  Client        ]: CL: Received S2C_CHALLENGE [3640903572 auth 2] from loopback
[  Client        ]: CL: Sending C2S_CONNECT [44 protocol 3640903572 auth 2] to loopback
[  Server        ]: SV: Receiving C2S_CONNECT [protocol 44 3640903572 auth 2] from loopback
[  Server        ]: SV: Sending S2C_CONNECTION to loopback [addons:'']
[  Server        ]: SV: Sending S2C_CONNECTION to loopback [addons:'']
[  Client        ]: CL: Received S2C_CONNECTION from loopback [addons:'']
[  Client        ]: CL: Connected to 'loopback'
[  Server        ]: SV: Sending server info to client '«EnDrónist» ҉҈҉' at loopback
[  Server        ]: SV: WriteInitialSpawnGroups sending 1 groups
[  Client        ]: Game: "Dota 2"
[  Client        ]: Map: "<empty>"
[  Client        ]: Players: 1 (0 bots) / 1 humans
[  Client        ]: Build: 7090 (revision 3419599)
[  Client        ]: Server Number: 1
[  SignonState     ]: CL: CNetworkGameClient::ProcessServerInfo
[  General       ]: Initializing script VM...
[  General       ]: ...done
[  General       ]: ReadSteamRemoteStorageFile( bufOut, "voice_ban.dt" ) -> 0.000209 seconds
[  Client        ]: CL: CGameClientConnectPrerequisite connection succeeded
[  General       ]: ChangeGameUIState: DOTA_GAME_UI_STATE_LOADING_SCREEN -> DOTA_GAME_UI_STATE_DASHBOARD
[  Server        ]: SV: IGameSystem::LoopActivateAllSystems
[  Host         ]: HO: IGameSystem::LoopActivateAllSystems
[  Server        ]: SV: Game started
[  Client        ]: CL: IGameSystem::LoopActivateAllSystems
[ W Client        ]: Failed to load grid nav data, file 'maps/<empty>.gnv' not found!
[  General       ]: ReadSteamRemoteStorageFile( bufOut, "scripts/control_groups.txt" ) -> 0.000174 seconds
[  SignonState     ]: CL: CNetworkGameClient::OnSwitchLoopModeFinished( game : success )
[  Server        ]: SV: Sending full update to client «EnDrónist» ҉҈҉ (reason: initial update)
[ W Server        ]: ShouldClientReceiveStringTableUserData called with NULL GameRules() on table userinfo, string 0
[  Client        ]: CL: Receiving uncompressed update from server
[  Client        ]: CL: Signon traffic "client": incoming 34.353 KB [7 pkts], outgoing 1.168 KB [6 pkts]
[ W Physics       ]: CL: CPhysicsGameSystem::UnloadSpawnGroupPhysics(scenes/play_searching) no such group
[ W Physics       ]: CL: CPhysicsGameSystem::UnloadSpawnGroupPhysics(scenes/find_match_status) no such group
[ W Physics       ]: CL: CPhysicsGameSystem::UnloadSpawnGroupPhysics(scenes/ui_tier_max) no such group
[ W Physics       ]: CL: CPhysicsGameSystem::UnloadSpawnGroupPhysics(scenes/campaign_winter2016_header) no such group
[ W Physics       ]: CL: CPhysicsGameSystem::UnloadSpawnGroupPhysics(scenes/home_button) no such group
[  Developer      ]: In logon queue; waiting for GC to confirm connection.
[  Developer      ]: Received client welcome from GC.
[  General       ]: Received weekend tourney schedule.
[  General       ]: ReadSteamRemoteStorageFile( bufOut, "cfg/dota_player_scratchpad.txt" ) -> 0.000375 seconds
[  General       ]: ReadSteamRemoteStorageFile( bufOut, "scripts/clientstorage.txt" ) -> 0.000267 seconds
[ W General       ]: CDOTA_UI_UGCImage::Steam_OnUGCDownload GetUGCDetails failed? (0 nFileSizeInBytes=0).
[  General       ]: Ping measurement complete.
[  General       ]: Considering doing popup for audit action 0
[  General       ]: Sending ad-hoc CMsgClientPingData to GC.
[  General       ]: Sending ad-hoc CMsgClientPingData to GC.
[ W General       ]: Allocating new transform texture!
[  Hammer        ]: Begin loading file: c:\program files (x86)\steam\steamapps\common\dota 2 beta\content\dota_addons\test1\maps\untitled_1.vmap
[ W InputBindSystem   ]: Attempting to register the command MoveCameraForward3D for context Camera multiple times
[ W InputBindSystem   ]: Attempting to register the command MoveCameraLeft3D for context Camera multiple times
[ W InputBindSystem   ]: Attempting to register the command MoveCameraBackward3D for context Camera multiple times
[ W InputBindSystem   ]: Attempting to register the command MoveCameraRight3D for context Camera multiple times
[ W InputBindSystem   ]: Attempting to register the command MoveCameraUp3D for context Camera multiple times
[ W InputBindSystem   ]: Attempting to register the command MoveCameraDown3D for context Camera multiple times
[ W InputBindSystem   ]: Attempting to register the command MouseControlCamera2D for context Camera multiple times
[ W InputBindSystem   ]: Attempting to register the command MouseControlCamera3D for context Camera multiple times
[ W InputBindSystem   ]: Attempting to register the command MouseControlCamera3D_Toggle for context Camera multiple times
[ W InputBindSystem   ]: Attempting to register the command HorizontalStrafeCamera for context Camera multiple times
[ W InputBindSystem   ]: Attempting to register the command VerticalStrafeCamera for context Camera multiple times
[ W InputBindSystem   ]: Attempting to register the command ZoomCameraIn for context Camera multiple times
[ W InputBindSystem   ]: Attempting to register the command ZoomCameraOut for context Camera multiple times
[ W InputBindSystem   ]: Attempting to register the command ZoomAllCamerasIn for context Camera multiple times
[ W InputBindSystem   ]: Attempting to register the command ZoomAllCamerasOut for context Camera multiple times
[ W InputBindSystem   ]: Attempting to register the command ToggleLockCameraHeight for context Camera multiple times
[ W InputBindSystem   ]: Attempting to register the command ZoomForwardBack2D for context Camera multiple times
[ W InputBindSystem   ]: Attempting to register the command ZoomForwardBack3D for context Camera multiple times
[ W InputBindSystem   ]: Attempting to register the command PlanarStrafe3D for context Camera multiple times
[ W InputBindSystem   ]: Attempting to register the command RotateAboutTarget3D for context Camera multiple times
[ W InputBindSystem   ]: Attempting to register the command MouseLook3D for context Camera multiple times
[ W InputBindSystem   ]: Attempting to register the command SnapCameraToSelection for context Camera multiple times
[ W InputBindSystem   ]: Attempting to register the command MouseControlCamera2D for context Camera multiple times
[ W InputBindSystem   ]: Attempting to register the command ToggleLights for context LightingControl multiple times
[ W InputBindSystem   ]: Attempting to register the command RotateLights for context LightingControl multiple times
[ W InputBindSystem   ]: Attempting to register the command ReloadLightRigDefinitions for context LightingControl multiple times
[  Hammer        ]: Completed loading file: c:\program files (x86)\steam\steamapps\common\dota 2 beta\content\dota_addons\test1\maps\untitled_1.vmap (3.6s)
[ W General       ]: Warning: Fell out of small block heap!
[ W General       ]: Allocating new transform texture!
[  Console       ]: Loading custom game "test1" with map "untitled_1"
[  EngineServiceManager ]: SwitchToLoop levelload requested: id [2] addons [test1]
[  Client        ]: CL: IGameSystem::LoopDeactivateAllSystems
[  General       ]: WriteSteamRemoteStorageFileAsync( "scripts/control_groups.txt" ) -> at 385.508
[  Client        ]: CL: Disconnecting from server: #GameUI_Disconnect_LoopDeactivate
[ W Physics       ]: CL: CPhysicsGameSystem::UnloadSpawnGroupPhysics(scenes/home_button) no such group
[ W Physics       ]: CL: CPhysicsGameSystem::UnloadSpawnGroupPhysics(scenes/play_searching) no such group
[ W Physics       ]: CL: CPhysicsGameSystem::UnloadSpawnGroupPhysics(scenes/find_match_status) no such group
[ W Physics       ]: CL: CPhysicsGameSystem::UnloadSpawnGroupPhysics(scenes/ui_tier_max) no such group
[ W Physics       ]: CL: CPhysicsGameSystem::UnloadSpawnGroupPhysics(scenes/campaign_winter2016_header) no such group
[ W Physics       ]: CL: CPhysicsGameSystem::UnloadSpawnGroupPhysics(backgrounds/dashboard_parallax_test) no such group
[  Server        ]: SV: IGameSystem::LoopDeactivateAllSystems
[  Host         ]: HO: IGameSystem::LoopDeactivateAllSystems
[  Server        ]: SV: Disconnect client '«EnDrónist» ҉҈҉' from server(1): NETWORK_DISCONNECT_SHUTDOWN
[  General       ]: WriteSteamRemoteStorageFileAsync( "voice_ban.dt" ) -> at 385.656
[  EngineServiceManager ]: Mounting addon 'test1'
[ W General       ]: Failed to load image for cursor from resource\cursor\valve\ti5\cursor_inivisible.bmp: Couldn't open resource\cursor\valve\ti5\cursor_inivisible.bmp
[  General       ]: ChangeGameUIState: DOTA_GAME_UI_STATE_DASHBOARD -> DOTA_GAME_UI_STATE_LOADING_SCREEN
[  General       ]: CAsyncWriteInProgress::OnComplete( "scripts/control_groups.txt" ) -> Success at 385.865
[  General       ]: CAsyncWriteInProgress::OnComplete( "voice_ban.dt" ) -> Success at 385.865
[  Client        ]: CL: CLoopModeLevelLoad::OnClientFrameSimulate switching to "game" loopmode with addons: test1
[  EngineServiceManager ]: SwitchToLoop game requested: id [2] addons [test1]
[ W General       ]: Cannot open to calculate addon CRC!
[  Networking      ]: Network socket 'server' opened on port 27015
[  Server        ]: SV: maxplayers set to 64
[ W General       ]: KeyValues Error: RecursiveLoadFromBuffer: got EOF instead of keyname in file scripts/npc/npc_items_custom.txt
[ W General       ]: DOTAAbilities, item_radiance_2, AbilitySpecial, (*item_radiance_2_inactive_datadriven*), (*AbilitySpecial*), (*Modifiers*), (*modifier_item_radiance_2_inactive_datadriven*), (*Properties*), 
[ W General       ]: KeyValues Error: RecursiveLoadFromBuffer: got EOF instead of keyname in file scripts/npc/npc_items_custom.txt
[ W General       ]: DOTAAbilities, item_radiance_2, (*AbilitySpecial*), (*item_radiance_2_inactive_datadriven*), (*AbilitySpecial*), (*Modifiers*), (*modifier_item_radiance_2_inactive_datadriven*), (*Properties*), 
[ W General       ]: KeyValues Error: RecursiveLoadFromBuffer: got EOF instead of keyname in file scripts/npc/npc_items_custom.txt
[ W General       ]: DOTAAbilities, (*item_radiance_2*), (*AbilitySpecial*), (*item_radiance_2_inactive_datadriven*), (*AbilitySpecial*), (*Modifiers*), (*modifier_item_radiance_2_inactive_datadriven*), (*Properties*), 
[ W General       ]: ILocalize::AddFile() failed to load file "resource/addon_russian.txt".
[  General       ]: Initializing script VM...
[  General       ]: ...done
[  Server        ]: SV: Executing listen server config file
[  General       ]: S:Gamerules: entering state 'DOTA_GAMERULES_STATE_INIT'
[  Server        ]: SV: CGameRulesGameSystem::GameInit installed game rules
[ W InputService     ]: exec: couldn't exec listenserver.cfg
[ W ResourceSystem    ]: File error loading resource header "models/controllers/vr_controller.vmdl_c" (Error: ERROR_FILEOPEN)
[ W General       ]: UnserializeDMX: Unable to open file "0"
[ W General       ]: UnserializeDMX: Unable to open file "0"
[ W General       ]: ERROR: CParticleSnapshot::Unserialize - could not load file 0!
[ W ResourceSystem    ]: File error loading resource header "particles/econ/events/fall_major_2015/compendium_points_fall_ambient_2015_magic.vpcf_c" (Error: ERROR_FILEOPEN)
[  Server        ]: SV: Spawn Server: untitled_1
[  Server        ]: SV: Connection to Steam servers successful.
[  Server        ]: SV: VAC secure mode is activated.
[ W ResourceSystem    ]: File error loading resource header "materials/effects/fog_world_00.vtex_c" (Error: ERROR_FILEOPEN)
[ W ResourceSystem    ]: File error loading resource header "materials/effects/fow_clouds_00.vtex_c" (Error: ERROR_FILEOPEN)
[  Client        ]: CL: CWaitForGameServerStartupPrerequisite done waiting for server
[  Client        ]: CL: CCreateGameClientJob creating client connection to 'loopback'
[  Client        ]: CL: Sending connect to loopback
[  Server        ]: SV: Sending S2C_CHALLENGE [2980266957 auth 3] to loopback
[  Client        ]: CL: Received S2C_CHALLENGE [2980266957 auth 3] from loopback
[  Client        ]: CL: Sending C2S_CONNECT [44 protocol 2980266957 auth 3] to loopback
[  Server        ]: SV: Receiving C2S_CONNECT [protocol 44 2980266957 auth 3] from loopback
[  Server        ]: SV: Sending S2C_CONNECTION to loopback [addons:'test1']
[  Server        ]: SV: Sending S2C_CONNECTION to loopback [addons:'test1']
[  Client        ]: CL: Received S2C_CONNECTION from loopback [addons:'test1']
[  Client        ]: CL: Connected to 'loopback'
[  Server        ]: SV: Sending server info to client '«EnDrónist» ҉҈҉' at loopback
[  Server        ]: SV: WriteInitialSpawnGroups sending 1 groups
[  Client        ]: Game: "Dota 2"
[  Client        ]: Map: "untitled_1"
[  Client        ]: Players: 1 (0 bots) / 64 humans
[  Client        ]: Build: 7090 (revision 3419599)
[  Client        ]: Server Number: 2
[  SignonState     ]: CL: CNetworkGameClient::ProcessServerInfo
[ W General       ]: ILocalize::AddFile() failed to load file "resource/addon_russian.txt".
[  General       ]: Initializing script VM...
[  General       ]: ...done
[  General       ]: C:Gamerules: entering state 'DOTA_GAMERULES_STATE_INIT'
[  Client        ]: CL: CGameRulesGameSystem::GameInit installed game rules
[ W General       ]: KeyValues Error: RecursiveLoadFromBuffer: got NULL key in file scripts/shops/untitled_1_shops.txt
[ W General       ]: test1_shops, secretshop, 
[ W General       ]: KeyValues Error: RecursiveLoadFromBuffer: got EOF instead of keyname in file scripts/shops/untitled_1_shops.txt
[ W General       ]: test1_shops, (*secretshop*), 
[  General       ]: Loading custom UI:
[  General       ]: ReadSteamRemoteStorageFile( bufOut, "voice_ban.dt" ) -> 0.000227 seconds
[  Developer      ]: Received server welcome from GC.
[  General       ]: GC Connection established for server version 1391
[  Client        ]: CL: CGameClientConnectPrerequisite connection succeeded
[  General       ]: ChangeGameUIState: DOTA_GAME_UI_STATE_LOADING_SCREEN -> DOTA_GAME_UI_DOTA_INGAME
[  Server        ]: SV: IGameSystem::LoopActivateAllSystems
[  Host         ]: HO: IGameSystem::LoopActivateAllSystems
[  General       ]: Grid nav allocation size: 786432
[  VScript       ]: Template addon is loaded.
[  Server        ]: SV: 64 player server started
[  Server        ]: SV: addon='test1'
[  Client        ]: CL: IGameSystem::LoopActivateAllSystems
[  General       ]: ReadSteamRemoteStorageFile( bufOut, "scripts/control_groups.txt" ) -> 0.000152 seconds
[ W General       ]: Failed to load image for cursor from resource\cursor\valve\ti5\cursor_inivisible.bmp: Couldn't open resource\cursor\valve\ti5\cursor_inivisible.bmp
[  HostStateManager   ]: Changelevel (untitled_1)
[  SignonState     ]: CL: CNetworkGameClient::OnSwitchLoopModeFinished( game : success )
[  General       ]: ChangeGameUIState: DOTA_GAME_UI_DOTA_INGAME -> DOTA_GAME_UI_DOTA_INGAME
[ W General       ]: EntSelectSpawnPoint: no info_player_start on level
[  Server        ]: SV: "«EnDrónist» ҉҈҉<1><[U:1:135239236]><>" STEAM USERID validated
[  Server        ]: SV: Sending full update to client «EnDrónist» ҉҈҉ (reason: initial update)
[  Client        ]: CL: Receiving uncompressed update from server
[  Client        ]: CL: Signon traffic "client": incoming 78.581 KB [10 pkts], outgoing 1.414 KB [11 pkts]
[ W General       ]: CDOTA_SF_HTML disabled in Source 2
[  General       ]: customgamesetup_select_team - can only change team during setup phase
[  Server        ]: CDOTA_PlayerResource: Adding player SteamID 76561198095504964 to slot 0 FakeClient=0 preferred slot = -1
[  Server        ]: PR:OnFullyJoinedServer 0:[U:1:135239236]
[  Server        ]: PR:SetLeaverStatus 0:[U:1:135239236] DOTA_LEAVER_NONE
[  Server        ]: PR:SetConnectionState 0:[U:1:135239236] DOTA_CONNECTION_STATE_CONNECTED NETWORK_DISCONNECT_INVALID
[  Server        ]: Requesting account 135239236 resources without rank.
[  General       ]: S:Gamerules: entering state 'DOTA_GAMERULES_STATE_CUSTOM_GAME_SETUP'
[  General       ]: C:Gamerules: entering state 'DOTA_GAMERULES_STATE_CUSTOM_GAME_SETUP'
[  General       ]: ChangeGameUIState: DOTA_GAME_UI_DOTA_INGAME -> DOTA_GAME_UI_DOTA_INGAME
[  General       ]: ChangeGameUIState: DOTA_GAME_UI_DOTA_INGAME -> DOTA_GAME_UI_DOTA_INGAME
[  Server        ]: CGCJobRequestBatchPlayerResourcesResponse: Received 1 account resources.
[  Server        ]: PR:SetTextChatBanned 0:[U:1:135239236] false
[  Server        ]: PR:SetVoiceChatBanned 0:[U:1:135239236] false
[  Server        ]: PR:SetLowPriority 0:[U:1:135239236] false
[  General       ]: S:Gamerules: entering state 'DOTA_GAMERULES_STATE_HERO_SELECTION'
[  General       ]: C:Gamerules: entering state 'DOTA_GAMERULES_STATE_HERO_SELECTION'
[  Server        ]: PR:SetPossibleHeroSelection 0:[U:1:135239236] npc_dota_hero_abaddon(102)
[  Server        ]: PR:SetPlayerReservedState 0:[U:1:135239236] true
[  Server        ]: PR:SetSelectedHero 0:[U:1:135239236] npc_dota_hero_abaddon(102)
[  Server        ]: PR:SetSelectedHero 0:[U:1:135239236] npc_dota_hero_abaddon(102)
[  Developer      ]: CLocalize::FindSafe failed to localize: #DOTA_Item_Desc_Copy_of_Weather_Rain
[  Developer      ]: CLocalize::FindSafe failed to localize: #LoadoutSlot_team_showcase
[  Server        ]: PR:SetPlayerReservedState 0:[U:1:135239236] false
[  General       ]: S:Gamerules: entering state 'DOTA_GAMERULES_STATE_STRATEGY_TIME'
[  General       ]: C:Gamerules: entering state 'DOTA_GAMERULES_STATE_STRATEGY_TIME'
[  General       ]: S:Gamerules: entering state 'DOTA_GAMERULES_STATE_PRE_GAME'
[  General       ]: m_flPreGameStartTime set to 14.70
[  General       ]: m_flStateTransitionTime set to 104.70
[  General       ]: C:Gamerules: entering state 'DOTA_GAMERULES_STATE_PRE_GAME'
[  Server        ]: PR:SetPlayerReservedState 0:[U:1:135239236] false
[  Server        ]: PR:SetSelectedHero 0:[U:1:135239236] npc_dota_hero_abaddon(102)
[  VConComm       ]: ==============================================================
[  VConComm       ]: =============== End VConsole Buffered Messages ===============
[  VConComm       ]: ==============================================================
 
Последнее редактирование модератором:
Отформатируй консоль под Vscripts.

Пока беглым взглядом вижу только

RecursiveLoadFromBuffer: got EOF instead of keyname in file scripts/npc/npc_items_custom.txt

Кроме того, ты код сам писал? Ничего не буду говорить о его логике... Но в 10й строчке:

keys.caster:AddItem(CreateItem("item_dummy", keys.caster, keys.caster))

Что за item_dummy? Я подозреваю, что должно быть item_dummy_datadriven
 
Последнее редактирование модератором:
Отформатируй консоль под Vscripts.

Пока беглым взглядом вижу только

RecursiveLoadFromBuffer: got EOF instead of keyname in file scripts/npc/npc_items_custom.txt

Кроме того, ты код сам писал? Ничего не буду говорить о его логике... Но в 10й строчке:

keys.caster:AddItem(CreateItem("item_dummy", keys.caster, keys.caster))

Что за item_dummy? Я подозреваю, что должно быть item_dummy_datadriven
Писал не я, исправить на +_datadriven ?
 
Последнее редактирование модератором:
Я бы тебе посоветовал сначала удалить эту фигню. Сделать так, чтобы мод запускался без ошибок. А затем забросить в него вещь пустышку.

А так да, сделать item_dummy_datadriven и дальше копаться в чужом дерьме.
 
Я бы тебе посоветовал сначала на**** удалить эту фигню. Сделать так, чтобы мод запускался без ошибок. А затем забросить в него вещь пустышку.

А так да, сделать item_dummy_datadriven и дальше копаться в чужом дерьме.
Я так понял, с Радиками мне лучше больше не связываться?
 
Последнее редактирование модератором:
Можешь связаться, только не в стиле цезаря: разберись сначала с одной проблемой.

И вот как консоль отформатировать.
 
mTuVsN2.png

При этом Радик не появляется в магазине (И вообще его скрафтить или выдать при помощи команды нельзя).
Ладно, теперь последнее, что мне нужно - это как поставить нормальное описание со всеми характеристиками и иконку в описании, причём про это (в коде) я знаю
Код:
"lang"
{
	"Language"		"English"
	"Tokens"
	{		
		"addon_game_name"					"Defenders of Abundance"
		"DOTA_Tooltip_Ability_item_radiance_datadriven"  		"Radiance 2"
		"DOTA_Tooltip_Ability_item_radiance_datadriven_Description"  	"A divine weapon that causes damage and a bright burning effect that lays waste to nearby enemies."
		"DOTA_Tooltip_Ability_item_radiance_datadriven_Note0"  	"Each upgrade gives +10 damage, +15 to gradual damage and +2% evasion chance"
		"DOTA_Tooltip_Ability_item_radiance_2_datadriven"  		"Radiance 3"
		"DOTA_Tooltip_Ability_item_radiance_2_datadriven_Description"  "A divine weapon that causes damage and a bright burning effect that lays waste to nearby enemies."
		"DOTA_Tooltip_Ability_item_radiance_2_datadriven_Note0"  	"Each upgrade gives +10 damage, +15 to gradual damage and +2% evasion chance"
	}
}
 
Последнее редактирование модератором:
Я не понял твое последнее сообщение: там есть где-то какой-то вопрос или это ты просто мыслил вслух?)

Обычный радик пропал?
 
Это вопрос, только вот вопросительный знак не вписывается перед запятой. | Радик не пропал простой, пропали все новые (мной добавленные) вещи, т.е. Радик 2-го уровня и Кларити 2-го уровня
 
А что ты сделал?
Кларити второго уровня)
Осталось везде ему дать нормальную картинку (И в магазе, и в инвентаре, и при наведении и описание, как у нормального предмета.
 
Последнее редактирование модератором:
Ну про картинку тебе уже говорили, например:
Код:
"AbilityTextureName"			"lost_cube"
lost_cube - это файл lost_cube.png, который лежит в папке MyAddon\resource\flash3\images\items

Имя картинки и имя предмета должны совпадать, т.е. в моем случае предмет имеет имя "item_lost_cube".

А описание ты знаешь где, и делается так:

Код:
		"DOTA_Tooltip_Ability_item_lost_cube"							"Lost Cube"
		"DOTA_Tooltip_Ability_item_lost_cube_Description"				"By activating this stone, you move into the lair of the Kundun on, killing whom, you do away with the universal evil."
 
Последнее редактирование модератором:
[quote author=Илья link=topic=859.msg3918#msg3918 date=1461939731]
Ну про картинку тебе уже говорили, например:
Код:
"AbilityTextureName"			"lost_cube"
lost_cube - это файл lost_cube.png, который лежит в папке MyAddon\resource\flash3\images\items

Имя картинки и имя предмета должны совпадать, т.е. в моем случае предмет имеет имя "item_lost_cube".

А описание ты знаешь где, и делается так:

Код:
		"DOTA_Tooltip_Ability_item_lost_cube"							"Lost Cube"
		"DOTA_Tooltip_Ability_item_lost_cube_Description"				"By activating this stone, you move into the lair of the Kundun on, killing whom, you do away with the universal evil."
[/quote]
Спасибо, помогло
aR2yYmX.png

1. Но как сделать теперь эти числа жёлтым цветом? (И вообще дать им позицию, как в нормальном описании)
Код:
"item_clarity_2"
{
		// General
		//-------------------------------------------------------------------------------------------------------------
		"BaseClass"						"item_datadriven"
		"ID"							"1038" //Valve's version of this item uses the ID "38".
		"AbilityBehavior"				"DOTA_ABILITY_BEHAVIOR_UNIT_TARGET | DOTA_ABILITY_BEHAVIOR_IMMEDIATE | DOTA_ABILITY_BEHAVIOR_DONT_RESUME_ATTACK"
		"AbilityUnitTargetTeam"			"DOTA_UNIT_TARGET_TEAM_FRIENDLY"
		"AbilityUnitTargetType"			"DOTA_UNIT_TARGET_HERO"
		"Model"							"models/props_gameplay/clarity.mdl"	
		"Effect"						"particles/generic_gameplay/dropped_item.vpcf"
		"AbilityTextureName"			"clarity_2"
		
		// Stats		
		//-------------------------------------------------------------------------------------------------------------
		"AbilityCastPoint"       "0"
		"AbilityCooldown"				"30"
		"AbilityManaCost"				"0"
		"AbilityCastRange"				"100"
		
		// Item Info
		//-------------------------------------------------------------------------------------------------------------
		"ItemCost"						"50"
		"ItemShopTags"					"consumable"
		"ItemQuality"					"consumable"
		"ItemAliases"					"clarity"
		"ItemStackable"					"1"
		"ItemPermanent"					"0"
		"ItemInitialCharges"			"1"
		
		"AbilitySpecial"
		{
			"01"
			{
				"var_type"				"FIELD_INTEGER"
				"buff_duration"			"80"
			}
			"02"
			{
				"var_type"				"FIELD_INTEGER"
				"total_mana_regen"		"400"
			}
			"03"
			{
				"var_type"				"FIELD_FLOAT"
				"mana_per_second"		"5.0"
			}
		}
		
		"OnSpellStart"
		{			
			"ApplyModifier"
			{
				"Target"			"TARGET"
				"ModifierName"		"modifier_item_clarity_2_active"
			}
			"RemoveModifier"
			{
				"Target"			"TARGET"
				"ModifierName"		"modifier_item_clarity_active"
			}
			"FireSound"
			{
				"EffectName"		"DOTA_Item.ClarityPotion.Activate"
				"Target"			"TARGET"
			}
			"SpendCharge"
			{}
		}
		
		"Modifiers"
		{
			"modifier_item_clarity_2_active"
			{
				"Duration"       	"%buff_duration"
				"Passive"					"0"
				"IsHidden"					"0"
				"IsBuff"					"1"
				"IsDebuff"					"0"
				"IsPurgable"				"1"
				"EffectName"      	"particles/items_fx/healing_clarity.vpcf"
				"EffectAttachType"   	"follow_origin"
						
				"Properties"
				{
					"MODIFIER_PROPERTY_MANA_REGEN_CONSTANT"	"%mana_per_second"
				}
				
				"OnTakeDamage"
				{
					"RemoveModifier"
					{
						"Target"			"UNIT"
						"ModifierName"		"modifier_item_clarity_2_active"
					}
				}
			}
		}
}
2. Как удалить модификатор основного кларити при активации кларити_2 ?
Так не получилось:
Код:
			"ApplyModifier"
			{
				"Target"			"TARGET"
				"ModifierName"		"modifier_item_clarity_2_active"
			}
			"RemoveModifier"
			{
				"Target"			"TARGET"
				"ModifierName"		"modifier_item_clarity_active"
			}
3. И нет, модифер не дал себе иконку предмета.
P9KltJX.png
 
Последнее редактирование модератором:
7GnyaDO.png

Получилось дать описание модифаеру, но не изображение.
 
Реклама: