Dota 2
Zeekoff Nov 11, 2023 @ 11:07am
Tutorials are bugged.
When I go to the Learn tab, I'm not allowed to purchase items required of me to complete the lesson. The items just refuse to purchase.
< >
Showing 1-5 of 5 comments
ALlmUteD Nov 11, 2023 @ 11:39am 
+++
Express Yourself Nov 11, 2023 @ 1:23pm 
It can be fixed by editing the task's lua script.
1. Locate the script at this path: \steamapps\common\dota 2 beta\game\dota_addons\npx_2019\scripts\vscripts\tasks\task_buy_item.lua
2. Open it with any editor (Notepad for example).
3. Replace this block of code (it starts on 32 string):

if self.hTaskInfo.TaskParams.WhiteList ~= nil then
for _,szItemName in pairs ( self.hTaskInfo.TaskParams.WhiteList ) do
GameRules:AddItemToWhiteList( szItemName )
end
GameRules:SetWhiteListEnabled( true )
end

With that code:

for _,szItemName in pairs ( self.hTaskInfo.TaskParams.WhiteList ) do
GameRules:RemoveItemFromWhiteList( szItemName )
end

GameRules:SetWhiteListEnabled( false )

And run the second page, first task again.
Zeekoff Nov 11, 2023 @ 5:14pm 
Originally posted by Express Yourself:
It can be fixed by editing the task's lua script.
1. Locate the script at this path: \steamapps\common\dota 2 beta\game\dota_addons\npx_2019\scripts\vscripts\tasks\task_buy_item.lua
2. Open it with any editor (Notepad for example).
3. Replace this block of code (it starts on 32 string):

if self.hTaskInfo.TaskParams.WhiteList ~= nil then
for _,szItemName in pairs ( self.hTaskInfo.TaskParams.WhiteList ) do
GameRules:AddItemToWhiteList( szItemName )
end
GameRules:SetWhiteListEnabled( true )
end

With that code:

for _,szItemName in pairs ( self.hTaskInfo.TaskParams.WhiteList ) do
GameRules:RemoveItemFromWhiteList( szItemName )
end

GameRules:SetWhiteListEnabled( false )

And run the second page, first task again.
Dumb question but will messing with the lua files potentially get me vac banned?
Express Yourself Nov 12, 2023 @ 3:33am 
Originally posted by Zeekoff:
Originally posted by Express Yourself:
It can be fixed by editing the task's lua script.
1. Locate the script at this path: \steamapps\common\dota 2 beta\game\dota_addons\npx_2019\scripts\vscripts\tasks\task_buy_item.lua
2. Open it with any editor (Notepad for example).
3. Replace this block of code (it starts on 32 string):

if self.hTaskInfo.TaskParams.WhiteList ~= nil then
for _,szItemName in pairs ( self.hTaskInfo.TaskParams.WhiteList ) do
GameRules:AddItemToWhiteList( szItemName )
end
GameRules:SetWhiteListEnabled( true )
end

With that code:

for _,szItemName in pairs ( self.hTaskInfo.TaskParams.WhiteList ) do
GameRules:RemoveItemFromWhiteList( szItemName )
end

GameRules:SetWhiteListEnabled( false )

And run the second page, first task again.
Dumb question but will messing with the lua files potentially get me vac banned?

I don't know. I wrote to support when I encountered this problem, and they told me that there is no solution at the moment.
I wrote about my decision while I'm waiting for a response.
It worked for me, and given the fact that the tutorial is supplied as an add-on, which is developed and finalized by the community, and the changes that are made to the script are aimed only at correcting errors and do not provide any benefits, there should be no penalties.

Additionally, I published the content of the file on pastebin. You may just copy-paste it.
https://pastebin.com/0nARXN8t
Last edited by Express Yourself; Nov 12, 2023 @ 5:19am
Zeekoff Nov 12, 2023 @ 5:12am 
Originally posted by Express Yourself:
Originally posted by Zeekoff:
Dumb question but will messing with the lua files potentially get me vac banned?

I don't know. I wrote to support when I encountered this problem, and they told me that there is no solution at the moment.
I wrote about my decision while I'm waiting for a response.
It worked for me, and given the fact that the tutorial is supplied as an add-on, which is developed and finalized by the community, and the changes that are made to the script are aimed only at correcting errors and do not provide any benefits, there should be no penalties.

Additionally, I published the content of the file on pastebin. You may just copy-paste it.
https://pastebin.com/Whhu3xVf
Thanks so much for all the information and help. Hopefully valve addresses this soon.
< >
Showing 1-5 of 5 comments
Per page: 1530 50

Date Posted: Nov 11, 2023 @ 11:07am
Posts: 5