this post was submitted on 18 Feb 2025
13 points (100.0% liked)

Godot

6247 readers
177 users here now

Welcome to the programming.dev Godot community!

This is a place where you can discuss about anything relating to the Godot game engine. Feel free to ask questions, post tutorials, show off your godot game, etc.

Make sure to follow the Godot CoC while chatting

We have a matrix room that can be used for chatting with other members of the community here

Links

Other Communities

Rules

We have a four strike system in this community where you get warned the first time you break a rule, then given a week ban, then given a year ban, then a permanent ban. Certain actions may bypass this and go straight to permanent ban if severe enough and done with malicious intent

Wormhole

!roguelikedev@programming.dev

Credits

founded 2 years ago
MODERATORS
13
Copyleft GDExtension? (lemmy.kde.social)
submitted 2 days ago* (last edited 2 days ago) by sevon@lemmy.kde.social to c/godot@programming.dev
 

So, I started working on a new project, and I'm thinking of how to license it. Specifically, how to make it as copyleft as possible without making it unusable.

By unusable I mean the license blocking the game (or in a more likely case, any later project that reuses the code) from being published on platforms like Steam. I know that steamshim exists, but I'm not sure if that can be a real solution. Linking against the SDK seems completely optional in Steam's case, but license compatibility is listed as a hard requirement regardless.

The game code consists entirely of a GDExtension written in Rust, so I think I can just neatly LGPL the GDExtension "library" without restricting the game executable itself. It sounds like it should work, but there are some things that I'm not sure of, like hardcoded references to assets.

I really don't enjoy thinking licenses so I usually slap on either GPL or something permissive and be done with it. Anyone notice any holes in my plan, or am I good to go?

I know I can use my own code however I please, but it gets more difficult once there are multiple people involved; I've had one person express vague interest so far.

Thanks.

you are viewing a single comment's thread
view the rest of the comments
[–] fum@lemmy.world 2 points 2 days ago (4 children)

Does your game use the steamworks SDK? If not, then you can publish it on steam as GPL or even AGPL

[–] sevon@lemmy.kde.social 2 points 2 days ago (3 children)

No, but Valve says this:

If your application contains third party open source code that is incompatible with the Steamworks SDK, then YOU MUST NOT DISTRIBUTE YOUR APPLICATION VIA STEAM.

https://partner.steamgames.com/doc/sdk/uploading/distributing_opensource

[–] fum@lemmy.world 3 points 2 days ago (2 children)

Interesting. So that phrasing sounds like even if you don't use the steam works SDK then you can't use GPL. I wonder how Krita reconciled that?

[–] fum@lemmy.world 5 points 2 days ago* (last edited 2 days ago) (1 children)

Interesting excerpt from Steamworks docs:

Which Open Source licenses are compatible with the Steamworks SDK?

In general, permissive licenses that do not put any requirements on you to redistribute your modifications under an open source license work fine. Common permissive and acceptable licenses includes MIT License, BSD 3-clause and 4-clause, Apache 2.0 and WTFPL.

Which Open Source Licenses are problematic for shipping on Steam?

Generally, any license that has a so-called “copyleft” element will be problematic when combining code with the Steamworks SDK. The best-known example is GPL.

But I saw a GPL-licensed application on Steam!

This can happen if the author of the code that is GPL-licensed has given the permission to do so. The author can of course always (a) decide to grant Valve a different license than the author grants everyone else or (b) decide that what the Steamworks SDK does is just a communication with a service that does not invoke the copyleft requirement of the GPL.

Sounds like (b) above could apply to you?

[–] sevon@lemmy.kde.social 3 points 2 days ago

Huh, I completely missed that part. Have to look at that more.