Giter VIP home page Giter VIP logo

Comments (20)

Arcnor avatar Arcnor commented on June 12, 2024 1

That will be really helpful indeed, thanks!

from godotsteam.

Gramps avatar Gramps commented on June 12, 2024 1

This is quite an old issue! Have you checked out the newest builds? We have headless versions for GodotSteam Server packaged up. Due to the age, I'll close this for now unless there is more to add!

from godotsteam.

Gramps avatar Gramps commented on June 12, 2024

Hey there! Hmm, I have never tried to do this but not sure why it wouldn't work. Exactly what happens when you run it? You mention it fails to load but does nothing happen at all? Do you get an error?

from godotsteam.

Arcnor avatar Arcnor commented on June 12, 2024

Yeah, so basically the issue is that because there is no headless video driver (only GLES3 and GLES2), Godot tries to load X11, so you get a

ERROR: X11 Display is not available

This also happens with the official Godot 3.5 builds unless you use the headless one I posted above (which replaces all video drivers with the Dummy one), and I was wondering if there was one for GodotSteam as well.

from godotsteam.

Gramps avatar Gramps commented on June 12, 2024

Ahhh, OK. Gotcha. Hmm, there is not such a version for GodotSteam but I didn't realize this was an issue; never came up until now. I guess this would be something to do with the server version of GodotSteam, as that is what is meant for.

This is probably a relatively easy thing to do, so I will check it out! Most likely just compiling them differently. I'm working on the next patch currently so I can slip this in during my compiling tests and upload something for you to try out.

from godotsteam.

Gramps avatar Gramps commented on June 12, 2024

No problem! Thanks for bringing this up! I should have a test either later today or tomorrow, providing my patching goes well.

from godotsteam.

Gramps avatar Gramps commented on June 12, 2024

OK, finally got the rest of the updates done and now onto the server stuff. Here is a test headless build, let me know if this works for you!

If so, I'll start creating those kinds of builds for the Server version.

from godotsteam.

Arcnor avatar Arcnor commented on June 12, 2024

Thanks for that! So this build "runs" and it actually finished packaging somehow, but I'm getting this error when compiling. I know almost nothing about Godot, so really sorry in advance if this is due to something else, but from what I understand, using the GodotSteam precompiled version should take care of finding the Steam module?

SCRIPT ERROR: Parse Error: The identifier "Steam" isn't declared in the current scope.

from godotsteam.

Gramps avatar Gramps commented on June 12, 2024

Hmm, this error happens when you run it? That usually means there is no Steamworks present and can happen if you export with a normal Godot template and not one of ours when using GodotSteam pre-compiled editors.

For what I sent you, I think you'd need a template from the same build, which I didn't make yet but can!

from godotsteam.

Arcnor avatar Arcnor commented on June 12, 2024

No, not when running but when building (you can see it says "SCRIPT ERROR" instead of "Parse Error" which from what I understand is what you get when running).

As for the template I used the normal ones you generated yesterday for the non-server version, but again, this error happens before Godot checks those templates from what I understand :).

from godotsteam.

Gramps avatar Gramps commented on June 12, 2024

The server build should be using SteamServer, I think, in any scripts.

from godotsteam.

Arcnor avatar Arcnor commented on June 12, 2024

Ok, then maybe that's my issue. Will it be possible to get a normal build with the Dummy video driver instead?

from godotsteam.

Gramps avatar Gramps commented on June 12, 2024

Built with server? We typically don't make server builds of the regular version since it doesn't have any Steam server functionality at all and no one ever requested one. I'm not sure if it has a server flag in the SCons file. Not that any of those are huge, blocking issues.

EDIT: Actually it does have the server option in there! Haha.

from godotsteam.

Arcnor avatar Arcnor commented on June 12, 2024

Well, I'm not sure what "server" means in this context. What I'm trying to do is just packaging of games, so I only need the normal editor (I don't think I need the "Server" one) but with the Dummy video driver option. The games packaged with it will be regular games, not "server" ones, if that helps. (Just trying to run this on a CI)

from godotsteam.

Gramps avatar Gramps commented on June 12, 2024

Ah, I think I follow. Yeah, the server builds would be something like a dedicated server that can run without any kind of video output in headless mode. This changed a bit in Godot 4 where you can just use the --headless flag instead of compiling it with the server flag for platform.

I'm not exactly sure what adds the dummy video stuff if not the actual server platform. I can't seem to find anything about it specifically.

And you are trying to run the exported game on command line? No video output?

from godotsteam.

Arcnor avatar Arcnor commented on June 12, 2024

Hehehe, no. I'm just trying to package a game, and for that I need the dummy video output for the editor (that headless you talk about there, but using 3.5.3).

from godotsteam.

Arcnor avatar Arcnor commented on June 12, 2024

By the way, after building with the current Server editor + non-server templates, the game seems to work just fine, even the Steam parts that got errored out when building, so I guess Godot doesn't care about script errors and will happily build the scripts anyway?

from godotsteam.

Gramps avatar Gramps commented on June 12, 2024

OK, I think we may be on the same page now. Haha, it takes me a few minutes, clearly. This is for a pipeline of exporting game automatically? If so, then this all makes sense... or I'm still way off base, haha.

Hmm, you should be getting errors if you used that server editor but exported with non-server templates... maybe GodotSteam templates could work but vanilla Godot templates should give you some kind of warning when you run the exported game.

from godotsteam.

Arcnor avatar Arcnor commented on June 12, 2024

That's what I did, using the Server you compiled but using the templates from the GodotSteam package. It seems to work, so the only missing thing seems to be that error when compiling.

from godotsteam.

Gramps avatar Gramps commented on June 12, 2024

Huh, well, if it works it works! Haha. I need to investigate further is that is the only way to get the dummy video stuff in there.

from godotsteam.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.