Comments (2)
Well, this is weird.
I downloaded the code in my mac, and tried the simplest possible program
main.lua
:
local steam = require "luasteam"
I tried running (love .
) and got exactly the same error (file system relative paths not allowed in hardened programs
).
Notice that it first didn't let me use the .so
(unsafe to open file) and I had to go in Security and Settings
and Allow anyway
so I didn't get this error anymore.
Then I tried to isolate the error:
Ran also in my friends older mac, but it also didn't work, so it wasn't the Mac version.
Tried to rebuild the .so
with latest sdk but still got the same issue.
Then I downloaded an older version of LOVE, 0.10.2, and it worked.
I was about to come back here saying that it is about LOVE version, but I kept testing with different versions and now even the latest version (11.3) works without error.
So I think it's some security thing inside Mac that eventually allowed me to use the .so
and stopped complaining. No idea why it didn't just work after I "Allowed anyway", but still took a while after that. Sorry about the lack of a better answer.
That said, I believe when packaging the game this problem won't show up, because the .so
goes inside the .app
folder and Mac probably allows everything to run at once.
Also, the cpath
hack is for packaging, so you can place the .so
next to the .love
file.
from luasteam.
So I think it's some security thing inside Mac
Yes, that is also my impression.
when packaging the game this problem won't show up
That's great but doesn't help with just using / potentially hacking on a codebase someone has shared, which was my intent.
In any event, the instructions don't work. Perhaps it would be a good idea to update them to prevent other people wasting time on this.
from luasteam.
Related Issues (18)
- Add License
- Cannot find libsteaam_api.so HOT 2
- macOS: libluajit missing HOT 2
- Functions for game-server HOT 3
- Releasing on MacOS HOT 7
- Getting / Setting Stats HOT 3
- Add "games using luasteam" session on README HOT 17
- Cut a release HOT 1
- [Feature] Add ISteamApps' BIsSubscribed and GetAppInstallDir HOT 1
- Steam network api HOT 13
- Game invite functionality HOT 2
- Possible error in the documentation HOT 1
- ISteamUser::GetAuthSessionTicket adds additional parameter HOT 2
- Suggestion - ISteamFriends::GetPersonaName HOT 1
- IPlayerService::GetOwnedGames HOT 2
- Steam overlay wont show. HOT 4
- Callbacks don't seem to work for me HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from luasteam.