Author Topic: TechnoVenture for SGDK2  (Read 265008 times)

durnurd

  • Lead Lemming
  • Expert
  • Fanatic
  • *****
  • Posts: 1234
  • Games completed so far: 0
    • MSN Messenger - durnurd@hotmail.com
    • View Profile
    • Find My Ed
Re: TechnoVenture for SGDK2
« Reply #30 on: 2008-04-13, 08:35:18 PM »
On the same computer that didn't work with 1.5, I get the error "GL_ARB_texture_rectangle must be supported" while running CheckRequirements().  I also get a Null Reference Exception at Project.tvl.WriteLine which presumably is just for writing the debug log or something. For what I do have in the debug log, see below.

I removed the throwing of the exception and recompiled, and was able to view the menu map.  I had to disable audio because I couldn't figure out how to use the .bin files to embed the audio into the exe (this was not on a computer with a C# IDE), so it errored out on the fmod call, but the program did run and display the menu map, and then worked the same way I saw it on my other computer, running at about 500 FPS on Level 1.  I didn't know how to compile in debug mode, so I can't tell you the exact number, but it was far too fast to be playable.

In any case, GL_ARB_texture_rectangle does not appear to be a requirement.  At least, it did not show up in this project.  This may be due to the fact that all of the graphic sheets are a power-of-two size.

Code: [Select]
DisplayDevice 0 (primary) supports 41 resolutions.
320x200x8@60Hz
320x200x16@60Hz
320x200x32@60Hz
320x240x8@60Hz
320x240x16@60Hz
320x240x32@60Hz
400x300x8@60Hz
400x300x16@60Hz
400x300x32@60Hz
512x384x8@60Hz
512x384x16@60Hz
512x384x32@60Hz
640x350x8@60Hz
640x350x16@60Hz
640x350x32@60Hz
640x400x8@60Hz
640x400x16@60Hz
640x400x32@60Hz
640x480x8@60Hz
640x480x16@60Hz
640x480x32@60Hz
720x480x8@60Hz
720x480x16@60Hz
720x480x32@60Hz
720x576x8@60Hz
720x576x16@60Hz
720x576x32@60Hz
800x600x8@60Hz
800x600x16@60Hz
800x600x32@60Hz
848x480x8@60Hz
848x480x16@60Hz
848x480x32@60Hz
1024x768x8@60Hz
1024x768x16@60Hz
1024x768x32@60Hz
1280x800x8@60Hz
1280x800x16@60Hz
>> 1280x800x32@60Hz <<
640x480x4@1Hz
800x600x4@1Hz
Device context: 503385581
Selecting pixel format... Device context: 503385581
Selecting pixel format... Device context: 503385581
Selecting pixel format... Device context: 503385581
Selecting pixel format... Device context: 503385581
Selecting pixel format... Device context: 503385581
Selecting pixel format... Device context: 503385581
Selecting pixel format... Creating GraphicsContext.
GraphicsMode: Index: 3, Color: 32 (8888), Depth: 24, Stencil: False, Samples: 0, Accum: 0 (0000), Buffers: 2, Stereo: False
IWindowInfo: Windows.WindowInfo: Handle 263484, Parent (null)
Loaded opengl32.dll: 1590689792
OpenGL will be bound to handle: 263484
Setting pixel format...
3
Creating render context... done! (id: 65536)
Load extensions for OpenTK.Platform.Windows.Wgl... 43 extensions loaded in 79 ms.
Load extensions for OpenTK.Graphics.OpenGL.GL... 913 extensions loaded in 629 ms.
Load extensions for OpenTK.Graphics.OpenGL.Glu... 58 extensions loaded in 16 ms.
Extension "
1.3.3842 WinXP Release
gl_arb_multitexture
gl_arb_point_parameters
gl_arb_texture_border_clamp
gl_arb_texture_compression
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_mirrored_repeat
gl_arb_transpose_matrix
gl_arb_vertex_blend
gl_arb_vertex_buffer_object
gl_arb_vertex_program
gl_arb_window_pos
gl_ati_element_array
gl_ati_envmap_bumpmap
gl_ati_fragment_shader
gl_ati_map_object_buffer
gl_ati_texture_env_combine3
gl_ati_texture_mirror_once
gl_ati_vertex_array_object
gl_ati_vertex_attrib_array_object
gl_ati_vertex_streams
gl_atix_texture_env_combine3
gl_atix_texture_env_route
gl_atix_vertex_shader_output_point_size
gl_ext_abgr
gl_ext_bgra
gl_ext_blend_color
gl_ext_blend_func_separate
gl_ext_blend_minmax
gl_ext_blend_subtract
gl_ext_clip_volume_hint
gl_ext_compiled_vertex_array
gl_ext_draw_range_elements
gl_ext_fog_coord
gl_ext_multi_draw_arrays
gl_ext_packed_pixels
gl_ext_point_parameters
gl_ext_rescale_normal
gl_ext_secondary_color
gl_ext_separate_specular_color
gl_ext_stencil_wrap
gl_ext_texgen_reflection
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_lod_bias
gl_ext_texture_object
gl_ext_texture_rectangle
gl_ext_texture3d
gl_ext_vertex_array
gl_ext_vertex_shader
gl_hp_occlusion_test
gl_nv_blend_square
gl_nv_occlusion_query
gl_nv_texgen_reflection
gl_s3_s3tc
gl_sgi_color_matrix
gl_sgis_generate_mipmap
gl_sgis_multitexture
gl_sgis_texture_border_clamp
gl_sgis_texture_edge_clamp
gl_sgis_texture_lod
gl_sun_multi_draw_arrays
gl_version_1_1
gl_version_1_2
gl_version_1_3
gl_win_swap_hint
wgl_ext_extensions_string
wgl_ext_swap_control
« Last Edit: 2008-04-13, 08:43:31 PM by durnurd »
Edward Dassmesser

durnurd

  • Lead Lemming
  • Expert
  • Fanatic
  • *****
  • Posts: 1234
  • Games completed so far: 0
    • MSN Messenger - durnurd@hotmail.com
    • View Profile
    • Find My Ed
Re: TechnoVenture for SGDK2
« Reply #31 on: 2008-04-14, 12:00:46 PM »
The good news here is that it runs just fine on my own computer.  I noticed that sounds don't play when hitting surfaces any more, but maybe you took that out on purpose because of the annoying thing when it hits the edge of the map.  But for all intents and purposes, it works just fine and it runs at a reasonable rate because I have force_vsync turned on at my driver level.
Edward Dassmesser

Jam0864

  • Contributor
  • Fanatic
  • **
  • Posts: 744
    • MSN Messenger - marmalade0864@hotmail.com
    • View Profile
    • Jam0864's Content Dump
    • Email
Re: TechnoVenture for SGDK2
« Reply #32 on: 2008-04-14, 04:01:03 PM »
well this time it opens what looks like a cmd, some text comes on, more text... then it says you are running in debug mode, unexpected runtime conditions... (im sure u know that message :)) click ok, then it puts some more stuff into the cmd, then it comes up with.

then when i close that, it comes up with the ol' system access violation error I was getting before.

EDIT:// btw, the text in the scrollable window, in the screenshot is...
Code: [Select]
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
   at Project.tvl.WriteLine(String message)
   at System.Diagnostics.TraceInternal.WriteLine(String message)
   at System.Diagnostics.Debug.WriteLine(String message)
   at OpenTK.Graphics.GraphicsContext.Dispose(Boolean manual)
   at OpenTK.Graphics.GraphicsContext.Dispose()
   at OpenTK.GLControl.OnHandleDestroyed(EventArgs e)
   at System.Windows.Forms.Control.WmDestroy(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ContainerControl.WndProc(Message& m)
   at System.Windows.Forms.UserControl.WndProc(Message& m)
   at Display.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.312 (rtmLHS.050727-3100)
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
TVSGDK2
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Users/User/Desktop/TVSGDK2d/TVSGDK2.exe
----------------------------------------
System
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.312 (rtmLHS.050727-3100)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Windows.Forms
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.312 (rtmLHS.050727-3100)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.312 (rtmLHS.050727-3100)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.312 (rtmLHS.050727-3100)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.312 (rtmLHS.050727-3100)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
OpenTK
    Assembly Version: 0.9.1.0
    Win32 Version: 0.9.1.0
    CodeBase: file:///C:/Users/User/Desktop/TVSGDK2d/OpenTK.DLL
----------------------------------------
OpenTK.Utilities
    Assembly Version: 0.0.0.0
    Win32 Version: 0.0.0.0
    CodeBase: file:///C:/Users/User/Desktop/TVSGDK2d/OpenTK.Utilities.DLL
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.



durnurd

  • Lead Lemming
  • Expert
  • Fanatic
  • *****
  • Posts: 1234
  • Games completed so far: 0
    • MSN Messenger - durnurd@hotmail.com
    • View Profile
    • Find My Ed
Re: TechnoVenture for SGDK2
« Reply #33 on: 2008-04-14, 08:12:23 PM »
That error message is not too useful.  The one to post would be the debug log file created in the directory the executable is in.  It would have the same text as the command window.
Edward Dassmesser

Jam0864

  • Contributor
  • Fanatic
  • **
  • Posts: 744
    • MSN Messenger - marmalade0864@hotmail.com
    • View Profile
    • Jam0864's Content Dump
    • Email
Re: TechnoVenture for SGDK2
« Reply #34 on: 2008-04-14, 11:24:32 PM »
oh ya sorry forgot about that one >.>

Code: [Select]
DisplayDevice 0 (primary) supports 21 resolutions.
640x480x8@61Hz
640x480x16@61Hz
640x480x32@61Hz
720x480x8@61Hz
720x480x16@61Hz
720x480x32@61Hz
800x600x8@61Hz
800x600x16@61Hz
800x600x32@61Hz
848x480x8@61Hz
848x480x16@61Hz
848x480x32@61Hz
1024x768x8@61Hz
1024x768x16@61Hz
1024x768x32@61Hz
1280x768x8@61Hz
1280x768x16@61Hz
1280x768x32@61Hz
1280x800x8@61Hz
1280x800x16@61Hz
>> 1280x800x32@61Hz <<
Device context: 704713100
Selecting pixel format... Device context: 704713100
Selecting pixel format... Device context: 704713100
Selecting pixel format... Device context: 704713100
Selecting pixel format... Device context: 704713100
Selecting pixel format... Device context: 704713100
Selecting pixel format... Device context: 704713100
Selecting pixel format... Creating GraphicsContext.
GraphicsMode: Index: 2, Color: 32 (8888), Depth: 24, Stencil: False, Samples: 0, Accum: 0 (0000), Buffers: 2, Stereo: False
IWindowInfo: Windows.WindowInfo: Handle 1835978, Parent (null)
Loaded opengl32.dll: 1808859136
OpenGL will be bound to handle: 1835978
Setting pixel format...
2
Creating render context... done! (id: 65536)
Load extensions for OpenTK.Platform.Windows.Wgl... 47 extensions loaded in 25 ms.
Load extensions for OpenTK.Graphics.OpenGL.GL... 912 extensions loaded in 352 ms.
Load extensions for OpenTK.Graphics.OpenGL.Glu... 58 extensions loaded in 16 ms.
Extension "
2.0.6956 Release
gl_arb_depth_texture
gl_arb_draw_buffers
gl_arb_fragment_program
gl_arb_fragment_shader
gl_arb_multisample
gl_arb_multitexture
gl_arb_occlusion_query
gl_arb_point_parameters
gl_arb_point_sprite
gl_arb_shader_objects
gl_arb_shading_language_100
gl_arb_shadow
gl_arb_shadow_ambient
gl_arb_texture_border_clamp
gl_arb_texture_compression
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_rectangle
gl_arb_transpose_matrix
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_env_combine3
gl_ati_texture_float
gl_ext_bgra
gl_ext_blend_color
gl_ext_blend_func_separate
gl_ext_blend_minmax
gl_ext_blend_subtract
gl_ext_compiled_vertex_array
gl_ext_copy_texture
gl_ext_draw_range_elements
gl_ext_fog_coord
gl_ext_framebuffer_object
gl_ext_gpu_program_parameters
gl_ext_multi_draw_arrays
gl_ext_packed_depth_stencil
gl_ext_packed_pixels
gl_ext_point_parameters
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_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_lod_bias
gl_ext_texture_mirror_clamp
gl_ext_texture_object
gl_ext_texture_rectangle
gl_ext_texture3d
gl_ext_vertex_array
gl_ktx_buffer_region
gl_nv_blend_square
gl_nv_texgen_reflection
gl_sgis_generate_mipmap
gl_sgis_texture_edge_clamp
gl_sgis_texture_lod
gl_version_1_1
gl_version_1_2
gl_version_1_3
gl_version_1_4
gl_version_1_5
gl_version_2_0
gl_win_swap_hint
wgl_ext_swap_control

bluemonkmn

  • SGDK Author
  • Administrator
  • Fanatic
  • *****
  • Posts: 2761
    • ICQ Messenger - 2678251
    • MSN Messenger - BlueMonkMN@gmail.com
    • View Profile
    • http://sgdk2.sf.net/
    • Email
Re: TechnoVenture for SGDK2
« Reply #35 on: 2008-04-17, 05:32:03 AM »
I think I updated it so it won't have the NullReferenceException, but it probably will still have the AccessViolationException:
http://sgdk2.enigmadream.com/support/TVSGDK2e.zip

It might log more information about the real error, though.

Also, durnurd, I never did anything to the sound effects.  When I play I hear the footsteps when I run, and when I land on a platform, but not when I run into something.  Maybe I used an old version or something.

Jam0864

  • Contributor
  • Fanatic
  • **
  • Posts: 744
    • MSN Messenger - marmalade0864@hotmail.com
    • View Profile
    • Jam0864's Content Dump
    • Email
Re: TechnoVenture for SGDK2
« Reply #36 on: 2008-04-17, 06:08:30 AM »
Code: [Select]
DisplayDevice 0 (primary) supports 21 resolutions.
640x480x8@61Hz
640x480x16@61Hz
640x480x32@61Hz
720x480x8@61Hz
720x480x16@61Hz
720x480x32@61Hz
800x600x8@61Hz
800x600x16@61Hz
800x600x32@61Hz
848x480x8@61Hz
848x480x16@61Hz
848x480x32@61Hz
1024x768x8@61Hz
1024x768x16@61Hz
1024x768x32@61Hz
1280x768x8@61Hz
1280x768x16@61Hz
1280x768x32@61Hz
1280x800x8@61Hz
1280x800x16@61Hz
>> 1280x800x32@61Hz <<
Device context: 486607534
Selecting pixel format... Device context: 486607534
Selecting pixel format... Device context: 486607534
Selecting pixel format... Device context: 486607534
Selecting pixel format... Device context: 486607534
Selecting pixel format... Device context: 486607534
Selecting pixel format... Device context: 486607534
Selecting pixel format... Creating GraphicsContext.
GraphicsMode: Index: 2, Color: 32 (8888), Depth: 24, Stencil: False, Samples: 0, Accum: 0 (0000), Buffers: 2, Stereo: False
IWindowInfo: Windows.WindowInfo: Handle 3605792, Parent (null)
Loaded opengl32.dll: 1804926976
OpenGL will be bound to handle: 3605792
Setting pixel format...
2
Creating render context... done! (id: 65536)
Load extensions for OpenTK.Platform.Windows.Wgl... 47 extensions loaded in 22 ms.
Load extensions for OpenTK.Graphics.OpenGL.GL... 912 extensions loaded in 311 ms.
Load extensions for OpenTK.Graphics.OpenGL.Glu... 58 extensions loaded in 15 ms.
Extension "
2.0.6956 Release
gl_arb_depth_texture
gl_arb_draw_buffers
gl_arb_fragment_program
gl_arb_fragment_shader
gl_arb_multisample
gl_arb_multitexture
gl_arb_occlusion_query
gl_arb_point_parameters
gl_arb_point_sprite
gl_arb_shader_objects
gl_arb_shading_language_100
gl_arb_shadow
gl_arb_shadow_ambient
gl_arb_texture_border_clamp
gl_arb_texture_compression
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_rectangle
gl_arb_transpose_matrix
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_env_combine3
gl_ati_texture_float
gl_ext_bgra
gl_ext_blend_color
gl_ext_blend_func_separate
gl_ext_blend_minmax
gl_ext_blend_subtract
gl_ext_compiled_vertex_array
gl_ext_copy_texture
gl_ext_draw_range_elements
gl_ext_fog_coord
gl_ext_framebuffer_object
gl_ext_gpu_program_parameters
gl_ext_multi_draw_arrays
gl_ext_packed_depth_stencil
gl_ext_packed_pixels
gl_ext_point_parameters
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_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_lod_bias
gl_ext_texture_mirror_clamp
gl_ext_texture_object
gl_ext_texture_rectangle
gl_ext_texture3d
gl_ext_vertex_array
gl_ktx_buffer_region
gl_nv_blend_square
gl_nv_texgen_reflection
gl_sgis_generate_mipmap
gl_sgis_texture_edge_clamp
gl_sgis_texture_lod
gl_version_1_1
gl_version_1_2
gl_version_1_3
gl_version_1_4
gl_version_1_5
gl_version_2_0
gl_win_swap_hint
wgl_ext_swap_control
System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
   at OpenTK.Graphics.OpenGL.GL.Imports.Begin(BeginMode mode)
   at OpenTK.Graphics.OpenGL.GL.Begin(BeginMode mode)
   at Display.DrawFrame(TextureRef texture, Rectangle sourceRect, PointF[] corners, Int32 offsetX, Int32 offsetY)
   at LayerBase.Draw()
   at Menu_Map.Draw()
   at MapBase.DrawAllViews()
   at GameForm.Run()
   at Project.Main()
Disposing context.

bluemonkmn

  • SGDK Author
  • Administrator
  • Fanatic
  • *****
  • Posts: 2761
    • ICQ Messenger - 2678251
    • MSN Messenger - BlueMonkMN@gmail.com
    • View Profile
    • http://sgdk2.sf.net/
    • Email
Re: TechnoVenture for SGDK2
« Reply #37 on: 2008-04-18, 06:19:33 PM »
I posted another version at: http://sgdk2.enigmadream.com/support/TVSGDK2f.zip
But I didn't do anything to fix the AccessViolation exception.  Still no revelations about that at the OpenTK forums.  I did add a frame rate limiter, though, and corrected an error that someone reported on the resize event.  I suppose there's a slim chance that the resize event could have been related to the AccessViolation exception, but I wouldn't hold out much hope of that.  I'm not even sure my fix to the resize event fixed anything.

durnurd

  • Lead Lemming
  • Expert
  • Fanatic
  • *****
  • Posts: 1234
  • Games completed so far: 0
    • MSN Messenger - durnurd@hotmail.com
    • View Profile
    • Find My Ed
Re: TechnoVenture for SGDK2
« Reply #38 on: 2008-04-27, 02:47:13 PM »
I recently installed the latest release of Ubuntu, and it actually just works on my machine, which in itself is amazing enough, but the ease of use is unparalleled with any other version of Linux I have ever seen.  Seriously.

In any case, I was gonna try running TVSGDK2 with OpenGL and see how far I got, but I noticed that the links are now dead, so I can't really do much with that.  I have WINE installed (again, really easy to do), but that doesn't go too well with .NET stuff.  If you do make that program available again, though, I could try it with Mono (as long as you haven't changed too much to .NET 2.0).
Edward Dassmesser

bluemonkmn

  • SGDK Author
  • Administrator
  • Fanatic
  • *****
  • Posts: 2761
    • ICQ Messenger - 2678251
    • MSN Messenger - BlueMonkMN@gmail.com
    • View Profile
    • http://sgdk2.sf.net/
    • Email
Re: TechnoVenture for SGDK2
« Reply #39 on: 2008-04-27, 04:49:58 PM »
I've been making updates.  The current URL is http://sgdk2.enigmadream.com/support/TVSGDK2h.zip

Jam0864

  • Contributor
  • Fanatic
  • **
  • Posts: 744
    • MSN Messenger - marmalade0864@hotmail.com
    • View Profile
    • Jam0864's Content Dump
    • Email
Re: TechnoVenture for SGDK2
« Reply #40 on: 2008-04-28, 12:12:35 AM »
Code: [Select]
DisplayDevice 0 (primary) supports 21 resolutions.
640x480x8@61Hz
640x480x16@61Hz
640x480x32@61Hz
720x480x8@61Hz
720x480x16@61Hz
720x480x32@61Hz
800x600x8@61Hz
800x600x16@61Hz
800x600x32@61Hz
848x480x8@61Hz
848x480x16@61Hz
848x480x32@61Hz
1024x768x8@61Hz
1024x768x16@61Hz
1024x768x32@61Hz
1280x768x8@61Hz
1280x768x16@61Hz
1280x768x32@61Hz
1280x800x8@61Hz
1280x800x16@61Hz
>> 1280x800x32@61Hz <<
Device context: -973012190
Selecting pixel format... Device context: -973012190
Selecting pixel format... Device context: -973012190
Selecting pixel format... Device context: -973012190
Selecting pixel format... Device context: -973012190
Selecting pixel format... Device context: -973012190
Selecting pixel format... Device context: -973012190
Selecting pixel format... Creating GraphicsContext.
GraphicsMode: Index: 2, Color: 32 (8888), Depth: 24, Stencil: False, Samples: 0, Accum: 0 (0000), Buffers: 2, Stereo: False
IWindowInfo: Windows.WindowInfo: Handle 2753732, Parent (null)
Loaded opengl32.dll: 1803026432
OpenGL will be bound to handle: 2753732
Setting pixel format...
2
Creating render context... done! (id: 65536)
Load extensions for OpenTK.Platform.Windows.Wgl... 47 extensions loaded in 45 ms.
Load extensions for OpenTK.Graphics.OpenGL.GL... 912 extensions loaded in 614 ms.
Load extensions for OpenTK.Graphics.OpenGL.Glu... 58 extensions loaded in 16 ms.
Extension "
2.0.6956 Release
gl_arb_depth_texture
gl_arb_draw_buffers
gl_arb_fragment_program
gl_arb_fragment_shader
gl_arb_multisample
gl_arb_multitexture
gl_arb_occlusion_query
gl_arb_point_parameters
gl_arb_point_sprite
gl_arb_shader_objects
gl_arb_shading_language_100
gl_arb_shadow
gl_arb_shadow_ambient
gl_arb_texture_border_clamp
gl_arb_texture_compression
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_rectangle
gl_arb_transpose_matrix
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_env_combine3
gl_ati_texture_float
gl_ext_bgra
gl_ext_blend_color
gl_ext_blend_func_separate
gl_ext_blend_minmax
gl_ext_blend_subtract
gl_ext_compiled_vertex_array
gl_ext_copy_texture
gl_ext_draw_range_elements
gl_ext_fog_coord
gl_ext_framebuffer_object
gl_ext_gpu_program_parameters
gl_ext_multi_draw_arrays
gl_ext_packed_depth_stencil
gl_ext_packed_pixels
gl_ext_point_parameters
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_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_lod_bias
gl_ext_texture_mirror_clamp
gl_ext_texture_object
gl_ext_texture_rectangle
gl_ext_texture3d
gl_ext_vertex_array
gl_ktx_buffer_region
gl_nv_blend_square
gl_nv_texgen_reflection
gl_sgis_generate_mipmap
gl_sgis_texture_edge_clamp
gl_sgis_texture_lod
gl_version_1_1
gl_version_1_2
gl_version_1_3
gl_version_1_4
gl_version_1_5
gl_version_2_0
gl_win_swap_hint
wgl_ext_swap_control
System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
   at OpenTK.Graphics.OpenGL.GL.Imports.Begin(BeginMode mode)
   at OpenTK.Graphics.OpenGL.GL.Begin(BeginMode mode)
   at Display.DrawFrame(TextureRef texture, Rectangle sourceRect, PointF[] corners, Int32 offsetX, Int32 offsetY)
   at LayerBase.Draw()
   at Menu_Map.Draw()
   at MapBase.DrawAllViews()
   at GameForm.Run()
   at Project.Main()
Disposing context.

bluemonkmn

  • SGDK Author
  • Administrator
  • Fanatic
  • *****
  • Posts: 2761
    • ICQ Messenger - 2678251
    • MSN Messenger - BlueMonkMN@gmail.com
    • View Profile
    • http://sgdk2.sf.net/
    • Email
Re: TechnoVenture for SGDK2
« Reply #41 on: 2008-04-28, 05:42:22 AM »
Yeah, still nobody knows what's causing that problem so I can't do anything to even try to fix it.  We haven't seen any other systems with that AccessViolation problem.  And it must be something down in OpenTK or lower because even the sample programs for OpenTK have the problem.  I guess we just wait and hope that OpenTK will get fixed at some point, and SGDK 2 will have to move forward.  But I still have to wait until OpenTK provides better text drawing and full screen support before I can release anything.

durnurd

  • Lead Lemming
  • Expert
  • Fanatic
  • *****
  • Posts: 1234
  • Games completed so far: 0
    • MSN Messenger - durnurd@hotmail.com
    • View Profile
    • Find My Ed
Re: TechnoVenture for SGDK2
« Reply #42 on: 2008-04-28, 06:58:15 AM »
Have you taken a look at the necessity to support GL_ARB_texture_rectangle?  I get the same error when trying to run it on my friend's computer as before, even though recompiling it without that check did allow the program to run just fine before.  I don't have time to retest that now... gotta go to class.
Edward Dassmesser

durnurd

  • Lead Lemming
  • Expert
  • Fanatic
  • *****
  • Posts: 1234
  • Games completed so far: 0
    • MSN Messenger - durnurd@hotmail.com
    • View Profile
    • Find My Ed
Re: TechnoVenture for SGDK2
« Reply #43 on: 2008-04-28, 12:34:44 PM »
Mono comes built in with the latest version of Ubuntu, so running the program was as simple as typing "mono TVSGDK2.exe".  This failed immediately, since it does not come with a System.Windows.Forms wrapper pre-installed, so after I installed a package for that, it got as far as the OpenGL initialization, but couldn't find opengl32.dll.

I checked, and I do have some form of OpenGL installed.  I don't know how to get it to work with this just yet.  Still, promising results.

--Edit 1:

Copying  OpenTK.dll.config from the sample OpenTK project did the trick to get past the problem of finding the dll:
Code: [Select]
<configuration>
  <dllmap os="linux" dll="opengl32.dll" target="libGL.so.1"/>
  <dllmap os="linux" dll="glu32.dll" target="libGLU.so.1"/>
</configuration>

The next problem to overcome is that it cannot find winmm.dll for mapping joystick inputs.  Specifically, it throws an error trying to run Joystick.GetDeviceCount() from Joystick:joyGetDevCaps
« Last Edit: 2008-04-28, 12:46:49 PM by durnurd »
Edward Dassmesser

bluemonkmn

  • SGDK Author
  • Administrator
  • Fanatic
  • *****
  • Posts: 2761
    • ICQ Messenger - 2678251
    • MSN Messenger - BlueMonkMN@gmail.com
    • View Profile
    • http://sgdk2.sf.net/
    • Email
Re: TechnoVenture for SGDK2
« Reply #44 on: 2008-04-28, 01:31:49 PM »
What if you delete/disable the joystick code?  I assume at some point you will hit a problem with FMODEx.dll.  Fortunately FMODEx is also cross-platform and you can probably download a Linux binary for that too.