ENABLE_AUTO_LAUNCH

mrlikelot

Продвинутый
24 Июл 2015
168
1
Решил удалением строки
Здравствуйте, не могу понять в чём ошибка, изменяю ENABLE_AUTO_LAUNCH на True (barebones), а в игре выдаёт ошибку:
Код:
[ W VScript       ]: Script Runtime Error: scripts/vscripts/internal/gamemode.lua:38: Parameter type mismatch
[ W VScript       ]: stack traceback:
[ W VScript       ]: 	[C]: in function 'LockCustomGameSetupTeamAssignment'
[ W VScript       ]: 	scripts/vscripts/internal/gamemode.lua:38: in function '_InitGameMode'
[ W VScript       ]: 	..._addons\custom\scripts\vscripts\addon_game_mode.lua:52: in function <..._addons\custom\scripts\vscripts\addon_game_mode.lua:50>
Ошибку выдаёт здесь:
Код:
function Activate()
 GameRules.GameMode = GameMode()
 GameRules.GameMode:_InitGameMode()
end
И здесь:
Код:
if SKIP_TEAM_SETUP then
  GameRules:SetCustomGameSetupAutoLaunchDelay( 0 )
  GameRules:LockCustomGameSetupTeamAssignment( true )
  GameRules:EnableCustomGameSetupAutoLaunch( true )
 else
  GameRules:SetCustomGameSetupAutoLaunchDelay( AUTO_LAUNCH_DELAY )
  GameRules:LockCustomGameSetupTeamAssignment( LOCK_TEAM_SETUP )
  GameRules:EnableCustomGameSetupAutoLaunch( ENABLE_AUTO_LAUNCH )
 end
Вот все настройки из сегмента:
Код:
GAME_END_DELAY = -1           -- How long should we wait after the game winner is set to display the victory banner and End Screen? Use -1 to keep the default (about 10 seconds)
VICTORY_MESSAGE_DURATION = 3      -- How long should we wait after the victory message displays to show the End Screen? Use 
STARTING_GOLD = 625           -- How much starting gold should we give to each player?
DISABLE_DAY_NIGHT_CYCLE = false     -- Should we disable the day night cycle from naturally occurring? (Manual adjustment still possible)
DISABLE_KILLING_SPREE_ANNOUNCER = false -- Shuold we disable the killing spree announcer?
DISABLE_STICKY_ITEM = false       -- Should we disable the sticky item button in the quick buy area?
ENABLE_AUTO_LAUNCH = false			-- Should we automatically have the game complete team setup after AUTO_LAUNCH_DELAY seconds?
AUTO_LAUNCH_DELAY = 30         -- How long should the default team selection launch timer be? The default for custom games is 30. Setting to 0 will skip team selection.
LOCK_TEAM_SETUP = TRUE         -- Should we lock the teams initially? Note that the host can still unlock the teams
Просто удалил строку
Код:
GameRules:LockCustomGameSetupTeamAssignment( LOCK_TEAM_SETUP )
 
Последнее редактирование модератором:
Потрясающий способ решения проблем, удалить нахрен все :) :) :)
 
Потрясающий способ решения проблем, удалить нахрен все :) :) :)
:D спасибо, я прост в интернете не нашёл ничего по ошибке, ну, вроде бы, ничего не изменилось (по крайней мере я не вижу этого)
 
Последнее редактирование модератором:
Реклама: