![]() |
Error loading fonts - Printable Version +- Forums (https://www.vdrift.net/Forum) +-- Forum: Community (https://www.vdrift.net/Forum/forumdisplay.php?fid=3) +--- Forum: Help (https://www.vdrift.net/Forum/forumdisplay.php?fid=5) +--- Thread: Error loading fonts (/showthread.php?tid=1591) |
Error loading fonts - Shonumi - 01-22-2012 Hey all, I'm trying to get VDrift to work on my computer and I've gotten past a lot of errors already. I'm running Slackware 13.37 x86_64. I'm installing everything from source. Bullet, SDL, SDL_image, SDL_gfx, and etc, are all the latest available. So far, I've been able to install it just fine. However, VDrift just doesn't want to load the fonts. Here's my console output: Code: shonumi@darkstar:~$ vdrift I've got the vdrift-data in /usr/local/share/games/vdrift/data, and I've verified that files are all there, so I think the data-dir's fine. What's puzzling me are the double forward slashes when it tries to look for the "skins" directory, but I don't know if that's the problem or not. the files "/usr/local/share/games/vdrift/data/textures/weather/cubereflection-nosun.png" and "/usr/local/share/games/vdrift/data/textures/weather/cubelighting.png" also exist but they fail to load just like the fonts. I've been trying to figure this out for a while, but to no avail. Any help would be appreciated, thanks. - joevenzon - 01-23-2012 so if you do Code: ls -l /usr/local/share/games/vdrift/data/textures/weather/cubereflection-nosun.png - joevenzon - 01-23-2012 Could it be that your version of SDL_image was compiled without png support? Something else to try: add IMG_Init() right before the InitCoreSubsystems call in src/game.cpp - Shonumi - 01-24-2012 "ls -l" shows the file existing. Code: -rw-r--r-- 1 shonumi shonumi 1831113 Jan 21 17:28 /usr/local/share/games/vdrift/data/textures/weather/cubereflection-nosun.png Scons won't build VDrift when I added the IMG_Init() call because the function is out of scope. Code: src/game.cpp: In member function 'void GAME::Start(std::list<std::basic_string<char> >&)': But I believe you were right about SDL_image being compiled without PNG support. I tried to build my own game, Mass Blaster, which uses SDL and SDL_image to load PNGs. All of the images refused to load. I'm not sure how I managed to build it that way; all the other times went just fine. I'll try rebuilding SDL_image and report on how that goes. At this moment, it's not just about playing VDrift; I need SDL_image to make my games too. :p New Problem - High Frame Rate - Shonumi - 01-24-2012 Alright! SDL_image was the problem after all. Everything looks to be loading just fine. Unfortunately another problem has cropped up. VDrift seems to be running way too fast. At least that's what the FPS tells me; it says it's running at around 1000 FPS for menus and 700-750 for races. Is there anyway to limit the frame rate? This eats up 100% of one of my cores (running on an i5 2500K) so something doesn't seem right about that. This happens even when I use the "-multithreaded" CLI argument EDIT: Nevermind, silly me. The problem was with the nVidia driver settings. "Sync to VBlank" needed to be checked. Now VDrift runs at 60FPS and barely breaks 30% of one of my CPU cores. The game works like a charm. I'm writing articles about games on Linux right now and VDrift is one of them. Evertything looks and works great at the moment. Now, if only I knew how to drive decently... Anyway, thanks for the help! - joevenzon - 01-24-2012 No problem, glad we got it figured out! |