lockie / HiveGame

https://github.com/lockie/HiveGame/wiki
MIT License
5 stars 2 forks source link

Пофиксить проблему с рюсскими путями #5

Closed shoronil closed 13 years ago

shoronil commented 13 years ago
23:08:59: Creating resource group General
23:08:59: Creating resource group Internal
23:08:59: Creating resource group Autodetect
23:08:59: SceneManagerFactory for type 'DefaultSceneManager' registered.
23:08:59: Registering ResourceManager for type Material
23:08:59: Registering ResourceManager for type Mesh
23:08:59: Registering ResourceManager for type Skeleton
23:08:59: MovableObjectFactory for type 'ParticleSystem' registered.
23:08:59: OverlayElementFactory for type Panel registered.
23:08:59: OverlayElementFactory for type BorderPanel registered.
23:08:59: OverlayElementFactory for type TextArea registered.
23:08:59: Registering ResourceManager for type Font
23:08:59: ArchiveFactory for archive type FileSystem registered.
23:08:59: ArchiveFactory for archive type Zip registered.
23:08:59: DDS codec registering
23:08:59: FreeImage version: 3.13.1
23:08:59: This program uses FreeImage, a free, open source image library supporting all common bitmap formats. See http://freeimage.sourceforge.net for details
23:08:59: Supported formats: bmp,ico,jpg,jif,jpeg,jpe,jng,koa,iff,lbm,mng,pbm,pbm,pcd,pcx,pgm,pgm,png,ppm,ppm,ras,tga,targa,tif,tiff,wap,wbmp,wbm,psd,cut,xbm,xpm,gif,hdr,g3,sgi,exr,j2k,j2c,jp2,pfm,pct,pict,pic,bay,bmq,cr2,crw,cs1,dc2,dcr,dng,erf,fff,hdr,k25,kdc,mdc,mos,mrw,nef,orf,pef,pxn,raf,raw,rdc,sr2,srf,arw,3fr,cine,ia,kc2,mef,nrw,qtk,rw2,sti,drf,dsc,ptx,cap,iiq,rwz
23:08:59: Registering ResourceManager for type HighLevelGpuProgram
23:08:59: Registering ResourceManager for type Compositor
23:08:59: MovableObjectFactory for type 'Entity' registered.
23:08:59: MovableObjectFactory for type 'Light' registered.
23:08:59: MovableObjectFactory for type 'BillboardSet' registered.
23:08:59: MovableObjectFactory for type 'ManualObject' registered.
23:08:59: MovableObjectFactory for type 'BillboardChain' registered.
23:08:59: MovableObjectFactory for type 'RibbonTrail' registered.
23:08:59: *-*-* OGRE Initialising
23:08:59: *-*-* Version 1.7.2 (Cthugha)
23:08:59: Loading library .\RenderSystem_GL
23:08:59: Installing plugin: GL RenderSystem
23:08:59: OpenGL Rendering Subsystem created.
23:08:59: Plugin successfully installed
23:08:59: Loading library .\Plugin_CgProgramManager
23:08:59: Installing plugin: Cg Program Manager
23:08:59: Plugin successfully installed
23:08:59: Added resource location 'C:\Documents and Settings\Администратор\Рабочий стол\HiveGame\hivegame\data' of type 'FileSystem' to resource group 'General' with recursive option
23:08:59: Added resource location 'C:\Documents and Settings\Администратор\Рабочий стол\HiveGame\hivegame\data\cubemaps.zip' of type 'Zip' to resource group 'General' with recursive option
23:08:59: Added resource location 'C:\Documents and Settings\Администратор\Рабочий стол\HiveGame\hivegame\data\materials' of type 'FileSystem' to resource group 'General' with recursive option
23:08:59: Added resource location 'C:\Documents and Settings\Администратор\Рабочий стол\HiveGame\hivegame\data\models' of type 'FileSystem' to resource group 'General' with recursive option
23:08:59: Added resource location 'C:\Documents and Settings\Администратор\Рабочий стол\HiveGame\hivegame\data\SdkTrays.zip' of type 'Zip' to resource group 'General' with recursive option
23:08:59: Added resource location 'C:\Documents and Settings\Администратор\Рабочий стол\HiveGame\hivegame\data\shaders' of type 'FileSystem' to resource group 'General' with recursive option
23:08:59: Added resource location 'C:\Documents and Settings\Администратор\Рабочий стол\HiveGame\hivegame\data\Sinbad.zip' of type 'Zip' to resource group 'General' with recursive option
23:09:04: CPU Identifier & Features
23:09:04: -------------------------
23:09:04:  *   CPU ID: GenuineIntel: Intel(R) Core(TM)2 Duo CPU     E8500  @ 3.16GHz
23:09:04:  *      SSE: yes
23:09:04:  *     SSE2: yes
23:09:04:  *     SSE3: yes
23:09:04:  *      MMX: yes
23:09:04:  *   MMXEXT: yes
23:09:04:  *    3DNOW: no
23:09:04:  * 3DNOWEXT: no
23:09:04:  *     CMOV: yes
23:09:04:  *      TSC: yes
23:09:04:  *      FPU: yes
23:09:04:  *      PRO: yes
23:09:04:  *       HT: no
23:09:04: -------------------------
23:09:04: *** Starting Win32GL Subsystem ***
23:09:04: GLRenderSystem::_createRenderWindow "BeeEngine Render Window", 1024x768 windowed  miscParams: FSAA=0 FSAAHint= colourDepth=32 displayFrequency=0 gamma=false vsync=false vsyncInterval=1 
23:09:04: Created Win32Window 'BeeEngine Render Window' : 1032x802, 32bpp
23:09:04: GL_VERSION = 2.1.8918
23:09:04: GL_VENDOR = ATI Technologies Inc.
23:09:04: GL_RENDERER = ATI Radeon HD 4800 Series
23:09:04: GL_EXTENSIONS = GL_AMDX_vertex_shader_tessellator GL_AMD_draw_buffers_blend GL_AMD_performance_monitor GL_AMD_texture_texture4 GL_AMD_vertex_shader_tessellator GL_ARB_color_buffer_float GL_ARB_copy_buffer GL_ARB_depth_buffer_float GL_ARB_depth_texture GL_ARB_draw_buffers GL_ARB_draw_buffers_blend GL_ARB_draw_instanced GL_ARB_fragment_program GL_ARB_fragment_program_shadow GL_ARB_fragment_shader GL_ARB_framebuffer_object GL_ARB_framebuffer_sRGB GL_ARB_geometry_shader4 GL_ARB_half_float_pixel GL_ARB_half_float_vertex GL_ARB_instanced_arrays GL_ARB_map_buffer_range GL_ARB_multisample GL_ARB_multitexture GL_ARB_occlusion_query GL_ARB_pixel_buffer_object GL_ARB_point_parameters GL_ARB_point_sprite GL_ARB_provoking_vertex GL_ARB_shader_objects GL_ARB_shader_texture_lod GL_ARB_shading_language_100 GL_ARB_shadow GL_ARB_shadow_ambient GL_ARB_texture_border_clamp GL_ARB_texture_buffer_object GL_ARB_texture_compression GL_ARB_texture_compression_rgtc GL_ARB_texture_cube_map GL_ARB_texture_env_add GL_ARB_texture_env_combine GL_ARB_texture_env_crossbar GL_ARB_texture_env_dot3 GL_ARB_texture_float GL_ARB_texture_mirrored_repeat GL_ARB_texture_non_power_of_two GL_ARB_texture_rectangle GL_ARB_texture_rg GL_ARB_texture_snorm GL_ARB_transpose_matrix GL_ARB_uniform_buffer_object GL_ARB_vertex_array_object GL_ARB_vertex_buffer_object GL_ARB_vertex_program GL_ARB_vertex_shader GL_ARB_window_pos GL_ATI_draw_buffers GL_ATI_envmap_bumpmap GL_ATI_fragment_shader GL_ATI_meminfo GL_ATI_separate_stencil GL_ATI_texture_compression_3dc GL_ATI_texture_env_combine3 GL_ATI_texture_float GL_ATI_texture_mirror_once GL_EXT_abgr GL_EXT_bgra GL_EXT_bindable_uniform GL_EXT_blend_color GL_EXT_blend_equation_separate GL_EXT_blend_func_separate GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_compiled_vertex_array GL_EXT_copy_buffer GL_EXT_copy_texture GL_EXT_draw_buffers2 GL_EXT_draw_instanced GL_EXT_draw_range_elements GL_EXT_fog_coord GL_EXT_framebuffer_blit GL_EXT_framebuffer_multisample GL_EXT_framebuffer_object GL_EXT_framebuffer_sRGB GL_EXT_geometry_shader4 GL_EXT_gpu_program_parameters GL_EXT_gpu_shader4 GL_EXT_multi_draw_arrays GL_EXT_packed_depth_stencil GL_EXT_packed_float GL_EXT_packed_pixels GL_EXT_pixel_buffer_object GL_EXT_point_parameters GL_EXT_provoking_vertex GL_EXT_rescale_normal GL_EXT_secondary_color GL_EXT_separate_specular_color GL_EXT_shadow_funcs GL_EXT_stencil_wrap GL_EXT_subtexture GL_EXT_texgen_reflection GL_EXT_texture3D GL_EXT_texture_array GL_EXT_texture_buffer_object GL_EXT_texture_compression_latc GL_EXT_texture_compression_rgtc GL_EXT_texture_compression_s3tc GL_EXT_texture_cube_map GL_EXT_texture_edge_clamp GL_EXT_texture_env_add GL_EXT_texture_env_combine GL_EXT_texture_env_dot3 GL_EXT_texture_filter_anisotropic GL_EXT_texture_integer GL_EXT_texture_lod GL_EXT_texture_lod_bias GL_EXT_texture_mirror_clamp GL_EXT_texture_object GL_EXT_texture_rectangle GL_EXT_texture_sRGB GL_EXT_texture_shared_exponent GL_EXT_texture_snorm GL_EXT_texture_swizzle GL_EXT_transform_feedback GL_EXT_vertex_array GL_EXT_vertex_array_bgra GL_IBM_texture_mirrored_repeat GL_KTX_buffer_region GL_NV_blend_square GL_NV_conditional_render GL_NV_copy_depth_to_color GL_NV_explicit_multisample GL_NV_primitive_restart GL_NV_texgen_reflection GL_SGIS_generate_mipmap GL_SGIS_texture_edge_clamp GL_SGIS_texture_lod GL_SUN_multi_draw_arrays GL_WIN_swap_hint WGL_EXT_swap_control
23:09:04: Supported WGL extensions: WGL_ARB_extensions_string WGL_ARB_pixel_format WGL_ATI_pixel_format_float WGL_ARB_pixel_format_float WGL_ARB_multisample WGL_EXT_swap_control WGL_ARB_pbuffer WGL_ARB_render_texture WGL_ARB_make_current_read WGL_EXT_extensions_string WGL_ARB_buffer_region WGL_EXT_framebuffer_sRGB WGL_ATI_render_texture_rectangle WGL_EXT_pixel_format_packed_float WGL_I3D_genlock WGL_NV_swap_group WGL_ARB_create_context WGL_AMD_gpu_association WGL_AMDX_gpu_association 
23:09:04: ***************************
23:09:04: *** GL Renderer Started ***
23:09:04: ***************************
23:09:04: Registering ResourceManager for type GpuProgram
23:09:04: GLSL support detected
23:09:04: GL: Using GL_EXT_framebuffer_object for rendering to textures (best)
23:09:04: FBO PF_UNKNOWN depth/stencil support: D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8 
23:09:04: FBO PF_L8 depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8 
23:09:04: FBO PF_L16 depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8 
23:09:04: FBO PF_A8 depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8 
23:09:04: FBO PF_A4L4 depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8 
23:09:04: FBO PF_BYTE_LA depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8 
23:09:04: FBO PF_R5G6B5 depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8 
23:09:04: FBO PF_B5G6R5 depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8 
23:09:04: FBO PF_A4R4G4B4 depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8 
23:09:04: FBO PF_A1R5G5B5 depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8 
23:09:04: FBO PF_R8G8B8 depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8 
23:09:04: FBO PF_B8G8R8 depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8 
23:09:04: FBO PF_A8R8G8B8 depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8 
23:09:04: FBO PF_B8G8R8A8 depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8 
23:09:04: FBO PF_A2R10G10B10 depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8 
23:09:04: FBO PF_A2B10G10R10 depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8 
23:09:04: FBO PF_FLOAT16_RGB depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8 
23:09:04: FBO PF_FLOAT16_RGBA depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8 
23:09:04: FBO PF_FLOAT32_RGB depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8 
23:09:04: FBO PF_FLOAT32_RGBA depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8 
23:09:04: FBO PF_X8R8G8B8 depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8 
23:09:04: FBO PF_X8B8G8R8 depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8 
23:09:04: FBO PF_SHORT_RGBA depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8 
23:09:04: FBO PF_R3G3B2 depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8 
23:09:04: FBO PF_FLOAT16_R depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8 
23:09:04: FBO PF_FLOAT32_R depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8 
23:09:04: FBO PF_SHORT_GR depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8 
23:09:04: FBO PF_FLOAT16_GR depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8 
23:09:04: FBO PF_FLOAT32_GR depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8 
23:09:04: FBO PF_SHORT_RGB depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8 
23:09:04: [GL] : Valid FBO targets PF_UNKNOWN PF_L8 PF_L16 PF_A8 PF_A4L4 PF_BYTE_LA PF_R5G6B5 PF_B5G6R5 PF_A4R4G4B4 PF_A1R5G5B5 PF_R8G8B8 PF_B8G8R8 PF_A8R8G8B8 PF_B8G8R8A8 PF_A2R10G10B10 PF_A2B10G10R10 PF_FLOAT16_RGB PF_FLOAT16_RGBA PF_FLOAT32_RGB PF_FLOAT32_RGBA PF_X8R8G8B8 PF_X8B8G8R8 PF_SHORT_RGBA PF_R3G3B2 PF_FLOAT16_R PF_FLOAT32_R PF_SHORT_GR PF_FLOAT16_GR PF_FLOAT32_GR PF_SHORT_RGB 
23:09:04: RenderSystem capabilities
23:09:04: -------------------------
23:09:04: RenderSystem Name: OpenGL Rendering Subsystem
23:09:04: GPU Vendor: ati
23:09:04: Device Name: ATI Radeon HD 4800 Series
23:09:04: Driver Version: 2.1.8918.0
23:09:04:  * Fixed function pipeline: yes
23:09:04:  * Hardware generation of mipmaps: yes
23:09:04:  * Texture blending: yes
23:09:04:  * Anisotropic texture filtering: yes
23:09:04:  * Dot product texture operation: yes
23:09:04:  * Cube mapping: yes
23:09:04:  * Hardware stencil buffer: yes
23:09:04:    - Stencil depth: 8
23:09:04:    - Two sided stencil support: yes
23:09:04:    - Wrap stencil values: yes
23:09:04:  * Hardware vertex / index buffers: yes
23:09:04:  * Vertex programs: yes
23:09:04:  * Number of floating-point constants for vertex programs: 512
23:09:04:  * Number of integer constants for vertex programs: 0
23:09:04:  * Number of boolean constants for vertex programs: 0
23:09:04:  * Fragment programs: yes
23:09:04:  * Number of floating-point constants for fragment programs: 512
23:09:04:  * Number of integer constants for fragment programs: 0
23:09:04:  * Number of boolean constants for fragment programs: 0
23:09:04:  * Geometry programs: yes
23:09:04:  * Number of floating-point constants for geometry programs: 512
23:09:04:  * Number of integer constants for geometry programs: 0
23:09:04:  * Number of boolean constants for geometry programs: 0
23:09:04:  * Supported Shader Profiles: arbfp1 arbvp1 glsl gp4gp gpu_gp nvgp4 ps_1_1 ps_1_2 ps_1_3 ps_1_4
23:09:04:  * Texture Compression: yes
23:09:04:    - DXT: yes
23:09:04:    - VTC: no
23:09:04:    - PVRTC: no
23:09:04:  * Scissor Rectangle: yes
23:09:04:  * Hardware Occlusion Query: yes
23:09:04:  * User clip planes: yes
23:09:04:  * VET_UBYTE4 vertex element type: yes
23:09:04:  * Infinite far plane projection: yes
23:09:04:  * Hardware render-to-texture: yes
23:09:04:  * Floating point textures: yes
23:09:04:  * Non-power-of-two textures: yes
23:09:04:  * Volume textures: yes
23:09:04:  * Multiple Render Targets: 8
23:09:04:    - With different bit depths: yes
23:09:04:  * Point Sprites: yes
23:09:04:  * Extended point parameters: yes
23:09:04:  * Max Point Size: 8192
23:09:04:  * Vertex texture fetch: yes
23:09:04:  * Number of world matrices: 0
23:09:04:  * Number of texture units: 16
23:09:04:  * Stencil buffer depth: 8
23:09:04:  * Number of vertex blend matrices: 0
23:09:04:    - Max vertex textures: 16
23:09:04:    - Vertex textures shared: yes
23:09:04:  * Render to Vertex Buffer : no
23:09:04:  * GL 1.5 without VBO workaround: no
23:09:04:  * Frame Buffer objects: yes
23:09:04:  * Frame Buffer objects (ARB extension): no
23:09:04:  * Frame Buffer objects (ATI extension): no
23:09:04:  * PBuffer support: yes
23:09:04:  * GL 1.5 without HW-occlusion workaround: no
23:09:04: Registering ResourceManager for type Texture
23:09:04: DefaultWorkQueue('Root') initialising on thread 00055EF0.
23:09:04: DefaultWorkQueue('Root')::WorkerFunc - thread 00071060 starting.
23:09:04: Particle Renderer Type 'billboard' registered
23:09:04: DefaultWorkQueue('Root')::WorkerFunc - thread 000711E8 starting.
23:09:04: *** Initializing OIS ***
23:09:04: Creating viewport on target 'BeeEngine Render Window', rendering from camera 'PlayerCam', relative dimensions 8192L: 0 T: 0 W: 1 H: 1 ZOrder: 0
23:09:04: Viewport for camera 'PlayerCam', actual dimensions 8192L: 0 T: 0 W: 1024 H: 768
23:09:04: Parsing scripts for resource group Autodetect
23:09:04: Finished parsing scripts for resource group Autodetect
23:09:04: Parsing scripts for resource group General
23:09:04: Parsing script materials/common.program
23:09:04: OGRE EXCEPTION(6:FileNotFoundException): Cannot open file: materials/common.program in FileSystemArchive::open at ..\..\..\..\OgreMain\src\OgreFileSystem.cpp (line 251)
23:09:05: DefaultWorkQueue('Root') shutting down on thread 00055EF0.
23:09:05: DefaultWorkQueue('Root')::WorkerFunc - thread 00071060 stopped.
23:09:05: DefaultWorkQueue('Root')::WorkerFunc - thread 000711E8 stopped.
23:09:05: *-*-* OGRE Shutdown
23:09:05: Viewport for camera 'NULL', actual dimensions 8192L: 0 T: 0 W: 1024 H: 768
23:09:05: Unregistering ResourceManager for type Compositor
23:09:05: Unregistering ResourceManager for type Font
23:09:05: Unregistering ResourceManager for type Skeleton
23:09:05: Unregistering ResourceManager for type Mesh
23:09:05: Unregistering ResourceManager for type HighLevelGpuProgram
23:09:05: Uninstalling plugin: Cg Program Manager
23:09:05: Plugin successfully uninstalled
23:09:05: Unloading library .\Plugin_CgProgramManager
23:09:05: Uninstalling plugin: GL RenderSystem
23:09:05: Render Target 'BeeEngine Render Window' Average FPS: 0 Best FPS: 0 Worst FPS: 999
23:09:05: Unregistering ResourceManager for type GpuProgram
23:09:05: *** Stopping Win32GL Subsystem ***
23:09:05: Unregistering ResourceManager for type Texture
23:09:05: Plugin successfully uninstalled
23:09:05: Unloading library .\RenderSystem_GL
23:09:05: Unregistering ResourceManager for type Material
fake-human commented 13 years ago

В 251 строчке файла OgreMain\src\OgreFileSystem.cpp, упомянутой в приложенном логе, происходит байтосодомия с std::fstream. Далее, гуглинг выдаёт вот этот тред, в котором разрабы Огра объясняют, что им религия не позволяет использовать юникод, ибо он, видите ли, много весит в памяти. Похоже, мне придётся отнаследоваться от класса Ogre::FileSystemArchive и сделать в нём корректную работу с рюсске буквами в путях. Сделаю чуть позже. Проблема эта, кстати, серьёзная, потому что куда станет неискушенный пользователь ставить что-то на предмет попробовать? Не в program files же! А на рабочий стол или в какую-нибудь подобную задницу мира, где в пути полюбому есть русские буквы.

fake-human commented 13 years ago

Ан нет, всё проще. Хотя пользователи английской венды с рюсске именем пользователя все равно soosnoley, это таки beta than nothin.

Всё, щас код причешу и залью.