I’ve been waiting for the widget 2.0 update for weeks because I needed scrollview to get fixed.
As soon as it was out, I updated corona and was expecting to have to change and fix some things.
Buttons are totally broken, but I’ve been able to fix them, and I believe scrollview is fixed but here is where everything goes to crap.
I can’t test the feature that was broken in scrollview, namely scrolltoBottom() which has now been changed to scrollView:scrollTo(“bottom”,…) because my end turn function crashes corona every time now.
I am trying to figure it out, but I am still pretty much a monkey with coding so I’ve had 5 hours with no progress and now I’m getting drunk, so that’ll help I’m sure.
My end turn function worked flawlessly before, and now, when storyboard calls a scene I use to run some checks and advance the turn number etc, corona locks up. It goes so far as to createscene and then nothing.
I don’t have a clue as to what to post for anyone to look at. My maingame lua file is 4500 lines of code, and overlord.lua is only about 130 lines. I suppose I can post my end turn function.
local endTurnEvent = function()
print( "endTurnEvent Triggered" )
gameTable[12] = 0
-- save the change
loadsave.saveTable(gameTable, "newGame.json")
timerStash = nil
timerStash = {}
-- These cycle through each display group with a for statement and removeSelf()
wipeEditMenu()
wipeContextMenu()
wipeGrid()
wipePanel()
wipeTransfer()
wipeResearch()
wipeLeader()
wipeMarket()
wipeVictory()
-- Final Cleaning
grid = nil
panel = nil
transfer = nil
research = nil
leader = nil
market = nil
victory = nil
editMenu = nil
contextMenu = nil
scrollView = nil
mainDisplay = nil
sound:destroy()
sound = nil
storyboard.gotoScene( "overlord", "crossFade", 300 )
end
I don’t know what the problem is. I guess I have to go back to an earlier version of corona except I need scrollView to work, and were talking about hours worth of time to change buttons back so they work agian…
I’ll update this later if I find anything else out [import]uid: 170004 topic_id: 36237 reply_id: 336237[/import]