Skip to content

Conversation

kdxcxs
Copy link
Collaborator

@kdxcxs kdxcxs commented Mar 29, 2023

feat: print with [Sandbox.candidate_name] banner to support checking specified hero's log.

@kdxcxs kdxcxs merged commit b91ba94 into master Mar 29, 2023

function Sandbox:LoadActionScript(user_script)
return self:LoadScript(user_script, 500000, {})
function Sandbox:LoadActionScript(user_script, candidate_name)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LoadActionScript is called in bot_script_env.lua without candidate_name.

if hero then
local script = bot_scripts[candidate_num]
BotScriptEnv:AttachScriptOnUnit(hero, script)
BotScriptEnv:AttachScriptOnUnit(hero, script, candidate_name)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The function AttachScriptOnUnit prototype does not have an argument candidcate_name.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants