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 - ram.ggi191

Pages: [1]
1
Graphics / Re: Unabled to load file problem - loadFromFile.
« on: December 05, 2024, 03:05:57 pm »
Oh yes, the path was the problem, the engine didn't recognised the folder path then I copied my asset file to the project file, linked it and then it works!

Still I need to figure out why it doesn't recognised the path of the directory yet.   

2
Graphics / Re: Unabled to load file problem - loadFromFile.
« on: December 04, 2024, 01:32:40 am »
Thanks for your reply!

However, I still get the dead white screen, even when I fix the additional dependencies to fit as the right mode (like using non -d.lib for the release -d.lib for  debugger mode)

here is the picture of my dependencies set up below in the release mode.

3
Graphics / [SOLVED] Unabled to load file problem - loadFromFile.
« on: December 03, 2024, 12:02:42 pm »
Hi!

I got a big white square on the screen once I run the code with the error message "Unable to load file"

I assume it is IDE setting problem, which the difference of execution directory and debug directory but not sure how should I adjust those IDE directions on the project option. I posted the error message in the console and my project settings

source code
        Labyrinth.loadFromFile("asset/labyrinth.png");

        int index = 0;
        for (int i = 0; i < 8; i++)
        {
                for (int j = 0; j < 4; j++)
                {
                        LabyrinthPieces[index] = new sf::Sprite(Labyrinth, sf::IntRect(i * 8, j * 8, 8, 8));
                        LabyrinthPieces[index]->setScale(2.0f, 2.0f);
                        index++;
                }
        }

        Players.loadFromFile("asset/players.png");

Pages: [1]