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 - Rosme

Pages: [1] 2 3 ... 12
1
General / Re: Debug works perfectly, Release works halfway?!
« on: March 03, 2020, 02:47:13 pm »
The release lib are those without the "-d". Make sure you link correctly to those.

You are right in saying your compiler cannot change the way it reads your algorithm, however if your code has undefined behaviour, and other bugs, the compiler can do a lot of stuff that maybe you don't want. My guess if the libraries are fine, is that you might have some bug that doesn't show in debug because of the debug is built, but it does show in release. Without the code, kinda hard to know for sure though, and at this point, I'd suggest to build release with debug info and go with a debugger.

Otherwise, try to make a minimal reproducible and complete code for us to help you.

2
Window / Re: Valgrind reports 464 bytes lost in simple Window program
« on: February 17, 2020, 02:17:47 pm »
That's normal. Due to some global variable in the SFML code. No worries there.

3
Feature requests / Re: Friendly string mapping to Keyboard::Key
« on: January 27, 2020, 03:04:29 pm »
No I did not. Jokes/irony does not translate well in text. But it's fine :)

However, the original answer remain. C++ does not have a ToString that can be overriden.

4
Feature requests / Re: Friendly string mapping to Keyboard::Key
« on: January 23, 2020, 04:03:06 pm »
Unlike C#, C++ classes don't inherit from an root object class, that contains the ToString function. We are to this day still stuck in doing our own mapping. Thor does provided a mapping, and it's really not that hard to do.

As for prompting people to move to whatever thing, let just people use whatever they want :)

5
Network / Re: Linking error only against sfml-network on linux
« on: January 20, 2020, 06:31:09 pm »
Nothing in 2.5.1 changed for that class. My guess is that either your compiler is not actually fully compatible, or you've not installed the package correctly. I suggest rebuilding 2.5.1 yourself instead of using the Linux package. It's just safer for compatibility.

6
General / Re: Sprite Pointer?
« on: January 09, 2020, 05:32:56 pm »
1- This is basic C++. I suggest reading a good book before doing anything like this if you don't know this.
2- Sprite are lightweight, texture are heavy. Just create a sprite on the fly.
3- Read 1 again. This is very basic C++ and you should know this before trying to make a game.

7
General / Re: STL List object with sprite
« on: December 18, 2019, 06:28:17 pm »
You need to make sure you scope your memory correctly. A resource manager is what you probably need. This is not a good case for a list.

As for the check with chestAmount, there's nothing in the code here that indicates that the size of your list is equal to the chestAmount. The runtime error says it. You are trying dereference the end iterator. So you are going too far.

8
SFML projects / Re: SFML Gameboy Emulator
« on: December 17, 2019, 03:21:16 pm »
Awesome, can't wait to dive into that code! Thanks for sharing!

9
General / Re: STL List object with sprite
« on: December 17, 2019, 03:18:36 pm »
I'd be really curious to see why a list is better than a vector in your case (in most case, a list is not better than a vector). Also, the difference between his and yours is that he check if the iterator has reached end(). You don't which is exactly what your error is saying. Cannot deference end list iterator.

10
There's quite a few pattern that can be found here. I suggest you read on the state pattern.

11
SFML projects / Re: 2D Game Engine
« on: December 10, 2019, 02:00:54 pm »
Game Engine in general are usually optimized. They are also most of the time developed with a game. There's a reason why people say "make a game, not an engine". One of the main reason why people uses a 3D engine to make 2D game is because, 2D is 3D but with just a dimension cut off. Ultimately, most of the feature of one can be applied in some way to the feature of the other one.

Do you have anything to show us? Because saying you want to make an optimized engine is great, but can you do it, and please defined optimized (performance, memory wise, etc.)

12
General discussions / Re: Android x64 support
« on: December 05, 2019, 03:13:41 pm »
PR are always welcome. Remember that the SFML team is working on their spare time for free. If you have the solution, or you are willing to put time on this, go ahead.

13
SFML projects / Re: SFML Gameboy Emulator
« on: November 29, 2019, 07:05:24 pm »
Wow that is very nice.

If I may, I'd suggest publish it even if not clean. Facilitate code review, but also shows the evolution and things work!

But good job!

14
You have a ; at the end of the if. So the if doesn't matter and what is in the brackets will always be executed.

15
General discussions / Re: IRC chat (70+ users)
« on: November 13, 2019, 03:37:40 pm »
There's an actual IRC server hosted and managed by the SFML Team. Discord being free and somewhat without restriction was a good addition and was asked by a lot of users on the IRC originally. While it is mainly aimed at gamers, a lot of communities are using it for much more than that.

Pages: [1] 2 3 ... 12