Для новичков - FAQ и обсуждение

Илья

Друзья CG
25 Сен 2015
2,348
40
[quote author=zombijaic link=topic=2.msg1931#msg1931 date=1446050020]
почему не запускается тест ?
(http://s020.radikal.ru/i706/1510/3c/d75619cd8ade.png)

не обращайте внимание что у меня второй уровень :/
мой старый аккаунт взломали
[/quote]


Запусти консоль вот тут

0Rf1zJg.png


И скинь ее содержимое.
 

Ares

Пользователь
22 Окт 2015
25
0
Учусь писать скрипты, сейчас на 2 гайде человека с ником doter_ua

так вот, там делается динамичный спавн(как он его назвал), и у меня кое-что не получается
Код:
function makeSpawn()
	local spawnType = {"npc_dota_neutral_kobold", "npc_dota_neutral_polar_furbolg_champion", "npc_dota_neutral_centaur_khan"}
	local Vectors = {"-3270.22,1978.74,258.516", "-3334.22,1850.74,258.516", "-3206.22,1786.74,258.516)"}
	units = {nil, nil, nil}		
  spawnIndex = {nil, nil, nil}  
  abc = 1
  for count = 1, MAX_SPAWN_COUNT do
   	units[count] = CreateUnitByName(spawnType[spawnLevel], Vector(Vectors[abc]), false, nil, nil, DOTA_TEAM_NEUTRALS)
  	spawnIndex[count] = units[count]:GetEntityIndex()
  	    print('---------NEW SPAWN CREATED-------------------')
  	    abc = abc + 1
  end
  spawnCount = MAX_SPAWN_COUNT
  abc = 1	
end

[ Developer ]: ...addons\capturemode1\scripts\vscripts\addon_game_mode.lua:100: bad argument #1 to 'Vector' (number expected, got string)
[ Developer ]: [C]: in function 'Vector'
[ Developer ]: ...addons\capturemode1\scripts\vscripts\addon_game_mode.lua:100: in function 'makeSpawn'

Как можно заметить, у меня вектор задан в массиве
и именно с этим проблемы, почему-то не хочет работать именно из-за вектора, что я неправильно написал?

Если я в скобках пишу координаты вручную, а не указываю массив, то все работает.
 
Последнее редактирование модератором:

Илья

Друзья CG
25 Сен 2015
2,348
40
[quote author=Ares link=topic=2.msg1934#msg1934 date=1446051840]

[ Developer ]: ...addons\capturemode1\scripts\vscripts\addon_game_mode.lua:100: bad argument #1 to 'Vector' (number expected, got string)
[ Developer ]: [C]: in function 'Vector'
[ Developer ]: ...addons\capturemode1\scripts\vscripts\addon_game_mode.lua:100: in function 'makeSpawn'

Как можно заметить, у меня вектор задан в массиве
и именно с этим проблемы, почему-то не хочет работать именно из-за вектора, что я неправильно написал?

Если я в скобках пишу координаты вручную, а не указываю массив, то все работает.
[/quote]

Молодец, теперь учись читать "консоль":
bad argument #1 to 'Vector' (number expected, got string)
Тебе говорят, что первый аргумент, который ты пихаешь в вектор, должен быть цифровым, а не строчным:
(number expected, got string) - ожидается number, а получаем string
 
Последнее редактирование модератором:

Ares

Пользователь
22 Окт 2015
25
0
Не совсем понял(
То есть нужно, чтобы вектор получал одно число, а я ему сую по сути строку с тремя числами?
А как записать тогда?
 

Илья

Друзья CG
25 Сен 2015
2,348
40
Не совсем понял(
То есть нужно, чтобы вектор получал одно число, а я ему сую по сути строку с тремя числами?
А как записать тогда?

Скинь ссылку на источник, откуда берешь инфу, я гляну, что там написано. С векторами не работал, но думаю, без кавычек надо.
 
Последнее редактирование модератором:

CryDeS

Друзья CG
14 Июл 2015
1,210
9
Не совсем понял(
То есть нужно, чтобы вектор получал одно число, а я ему сую по сути строку с тремя числами?
А как записать тогда?
Ты хранишь строку, то есть набор символов, а не число. Заведи массив векторов из 3 чисел, вроде
Код:
local array = {}
for i = 1, n do
table.insert(array, Vector(x, y ,z) )
end
 
Последнее редактирование модератором:

Ares

Пользователь
22 Окт 2015
25
0
Код:
function makeSpawn()
	local spawnType = {"npc_dota_neutral_kobold", "npc_dota_neutral_polar_furbolg_champion", "npc_dota_neutral_centaur_khan"}
 local Vectors1 = {"-3270.22", "-3334.22", "-3206.22"}
 local Vectors2 = {"1978.74", "1850.74", "1786.74"}
 local Vectors3 = {"258.516", "258.516", "258.516"}
	units = {nil, nil, nil}		
  spawnIndex = {nil, nil, nil}  
  abc = 1
  for count = 1, MAX_SPAWN_COUNT do
   	units[count] = CreateUnitByName(spawnType[spawnLevel], Vector(Vectors1[abc], Vectors2[abc], Vectors3[abc]), false, nil, nil, DOTA_TEAM_NEUTRALS)
  	spawnIndex[count] = units[count]:GetEntityIndex()
  	    print('---------NEW SPAWN CREATED-------------------')
  	    abc = abc + 1
  end
  spawnCount = MAX_SPAWN_COUNT
  abc = 1	
end

я додумался сделать только 3 массива, но это тоже заработало
 
Последнее редактирование модератором:

zombijaic

Пользователь
28 Окт 2015
25
0
[quote author=Илья link=topic=2.msg1932#msg1932 date=1446051546]

Запусти консоль вот тут

0Rf1zJg.png


И скинь ее содержимое.
[/quote]

как ?
269d46b70998.png
 

zombijaic

Пользователь
28 Окт 2015
25
0
[quote author=Илья link=topic=2.msg1932#msg1932 date=1446051546]

Запусти консоль вот тут

0Rf1zJg.png


И скинь ее содержимое.
[/quote]
Код:
[ W MaterialSystem    ]: Texture g_tNoise doesn't exist in materials/deferred_lights/ssao_med.vmat!
[ W Vfx         ]: No valid vcs file found for shader gaussian_bloom_blur.vfx
[ W MaterialSystem    ]: 
[ W MaterialSystem    ]: CMaterial2::LoadShadersAndSetupModes(849): Error creating shader gaussian_bloom_blur.vfx for material materials/dev/gaussian_bloom_blur.vmat!
[ W MaterialSystem    ]: 
[ W MaterialSystem    ]: CMaterial2::LoadShadersAndSetupModes(849): Error creating shader gaussian_bloom_blur.vfx for material materials/dev/gaussian_bloom_blur.vmat!
[ W MaterialSystem    ]: 
[ W MaterialSystem    ]: CMaterial2::LoadShadersAndSetupModes(849): Error creating shader gaussian_bloom_blur.vfx for material materials/dev/gaussian_bloom_blur.vmat!
[ W MaterialSystem    ]: 
[ W MaterialSystem    ]: CMaterial2::LoadShadersAndSetupModes(849): Error creating shader gaussian_bloom_blur.vfx for material materials/dev/gaussian_bloom_blur.vmat!
[ W MaterialSystem    ]: 
[ W MaterialSystem    ]: CMaterial2::LoadShadersAndSetupModes(849): Error creating shader gaussian_bloom_blur.vfx for material materials/dev/gaussian_bloom_blur.vmat!
[ W MaterialSystem    ]: 
[ W MaterialSystem    ]: CMaterial2::LoadShadersAndSetupModes(849): Error creating shader gaussian_bloom_blur.vfx for material materials/dev/gaussian_bloom_blur.vmat!
[ W MaterialSystem    ]: 
[ W MaterialSystem    ]: CMaterial2::LoadShadersAndSetupModes(849): Error creating shader gaussian_bloom_blur.vfx for material materials/dev/gaussian_bloom_blur.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       ]: 8 CPUs (4 physical), Frequency: 1.7 Ghz, Features: GenuineIntel SSE SSE2 SSE4.1 SSE4.2 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()
[  Panorama       ]: CSource2Surface::BCreateDeviceResources()
[  Panorama       ]: CSource2Surface::BCreateDeviceResources()
[  HostStateManager   ]: Idle (levelload)
[  General       ]: ReadSteamRemoteStorageFile( bufOut, "cfg/chat.cfg" ) -> 0.000437 seconds
[  Developer      ]: Trying to send message type 7009 (Unknown MsgType - Not Found) before GC connection established. This is guaranteed to fail.
[ W General       ]: Allocating new transform texture!
[  SplitScreen     ]: Writing configuration for slot 0
[  Developer      ]: Attempting to re-establish GC connection.
[  Client        ]: CL: CLoopModeLevelLoad::OnClientFrameSimulate switching to "game" loopmode with addons: 
[  EngineServiceManager ]: SwitchToLoop game requested: id [1] addons []
[  General       ]: name[ 0 ] changing from 'unnamed' to 'zambijaic'
[  SteamDatagramClient ]: Loaded default network config file. Loaded revision 25 OK
[  SteamDatagramClient ]: Loaded cached network config file. Data contains revision 25, not newer than current revision 25; ignoring.
[  Server        ]: SV: maxplayers set to 1
[  SteamDatagramClient ]: Network configuration revision changed 0 -> 25
[  General       ]: Initializing script VM...
[  General       ]: ...done
[  Developer      ]: Unable to load #included script scripts/talker/response_rules_arc_warden.txt
[  Client        ]: CL: Adding Prequisite CWaitForGameServerStartupPrerequisite to sequence for CGameClientConnectPrerequisite
[  Client        ]: CL: Adding Prequisite CCreateGameClientPrerequisite to sequence for CGameClientConnectPrerequisite
[  Client        ]: CL: Adding Prequisite CConnectGameClientPrerequisite to sequence for CGameClientConnectPrerequisite
[  Client        ]: CL: Adding Prequisite CLoadStartupResourcePrerequisite to sequence for CGameClientConnectPrerequisite
[  Client        ]: CL: Adding Prequisite CLoadSpawnGroupsPrerequisite to sequence for CGameClientConnectPrerequisite
[  Client        ]: CL: Adding Prequisite CFinalizeConnectionPrerequisite to sequence for CGameClientConnectPrerequisite
[  Developer      ]: In logon queue; waiting for GC to confirm connection.
[  Developer      ]: In logon queue; waiting for GC to confirm connection.
[  Developer      ]: Received client welcome from GC.
[  General       ]: Failed to load inventory scratchpad information file "cfg/dota_player_scratchpad.txt"!
[  SteamDatagramClient ]: Got network config from CDN. Data contains revision 25, not newer than current revision 25; ignoring.
[  Server        ]: SV: Spawn Server: <empty>
[  Client        ]: CL: CWaitForGameServerStartupPrerequisite done waiting for server
[  Client        ]: CL: PS_SATISFIED CWaitForGameServerStartupPrerequisite in sequence for CGameClientConnectPrerequisite
[  Client        ]: CL: CCreateGameClientJob creating client connection to 'loopback'
[  Client        ]: CL: PS_SATISFIED CCreateGameClientPrerequisite in sequence for CGameClientConnectPrerequisite
[  Client        ]: CL: Sending connect to loopback
[  General       ]: **** Panel MapPreview has fill-parent-flow for width, but isn't in a flowing right layout
[  General       ]: **** Panel MapPreview has fill-parent-flow for width, but isn't in a flowing right layout
[  Server        ]: SV: Sending S2C_CHALLENGE [3631472507 auth 2] to loopback
[  General       ]: Slow image load - [url]http://cdn.dota2.com/apps/dota2/images/blogfiles/blog_soaring_cache.jpg[/url] (dimensions 810x550, took 38 msec)
[  General       ]: Slow image load - [url]http://cdn.dota2.com/apps/dota2/images/blogfiles/blog_frankfurt_major_16_teams.jpg[/url] (dimensions 810x620, took 30 msec)
[  General       ]: Slow image load - [url]http://images.akamai.steamusercontent.com/ugc/573439156216191193/CFCDA82BDF14F94A6533719F8B4E489A4325B029/[/url] (dimensions 1024x768, took 53 msec)
[  Client        ]: CL: Received S2C_CHALLENGE [3631472507 auth 2] from loopback
[  Client        ]: CL: Sending C2S_CONNECT [42 protocol 3631472507 auth 2] to loopback
[  Server        ]: SV: Receiving C2S_CONNECT [protocol 42 3631472507 auth 2] from loopback
[  Server        ]: SV: Sending S2C_CONNECTION to loopback [addons:'']
[  Server        ]: SV: Sending S2C_CONNECTION to loopback [addons:'']
[  General       ]: Ping measurement complete.
[  General       ]: Slow image load - [url]http://cdn.dota2.com/apps/570/icons/econ/sets/dota_item_the_exiled_demonologist_set_large.ab43732c2c1804178b1c890b135da29dc93ad786.png[/url] (dimensions 600x400, took 27 msec)
[  Client        ]: CL: Received S2C_CONNECTION from loopback [addons:'']
[  Client        ]: CL: Connected to 'loopback'
[  Server        ]: SV: Sending server info to client 'zambijaic' at loopback
[  Server        ]: SV: WriteInitialSpawnGroups sending 1 groups
[  Client        ]: CL: PS_SATISFIED CConnectGameClientPrerequisite in sequence for CGameClientConnectPrerequisite
[  Client        ]: Game: "Dota 2"
[  Client        ]: Map: "<empty>"
[  Client        ]: Players: 1 (0 bots) / 1 humans
[  Client        ]: Build: 6930
[  Client        ]: Server Number: 1
[  SignonState     ]: CL: CNetworkGameClient::ProcessServerInfo
[  General       ]: Initializing script VM...
[  General       ]: ...done
[  General       ]: ReadSteamRemoteStorageFile( bufOut, "voice_ban.dt" ) -> 0.000309 seconds
[  Client        ]: CL: PS_SATISFIED CLoadStartupResourcePrerequisite in sequence for CGameClientConnectPrerequisite
[  Client        ]: CL: PS_SATISFIED CLoadSpawnGroupsPrerequisite in sequence for CGameClientConnectPrerequisite
[  Client        ]: CL: PS_SATISFIED CFinalizeConnectionPrerequisite in sequence for CGameClientConnectPrerequisite
[  Client        ]: CL: OnStatusFinished for CGameClientConnectPrerequisite
[  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.000269 seconds
[  SignonState     ]: CL: CNetworkGameClient::OnSwitchLoopModeFinished( game : success )
[  Server        ]: SV: Sending full update to client zambijaic (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 33.222 KB [8 pkts], outgoing 1.267 KB [9 pkts]
[  SteamDatagramClient ]: Failed to communicate with routing cluster 'del'.
[  SteamDatagramClient ]: Failed to communicate with routing cluster 'icn'.
[  SteamDatagramClient ]: Communications with routing cluster 'icn' established.
[  General       ]: Ping measurement complete.
[ W General       ]: Allocating new transform texture!
[  AssetSystem     ]: Flushing persistent asset info to disk, 162.782 seconds since last, 6000 change delta
[  AssetSystem     ]: AssetSystem saved persistent info for 1 layers / 376 assets in 0.008 sec
[ W General       ]: Allocating new transform texture!
[  Hammer        ]: Begin loading file: d:\new folder\steamapps\common\dota 2 beta\content\dota_addons\wealive\maps\we_alive_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: d:\new folder\steamapps\common\dota 2 beta\content\dota_addons\wealive\maps\we_alive_1.vmap (11.7s)
[  Hammer        ]: Begin loading file: d:\new folder\steamapps\common\dota 2 beta\content\dota_addons\wavetest\wave.vmap
[ W General       ]: Warning: Fell out of small block heap!
[  Hammer        ]: Completed loading file: d:\new folder\steamapps\common\dota 2 beta\content\dota_addons\wavetest\wave.vmap (7.1s)
[ W ResourceSystem    ]: File error loading resource header "panorama/images/heroes/selection/npc_dota_hero_default_png.vtex_c" (Error: ERROR_FILEOPEN)
[ W General       ]: c:\buildslave\source2_dota_rel_win64\build\src\rendersystem\texturebase.cpp(1953):ResourceHandleToData( panorama/images/heroes/selection/npc_dota_hero_default_png.vtex ) failed! Falling back to error texture!
[  Console       ]: Usage: dota_launch_custom_game <addon_name> <map_name> [option1=value1 option2=value2 etc].
[  AssetSystem     ]: Flushing persistent asset info to disk, 4552.84 seconds since last, 10 change delta
[  AssetSystem     ]: AssetSystem saved persistent info for 1 layers / 377 assets in 0.008 sec
[  General       ]: Slow image load - [url]http://images.akamai.steamusercontent.com/ugc/402304273718894854/D8B333317E6123783AC0525CF52BF23C2C2CB20C/[/url] (dimensions 1024x768, took 40 msec)
[  General       ]: Slow image load - [url]http://images.akamai.steamusercontent.com/ugc/1473028176945501697/57A0E881E1FE548E593EA54E842AF0D31F76EC63/[/url] (dimensions 1024x768, took 38 msec)
[  General       ]: Slow image load - [url]http://images.akamai.steamusercontent.com/ugc/1457265578235079775/4E138A915B332E3EACBB970108AB448A17AF7A7E/[/url] (dimensions 1024x768, took 33 msec)
[  General       ]: Slow image load - [url]http://images.akamai.steamusercontent.com/ugc/422567299881412133/F8D74A277E8ABE98C8E8BDF79BA3E00383FCD113/[/url] (dimensions 1024x768, took 43 msec)
[  General       ]: Slow image load - [url]http://images.akamai.steamusercontent.com/ugc/30745266805549946/397493BE82860B49796D267663B3E2935CACC51F/[/url] (dimensions 1024x768, took 37 msec)
[  General       ]: Slow image load - [url]http://images.akamai.steamusercontent.com/ugc/429323213597495259/9493B00AE57F54941D5D28F90DC8AB665CDF9055/[/url] (dimensions 1024x768, took 39 msec)
[  General       ]: Slow image load - [url]http://images.akamai.steamusercontent.com/ugc/449582819879888033/AE274DC280BA6D350D3BDA658BBC3489022E0C31/[/url] (dimensions 1024x768, took 36 msec)
[  General       ]: Slow image load - [url]http://images.akamai.steamusercontent.com/ugc/700659563185603815/0DCFEC91F772B471E3094C27FD038555004996C5/[/url] (dimensions 1024x768, took 43 msec)
[  General       ]: Slow image load - [url]http://images.akamai.steamusercontent.com/ugc/384288606703646590/75FE800F07C964336150AE4D83DE8D0CF70BE022/[/url] (dimensions 1024x768, took 43 msec)
[  General       ]: Slow image load - [url]http://images.akamai.steamusercontent.com/ugc/617347345579180215/709F997D2E0EE62A3C54F2F27B917484D7FE2BC2/[/url] (dimensions 1024x768, took 31 msec)
[  General       ]: Slow image load - [url]http://images.akamai.steamusercontent.com/ugc/683775440096532215/BB5B9E63303D010A872B6F2BCD34746DAAA2D950/[/url] (dimensions 1024x768, took 47 msec)
[  General       ]: Slow image load - [url]http://images.akamai.steamusercontent.com/ugc/439448341237571045/ED1A021F9A39AADA6752A15E4D68D4B7177F5232/[/url] (dimensions 1024x768, took 34 msec)
[  General       ]: Slow image load - [url]http://images.akamai.steamusercontent.com/ugc/394422974372150433/AF9E24D759E83B3C6286EE2FBCC6B48693B464E8/[/url] (dimensions 1024x768, took 31 msec)
[  General       ]: Slow image load - [url]http://images.akamai.steamusercontent.com/ugc/392170642203036472/0496C2DE335C53E09F63945B06A2A0249A488E95/[/url] (dimensions 1024x768, took 30 msec)
[  General       ]: Slow image load - [url]http://images.akamai.steamusercontent.com/ugc/393296542108914991/52E2BF00AEE67265D6740906178AF40575242068/[/url] (dimensions 1024x768, took 45 msec)
[  General       ]: Slow image load - [url]http://images.akamai.steamusercontent.com/ugc/686027239899588636/A140D20F73C3766DD53EC4242F25EB54DE5BDEC9/[/url] (dimensions 1024x768, took 30 msec)
[  General       ]: Slow image load - [url]http://images.akamai.steamusercontent.com/ugc/385413871764121463/D3A92562501B8B80AEE5A0A5D28110BFAA163660/[/url] (dimensions 1024x768, took 35 msec)
[  General       ]: Slow image load - [url]http://images.akamai.steamusercontent.com/ugc/643246304990355894/5E747055D4BCCD6F5CA474A297BB5AFF8DC2CC62/[/url] (dimensions 1024x768, took 35 msec)
[  General       ]: Slow image load - [url]http://images.akamai.steamusercontent.com/ugc/392170642197865573/4E6D788A1C46B5276E3E9C4C53507BE27BB5C6C4/[/url] (dimensions 1024x768, took 42 msec)
[  General       ]: Slow image load - [url]http://images.akamai.steamusercontent.com/ugc/385413237001949067/1B2379CE0C7ECD8A742CB6D06B6F4ACB9DF9E0EB/[/url] (dimensions 1024x768, took 39 msec)
[  General       ]: Slow image load - [url]http://images.akamai.steamusercontent.com/ugc/387666306419203362/71BDAFB4C8655D05942C8C8676D841E1AEFD279C/[/url] (dimensions 1024x768, took 40 msec)
[  General       ]: Slow image load - [url]http://images.akamai.steamusercontent.com/ugc/642120405099323974/F4DAF26830E29CA08D1B5DFA2C626F2C7126A222/[/url] (dimensions 1024x768, took 36 msec)
[  General       ]: Slow image load - [url]http://images.akamai.steamusercontent.com/ugc/573440518206734987/D38E96AB288AC2FDD5DDDBEC2300EFCA979F4994/[/url] (dimensions 1024x768, took 43 msec)
[  General       ]: **** Panel MapPreview has fill-parent-flow for width, but isn't in a flowing right layout
[  General       ]: **** Panel MapPreview has fill-parent-flow for width, but isn't in a flowing right layout
[ W ResourceSystem    ]: File error loading resource header "panorama/images/heroes/selection/npc_dota_hero_default_png.vtex_c" (Error: ERROR_FILEOPEN)
[ W General       ]: c:\buildslave\source2_dota_rel_win64\build\src\rendersystem\texturebase.cpp(1953):ResourceHandleToData( panorama/images/heroes/selection/npc_dota_hero_default_png.vtex ) failed! Falling back to error texture!
[ W ResourceSystem    ]: File error loading resource header "panorama/images/heroes/selection/npc_dota_hero_default_png.vtex_c" (Error: ERROR_FILEOPEN)
[ W General       ]: c:\buildslave\source2_dota_rel_win64\build\src\rendersystem\texturebase.cpp(1953):ResourceHandleToData( panorama/images/heroes/selection/npc_dota_hero_default_png.vtex ) failed! Falling back to error texture!
[  VConComm       ]: ==============================================================
[  VConComm       ]: =============== End VConsole Buffered Messages ===============
[  VConComm       ]: ==============================================================
 
Последнее редактирование модератором:

Илья

Друзья CG
25 Сен 2015
2,348
40
Используй в следующий раз
Тебе тут вон пишут, что не может подгрузить
File error loading resource header "panorama/images/heroes/selection/npc_dota_hero_default_png.vtex_c" (Error: ERROR_FILEOPEN)
 
Последнее редактирование модератором:

Илья

Друзья CG
25 Сен 2015
2,348
40
Но скорее всего, дело не в нем. Скинь самую первую после запуска ошибку в консоли.
 

zombijaic

Пользователь
28 Окт 2015
25
0
Но скорее всего, дело не в нем. Скинь самую первую после запуска ошибку в консоли.

[ W ResourceSystem ]: File error loading resource header "panorama/images/textures/startup_background_logo.vtex_c" (Error: ERROR_FILEOPEN)
[ W ResourceSystem ]: File error loading resource header "soundevents/music/deadmau5_01/soundevents_music.vsndevts_c" (Error: ERROR_FILEOPEN)
[ W ResourceSystem ]: File error loading resource header "soundevents/music/deadmau5_01/soundevents_stingers.vsndevts_c" (Error: ERROR_FILEOPEN)
[ 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 Vfx ]: No valid vcs file found for shader gaussian_bloom_blur.vfx
 
Последнее редактирование модератором:

zombijaic

Пользователь
28 Окт 2015
25
0
Илья, да это же ты :D
слушай мой старый аккаунт взломали , нет example не работал (не запускался тест)
 

Илья

Друзья CG
25 Сен 2015
2,348
40
[quote author=zombijaic link=topic=2.msg1949#msg1949 date=1446060349]
Илья, да это же ты :D
слушай мой старый аккаунт взломали , нет example не работал (не запускался тест)
[/quote]

Да, я тебя узнал.

Ну раз не запускался, то проблема в нем. А зачем тебе нерабочий example? Я думаю, что проще будет что-то самому делать или рабочий искать, ибо там ошибок может быть много и только время потеряешь на них.

В крайнем случае могу через teamviewer взглянуть на твою консоль, ибо когда она вот таким сплошняком, трудно ориентироваться.
 

xxNpCxx

Активный
16 Окт 2015
85
0
[quote author=Ares link=topic=2.msg1939#msg1939 date=1446053140]
Код:
function makeSpawn()
	local spawnType = {"npc_dota_neutral_kobold", "npc_dota_neutral_polar_furbolg_champion", "npc_dota_neutral_centaur_khan"}
 local Vectors1 = {"-3270.22", "-3334.22", "-3206.22"}
 local Vectors2 = {"1978.74", "1850.74", "1786.74"}
 local Vectors3 = {"258.516", "258.516", "258.516"}
	units = {nil, nil, nil}		
  spawnIndex = {nil, nil, nil}  
  abc = 1
  for count = 1, MAX_SPAWN_COUNT do
   	units[count] = CreateUnitByName(spawnType[spawnLevel], Vector(Vectors1[abc], Vectors2[abc], Vectors3[abc]), false, nil, nil, DOTA_TEAM_NEUTRALS)
  	spawnIndex[count] = units[count]:GetEntityIndex()
  	    print('---------NEW SPAWN CREATED-------------------')
  	    abc = abc + 1
  end
  spawnCount = MAX_SPAWN_COUNT
  abc = 1	
end

я додумался сделать только 3 массива, но это тоже заработало
[/quote]

local Vectors1 = {-3270.22, -3334.22, -3206.22}
local Vectors2 = {1978.74, 1850.74, 1786.74}
local Vectors3 = {258.516, 258.516, 258.516}

числа не должны указываться в кавычках. В кавычках указывается символьная строка. Почитай про типы данных.
 
Последнее редактирование модератором:

Ares

Пользователь
22 Окт 2015
25
0
буду знать, но на работу это не повлияло
 
Реклама: