TAB - thinBasic Adventure Builder
Would you like to react to this message? Create an account in a few clicks or log in to continue.

TAB - thinBasic Adventure Builder

T.A.B. is an interactive fiction/text adventure program for Windows and made with thinBasic.
 
HomeLatest imagesSearchRegisterLog in
Latest topics
» Happy New Year 2024!
TAB 64 crashes ... I_icon_minitimeSun Dec 31, 2023 4:04 pm by catventure

» TAB Version 71
TAB 64 crashes ... I_icon_minitimeMon Aug 21, 2023 12:17 pm by catventure

» TAB Version 70
TAB 64 crashes ... I_icon_minitimeSun Oct 02, 2022 1:49 pm by catventure

» TAB Version 70
TAB 64 crashes ... I_icon_minitimeFri Sep 30, 2022 10:23 pm by catventure

» TAB Version 70
TAB 64 crashes ... I_icon_minitimeMon May 23, 2022 4:08 pm by catventure

» TAB Version 70
TAB 64 crashes ... I_icon_minitimeSat Apr 30, 2022 11:15 am by catventure

» TAB Version 70
TAB 64 crashes ... I_icon_minitimeSat Apr 23, 2022 2:32 pm by catventure

» TAB Version 68 Update
TAB 64 crashes ... I_icon_minitimeTue Mar 15, 2022 4:18 pm by catventure

» TAB Version 68 Update
TAB 64 crashes ... I_icon_minitimeFri Mar 11, 2022 8:47 pm by catventure


Share | 
 

 TAB 64 crashes ...

View previous topic View next topic Go down 
AuthorMessage
acko
Novice Adventurer
acko

Male
Number of posts : 19
Age : 53
Location : Perth, Western Australia
Humor : No one drinks XXXX or Fosters in Australia !!
Adventure Points : 8
Registration date : 2012-07-18

TAB 64 crashes ... Empty
PostSubject: TAB 64 crashes ...   TAB 64 crashes ... I_icon_minitimeThu Aug 16, 2012 5:41 am

Hi Phil,

(I appologise for the length of this post by the way, I just thought the more info I supplied, the more help it might be in solving the issue!)

Just to let you know I've recently encountered a rather serious scenario where TAB hangs after what appears to be a random period of time. My game was built with a previous version of TAB and continued to be built with the latest version. I do not use the save/load options to save and restart games (as you suggested that that should not be done after version 64 was created).

I've actually spend hours trying to decode my game scripts and am pretty sure that the hanging interval definitely appears to have no explainable pattern with regards to player commands, i.e. it crashes no matter what responses I use (either standard ones shipped with TAB or responses I have created myself).

(nb. I can't test in previous versions of TAB as I haven't saved any and the link you supply only seems to have the latest version available. I have experienced the crashes under both Windows XP and Windows 7.)

Where I think I may have narrrowed it down to is the point between where the last character/object is described, and the point where script 2 is about to be executed. I've put debugging messages throughout my code and you can see below that when a crash/hang occurs, the first debug message at the very top of script 2 is not output.

You are in a pub. To the east there is a round green door.
Script1 Position1 (first line of script)
Script1 Position2
Script1 Position3
Script1 Position4 (last line of script)
Exits lead: east only.
You can see :
the bar
the chair
Harold the barman
Felicity the barmaid
Script2 Position1 (first line of script)
Script2 Position2
Script2 Position3
Script2 Position4 (last line of script)

When the crash occurs after a random number of LOOK inputs the following is displayed:

You are in a pub. To the east there is a round green door.
Script1 Position1 (first line of script)
Script1 Position2
Script1 Position3
Script1 Position4 (last line of script)
Exits lead: east only.
You can see :
the bar
the chair
Harold the barman
Felicity the barmaid

As you can see, the debug message 'Script2 Position1 (first line of script)', as well as the subsequent script 2 messages, is not output after the last character (Felicity) is displayed; TAB merely hangs and I'm forced to use Windows Task Manager in order to kill the thinbasic.exe process.

The actual player command doesn't seem to affect the final result and after a few turns (as few as 3 and as many as 20+) TAB hangs.

As I mentioned earlier, the point of the crash seems to be between where the last character/object is described, and the point where script 2 is about to be executed, so I wondering if you could tell me what TAB is actually processing at this point?

In my last test I removed all my script code except for one debug message in script1 and script2. I then removed all my response commands except for LOOK, and I added a debug message after the room is re-described, i.e.

[start]look[acts]cleartext#desc#cmess[color=%rgb_plum]ResponseScript Debug Message[end]

The output I get before the crash, again only using the LOOK entry, is:

You are in a pub. To the east there is a round green door.
Script1 Debug Message
You can see :
the bar
the chair
Harold the barman
Felicity the barmaid
ResponseScript Debug Message
Script2 Debug Message

And after a crash occurs:

You are in a pub. To the east there is a round green door.
Script1 Debug Message
You can see :
the bar
the chair
Harold the barman
Felicity the barmaid
ResponseScript Debug Message

So once again you can see that processing did not get as far as script 2.

One other thing of note is that I have the Input Timeout set for my game. If I do nothing and observe the game running on its own I notice the only entry I get is the 'Script2 Debug Message' which is as I'd expect. However, again, after what seems to be a random number of timeout intervals, the game hangs as before - and at the point of the crash the final 'Script2 Debug Message' is not displayed.

I'm all out of ideas now Sad

But many HAPPY 60th returns for last week though Very Happy

Mark
Back to top Go down
catventure
Admin Adventurer
catventure

Male
Number of posts : 404
Age : 72
Location : UK
Humor : Enjoys a laugh!
Adventure Points : 77
Registration date : 2008-06-08

TAB 64 crashes ... Empty
PostSubject: Re: TAB 64 crashes ...   TAB 64 crashes ... I_icon_minitimeThu Aug 16, 2012 9:38 am

Hi Mark,

Thanks for your report and sorry to hear you're having problems.
I will look again at the new commands I made: "showcontents" and "showinv" to see if they might be the culprits - as I presume you have used those in your game... Can you try again without using those listing commands to see if same thing happens and let me know..?

Does the same thing happen in the Editor and the Player-only runner?

If you wish to email me the cut-down database that illustrates the "hanging" problem I will take a look at it...

catventureATyahoo.co.uk

Just tell me what steps to do to duplicate the error.

Regarding saved game position files: you should be OK to use those in version 64 and they should be working correctly. Just do not use any save game position files made from earlier version(s) in TABv64.

Regards,
Phil.

***UPDATE AT 12.05PM***

Possibly caused by a program global variable and local function variable conflict... I have uploaded a new v64 to the site for you to try out - but I cannot guarantee that this will be the source of the problem. In any case better to have this latest update.
Back to top Go down
https://adventure.forumotion.com
catventure
Admin Adventurer
catventure

Male
Number of posts : 404
Age : 72
Location : UK
Humor : Enjoys a laugh!
Adventure Points : 77
Registration date : 2008-06-08

TAB 64 crashes ... Empty
PostSubject: Re: TAB 64 crashes ...   TAB 64 crashes ... I_icon_minitimeSat Aug 18, 2012 3:52 pm

Hi Mark,

Just checking with you on this - what's the latest situation on this anomaly?

Is it still occurring in the latest version v64??

Have you found the solution?

Regards,
Phil.
Back to top Go down
https://adventure.forumotion.com
acko
Novice Adventurer
acko

Male
Number of posts : 19
Age : 53
Location : Perth, Western Australia
Humor : No one drinks XXXX or Fosters in Australia !!
Adventure Points : 8
Registration date : 2012-07-18

TAB 64 crashes ... Empty
PostSubject: Re: TAB 64 crashes ...   TAB 64 crashes ... I_icon_minitimeMon Aug 20, 2012 11:31 am

Yes, Phil, finally got it narrowed down.

The new v64 didn't work but I am using that now as default.

It came down to the very last object I created. After deleting everything I could thing of I ruled out scripts ... I eventually started deleting locations and objects that I thought I'd added since it started to error. One particular object, set to room 0, was causing the crash. I deleted it and (touch wood) everything has been fine since.

I won't be so hard on my code next time something similar happens Very Happy

Cheers

Mark
Back to top Go down
Sponsored content




TAB 64 crashes ... Empty
PostSubject: Re: TAB 64 crashes ...   TAB 64 crashes ... I_icon_minitime

Back to top Go down
 

TAB 64 crashes ...

View previous topic View next topic Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
TAB - thinBasic Adventure Builder :: TAB FORUMS :: Bug Reports-
Jump to: