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

Pages: [1]
1
Graphics / Re: Blurry small sized letters
« on: June 21, 2014, 11:56:37 am »
I'm happy to know that! Thanks for your efforts SFML development team ;)

2
Graphics / Re: Blurry small sized letters
« on: June 21, 2014, 01:45:15 am »
I though about it, but I didn't think it would show the problem correctly.
But actually I think it did...
Same text before and after moving the window and resizing it (without affecting text size)



My window is not rescaling anything... unless there is a bug that I do not know.
And that is size 14. It's more noticeable on lower sizes.

3
Graphics / Blurry small sized letters
« on: June 21, 2014, 01:32:56 am »
I'm using SFML with various letter types like courier and vera serif. When I tried to lower the letter size to ~12 some letters appear blurry and lighter.

I think it as to due with the letters not matching screen pixels.

Do you guys know a way to make this effect less visible?

4
Network / Re: Exception on socket.send()
« on: June 19, 2014, 03:07:14 pm »
This pointer is declared inside an object Client.

client_list.push_back(Client("", false));

Every time I pass an object or the full list I do it as a reference. At least I think I do.
I only use that pointer to send and receive messages, like so:

Socket->send(buffer, x + 1);

And as a argument to selector functions:
selector.isReady(*client_list[i].S.Socket))

EDIT: I don't really know what the problem is, but it has something to do with vector push_back() and erase()
I tried to comment those lines and the program compiles without errors

EDIT2: I ended up changing my vector to store unique pointers to Clients instead of the clients themselves. Everything working as intended... for now. Thanks a lot guys, I REALLY appreciate your help.

5
Network / Re: Exception on socket.send()
« on: June 19, 2014, 02:46:55 pm »
error C2280: 'std::unique_ptr<sf::TcpSocket,std::default_delete<_Ty>> &std::unique_ptr<_Ty,std::default_delete<_Ty>>::operator =(const std::unique_ptr<_Ty,std::default_delete<_Ty>> &)' :
attempting to reference a deleted function      c:\program files (x86)\microsoft visual studio 12.0\vc\include\xlocmon

Still not working. Thanks for your help anyway :D

6
Network / Re: Exception on socket.send()
« on: June 19, 2014, 01:41:49 pm »
Thanks! that fixed it!
But I still can't get this to work....
std::unique_ptr<sf::TcpSocket> Socket;
Socket = make_unique<sf::TcpSocket>();

this tries to copy a tcpsocket, which cannot be copied. How do I re-write this so that no copies occur?

7
Network / Re: Exception on socket.send()
« on: June 19, 2014, 01:18:57 pm »
I tried to use unique_pt but... I get and error saying that unique_ptr is not a member of std.
Using VS2013 with c++11 flag and #include<memory.h>

8
Network / Exception on socket.send() - Solved! Thank you all!
« on: June 19, 2014, 01:23:35 am »
Hey guys! I'm writing down some code to use on a simple messaging server.

Whenever the server has to send some messages in a row, I get:  Access violation reading location 0xFEEEFEF6
I've been getting some errors for trying to modify free heap values too.

this is where I allocate the socket (Sorry if it's hard to read :S)

client_list.push_back(Client("", false, new sf::TcpSocket));  //I'm creating a client object, storing it
                                listener.accept(*(client_list[client_list.size() - 1].S.Socket));     //on a vector
                                selector.add(*(client_list[client_list.size() - 1].S.Socket));

And I free memory here.
delete client_list[i].S.Socket;
client_list.erase(client_list.begin() + i , client_list.begin() + i + 1);

Maybe this isn't enough to get a correct evaluation, but I don't really know from where else the bug could be coming from.

Thanks!

9
General / Re: Setting SFML up in VC 2013
« on: June 13, 2014, 11:30:17 pm »
I did. I don't really understand what dynamic and static means, so I'll check it out on the internet to see if I understand what I'm doing wrong

Btw I tried to change the properties of the project to have the the release dll's linked with the release version and the -d ones linked with the debug version. I get the same error on both

EDIT: From what I understood static means you have an exe doing everything, dynamic means you have dll + exe. For this project I do prefer static so I'll check if everything is set to static.

EDIT2: I'm getting an error by compiling INSTALL after setting everything up for static in CMake, so... I'll try to make it Dynamic instead xD

EDIT3: IT WORKED! You guys are my heroes :D

10
General / Re: Setting SFML up in VC 2013
« on: June 13, 2014, 11:06:54 pm »
Thanks a lot  for your help guys! I didn't know I had to add those 2 static libraries to the .exe folder.

One more problem (hopefully the last one I need help to solve): when I try to the draw() function

Window.draw(text);

I get a linking error:    error LNK2001: unresolved external symbol "public: static class sf::RenderStates const sf::RenderStates::Default" (?Default@RenderStates@sf@@2V12@B)

everything else is working fine, I don't know what's wrong ...

11
General / Re: Setting SFML up in VC 2013
« on: June 13, 2014, 05:11:37 pm »
Oh... what a stupid mistake!
Thank you very much ;)

Well, after testing my program, I'm getting a lot of dll missing errors.
It compiles, but I get an error right after saying that OpenAl is missing. I installed OpenAl and now libsndfile-1.dll is missing. Did I forget something?

12
General / Re: Setting SFML up in VC 2013
« on: June 13, 2014, 05:05:22 pm »
Well... the problem is that it should be able to find it, because I added it's location to Additional Libraries on Linker settings.

13
General / Setting SFML up in VC 2013
« on: June 13, 2014, 05:01:34 pm »
Hey guys. I spent more than 2 hours already trying to install SFML so... I decided to call for help.

I followed the tutorial (at least I think I did): got the source, ran CMake on it, and finally compiled INSTALL project.

New project -> setting everything up as requested and...
Error   1   error LNK1104: cannot open file 'sfml_audio-d.lib'

I checked the project definitions more than 20 times already. I tried to change Linker->Additional Directories to every folder on my pc that as that library, no success :S
Already tried to start from scratch, use different definitions on CMake, still not working.

Thanks!

Pages: [1]
anything