Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

Problem: Shisen-So Breaking without Breakpoints (Was Can one bundle Quesa with a program?) (Real Studio network user group Mailinglist archive)

Back to the thread list
Previous thread: Great Job on RB2005 Candidate 2!
Next thread: The Great Listbox Feature Request Thread


Re: Can one bundle Quesa with a program?   -   Joseph J. Strout
  Problem: Shisen-So Breaking without Breakpoints (Was Can one bundle Quesa with a program?)   -   Barry Traver
    Re: Problem: Shisen-So Breaking without Breakpoints (Was Can one bundle Quesa with a program?)   -   Joseph J. Strout
     Re: Problem: Shisen-So Breaking without Breakpoints (Was Can one bundle Quesa with a program?)   -   Barry Traver

Problem: Shisen-So Breaking without Breakpoints (Was Can one bundle Quesa with a program?)
Date: 02.08.05 16:43 (Tue, 02 Aug 2005 11:43:47 -0400)
From: Barry Traver
Joe,

> Right, plus the more fundamental fact that Armageddon
> is a Mac application. It could be made portable (to
> Windows) with a little effort, but I haven't yet made
> that effort. That's why you'll find things like the above
> in it.

Do you have any recommendations on simple sample REALbasic source code
for a game that does sprites and that will run on Windows (other than
Shisen-So, which doesn't really do sprites, and Bejeweled, both of which
came with REALbasic)?

Speaking of Shisen-So, I wrote my own revision of that program which
includes the following enhancements:

(1) The ability to go backwards, move by move, all the way from the
current position to the original position (or stopping anywhere in
between).

(2) The ability to save any game position and load it in later.

(3) Removal of the bug occurring when you accidentally click on a blank
space.

One more thing I just added is the ability to combine (1) and (2), so
that you can save a current position, load it in later, _and_ go
backwards, move by move, from that point.

Here's my problem: In adding new menu items, I managed to introduce a
bug that I believe is related to doing the menus wrong (I don't have a
Mac, so I don't understand this "EnableMenuItems" and
"AboutApple.Enabled" stuff).

Anyway, here's what was happening on Windows in the IDE. When you ran
the program, for some reason it would break in the middle of the Open
function, even though no breakpoint was set. When you told it to
Resume, it would do so and would work fine after that. Strange. By
fooling around with the menus, I've got it so that the problem is no
longer there in Windows (one thing I did was add some lines to the
"EnableMenuItems" routine, although I don't really understand what I'm
doing), but I'm afraid it may no longer work properly on the Mac. Would
anyone care to take a look?

Warm regards,

Barry Traver

P.S. I'm still using REALbasic 5.5.4 for now, but saving up for the
upgrade.

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Re: Problem: Shisen-So Breaking without Breakpoints (Was Can one bundle Quesa with a program?)
Date: 02.08.05 16:53 (Tue, 2 Aug 2005 09:53:37 -0600)
From: Joseph J. Strout
At 11:43 AM -0400 8/2/05, Barry Traver wrote:

>Do you have any recommendations on simple sample REALbasic source
>code for a game that does sprites and that will run on Windows
>(other than Shisen-So, which doesn't really do sprites, and
>Bejeweled, both of which came with REALbasic)?

You should find other sprite examples with REALbasic, including a few
of mine, such as Platform Demo and Blasteroids.

>Here's my problem: In adding new menu items, I managed to introduce
>a bug that I believe is related to doing the menus wrong (I don't
>have a Mac, so I don't understand this "EnableMenuItems" and
>"AboutApple.Enabled" stuff).

I don't see how having a Mac has anything to do with proper use of
menus. You need to enable menu items (either automatically or
manually) in order for them to be available, on any platform.

>Anyway, here's what was happening on Windows in the IDE. When you
>ran the program, for some reason it would break in the middle of the
>Open function, even though no breakpoint was set.

Do you have a "break" statement in there? Or does an error message
of some sort appear?

Best,
- Joe

Re: Problem: Shisen-So Breaking without Breakpoints (Was Can one bundle Quesa with a program?)
Date: 03.08.05 01:06 (Tue, 02 Aug 2005 20:06:14 -0400)
From: Barry Traver
Joe,

> > Anyway, here's what was happening on Windows
> > in the IDE. When you ran the program, for some
> > reason it would break in the middle of the Open
> > function, even though no breakpoint was set.

> Do you have a "break" statement in there? Or does an error message
of some sort appear?

Nope. No "break" statement there. No error message: it just acts like
a normal break, with an arrow pointing to the next line to be performed.

The exact spot where it was breaking "moved" as I modified the manual
enabling of menu items. Finally, it stopped breaking at all, and the
program ran normally as soon as it was started in the IDE. I'm still
using version REALbasic 5.5.4. (although I'm saving up for REALbasic
2005), so I doubt it's worth filing a bug report about. It may perhaps
have something to do with manually enabling a menu item when it is
already enabled by default (by checking autoenable), but that's an
uninformed guess. At any rate, the problem has gone away with the
latest version of my program, which is the main thing.

Barry Traver

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>