adamqqqplay / dota2ai

Ranked Matchmaking AI: An improved Dota2 AI based on Valve's default AI. Has more than 3 million subscribers on Steam.
http://steamcommunity.com/sharedfiles/filedetails/?id=855965029
GNU General Public License v3.0
309 stars 85 forks source link

offline mode no steam problem #123

Open Jcpogi7 opened 11 months ago

Jcpogi7 commented 11 months ago

i have mod dota2 into offline, i use ur bot script but it is not loading..

LoadScript: J:\Games\DotaOflline7.33e\dota 2 beta\game\dota\scripts\vscripts\bots\hero_selection.lua, scope name HeroSelectionScriptScope [VScript] Script Runtime Error: ... beta\game\dota\scripts\vscripts\bots\hero_selection.lua:7: module 'J:\Games\DotaOflline7.33e\dota 2 beta\game\dota\scripts\vscripts\bots/util/RoleUtility' not found: no field package.preload['J:\Games\DotaOflline7.33e\dota 2 beta\game\dota\scripts\vscripts\bots/util/RoleUtility']Failed to find J:\Games\DotaOflline7/33e\dota 2 beta\game\dota\scripts\vscripts\bots\util\RoleUtility.lua stack traceback: [C]: in function 'require' ... beta\game\dota\scripts\vscripts\bots\hero_selection.lua:7: in main chunk Failed to run script 'J:\Games\DotaOflline7.33e\dota 2 beta\game\dota\scripts\vscripts\bots\hero_selection.lua'! LoadScript: J:\Games\DotaOflline7.33e\dota 2 beta\game\dota\scripts\vscripts\bots\team_desires.lua, scope name TeamDesiresScriptScope [VScript] Script Runtime Error: attempt to index a nil value Dire bot scripting using script path J:\Games\DotaOflline7.33e\dota 2 beta\game\dota\scripts\vscripts\bots LoadScript: J:\Games\DotaOflline7.33e\dota 2 beta\game\dota\scripts\vscripts\bots\hero_selection.lua, scope name HeroSelectionScriptScope [VScript] Script Runtime Error: ... beta\game\dota\scripts\vscripts\bots\hero_selection.lua:7: module 'J:\Games\DotaOflline7.33e\dota 2 beta\game\dota\scripts\vscripts\bots/util/RoleUtility' not found: no field package.preload['J:\Games\DotaOflline7.33e\dota 2 beta\game\dota\scripts\vscripts\bots/util/RoleUtility']Failed to find J:\Games\DotaOflline7/33e\dota 2 beta\game\dota\scripts\vscripts\bots\util\RoleUtility.lua stack traceback: [C]: in function 'require' ... beta\game\dota\scripts\vscripts\bots\hero_selection.lua:7: in main chunk Failed to run script 'J:\Games\DotaOflline7.33e\dota 2 beta\game\dota\scripts\vscripts\bots\hero_selection.lua'! LoadScript: J:\Games\DotaOflline7.33e\dota 2 beta\game\dota\scripts\vscripts\bots\team_desires.lua, scope name TeamDesiresScriptScope [VScript] Script Runtime Error: attempt to index a nil value

this is the error i have. i says the location of roleuitility failed to find.. but the file is there

JoshdanG commented 11 months ago

Not sure why, but it seems like it doesn't like the period in the path. Looks like it is replacing it with a slash. Please try moving everything to a path that does not have a period in it.

Failed to find J:\Games\DotaOflline7/33e\dota 2 beta\game\dota\scripts\vscripts\bots\util\RoleUtility.lua

Note: not familiar with "Dota Offline" and whether the bots should work with it.