gfxgfxFreeBASIC Games Directory Forumgfxgfx
gfx gfx
gfx
Welcome, Guest. Please login or register. May 24, 2013, 07:39:10 PM

Login with username, password and session length
11.5.2013 - Added a webpage for the latest FBGD competition.

13.3.2013 - Members registrations temporary disabled. For all membership requests, please email me: lachie13@yahoo.com

30.11.2012 - The ninth issue of BASIC Gaming is out! Read it here: http://games.freebasic.net/forum/index.php?topic=560.0

22.11.2012 - Be sure to check our currently running annual FBGD game making competition. This year's theme is SEASONS OF THE YEAR, 300 $ first place prize, and the competition runs till 18th of February. Link: http://games.freebasic.net/forum/index.php?topic=559.0
gfx
gfx
*
gfxgfx
gfxgfx gfxgfx
gfxgfx Home Help Search Login Register   gfxgfx
gfx gfx
gfx
Pages: 1 ... 3 4 [5]
Print
Author Topic: The Stranger's Adventure  (Read 4904 times)
Brick Break
Forum Sage
*****
Gender: Male
Posts: 412



View Profile
« Reply #60 on: September 29, 2010, 07:50:55 PM »

Quote
I guess I can do that for you... but I'll be busy for the next 3 days, I'll get back to you on sunday!
Great!

Quote
It's supposed to work that way! The game shows your last selection while displaying the character speach and you'll have to press 'Z' until the character is finish and sometimes, another choice will appear to make the talking going on another subject. And when that happens, a yellow line like "What do you want?" will appear while another choice will have to be made. In fact, you'll notice a yellow line everytime you engage a character with a choice to make...
I always felt like I wasn't in control of the conversation.

Quote
I'll try that ASAP, didn't know about OSS... Will it be able to detect my soundblaster card 5.1 vx?
I really have no idea. My uncle told me that soundblaster is pretty standard and if you write something for the soundblaster card it will work on most other cards too.

Personally I don't like the idea of "cards" (think graphics card) and I like to use slightly higher level libraries.
By the way, I figured out how to bypass including Windows libraries:

#ifdef __FB_WIN32__

    declare sub PlaySoundA alias "PlaySoundA" (byval as zstring ptr,byval as integer ptr,byval as uinteger)



    public sub loopsound(byval sound as string)

        PlaySoundA(sound,0,8 OR 2 OR 1)

    end sub



    public sub playsound(byval sound as string)

        PlaySoundA(sound,0,2 OR 1)

    end sub



    public sub stopsound

        PlaySoundA(0,0,0)

    end sub

#endif
That frees up a lot of function space!
Logged

Clay Dragon
Recruit
**
Gender: Male
Posts: 27


View Profile WWW Email
« Reply #61 on: October 04, 2010, 12:36:00 PM »

@Brick:
I don't get it... I'm using the same code chr$(255) + "k" for Alt-F4 for both Windows and Linux and it seems to work only for Windows... I don't know if there is another code for Linux or if I have to activate something in Debian Linux but at least, I fixed a lot of bugs in the Linux version because of its case sensitivity... I also worked on it an extra 3 hours yesterday to figure this out by myself!

You know Linux much more than me so I thought you could help for Alt-F4...

Anyway you can download the updated version 6.9 as usual in my first post...

Thank you for waiting!
« Last Edit: October 04, 2010, 12:42:34 PM by Clay Dragon » Logged
Brick Break
Forum Sage
*****
Gender: Male
Posts: 412



View Profile
« Reply #62 on: October 04, 2010, 02:51:26 PM »

@Brick:
I don't get it... I'm using the same code chr$(255) + "k" for Alt-F4 for both Windows and Linux and it seems to work only for Windows... I don't know if there is another code for Linux or if I have to activate something in Debian Linux but at least, I fixed a lot of bugs in the Linux version because of its case sensitivity... I also worked on it an extra 3 hours yesterday to figure this out by myself!

You know Linux much more than me so I thought you could help for Alt-F4...

Anyway you can download the updated version 6.9 as usual in my first post...

Thank you for waiting!
Thank you for looking into this. Now, I don't know much more about Linux than you. I don't know how you would solve your problems, but here are a few suggestions:

Test chr(255)+"h" and chr(255)+"x" and maybe chr(0)+"k" and chr(0)+"x" and chr(0)+"h" If none of those work, see if checking for Alt-F4 will detect close events on its own. Keep in mind that in FreeBASIC checking for a close event is not checking for Alt-F4, so that gets its own check. Here's what I use in FreeGDK:

dim shared as string*2 closeTriggerString=chr$(255)+"k"
dim shared as ubyte escapeKeyEnabled=1

public sub sync


    pcopy

    cls 0

    if multikey(&h38) and multikey(&h3E) or inkey$()=closeTriggerString then end

    if escapeKeyEnabled=1 then if multikey(&h01) then end


end sub

(I left out irrelevant points)
Logged

Pages: 1 ... 3 4 [5]
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines
Cerberus design by Bloc
Valid XHTML 1.0! Valid CSS!
gfx
gfxgfx gfxgfx