#...
1 messages · Page 1 of 1 (latest)
Explain your problem and you might get more help
good idea
well when i initialize structures it gives me some weird error and nothing get executed in the last for key in pairs
also tm.playerUI.AddUIText(0, "comptxt", "1000", OnSetCompTxt) with function OnSetCompTxt(callbackData) and tm.playerUI.AddUIText(0, "senstxt", "1", OnSetSensTxt) with function OnSetSensTxt(callbackData)
don't change the values when i change the little number thing in game
i might just start from 0 tomorrow if i can't fix it
we need to see the errors
is this it?
2024-10-04T20:06:55.6881960+03:00 Failed to call update
E:/programs/steam/steamapps/common/Trailmakers/Trailmakers_Data..\mods\time mod sebi\main.lua:(35,8-57): cannot convert a userdata to a clr type System.UInt32
2024-10-04T20:06:58.4231125+03:00 Failed to call update
E:/programs/steam/steamapps/common/Trailmakers/Trailmakers_Data..\mods\time mod sebi\main.lua:(35,8-57): cannot convert a userdata to a clr type System.UInt32
i can also send the error from vs code
and the error in game is "Failed to call update"
That looks like you are trying to use the player object as a playerId in line 44
i'm not trying to use a player as a object, how do i fix such a thing?
Thanks
now it works
at least the for loops work, the ui stuff is still broken 0_0
when the uneeded parethesis lol
declare the functions before they're added the UI elements like this
else the function doesn't exist to them
thanks
on another mod i made it work fine like that, which is why i did it, tbh i don't know how on that mod it works fine
is there a way to delete this post?
not entirely, only moderators can do that here
all right then i'm just gonna make this the place where i do random mods
Sebi3000f's random mods
Sebi3000f's random mods (working on a mod that makes some trophys nukes)
Sebi3000f's random mods