<< Back to Programming Forum   Search

Posts 1 - 9 of 9   
pcall failure in function Client_GameRefresh: 6/24/2022 21:18:42


καλλιστηι 
Level 62
Report
Error:
pcall failure in function Client_PresentConfigureUI ret=-1 Error: Exception: Found Float, expected Boolean

Another mod has the following error:
Sorry, the mod "Factions" has failed. Error:
pcall failure in function Client_GameRefresh ret=-1 TypeError: to_jsstring expects a Uint8Array


Is it just Warzone getting covid, or do I have to modify my mod?
pcall failure in function Client_GameRefresh: 6/24/2022 23:29:45


Just_A_Dutchman_ 
Level 60
Report
both were on browser i assume?
pcall failure in function Client_GameRefresh: 6/25/2022 06:33:57

Fizzer 
Level 64

Warzone Creator
Report
Found Float, expected Boolean

This is the key part to read. Some function or code that was expecting a boolean got a number instead.
- downvoted post by l4v.r0v
pcall failure in function Client_GameRefresh: 6/25/2022 11:06:00


καλλιστηι 
Level 62
Report
This is the key part to read. Some function or code that was expecting a boolean got a number instead.

Which function?
The thing is that I not only don't touch the Client_GameRefresh function in the whole mod but even the string "ref" is not found in any of the mod files.
pcall failure in function Client_GameRefresh: 6/25/2022 11:08:26


Just_A_Dutchman_ 
Level 60
Report
"ret" is return I'm pretty sure
pcall failure in function Client_GameRefresh: 6/25/2022 11:10:24


Just_A_Dutchman_ 
Level 60
Report
i don't touch the Client_GameRefresh function in the whole mod

your error code comes from Client_PresentConfigureUI, the second error comes from my Factions mod
pcall failure in function Client_GameRefresh: 6/27/2022 17:20:00


JK_3 
Level 63
Report
I did some digging, and it looks like WZ uses https://fengari.io/ to run LUA on browsers. The error:

pcall failure in function Client_GameRefresh ret=-1 TypeError: to_jsstring expects a Uint8Array
originates from line 61 of https://github.com/fengari-lua/fengari/blob/master/src/defs.js.

That suggests that somewhere in the mod framework (so not the mods itself), something is trying to turn into a JS string that cant turn into a JS string. With that knowledge, we can answer the question:

Is it just Warzone getting covid, or do I have to modify my mod?

It's WZ getting covid.
pcall failure in function Client_GameRefresh: 6/27/2022 17:48:35


(deleted) 
Level 61
Report
unfortunately, I'm not able to help debug or teach how to mod, for this you should contact the modding community if you need something you can't figure out yourself - quote from fizzer
Posts 1 - 9 of 9