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

Pages: [1] 2
1
SFML projects / Sf Fireworks
« on: January 03, 2014, 02:58:14 am »
Hey all! Since it was New Years yesterday (I know I'm late) I decided to make a simple fireworks program.
Feel free to mess/tinker with it!

Github: https://github.com/replaceits/Sf-Fireworks

No binaries included, you'll have to compile your self.
Only controls are Left click to launch a firework and Escape to exit.

Any ways happy new years everyone!  ;D

2
Graphics / Moving borderless windows? [Linux]
« on: July 07, 2013, 09:09:29 pm »
So after writting a few custom system monitors for my computer I realized that I am unable to move any borderless window made in SFML (it would just look bad in a window). Every window in Linux thats borderless I've been able to move with Alt+Leftclick, SFML seems to be the exception though   ??? Is there a way to get this working or must I write my own code to get this to work? (It's not that big of a deal just wondering if I actualy need to code it in or not :P )

~Using Arch with KDE if that helps at all

3
General discussions / Typo?
« on: June 03, 2013, 03:36:10 am »
So in the OpenGL.cpp example that has the line
// Define a 3D cube (8 faces made of 2 triangles composed by 3 vertices)
shouldnt this be
// Define a 3D cube (6 faces made of 2 triangles composed by 3 vertices)
;D

4
SFML website / Re: Search error when JavaScript is enabled
« on: June 01, 2013, 10:17:47 am »
Hmm, must be something on my end then.

5
SFML website / Search error when JavaScript is enabled
« on: June 01, 2013, 12:44:13 am »
I've been having this issue since the start of the new site, it seems that every time I try to use the forum search function with JavaScript enabled I get this error "Please try again. If you come back to this error screen, report the error to an administrator.".
However if I view the site with JavaScript disabled it works perfectly fine, I'm not sure if I'm the only one with this problem but I just thought I should point it out. (:

Also I'm using Ubuntu 12.04 with Firefox 21.0, I do believe that the site works fine for me on Windows 8 with Firefox, not sure what's causing the problem here.

6
Graphics / sf::Text & sf::Rectangleshape display at diffrent positions?
« on: December 27, 2012, 04:50:01 am »
So I've trying to create a simple menu for a test project, however I can not get a rectangle to sit exactly behind the text, the text is always lower than the shape when using the same position, size, and origin.

    sf::Text StartButton(sf::String("Start"),DefFont,50);
    StartButton.setColor(sf::Color(255,255,255));
    StartButton.setOrigin(StartButton.getLocalBounds().width / 2, StartButton.getLocalBounds().height / 2);
    StartButton.setPosition(App.getSize().x / 2, App.getSize().y / 2);

    sf::RectangleShape StartRec;
    StartRec.setSize(sf::Vector2f(StartButton.getLocalBounds().width, StartButton.getLocalBounds().height));
    StartRec.setOrigin(StartRec.getLocalBounds().width / 2, StartRec.getLocalBounds().height / 2);
    StartRec.setPosition(sf::Vector2f(StartButton.getPosition().x, StartButton.getPosition().y));
    StartRec.setFillColor(sf::Color(50,50,50));
    StartRec.setOutlineColor(sf::Color(40,40,40));
    StartRec.setOutlineThickness(4);

That declares the two, the size is correct however the position is not, any idea what's going on here?
I've attached a pic of what I'm talking about and a copy of the src (no where near done with it).


[attachment deleted by admin]

7
General / Re: Trouble compiling SFML-2.0 in Linux (Ubuntu 12.10)
« on: November 16, 2012, 10:46:54 pm »
Ah, figured out my problem, I didn't have the dev packages for OpenGL installed.
If anyone else has this problem make sure you have all the dependencies.
sudo apt-get install libpthread-stubs0-dev libgl1-mesa-dev libx11-dev libxrandr-dev libfreetype6-dev libglew1.5-dev libjpeg8-dev libsndfile1-dev libopenal-dev

8
General / Trouble compiling SFML-2.0 in Linux (Ubuntu 12.10)
« on: November 16, 2012, 06:07:17 am »
I’m having a problem that i can't seem to resolve. CMake doesn't seem to be able to find the OpenGL packages...
sudo cmake -G "CodeBlocks - Unix Makefiles"

CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:97 (MESSAGE):
  Could NOT find OpenGL (missing: OPENGL_gl_LIBRARY)
Call Stack (most recent call first):
  /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:288 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake-2.8/Modules/FindOpenGL.cmake:153 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  src/SFML/Window/CMakeLists.txt:103 (find_package)

-- Configuring incomplete, errors occurred!
 
Which doesn't make sense considering I have OpenGL installed, for ex.
glxinfo | grep OpenGL
returns
OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) Sandybridge Mobile
OpenGL version string: 3.0 Mesa 9.0
OpenGL shading language version string: 1.30
OpenGL extensions:
 
So i know its installed.
Any help?

9
Graphics / Re: Having issues loading an image [SFML-2.0]
« on: October 19, 2012, 02:39:41 am »
Ah! Thank you, I'm guessing my Paint Shop Pro is having issues saving small files, ill have to look into it.

10
Graphics / Having issues loading an image [SFML-2.0]
« on: October 19, 2012, 01:11:37 am »
Ok, so while writing a 2D platformer I ran into an issue I'm not quite understanding.
All of my images will load except one, no matter what format I put it in. All other images will load just fine (there also in the same directory as the other so i doubt its a rights problem).
It seems to only do this for images of this specific size, I have another image (same size) that it refuses to load also. The size is 21x15.
I attached the two images, any help?

Also here's the line of code...
if(!SprSmallStill.loadFromFile("Sprites\\Spr\\Small\\SprSmallStill.png")){return 1;}
    if(!SprSmallWalk.loadFromFile("Sprites\\Spr\\Small\\SprSmallWalk.png")){return 2;}
    if(!SprBigStill.loadFromFile("Sprites\\Spr\\Big\\SprBigStill.png")){return 3;}
    if(!SprBigWalk.loadFromFile("Sprites\\Spr\\Big\\SprBigWalk.png")){return 4;}

    //These two wont load
    if(!GroundBlock.loadFromFile("Sprites\\Scenery\\Nonint\\Block.png")){return 5;}
    if(!GroundPipe.loadFromFile("Sprites\\Scenery\\Nonint\\Pipe.png")){return 6;}

I all ways get this message while debugging as well
Failed to load image "Sprites\Scenery\Ground\Block.jpg". Reason : Unable to open
 file
I have checked all permissions and nothing seems wrong, any format i try to put it in, it wont load, it just seems to be this size.

[attachment deleted by admin]

11
General / Re: SFML 2.0 Class/Member Errors
« on: October 17, 2012, 01:37:58 am »
Ok finally got SFML 2.0 (rc-95-g4c04a0c) working!(:
I'm still not sure what went wrong but every things fixed after completely uninstalling and reinstalling Code::Blocks, MinGW, and the gnu g++ compilers then recompiling SFML with Cmake and MinGW-make.
Thank you everyone for the help!(:

12
General / Re: SFML 2.0 Class/Member Errors
« on: October 13, 2012, 10:00:24 pm »
Ok so i decided to rebuild SFML (2.0-rc-95-g4c04a0c) again, this time instead of using the MingGW MakeFile, I used code blocks to compile but every time I get this error and it wont compile...
Linking CXX static library ..\..\..\lib\libsfml-system-s.a
process_begin: CreateProcess((null), echo Built target sfml-system, ...) failed.
make (e=2): The system cannot find the file specified.
mingw32-make.exe[1]: *** [src/SFML/System/CMakeFiles/sfml-system.dir/all] Error 2
mingw32-make.exe: *** [all] Error 2
[ 18%]
Process terminated with status 2 (0 minutes, 6 seconds)
0 errors, 0 warnings
 

13
General / Re: SFML 2.0 Class/Member Errors
« on: October 13, 2012, 08:41:37 pm »
Actually that piece of code works perfectly fine.. hmm

14
General / Re: SFML 2.0 Class/Member Errors
« on: October 13, 2012, 06:10:51 pm »
Yes, I have tried both and they give the same errors.

15
General / Re: SFML 2.0 Class/Member Errors
« on: October 13, 2012, 12:04:37 am »
I am a million percent positive, never touched C in my life.
And the errors for the system? I forgot to link system before i posted (was rushing), however system seems to be the only one that's working, now all the others (audio, graphics, and window) give me undefined references.

Pages: [1] 2
anything