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

Pages: [1]
1
Network / Re: Issues with receiving
« on: April 18, 2016, 03:45:37 pm »
I think the problem is that you are listening to incoming connections in client. Split the code in to server and client. In my opinion, in this case threads are overkill, put socket in non-blocking mode. Also in receive function, check if "socket1.receive(...) == sf::Socket::Done", because currently it is printing empty string all the time. I have modified your code a little. http://pastebin.com/DwqDjnE8

The reason i didn't put an if statement is because i thought that receiving was blocking. so it wouldn't continue running until it had actually received something.

2
Network / Issues with receiving
« on: April 18, 2016, 05:52:56 am »
I'm having trouble figuring out why my receiving functions won't work at all.

http://pastebin.com/8aBQDrwt

The code is all in one file. It's pretty sloppy code at the moment but i was just trying to throw something together quick to get an idea of how the networking works. I understand that the receiving function may block usage to the socket1 when opened in another thread. Also when the program is supposed to output "client connected" it does so on the person sending the connection request not the person being connected to. any suggestions? I didn't want to use the receiver in the same loop as the sending function because i didn't want the program to pause until someone sends a message.

3
Graphics / Re: Issues with sf::rendertexture
« on: October 20, 2015, 12:02:58 am »
I tried doing that. so it must be that i'm trying to copy a blank rendertexture because when i try and draw it to a window it doesn't even create a blank square. 

4
Graphics / Re: Issues with sf::rendertexture
« on: October 19, 2015, 11:23:04 pm »
Sorry for not clarifying well enough. I'm just not sure how to go about getting a copy of a texture that i've made within a rendertexture. not just a reference to the rendertexture

5
Graphics / Re: Issues with sf::rendertexture
« on: October 19, 2015, 10:25:06 pm »
If you could link me to an article that explains it that would be great as well. I would love the opportunity to learn more about the explanation than just a simple answer =P

6
Graphics / Re: Issues with sf::rendertexture
« on: October 19, 2015, 10:18:14 pm »
How would i go about copying it into the map then?

7
Graphics / Re: Issues with sf::rendertexture
« on: October 19, 2015, 10:10:02 pm »
I attempt to make a copy inside a map of textures. at least i thought i did, is it possible that it's only passing by reference?

8
Graphics / Issues with sf::rendertexture
« on: October 19, 2015, 09:40:39 pm »
Hey guys i've been having some issues getting a rendertexture to work correctly. Well it might not be the render texture itself but my code surrounding it. here's the stack overflow link to my question i would greatly appreciate any help.

http://stackoverflow.com/questions/33219674/sfml-rendertexture-not-returning-texture/33220439?noredirect=1#comment54246560_33220439

9
General discussions / Re: SFML G+ site
« on: November 25, 2013, 09:27:00 pm »
Nothing much i suppose, More of just a personal preference. I would also like to believe that once sufficient members have joined that G+ is capable of faster response times, maybe not though =P. Join if you'd like, If not, Doesn't matter to much i suppose.

10
General discussions / SFML G+ site
« on: November 25, 2013, 09:21:45 pm »
Not that I'm an expert in SFML or anything, cause I'm far from it, but upon my search for an SFML group on google plus it came up empty, so i decided to create one. The group is fairly small right now, but I'm hoping it will grow in to a responsive and easy-going community. If you have a G+ I would love for you to join and throw some more knowledge in to the pool. Thanks for reading =P

Here's a link

https://plus.google.com/u/0/communities/109047226814448027369

Pages: [1]
anything