TAB - thinBasic Adventure Builder

T.A.B. is an interactive fiction/text adventure program for Windows and made with thinBasic.
 
HomeFAQSearchUsergroupsRegisterLog in
Latest topics
» TAB Version 66 Available
Mon Sep 26, 2016 12:02 pm by catventure

» TAB Version 65 Available
Mon Feb 23, 2015 12:04 pm by catventure

» Incubation pt 1
Wed Apr 24, 2013 9:24 am by Kabrinski

» Charecter movements - doors
Wed Mar 20, 2013 2:55 pm by garethfx

» Member feedback on game planning
Sun Mar 03, 2013 1:47 pm by garethfx

» Still alive - just!
Thu Feb 28, 2013 11:34 am by catventure

» TAB 64 crashes ...
Mon Aug 20, 2012 11:31 am by acko

» Idea on addition to object being container
Sat Aug 18, 2012 3:49 pm by catventure

» sizex=y action ...
Thu Aug 09, 2012 11:29 am by catventure


Share | 
 

 TAB 64 crashes ...

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

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

PostSubject: TAB 64 crashes ...   Thu 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
View user profile
catventure
Admin Adventurer
avatar

Male
Number of posts : 376
Age : 64
Location : UK
Humor : Enjoys a laugh!
Adventure Points : 52
Registration date : 2008-06-08

PostSubject: Re: TAB 64 crashes ...   Thu 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.

_________________
http://tab.thinbasic.com ; Home of the TAB I.F. project.
Back to top Go down
View user profile http://adventure.rpgdynasty.com
catventure
Admin Adventurer
avatar

Male
Number of posts : 376
Age : 64
Location : UK
Humor : Enjoys a laugh!
Adventure Points : 52
Registration date : 2008-06-08

PostSubject: Re: TAB 64 crashes ...   Sat 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.

_________________
http://tab.thinbasic.com ; Home of the TAB I.F. project.
Back to top Go down
View user profile http://adventure.rpgdynasty.com
acko
Novice Adventurer
avatar

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

PostSubject: Re: TAB 64 crashes ...   Mon 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
View user profile
Sponsored content




PostSubject: Re: TAB 64 crashes ...   

Back to top Go down
 

TAB 64 crashes ...

View previous topic View next topic Back to top 

 Similar topics

+
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: