Insufficient graphics loaded

83 views
Skip to first unread message

Káspy Káspy

unread,
Feb 6, 2014, 9:42:31 PM2/6/14
to freer...@googlegroups.com
I can compile the game with success both in the terminal and in CodeBlocks. 
However, in NetBeans, I can just compile. When I run I get the following message: "Insufficient graphics loaded." 
How to solve this problem? 

I'm newbie in C/C++, but I have experience with other languages ​​and open source projects.

Alberth

unread,
Feb 8, 2014, 6:42:39 AM2/8/14
to freer...@googlegroups.com
When the game starts, it looks for the *.rcd files containing the game objects and the graphics for them.
Apparently, it didn't find them. To prevent that you get a very empty window, it does a few basic checks that some graphics are actually loaded. If not, you get the message you stated.

The solution is thus easy, make the program find the files :)

Most likely, you just forgot to generate them. If you build from the project root, the cmake files should handle this automagically. Otherwise, go to graphics/rcd, and run the build there. It should execute 'rcdgen' (../../src/rcdgen/rcdgen) several times to generate the RCD data files.
The FreeRCT program has a hard-coded path to that directory, so leaving the generated files there should work.

Message has been deleted
Message has been deleted
Message has been deleted

Káspy Káspy

unread,
Feb 9, 2014, 7:52:29 PM2/9/14
to freer...@googlegroups.com
Sorry, but unable yet. 
The files are already generated. So it worked when I ran through the terminal and codeblocks. See: http://i.imgur.com/aWuBTKP.png

I checked if the working directory was correct, and it seems so. This set to "."

Lord Aro

unread,
Feb 10, 2014, 7:44:17 AM2/10/14
to freer...@googlegroups.com
Weird. the rcd files are definitely there. In that case, i'd suspect that the freerct executable is being run from the wrong directory, or at least, not in the "correct" place (Yes, we are aware frct needs to be a bit more flexible about the positioning of files ^^ )

Alberth

unread,
Feb 11, 2014, 2:41:37 PM2/11/14
to freer...@googlegroups.com
Line 37 of src/sprite_store.cpp defines the relative directory that is being used.
Actual loading is coded around line 1664 in the same file.

Maybe you can debug why it fails, or change the path so it works for you?

Nick Powell

unread,
Mar 12, 2014, 10:43:19 PM3/12/14
to freer...@googlegroups.com
I ran into this problem trying to build the program today. For the benefit of anyone who comes across this in future: The problem seemed to be that Netbeans calculates the working directory relative to the project directory, not the executable directory. The solution is to change the project's "Run Directory" from '.' to 'src/'.
Reply all
Reply to author
Forward
0 new messages