-
Hi, I'm currently gearing up to launch a TIC-80 game on Steam. It has an in-game achievements system, and I'm interested in hooking it up to the Steam Achievements system, but I don't know whether this is possible in TIC-80. Is there a way of integrating the Steam API into a TIC-80 game? If not, would it be possible to add this in the future? It's more of a nice-to-have than anything, but I am slightly paranoid about the possibility of players getting annoyed that there are in-game achievements but no Steam Achievements. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Would it be possible to include / use bindings to a Steam API library for the language you're using (i.e. Luasteam for Lua)? |
Beta Was this translation helpful? Give feedback.
-
After doing some more digging, I'm afraid it doesn't seem like this is possible, at least in Lua. Luasteam needs to be instantiated via
...but in TIC-80's implementation of Lua, Given that |
Beta Was this translation helpful? Give feedback.
After doing some more digging, I'm afraid it doesn't seem like this is possible, at least in Lua. Luasteam needs to be instantiated via
local Steam = require('luasteam')
Steam.init()
...but in TIC-80's implementation of Lua,
require()
returns a boolean, not an object. So I can theoretically include the API, but there doesn't seem to be any way of actually accessing its contents.Given that
require()
isn't supported anyway and may be removed in future (#2426), it seems the answer to this is a resounding no: Steam API integration isn't possible, at least via Lua, and there are no plans to make it possible. Disappointing, but not too surprising.