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

Pages: [1]
1
Audio / Re: Static linker error
« on: March 18, 2017, 11:05:57 pm »
Ok fine, it compiles.
When I executed my code the Windows shown error "The program can't start because openal32.dll is missing from your computer. Try reinstalling the program to fix this problem."
I copyed OpenAl32.dll into folder where .exe is creating after compiling. And now the error is another - "application has not been properly started (memory adress)"

now my input is here:
(click to show/hide)

And when I comment sf::Audio all works

EDIT:
Fixed it, just replace previous download from internet openal32.dll on sfml's openal32.dll :D
Thanks for help

2
Audio / Re: Static linker error
« on: March 18, 2017, 09:02:47 pm »
Quote
You aren't linking openal32.
Can u say how should I do that ?

3
Audio / Static linker error
« on: March 18, 2017, 06:56:32 pm »
Hi.
I have problem with using SFML\Audio.hpp
I am using VS 2015 and have Windows 8 64x
When i use sf::Audio liker gives me a lot of errors.
Errors:
(click to show/hide)


My linker's input:
sfml-audio-s.lib
sfml-graphics-s.lib
sfml-window-s.lib
sfml-system-s.lib
jpeg.lib
opengl32.lib   
Winmm.lib
freetype.lib

I tryed to execution example's sound.exe and it gives me an error "The program can't start because openal32.dll is missing from your computer. Try reinstalling the program to fix this problem."
I downloaded this and here is still the same problem.

Don't know how to fix those errors. May someone help me ?

4
Graphics / Re: sf::Text bug
« on: December 18, 2016, 01:30:16 pm »
Yea my font Anorexia.ttf becomes invalid
I used impact.ttf and now it works  :D

Thanks for help.

5
Graphics / Re: sf::Text bug
« on: December 18, 2016, 12:58:57 pm »
i think you need to use std::to_string() if you want print a numbers as string.

Probably not, becouse other numbers works correctly :/

6
Graphics / Re: sf::Text bug
« on: December 18, 2016, 12:55:48 pm »
So i have class wallet

class wallet :public sf::Drawable
{
        int gold;
        sf::Text goldText;
        sf::Sprite coin;
        sf::Texture coinTexture;

public:
        wallet();
        ~wallet();
        void draw(sf::RenderTarget & target, sf::RenderStates states) const;
        int getGold();
        bool isAfford(int amount);
        void pay(int amount);
        void setPosition(const sf::Vector2f position);

        sf::Vector2f getSize();
};

And in constructor i setText

goldText.setFont(*game::getInstance()->getFont());
goldText.setString("85");
goldText.setCharacterSize(30);
goldText.setColor(sf::Color(30, 40, 30));
goldText.setPosition(sf::Vector2f(100.f,20.f));

Here is the draw method

void wallet::draw(sf::RenderTarget & target, sf::RenderStates states) const
{
        target.draw(coin);
        target.draw(goldText);
}

When i draw wallet's object all is good except those chars

7
Graphics / Re: sf::Text bug
« on: December 18, 2016, 02:00:21 am »
And char '=' is bugged too, the same behavior  :-\

8
Graphics / Re: sf::Text bug
« on: December 18, 2016, 01:45:39 am »
sf::Text text;
/*
setting font, characterSize, color
*/

text.setString("80"); //showing 0
text.setString("82"); //showing 2
text.setString("808080"); //showing 000;

I tested it on my all sf::Text objects and result is the same :/

My build option is Release

9
Graphics / sf::Text bug
« on: December 18, 2016, 01:23:21 am »
Hi. Today i founded a bug.
When i use method setString() and as parameter use std::string wchich contains '8' or '=' those chars are deleting  :-\
It seems like sf::Text doesn't accept this chars. Someone know how could i fix it ?

Pages: [1]
anything