-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hex master not working #5704
Comments
Caused by math.huge being saved as inf` in modCache.lua which when parsed turns into nil. |
Changing: PathOfBuilding/src/Modules/Common.lua Lines 344 to 346 in 7127369
To: else
if v == math.huge then
out:write("math.huge")
else
out:write(tostring(v))
end
end Fixes the problem. I'll make a pr later today. |
@Wires77 When you rebuild cache with ctrl-f5 pob uses the newly build cache directly. It does not load it from file. If you do ctrl-f5 to rebuild the cache the value will be correct. Then if you reload with f5 or restart pob the cache will be loaded from file, which causes the issue.
This is how the mod looks like after being written to ModCache.lua : c["Your Hexes have infinite Duration"]={{[1]={[1]={skillType=79,type="SkillType"},flags=0,keywordFlags=0,name="Duration",type="BASE",value=inf}},nil} |
Ah, okay, I thought Ctrl+F5 rebuilt the file and then loaded from that file for some reason (probably lack of caffeine). I'll go look for the errant commit with that in mind, then. I'd like to see what caused the issue, partially out of curiosity, partially out of feeling like the proposed spot to fix it seems a bit hacky. Edit: Well, the first commit I tested ( 3eacbd3 ) already doesn't work, so I don't think this ever worked. I just Ctrl+F5, then F5 and saw this same issue. That fix will probably be necessary then. |
I'm not too happy with that explicit if statement either but i can't think of any other way of fixing it. I don't think lua has any built in means of serializing itself into a valid lua file like the mod cache saving function attempts to do. Another thing to consider would be to replace the the serializing logic for the cache with something that can handle such cases. |
Check version
Check for duplicates
Check for support
What is the value from the calculation ingame?
Infinite
What is the value from the calculation in Path of Building?
No effect



Was working #5193 but got broken at some point?
How to reproduce the issue
No response
Character build code
Screenshots
No response
The text was updated successfully, but these errors were encountered: