Forums
EXCEPTION - character out of range - 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: EXCEPTION - character out of range (/showthread.php?tid=1049)



EXCEPTION - character out of range - flarre - 01-18-2009

Hello,
I tried to compile VDrift on Ubuntu 8.10. Seems to be OK, but I'm unable to launch the game.
Here's the terminal output :
Code:
fred@choupette:~/apps/vdrift-08-05-08$ ./vdrift
BinReloc successfully initialized.
Executable path: /home/fred/apps/vdrift-08-05-08/vdrift
Data dir: /home/fred/apps/data
Localedir: /home/fred/apps/share/locale
No data_dir found in VDrift.config, using /home/fred/apps/data
/home/fred/apps/data/settings/VDrift.config not found. Attempting to load data from /home/fred/apps/vdrift-08-05-08/data
Found config file /home/fred/.vdrift/controls.config.
Found config file /home/fred/.vdrift/VDrift.config.
No data_dir found in VDrift.config, using /home/fred/apps/vdrift-08-05-08/data
Version of game: development-full
Skin name not found in config file...
/home/fred/apps/share/locale
Directory /home/fred/apps/vdrift-08-05-08/data/skins/SConscript/menus does not exist! Skin SConscript not loaded.
Run with -verbose for troubleshooting.
Run with -nosound to disable sound.
Run with -benchmark to play a replay and output benchmark data.
1 joystick(s) found:
    0. Logitech Logitech RumblePad 2 USB
Card supports: drawbuf4 auxbuf4 antialiasing anisotropy16 cubemapping shaders multitexturing16(4) texture_rectangle depth_texture shadow framebuffer_objects
Card does not support:
Status: Using GLEW 1.5.0
Obtained audio device:
Frequency: 44100
Format: 32784
Bits per sample: 16
Channels: 2
Silence: 0
Samples: 512
Size: 2048

EXCEPTION: src/font.cpp, line 202:  Character out of range: � (-61)
It just show the black screen with turning wheel and the next one (title & logos), and crashes.


- thelusiv - 01-18-2009

Try compiling with NLS=off.


- flarre - 01-18-2009

sorry, the output is the same after "scons NLS=off"


- rep - 01-19-2009

hello, I had the same problem and 'solved' it by commenting the lines 198 to 204 of <VdriftFolder>/src/fonts.cpp
like this :

Code:
    /* if (c <0> 96)
    {
        stringstream err;
        err << "Character out of range: " << curchar << " (" << (int) curchar << ")" << endl;
        throw EXCEPTION(__FILE__, __LINE__,err.str());
        return 0.0;
    }*/



- flarre - 01-19-2009

That's ok, but is this test important ? wasn't it of any use ?
anyway I can try VDrift !

Thanks everybody for the help...


- rep - 01-19-2009

I don't know if it is very important, but the good thing is I can play it now :]
and since yesterday it didn't crash and/or bugs...


- joevenzon - 01-19-2009

I'll try to make sure that doesn't happen for the next release. Thanks for the info.