I am uploading test builds to Steam ready for release next week.
When I build the app on OSX, it runs fine. When I then upload the game to Steam, calling widget.newSlider will cause the game to crash. This is whether steam DRM has been applied with the ContentPrep app or not.
This can be reproduced by uploading this sample project to Steam, waiting for the update to proliferate and download, then launching from Steam.
EDIT: Implementing newSlider using the open source code on Github solves the problem. This should probably be added as a gotcha to the docs.
[lua]
local widget = require (“widget”)
local function sliderListener( event )
print( "Slider at " … event.value … “%” )
end
– Create the widget
local slider = widget.newSlider(
{
top = 200,
left = 50,
width = 400,
value = 10, – Start slider at 10% (optional)
listener = sliderListener
}
)
[/lua]
ERROR: stack traceback:
?: in function ‘?’
?: in function <?:473>
(tail call): ?
?: in function <?:122>
(tail call): ?
/Users/nick/Dropbox/widgetTest/main.lua:9: in main chunk