LCKB
Reinstall Lacarette - Printable Version

+- LCKB (https://lckb.dev/forum)
+-- Forum: ** OLD LCKB DATABASE ** (https://lckb.dev/forum/forumdisplay.php?fid=109)
+--- Forum: Guides & Help Section (https://lckb.dev/forum/forumdisplay.php?fid=193)
+---- Forum: Help & Support (https://lckb.dev/forum/forumdisplay.php?fid=157)
+----- Forum: Ep4 Support (https://lckb.dev/forum/forumdisplay.php?fid=128)
+----- Thread: Reinstall Lacarette (/showthread.php?tid=5017)



- nicolasg - 02-22-2023


Hi, yesterday i "reinstall" reenable or how u prefer call it, the Lacarette system, buts when i try do a roll i got a error: "Insufficient token".



Tracing the error I see that it comes from here:



But I don't know exactly what is happening, I have tokens in my inventory... in the absence of looking more, I open this post, maybe someone will answer me faster, by the way I am using .lod from gamigo us, and in database I have only altered the row related to Course A






- Veni - 02-22-2023


well for some reason the UI does not think that you have the token from what i can see. "Current Token 0" and it requires 2. I would imagine that you actually have the needed token, correct?



If yes, then I would look at the loading function to figure out why it's not counting up. Since this only seems to be a client side error it might be fixable relatively easy when you find out why it does not display the correct number of tokens or gets the correct count.



What's the result of GetCoinCount()/GetCoinItemDataIndex? Does it check for the correct token in the first place?




- nicolasg - 02-22-2023



38 minutes ago, Veni said:




well for some reason the UI does not think that you have the token from what i can see. "Current Token 0" and it requires 2. I would imagine that you actually have the needed token, correct?



If yes, then I would look at the loading function to figure out why it's not counting up. Since this only seems to be a client side error it might be fixable relatively easy when you find out why it does not display the correct number of tokens or gets the correct count.



What's the result of GetCoinCount()/GetCoinItemDataIndex? Does it check for the correct token in the first place?






It seems that the system does not recognize the items in my inventory (id 5123). I'm using nov, maybe the function that checks the inventory items changes from june to nov? I have to investigate a little more...




- nicolasg - 02-22-2023


Possibly forget to add the calls to "SetCoinData" func...




- nicolasg - 02-22-2023



1 hour ago, nicolasg said:




Possibly forget to add the calls to "SetCoinData" func...




Solved by adding Calls to 

SetCoinData();

 

In functions to update inventory items.

#Solved