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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - eXpl0it3r

Pages: 1 [2] 3 4 ... 626
16
General / Re: SFML Project DLL entrypoint failure
« on: January 11, 2020, 05:12:27 pm »
If you build your game with C++11 (or higher) enabled, you may need to rebuild SFML with that compiler flag enabled as well, due to different ABI for strings between pre and post C++11 in GCC.

17
SFML projects / Re: Not fixing the bug may sometimes be the right choice
« on: January 11, 2020, 05:09:44 pm »
If you have regular updates to your game project, it's better to update one thread on your game, rather than creating a new thread for each update. :)

All the best on your journey!

18
Audio / Re: Audio linking error
« on: January 11, 2020, 05:06:42 pm »
Did you link sfml-audio?

19
If you actually use events and not real-time input (sf::Keyboard::IsKeyPressed), then things should work fine.

For real-time input you will have to grant the app input monitoring privileges as far as I know, that's one of the major changes in Catalina for all applications.
There are ways to disable some stuff for developers, but as I am not a macOS user, I don't really know and would need to research myself.

20
Graphics / Re: SFML moving view bug?
« on: January 11, 2020, 04:28:28 pm »
Please use [code=cpp][/code] tags when posting code and read the sub-forum descriptions before creating threads in unrelated sub-forums.

If you want to translate mouse positions from screen space to world space, you can use the function mapPixelToCoords. Other than that, makes sure you check your math with a debugger and some pen & paper. :)

21
General / Re: Segmentation Fault
« on: January 10, 2020, 12:38:12 pm »
Try to run it through a debugger.
The debugger will tell you where it crashes and give you a call stack, from which you can figure out what went wrong. Additionally, you can add break points and inspect variable values before the crash.

22
General / Re: Slow event-loop when mouse is moving
« on: January 09, 2020, 01:08:49 pm »
I assume that your event loop keeps stalling due to a broken joystick/gamepad driver, which in turn also causes the error message to be printed on the console.
I'd suggest to find the bad driver and remove it or find a non-broken one.
If that's not an option, then you could give this PR a try: https://github.com/SFML/SFML/pull/1634

23
Network / Re: FTP with explicit TLS
« on: January 08, 2020, 01:59:37 pm »
SFML doesn't support TLS and as such can not support FTPS (or SFTP).

25
System / Re: What is wrong with my self made frame rate limit code?
« on: January 06, 2020, 10:02:19 am »
You're doing more than just limiting your framerate.
I don't really have the time right now to debug your code, but you can take a look at how SFML implements setFramerateLimit, in case you're looking for a simple solution: https://github.com/SFML/SFML/blob/master/src/SFML/Window/Window.cpp#L222

26
General / Re: SFML / VS19 - LNK1318
« on: January 05, 2020, 11:16:47 pm »
With compiler and linker errors it's always best to understand what the error actually means. With Visual Studio you can just google the error code and you'll get to MSDN with explanations on how the errors usually occur and the most common steps to resolve the issue.

For LNK1318 check this: https://docs.microsoft.com/en-us/cpp/error-messages/tool-errors/linker-tools-error-lnk1318?view=vs-2019

You probably just need to clean the project, deleting everything including the PDB files.

27
General / Re: how to draw a tennis court
« on: January 05, 2020, 10:49:09 pm »
Easiest and probably most flexible solution (w.r.t. the design) is to just draw something in GIMP/photoshop/etc and then render the whole image as a sprite. Potentially the net as a second overlaying sprite, in case you need to render the ball behind the net.
From there you'll have to apply some math to calculation trajectories and depth position and correlating ball size.

Alternatively, you could use something like Elastic Sprite.

28
General / Re: Failed to set DirectInput device axis mode: 1
« on: January 04, 2020, 12:09:19 pm »
Can you try this fix/workaround?

https://github.com/SFML/SFML/pull/1634

29
General / Re: Text
« on: December 24, 2019, 03:04:04 pm »
You could use a std::string to hold your text, use std::to_string() to convert from numbers (your score) to text and then all you need to do is call setString on the sf::Text object.

If you haven't already, I highly recommend you read through the official tutorials. :)

30
Graphics / Re: mapPixelToCoords
« on: December 21, 2019, 04:57:51 pm »
It's part of RenderTarget and as such part of RenderWindow and RenderTexture, but not part of sf::Window. :)

Pages: 1 [2] 3 4 ... 626