Forums » General Questions » Stepmania freezes with InsertCredit

1
hi, i used the functions InsertCredit, InsertCoin and JoinPlayer in my theme but the game freezes and i have to close it manually
Reply
Make a minimal example piece of code that causes the problem and paste it here, or upload your theme somewhere.
< cybik> til Kyzentun fixes bugs for breakfast
--
< maxvg1> shakesoda: then why do i still play lol
<@shakesoda> because you're an ITG player. And thus, a masochist
--
<@shakesoda> Kyzentun: I think you might need to put down the meshes for a bit
Reply
if STATSMAN:GetBestFinalGrade() == "Grade_Tier01" then
GAMESTATE:InsertCredit()
end
Reply
That's not enough to make it crash for me.
I'm assuming this is on your ScreenEvaluation somewhere. Could you post the rest of the screen's code so we can see if you've accidentally set up an infinite loop?
< cybik> til Kyzentun fixes bugs for breakfast
--
< maxvg1> shakesoda: then why do i still play lol
<@shakesoda> because you're an ITG player. And thus, a masochist
--
<@shakesoda> Kyzentun: I think you might need to put down the meshes for a bit
Reply
apparently if I was in a loop, rewrote the code in the Initcommand and it works, thanks
Reply