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

Pages: 1 2 [3] 4
31
General discussions / Gving out my exe
« on: February 01, 2008, 02:27:16 am »
What all do i need to have with my exe that i have compiles from my code using SFML in order to run the exe on other computers with out all the sfml dlls and libs and includes?

32
Network / Getting a window and networking to work
« on: January 31, 2008, 10:13:54 am »
Hi I was wondering if you would make a simple program that would display a blank window and would allow you to press the a key to send a message from the server to a client and visa versus.

I have been trying to get a window and some networking working but cant seem to get the input to work correctly. I have basically this:

Code: [Select]
while(1)
{
if( app.GetInput().IsKeyDown( sf::Key::A ) && key != true )
{
ToSend = "a";
key = true;
}
if( !app.GetInput().IsKeyDown( sf::Key::A ) && key != true )
{
key = true;
}

if (Client.Send(ToSend.c_str(), sizeof(ToSend.c_str())) != sf::Socket::Done)
return;
std::cout << "Message sent to the client : \"" << ToSend << "\"" << std::endl;

// Receive a message back from the client

if (Client.Receive((char*)Message.c_str(), sizeof(Message.c_str()), Received) != sf::Socket::Done)
return;

// Show the message
std::cout << "Message received from the client : \"" << Message << "\"" << std::endl;
app.Display();
}



in hopes that pressing the 'a' key would change teh sent data to "a" instead of "test" or "test client".

If you have time and it is not too much of a hassle could you put together a tutorial or some code which sends data across when you hit a key.
Thank you.
[/code]

33
Window / oops
« on: January 11, 2008, 11:10:27 pm »
I meant left corner sorry where the mozilla firefox mini symbol is...

34
Window / changing the upper right hand corner image?
« on: January 11, 2008, 07:59:03 am »
How do I change the upper right hand corner image?
I have read through all the appropriate docs and tutorials and I can't find what is needed with sfml to do that.

35
Graphics / reason for unsigned int
« on: September 22, 2007, 10:17:11 am »
I was using this function with string.size() which returns an unsigned int, and so I used unsigned int to stop linker warnings. but i forgot to change the unsigned int after i had put solid numbers in the for loop.

so what you are saying is it is best to redraw everything and there is no better way to redraw things only when they change?

I would hope that there is a feature which would handle this sort of thing.]

thanks for the response

happy coding.

36
Graphics / Better way to draw to the screen
« on: September 22, 2007, 12:19:18 am »
here is the code which i am running in my main loop

        float width = 0.0;
   float height = 0.0;
   //window.Display();
   for( unsigned int i = 0; i < 60; ++i )
   {
      for( int j = 0; j < 80; j++)
      {
         width += 10;
         mapSprites[mapInts[j]].SetLeft( width );
         mapSprites[mapInts[j]].SetTop( height );
         window.Draw( mapSprites[mapInts[j]] );
      }
      height += 10;
      width = 0;
   }


i was wondering if there is a better way to draw to the screen or redraw the screen without drawing every sprite over again. So maybe only drawing one sprite that has changed over again instead of redrawing all the sprites over again.

Is there a function which draws just portions of the screen and keeps everything else on the screen?

And if not could that be a feature added in for the next release?

thanks

happy coding

37
General discussions / I'm down
« on: September 21, 2007, 06:07:38 pm »
If you need things to be tested I wouldn't mine helping out. Just reply to this and let me know what needs to be tested.

Happy coding :)

PS: I check your forums like 3 times a day... So I will respond promptly.

38
Graphics / Font list
« on: September 18, 2007, 10:59:15 pm »
Hey I was wondering if I could get a list of all the font extensions that SFML uses

the only ones listed on the feature page are these ones

Easy manipulation of graphical text through bitmap fonts ; supports unicode characters and standard font file formats (ttf, cff, pcf, bdf, ...)

thanks

39
SFML website / I just figure it out
« on: September 18, 2007, 08:45:39 am »
I just reset my cookies and other saved browser settings and now i see everything fine.

what does ctrl+F5 do?

40
Window / Sorry
« on: September 18, 2007, 08:43:49 am »
I have have been so focused on the forums that I haven't been paying attention to the home page. I will make more of an effort to keep up on the home page.

sorry again

I don't mean to be annoying.

by the way Great job with SFML I am more and more impressed with it everyday

41
SFML website / No
« on: September 18, 2007, 08:40:42 am »
No I am using FireFox.

42
Window / Window Style
« on: September 18, 2007, 08:39:12 am »
When I pass sf::Window::Fullscreen to the window constructor I get this message in the console window 'the requested video  is not available, switching to a valid mode' but then it goes to fullscreen mode. I was wondering if there is something i am doing wrong to get this message. here is the code section

sf::RenderWindow window( sf::VideoMode( 1280, 750 ), "Map Editer", sf::Window::Fullscreen );

43
SFML website / Is there something wrong with the website...
« on: September 18, 2007, 07:32:45 am »
I don't see the SFML logo any more and the menu with Home, Download, Doc etc. doesn't show up until I move the mouse over the word. Does anyone else have this problem?

44
Window / Thanks
« on: September 18, 2007, 07:10:32 am »
I just got it installed... LOL now i have to change my code to use the sf namespace lol so that is what i am currently doing. Was there an announcement that the 1.1 version was released?

45
Window / There is no MouseWheelMoved with my installation of SFML
« on: September 18, 2007, 06:47:28 am »
I am trying to get the mouse wheel input. I just looked at my copy of the Event class declaration and it isn't in the enumeration. I looked at the doc

http://sfml.sourceforge.net/documentation/Event_8hpp-source.htm

and it is different from the copy I have. I was wondering if the doc is the new updated SFML which is soon to come out, or if there is a different SFML download which has the same enumeration as the docs?

thanks

Pages: 1 2 [3] 4
anything