Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: My game doesn't work on friend's PC  (Read 2929 times)

0 Members and 1 Guest are viewing this topic.

SuperV1234

  • SFML Team
  • Full Member
  • *****
  • Posts: 190
    • View Profile
My game doesn't work on friend's PC
« on: July 30, 2010, 01:49:19 pm »
My game works fine on my PC and my notebook. It has an INI where you can set your stuff. By default, it's like this:
Code: [Select]
[Rendering]
Windowed=1
Width=1022
Height=900

[Audio]
Sound=1
Music=1


If Windowed is 1, the game creates a WidthxHeight window.
If Windowed is 0, the game creates a fullscreen WidthxHeight window.

If my friend starts the game with Windowed 1, the window doesn't appear, but the music starts.

If my friend starts the game with Windowed 0, the tiles are way too small for his resolution.

Why isn't a window created with Windowed 1?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
My game doesn't work on friend's PC
« Reply #1 on: July 30, 2010, 01:54:49 pm »
You should check error messages in the standard error output, SFML certainly tells you what happens.

For example, 1022x900 is probably not a valid fullscreen resolution.
Laurent Gomila - SFML developer

SuperV1234

  • SFML Team
  • Full Member
  • *****
  • Posts: 190
    • View Profile
My game doesn't work on friend's PC
« Reply #2 on: July 30, 2010, 02:47:45 pm »
But it actually works only in fullscreen. It's the windowed mode that doesn't work.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
My game doesn't work on friend's PC
« Reply #3 on: July 30, 2010, 02:55:16 pm »
Yes it works, but SFML automatically switches to a valid resolution. So what you get is not what you expect.
Laurent Gomila - SFML developer

SuperV1234

  • SFML Team
  • Full Member
  • *****
  • Posts: 190
    • View Profile
My game doesn't work on friend's PC
« Reply #4 on: July 30, 2010, 03:42:57 pm »
Quote from: "Laurent"
Yes it works, but SFML automatically switches to a valid resolution. So what you get is not what you expect.


What are the valid fullscreen resolutions? All 4:3 / 16:9 / 16:10 work?

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
My game doesn't work on friend's PC
« Reply #5 on: July 30, 2010, 03:54:13 pm »
You can obtain the valid fullscreen resolutions by calling sf::VideoMode::GetFullscreenModes().
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
My game doesn't work on friend's PC
« Reply #6 on: July 30, 2010, 03:59:46 pm »
Quote
You can obtain the valid fullscreen resolutions by calling sf::VideoMode::GetFullscreenModes().

This is for SFML 2.0, for 1.6 look at this page:
http://www.sfml-dev.org/documentation/1.6/classsf_1_1VideoMode.htm
Laurent Gomila - SFML developer

 

anything