Kraxie Posted March 25, 2015 Share Posted March 25, 2015 Hey I'm quite new to the Leadwerks engine and I've been playing around with external libraries and what not. To make this possible, I had to disable Lua Sandboxing. It then worked fine to load my library and all that works fine. Only problem, this seems to have disabled Steam or Steamworks. The overlay no longer shows up and when starting the game, it no longer says that the user is in-game on Steam. A steam_appid.txt and all that exists... Anyone knows what the problem can be? Thanks! Regards, KraXarN EDIT: Included app.lua if that helps Quote Windows 7 | Intel Core i7-4790K | 16 GB RAM | Nvidia GTX 980 Link to comment Share on other sites More sharing options...
Josh Posted March 25, 2015 Share Posted March 25, 2015 If you run your game from the editor, it will now show the Steam overlay because the parent application has it's overlay disabled. When you run the game on its own it will appear. Does that solve it? Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Kraxie Posted March 26, 2015 Author Share Posted March 26, 2015 It doesn't matter if I run it from the editor or run the exe file directly, I still don't get the overlay or anything :/ Quote Windows 7 | Intel Core i7-4790K | 16 GB RAM | Nvidia GTX 980 Link to comment Share on other sites More sharing options...
Josh Posted March 26, 2015 Share Posted March 26, 2015 When you open steam_appid.txt, what number does it contain? This should be 480, for "Spacewar", Valve's example project. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Kraxie Posted March 27, 2015 Author Share Posted March 27, 2015 steam_appid.txt only contains the numbers 480 Quote Windows 7 | Intel Core i7-4790K | 16 GB RAM | Nvidia GTX 980 Link to comment Share on other sites More sharing options...
Josh Posted March 27, 2015 Share Posted March 27, 2015 You have to be signed into Steam (obviously). It can take a few seconds before the overlay becomes available. Check to make sure Steamworks:Initialize() is returning true. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Kraxie Posted March 27, 2015 Author Share Posted March 27, 2015 I am running it through Steam, so that's running and all... I tried using this code: if not Steamworks:Initialize() then Debug:Error("Failed to load Steam") end And it ran just fine, so it seems it returns true Quote Windows 7 | Intel Core i7-4790K | 16 GB RAM | Nvidia GTX 980 Link to comment Share on other sites More sharing options...
Josh Posted March 27, 2015 Share Posted March 27, 2015 Stupid question, but you know you have to press shift+tab to make that appear, right? Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Kraxie Posted March 27, 2015 Author Share Posted March 27, 2015 Yes As I said before, it doesn't even say I'm in-game either on Steam, but with sandboxing enabled, it says I am. And no "Press shift-tab in-game blah blah" either comes up... It's really weird :/ Quote Windows 7 | Intel Core i7-4790K | 16 GB RAM | Nvidia GTX 980 Link to comment Share on other sites More sharing options...
Josh Posted March 27, 2015 Share Posted March 27, 2015 Well by default sandboxing is disabled. It only gets enabled when -sandbox is passed in the command line arguments. So any time you run it by clicking on the EXE, sandboxing will be disabled. Maybe post a small complete demo here so other people can try it? Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Kraxie Posted March 28, 2015 Author Share Posted March 28, 2015 I can, but upon actually publishing the game, Steamworks seems to always return false, both with Sandboxing enabled and disabled... Quote Windows 7 | Intel Core i7-4790K | 16 GB RAM | Nvidia GTX 980 Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.