Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running a script gives a nice, magical screen #2081

Closed
bojidar-bg opened this issue Jun 13, 2015 · 9 comments
Closed

Running a script gives a nice, magical screen #2081

bojidar-bg opened this issue Jun 13, 2015 · 9 comments

Comments

@bojidar-bg
Copy link
Contributor

Using the instructions in https://github.com/okamstudio/godot/wiki/command_line#running-a-script I get a magenta (magical pink) window (The scripts does run nevertheless). I think that the window is not needed at all, and it will be better if no window is opened when godot runs with the -s flag... (or maybe a --no-gui flag? 😄 )

OS: Ubuntu-gnome 14-10
GODOT: master

@captainwasabi
Copy link
Contributor

-quiet -nowindow

@bojidar-bg
Copy link
Contributor Author

@captainwasabi nope, doesn't work...

@punto-
Copy link
Contributor

punto- commented Jun 13, 2015

There's no reason to assume that your script will not try to use graphics,
your script is actually capable of running a whole game (it just provides
an implementation of MainLoop). The "server" platform (which compiles only
for linux at the moment, but should be too hard to port) provides a
headless implementation that won't open a window.

On Sat, Jun 13, 2015 at 11:12 AM, Bojidar Marinov notifications@github.com
wrote:

@captainwasabi https://github.com/captainwasabi nope, doesn't work...


Reply to this email directly or view it on GitHub
#2081 (comment).

@captainwasabi
Copy link
Contributor

Just more FYI. On Windows (8.1) using the example from the wiki, https://github.com/okamstudio/godot/wiki/command_line#running-a-script, using both -silent -nowindow looks like it does run, but nothing prints but engine debug stuff. If I just run with -nowindow it works fine (although I wish there was a way to suppress the engine debug stuff, i.e.

EXEC PATHP: C:\Projects\Games\Godot\godot_win64.exe
EXEC PATHP: C:\Projects\Games\Godot\godot_win64.exe
DETECTED MONITORS: 1
Hello!
freed code id 1
ERROR: free_static:  Condition ' !MemoryPoolStatic::get_singleton() ' is true.
At:  core/os/memory.cpp:58

@bojidar-bg
Copy link
Contributor Author

@punto- nice to know... 😄 Maybe when we are able to have many game windows, it will be simpler to do this things...

@akien-mga
Copy link
Member

@bojidar-bg What's the status on this issue?

@bojidar-bg
Copy link
Contributor Author

@akien-mga There is still no way to make a script run without a window in non-server versions. The best workaround would be:

godot.dbg -r 1x1 -w  -s <path/to/script.gd>

Anyway, it would now display the splash screen, or "nothing", but it would not display pink. So, I guess it might be closeable, but we would need a multiwindow support issue, and/or a nowindow support issue.

@hubbyist
Copy link

hubbyist commented Jun 28, 2017

I encountered this issue when developing algorithm for #9264 (comment).

So a --nowindow mode for godot -s command will be useful I think.

@Calinou
Copy link
Member

Calinou commented Dec 7, 2019

Closing in favor of godotengine/godot-proposals#198.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants