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

Pages: [1]
1
General / Re: [please read] Error with newly installed SFML
« on: April 12, 2015, 11:01:31 pm »
sorry but my libraries are renamed!

2
Graphics / Re: Cannot load TrueType font - SFML!!!
« on: April 12, 2015, 10:45:50 pm »
I did it... DUDEEE!

3
General / Re: Few newbie questions regarding sfml
« on: April 12, 2015, 10:34:36 pm »
use rand() function that should help you because it sets to random!

4
Graphics / Re: Move 2D-Camera with mouse
« on: April 12, 2015, 10:16:14 pm »
and also:

view1.setCenter(static_cast<float>(Mouse.x), static_cast<float>(Mouse.y));
but it is complicated....

You're welcome!

5
Graphics / Re: Cannot load TrueType font - SFML!!!
« on: April 12, 2015, 09:54:05 pm »
Ohhh my god!!!!! :D
I can't belive what was problem!!!
 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) :o :o :o 8) 8) ::) :-* :) >:(

This font was broken and at the moment all works fine
cos i downloaded another and that worked!!!

But I don't know why arial.ttf not worked, can you make example and write it please!!!

6
Graphics / Re: Cannot load TrueType font - SFML!!!
« on: April 12, 2015, 09:46:40 pm »
Thanks I will try!  :-[

7
Graphics / Re: Cannot load TrueType font - SFML!!!
« on: April 12, 2015, 09:40:19 pm »
I tried to set font in "C:\Stacky.ttf" Here goes:
font.loadFromFile("C:\\Stacky.ttf");
But the same thing again and again please....
Somebody!

8
Graphics / Re: Cannot load TrueType font - SFML!!!
« on: April 12, 2015, 09:34:14 pm »
I tried setting font directly from Windows\Fonts "arial.ttf"
But, the same problem!
Please can somebody help me!?!?!
All your help will be appreciated!

9
Graphics / Re: Cannot load TrueType font - SFML!!!
« on: April 12, 2015, 09:31:44 pm »
What is CWD???
Explain please!

10
Graphics / Re: Cannot load TrueType font - SFML!!!
« on: April 12, 2015, 09:25:53 pm »
But I think that will not help me, because when I start compiled solution...
.exe file starts and crashes and console opens.
But on the beginnig of console it says: 'Failed to load font <XP stacky.ttf'.
But thanks at all!
All resources are next to .exe file!

MasterDeveloper

11
Graphics / Re: Move 2D-Camera with mouse
« on: April 12, 2015, 04:19:22 pm »
try doing something like this:

sf::Vector2f CurrentMousePosition = sf::Mouse::getPosition(YourWindow);
 

or try converting it in 'view.move' static_cast<float>(Variable)

Please, explain it better!!!!
And i will help you

MasterDeveloper

12
Graphics / Cannot load TrueType font - SFML!!!
« on: April 12, 2015, 04:12:33 pm »
All your help will be appreciated!
Here is my code, I linked all what i need and added DLLs and i have font next to executable in Debug folder, Here's my Visual C++ 2010 Express code:

#include <SFML\Graphics.hpp>
#include <Windows.h>

int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) {

    sf::RenderWindow Application(sf::VideoMode(800, 600, 32), "SFML TrueType Font");

    sf::Color ApplicationColor;
    sf::Event event;

    while(Application.isOpen()) {
   
          while(Application.pollEvent(event)) {
        if(event.type == event.Closed)
             Application.close();

        }

    sf::Font font;
    sf::Text text;
   
    font.loadFromFile("stacky.ttf");

    text.setFont(font);
    text.setString("Stacky Font");
    text.setCharacterSize(36);
    text.setPosition(100.0f, 100.0f);
   
    Application.clear(sf::Color::White);
    Application.draw(text);
 
    Application.display();
   
    }

  return 0;
}
Please help, i will explode!!! :D

13
Graphics / Re: sf::RenderWindow problem
« on: April 12, 2015, 03:58:53 pm »
Did you fixed your problem???
if(problem == NotFixed()) {

What bit Windows do you have? (x86 - x64)????
Because its important for SFML (for me is important).
What mode are you using for compiling???
else if(!problem == NotFixed()){
   
    std::cout << "MasterDeveloper" << std::endl;
    getchar();
    return 0;
}
 

14
Audio / Re: exception thrown at music.openFromFile("b.wav");
« on: April 12, 2015, 03:48:29 pm »
Hi, I am newbie at this forum...
but I like to help anybody, about programming!  ;)

1.Did you linked all the libraries what is required? (without and with '-d' suffix)?
2.I think that sf::Music cannot play '.wav' file formats or maybe it can?!?!
3.Maybe you should add first 'sf::SoundBuffer' argument to your '--> music.loadFromFile() <--'!!!
4.Try on Release mode!!! (because, that worked for me sometimes)

One of these four, must be correct but if not, i really don't know what that can be??? (That is really crazy exception)!  :o
M4st3rD3v3l0p3r


Pages: [1]