Scrolling Game Development Kit Forum
Welcome, Guest. Please login or register.
2010-09-08, 07:00:05 PM

Login with username, password and session length
Search:     Advanced search
8920 Posts in 1007 Topics by 168 Members
Latest Member: mogzdogz
* Home Help Search Login Register
+  Scrolling Game Development Kit Forum
|-+  SGDK Version 2
| |-+  Projects
| | |-+  TechnoVenture for SGDK2
« previous next »
Pages: 1 2 3 [4] 5 Print
Author Topic: TechnoVenture for SGDK2  (Read 10065 times)
durnurd
Lead Lemming
Expert
Fanatic
*****
Posts: 1155


Games completed so far: 0

durnurd@hotmail.com
View Profile WWW
« Reply #45 on: 2008-04-28, 06:25:40 PM »

The screenshot speaks for itself.

It's really flickery, but I believe that to be a problem with my video card, as that occurs in all cases of using hardware graphics acceleration.


Update:

I haven't been able to figure out how to get the Linux version of fmodex to replace the Windows version.  However, taking out the code that uses it does allow me to get into the actual game



Yes, it does actually look that weird.  Again, probably the graphics card.
« Last Edit: 2008-04-28, 06:48:53 PM by durnurd » Logged

Edward Dassmesser
bluemonkmn
SGDK Author
Administrator
Fanatic
*****
Posts: 2146


2678251 BlueMonkMN@gmail.com
View Profile WWW Email
« Reply #46 on: 2008-04-28, 06:37:13 PM »

Wow!  I did not expect it to be that easy to get an SGDK2 project running under Linux!  surprise
Logged

bluemonkmn
SGDK Author
Administrator
Fanatic
*****
Posts: 2146


2678251 BlueMonkMN@gmail.com
View Profile WWW Email
« Reply #47 on: 2008-04-28, 06:41:08 PM »

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.

Have you tried running a project without power-of-2 (POT) sized textures?  I can't figure out why this wouldn't be required because I'm using about everything that I can think of that GL_ARB_texture_rectangle entails.  I do intend to (if I haven't already done it) allow the requirement to be overridden and try to run the project anyway.  Something like a pop-up box with an option to proceed.
Logged

durnurd
Lead Lemming
Expert
Fanatic
*****
Posts: 1155


Games completed so far: 0

durnurd@hotmail.com
View Profile WWW
« Reply #48 on: 2008-04-28, 06:51:52 PM »

Well, of course I haven't tried running a project like that, Since I don't have an IDE to make one.  I guess it was just coincidence that all of the TVSGDK2 images were that size.

Yeah, it was nice to be able to see it actually run.  Now the trick is to make it run with sound, and not have those lines on the top of every tile and sprite not in the top row of the graphic sheet.
Logged

Edward Dassmesser
bluemonkmn
SGDK Author
Administrator
Fanatic
*****
Posts: 2146


2678251 BlueMonkMN@gmail.com
View Profile WWW Email
« Reply #49 on: 2008-04-29, 06:38:59 AM »

So I'm curious.  I had a frame rate limiter in there that was calling QueryPerformanceCounter from Kernel32.dll I think.  Did that magically work, or did you change/remove it somehow?

Oh, and on the POT-sized textures... I mean even on a Windows system without support for that feature... never tried it?
Logged

durnurd
Lead Lemming
Expert
Fanatic
*****
Posts: 1155


Games completed so far: 0

durnurd@hotmail.com
View Profile WWW
« Reply #50 on: 2008-04-29, 08:58:59 AM »

On the POT-sized textures... how could I try it?  SGDK2.1 hasn't been released.

I didn't change anything relating to Kernel32.dll, so perhaps mono automatically fixed that one?

Some more strange effects of running on this system:

Logged

Edward Dassmesser
bluemonkmn
SGDK Author
Administrator
Fanatic
*****
Posts: 2146


2678251 BlueMonkMN@gmail.com
View Profile WWW Email
« Reply #51 on: 2008-04-29, 08:11:06 PM »

Oh, right... this is only in 2.1  Embarrassed
I wonder what's causing those strange behaviors you're seeing.  Maybe it's because your card doesn't support GL_ARB_texture_rectangle Wink.
So the frame rate is limited in the game, but not on the menu, right?  It's rather surprising that Mono would know how to convert a Win32 API call!
Logged

durnurd
Lead Lemming
Expert
Fanatic
*****
Posts: 1155


Games completed so far: 0

durnurd@hotmail.com
View Profile WWW
« Reply #52 on: 2008-04-30, 07:11:14 AM »

I haven't actually looked at the code to try to find the Win32 call.  I have the Mono IDE, so perhaps it can tell me something about that.  Also, I switched drivers between the first screenshot and the second, which is why this second one doesn't have the lines above all the sprites and tiles.  The proprietary driver may be causing this strange new problem that the community driver did not cause, though it had other problems. (I never actually got to this part of the level with the other driver though, so I can't be sure).  I do know that it supports GL_ARB_texture though.  At least SGDK2 doesn't complain about it.
Logged

Edward Dassmesser
durnurd
Lead Lemming
Expert
Fanatic
*****
Posts: 1155


Games completed so far: 0

durnurd@hotmail.com
View Profile WWW
« Reply #53 on: 2008-04-30, 08:41:50 AM »

Audio progress has been made.  Getting the compiled library and creating another config for that file:

Code: (TVSGDK2.exe.config)
<configuration>
  <dllmap os="linux" dll="fmodex.dll" target="/home/ed/Desktop/tvsgdk2/libfmodex64.so.4.14.03"/>
</configuration>

Allowed it to find the file.  Now I get this one:

ERR_INVALID_SPEAKER - An invalid speaker was passed to this function based on the current speaker mode.

As for the QueryPerformanceFrequency issue... I have a guess as to why it works.  Probably the same way that what I did above works.  There's probably a configuration file that redirects Kernel32.dll to a different dll that has the same functions as supported by linux.

Doing a search on this info, I come up with the following, which confirms my guess:

http://www.go-mono.com/docs/index.aspx?link=xhtml%3Adeploy%2Fmono-api-wapi.html
« Last Edit: 2008-04-30, 08:49:48 AM by durnurd » Logged

Edward Dassmesser
durnurd
Lead Lemming
Expert
Fanatic
*****
Posts: 1155


Games completed so far: 0

durnurd@hotmail.com
View Profile WWW
« Reply #54 on: 2008-04-30, 05:15:05 PM »

Now I get this one:

ERR_INVALID_SPEAKER - An invalid speaker was passed to this function based on the current speaker mode.

This could be caused by a different FMODEx version... I just downloaded the latest from the website... would that make problems?  Are you assuming a different version in the code that would do this?
Logged

Edward Dassmesser
bluemonkmn
SGDK Author
Administrator
Fanatic
*****
Posts: 2146


2678251 BlueMonkMN@gmail.com
View Profile WWW Email
« Reply #55 on: 2008-05-01, 07:17:53 AM »

Ah, yes, SGDK2 delivers with FMODEx.dll version 4.6.1.  I haven't updated it in a while.  I should catch up on some of the new features/fixes.  Maybe they fully support SF2 sound fonts now, making it possible to deliver high quality MIDI sound.
Logged

durnurd
Lead Lemming
Expert
Fanatic
*****
Posts: 1155


Games completed so far: 0

durnurd@hotmail.com
View Profile WWW
« Reply #56 on: 2008-05-01, 09:07:05 AM »

Ah, yes, SGDK2 delivers with FMODEx.dll version 4.6.1.

Indeed.  I'm using v4.14.03.  It is strange though that it is not backwards compatible.
Logged

Edward Dassmesser
bluemonkmn
SGDK Author
Administrator
Fanatic
*****
Posts: 2146


2678251 BlueMonkMN@gmail.com
View Profile WWW Email
« Reply #57 on: 2008-05-02, 06:42:17 AM »

I got TVSGDK2 to work with FMOD 4.14 by replacing the contents of the fmod.cs file in the TVSGDK2 project with the contents of 3 files delivered with FMOD in the api\csharp folder:
  • fmod.cs
  • fmod_dsp.cs (delete the duplicate using statements)
  • fmod_errors.cs
Logged

durnurd
Lead Lemming
Expert
Fanatic
*****
Posts: 1155


Games completed so far: 0

durnurd@hotmail.com
View Profile WWW
« Reply #58 on: 2008-05-02, 01:06:41 PM »

Well, the good news is, it worked!  I can hear sound now.

The bad news is that there is no screen capture software that works with audio and video on my computer.  So try this instead.

http://www.youtube.com/v/oaXmHu1vf9c

Yeah, with my video camera.  And it really is that glitchy.  And yes, you did see me walk right through a blob and not get hurt.
« Last Edit: 2008-05-02, 01:12:30 PM by durnurd » Logged

Edward Dassmesser
Jam0864
Contributor
Fanatic
**
Posts: 742


marmalade0864@hotmail.com
View Profile WWW Email
« Reply #59 on: 2008-05-02, 05:51:25 PM »

wow thats cool. :O
Logged
Pages: 1 2 3 [4] 5 Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!