Orx - Portable Game Engine
Welcome, Guest
Please Login or Register.    Lost Password?
Black screen
(1 viewing) 1 Guest
Go to bottom
TOPIC: Black screen
#8744
zigzauer
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
Black screen 2 Weeks, 2 Days ago Karma: 0
Hi guys. Starting to lose hope with configuring orx on win 10 64bit :| I've been following grey's tutorial for linux x64, which was fine. Currently I'm trying to configure on win 10 with visual basic 2017. The problem is that even everything compiles, all I get is an empty console and a separate empty black screen. If I add some input to game, console logs those inputs, but screen stays blank - no errors, no warnings- nothing. Plus, even Project.ini has parameters for screen size 640*480, black window opens in the same resolution as my screen is. Maybe somebody else had same issue? Thanks in advance
 
Logged Logged
  The administrator has disabled public write access.
#8745
iarwain
Administrator
Posts: 3117
graph
User Offline Click here to see the profile of this user
Gender: Male Orx - Portable Game Engine Location: Montreal
Re:Black screen 2 Weeks, 2 Days ago Karma: 71
Hi Zigzauer and welcome here!

Which version of orx are you using? Is it the latest from hg/git repos or a binary package?

The symptoms you describe make me think that orx doesn't find a Display section and initiates with the default parameters (hence the black screen that matches the desktop resolution).

Are you using the debug version? If not, I'd recommend using it to see which messages it'd give you. It should be pretty verbose if it doesn't find the config file (which would be my guess).

Let us know how it goes!
 
Logged Logged
 
Want to follow orx's development? Check our Trello board: http://trello.com/b/g4jMS6jc/orx-tasks
  The administrator has disabled public write access.
#8747
sausage
Moderator
Posts: 705
graphgraph
User Offline Click here to see the profile of this user
Gender: Male sausagejohnson http://waynejohnson.net Location: Near Canberra, Australia
Re:Black screen 2 Weeks, 2 Days ago Karma: 3
Hi Zigzauer,

Don't lose hope. That particular tutorial may be aging a little, so I'll need to check it for win 10 / vs 2017. It might need fixing up.

Perhaps you might be better following along with the beginner's tutorial at: orx-project.org/wiki/guides/beginners

In the meantime, if you want to do a small test, try changing the background color in your config with:

[Viewport]
Camera = Camera
BackgroundColor = (255, 0, 0)

This will test that it is rendering at least. You might be having problems with object positions versus the camera position.

Let us know how you get on. We'll get you up and going somehow.
 
Logged Logged
 
Indie gamedev with Orx at night. Always feel free to come and say hi over in gitter.im/orx/orx gitter chat or drop me a message.
  The administrator has disabled public write access.
#8748
zigzauer
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
Re:Black screen 2 Weeks, 1 Day ago Karma: 0
well, probably not the most professional solution, but I just took tutorial-vs2015-64, removed everything except 10_Locale project, built it and it seems to work fine. What was wrong with last config still bothers me, but for now I'll probably try to built everything on it.
About what sausage, config did not do anything, screen doesn't change according to params. Anyway, thanks for a such instant response. If I'll figure out what was wrong with that custom config, will let you know
 
Logged Logged
  The administrator has disabled public write access.
#8749
sausage
Moderator
Posts: 705
graphgraph
User Offline Click here to see the profile of this user
Gender: Male sausagejohnson http://waynejohnson.net Location: Near Canberra, Australia
Re:Black screen 2 Weeks, 1 Day ago Karma: 3
zigzauer wrote:
well, probably not the most professional solution, but I just took tutorial-vs2015-64, removed everything except 10_Locale project, built it and it seems to work fine.


That's totally fine. I often use a tutorial download for scratching out quick ideas. We have a more formal project template being put together at the moment to help in these very situations.

zigzauer wrote:
What was wrong with last config still bothers me, but for now I'll probably try to built everything on it.
About what sausage, config did not do anything, screen doesn't change according to params. Anyway, thanks for a such instant response. If I'll figure out what was wrong with that custom config, will let you know


I'll try that linux tutorial out and see if it has gone stale.
 
Logged Logged
 
Last Edit: 2017/08/02 23:30 By sausage.
 
Indie gamedev with Orx at night. Always feel free to come and say hi over in gitter.im/orx/orx gitter chat or drop me a message.
  The administrator has disabled public write access.
#8750
sausage
Moderator
Posts: 705
graphgraph
User Offline Click here to see the profile of this user
Gender: Male sausagejohnson http://waynejohnson.net Location: Near Canberra, Australia
Re:Black screen 2 Weeks, 1 Day ago Karma: 3
zigzauer wrote:
I've been following grey's tutorial for linux x64, which was fine. Currently I'm trying to configure on win 10 with visual basic 2017.

zigzauer, can you link me the specific tutorial you followed and the download link of orx you used to do this? I'll use the same setup as you to hunt it down.
 
Logged Logged
 
Indie gamedev with Orx at night. Always feel free to come and say hi over in gitter.im/orx/orx gitter chat or drop me a message.
  The administrator has disabled public write access.
#8751
sausage
Moderator
Posts: 705
graphgraph
User Offline Click here to see the profile of this user
Gender: Male sausagejohnson http://waynejohnson.net Location: Near Canberra, Australia
Re:Black screen 2 Weeks ago Karma: 3
I checked this tutorial:

orx-project.org/wiki/tutorials/community/grey/tutorial2

against the 1.8 binary version of orx and it is still valid. Works fine. Is this the one you used?

If you got an empty black screen, was it a huge black screen (ie not the 640x480) you expected? If so, the name of your config file could be wrong and your application may not be finding it.

Orx will generate a log file in the bin folder with any problems it finds.
 
Logged Logged
 
Indie gamedev with Orx at night. Always feel free to come and say hi over in gitter.im/orx/orx gitter chat or drop me a message.
  The administrator has disabled public write access.
#8752
zigzauer
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
Re:Black screen 2 Weeks ago Karma: 0
I'll check the logs in the evening and yes, I've followed grey tutorial using github.com/orx/orx/releases/download/1.8...v-vs2015-64-1.8.zip.
As for linux, everything went fine using codeblocks. I'll try to find why my console was not logging any exceptions. Anyway, I'm pretty sure the problem was my config and inability to find *.ini, just not sure where specifically it went wrong
 
Logged Logged
 
Last Edit: 2017/08/03 07:31 By zigzauer.
  The administrator has disabled public write access.
#8753
sausage
Moderator
Posts: 705
graphgraph
User Offline Click here to see the profile of this user
Gender: Male sausagejohnson http://waynejohnson.net Location: Near Canberra, Australia
Re:Black screen 2 Weeks ago Karma: 3
Also feel free to zip up the vs2017 project on grey's tutorial you did and attach it. I can give it a shot then.

(But just remove big visual studio binaries)
 
Logged Logged
 
Indie gamedev with Orx at night. Always feel free to come and say hi over in gitter.im/orx/orx gitter chat or drop me a message.
  The administrator has disabled public write access.
#8754
iarwain
Administrator
Posts: 3117
graph
User Offline Click here to see the profile of this user
Gender: Male Orx - Portable Game Engine Location: Montreal
Re:Black screen 2 Weeks ago Karma: 71
I'm glad you got it working another way. Sorry for the slow replies on my side as I'm currently on vacation.

As Sausage pointed out, we're working on an automated way to init a base project from a template, hopefully that'll get in before the end of the month.

Aside from that, if you post an archive with your original project, I'd be happy to have a look on my side as well.

Don't hesitate to use the chat either if you feel like it. =)
 
Logged Logged
 
Want to follow orx's development? Check our Trello board: http://trello.com/b/g4jMS6jc/orx-tasks
  The administrator has disabled public write access.
#8755
iarwain
Administrator
Posts: 3117
graph
User Offline Click here to see the profile of this user
Gender: Male Orx - Portable Game Engine Location: Montreal
Re:Black screen 2 Weeks ago Karma: 71
Regarding the initial .ini file, orx will look by default for a file that matches the name of the executable, replacing the extension with .ini. Of course if one is on linux, the names have to be identical in a case sensitive way.
It'll look for that file in the same folder than the executable itself.
If you wish to load the initial config file from a different folder/directory or with a different name, that can be done through the config bootstrap but I do not know if we currently have any tutorials about that part.
 
Logged Logged
 
Want to follow orx's development? Check our Trello board: http://trello.com/b/g4jMS6jc/orx-tasks
  The administrator has disabled public write access.
#8756
sausage
Moderator
Posts: 705
graphgraph
User Offline Click here to see the profile of this user
Gender: Male sausagejohnson http://waynejohnson.net Location: Near Canberra, Australia
Re:Black screen 2 Weeks ago Karma: 3
iarwain wrote:
that can be done through the config bootstrap but I do not know if we currently have any tutorials about that part.

*Wayne pull rabbit out of hat*: orx-project.org/wiki/tutorials/changing_default_config_file

That will show you how. However, probably best not worry about this right now, and just ensure your config file has the same matching name as the executable to ensure orx finds it, eg:

zigzauer.exe
zigzauer.ini

or

zigzauerd.exe
zigzauerd.ini

 
Logged Logged
 
Indie gamedev with Orx at night. Always feel free to come and say hi over in gitter.im/orx/orx gitter chat or drop me a message.
  The administrator has disabled public write access.
#8757
zigzauer
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
Re:Black screen 1 Week, 4 Days ago Karma: 0
Thanks a lot for helping me out. Sorry about the zip, forgot to commit to mercurial as nothing worked so now everything is overridden by current project :| Still, I'm pretty sure it was some dumb config issue...it's also possible I made some dublication in one of *.ini's so viewport config got overriden by broken config
 
Logged Logged
  The administrator has disabled public write access.
#8758
sausage
Moderator
Posts: 705
graphgraph
User Offline Click here to see the profile of this user
Gender: Male sausagejohnson http://waynejohnson.net Location: Near Canberra, Australia
Re:Black screen 1 Week, 4 Days ago Karma: 3
Yeah it's usually just a simple config thing which gets easier to spot over time as you use it more.

Good to hear you sorted it out.

Don't forget, you can come chat on gitter for faster help (link on the left of this site).

Or just forum posts if you're not in too much of a hurry.
 
Logged Logged
 
Indie gamedev with Orx at night. Always feel free to come and say hi over in gitter.im/orx/orx gitter chat or drop me a message.
  The administrator has disabled public write access.
Go to top