reqtools.library version on 68k

Report any Hollywood bugs here
Post Reply
User avatar
jPV
Posts: 734
Joined: Sat Mar 26, 2016 10:44 am
Location: RNO
Contact:

reqtools.library version on 68k

Post by jPV »

It seems that StringRequest() doesn't open a requester at all on 68k setups that have an older/original reqtools.library installed. I've tried this with V38.x (from 1997) which seems to be commonly installed version among users and distributions. Amiga Forever comes with that version, for instance, and I got some reports from users too. Maybe this version comes with AmigaOS 3.x?

StringRequest() probably only works on OS3 with the AROS backport of the library (http://aminet.net/package/util/libs/ReqToolsLib), which is versioned as V39.x.

Is there a reason why V39 is required or could it be made to work with the V38 too? If certain version really is required, could Hollywood inform users about the incompatible library if the function is used? Or mention this in the Hollywood documentation at least.
User avatar
airsoftsoftwair
Posts: 5832
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: reqtools.library version on 68k

Post by airsoftsoftwair »

Code: Select all

- Fix [Amiga]: Hollywood is now also compatible with reqtools.library v38; previously, functions like
  StringRequest() required reqtools.library v39 to be installed
I can't find reqtools.library v38 anywhere, though, so could you send me your copy so that I can try it here? Normally they should be ABI compatible but who knows...
User avatar
jPV
Posts: 734
Joined: Sat Mar 26, 2016 10:44 am
Location: RNO
Contact:

Re: reqtools.library version on 68k

Post by jPV »

Here you are.
User avatar
airsoftsoftwair
Posts: 5832
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: reqtools.library version on 68k

Post by airsoftsoftwair »

Thanks, I can confirm this works fine.
dewindatws
Posts: 12
Joined: Wed Sep 06, 2023 8:54 pm
Location: Wales
Contact:

Re: reqtools.library version on 68k

Post by dewindatws »

Hello, I just wanted to let you know that this same bug persists also on the “ColorRequest” function.

I fixed it the same way by installing the back port.
amyren
Posts: 410
Joined: Thu May 02, 2019 11:53 am

Re: reqtools.library version on 68k

Post by amyren »

There is no internal error detection in stringrequest that could be used to warn about the missing library?

So one would need to have something like this, or could it give wrong detection on some systems?

Code: Select all

t = GetVersion()
If t.platform = "AmigaOS3" Or t.platform = "MorphOS" Or t.platform = "WarpOS" Or t.platform = "AmigaOS4"Or t.platform = "AROS"
	If Not Exists("libs:reqtools.library")
		SystemRequest("Warning","reqtools.library v38 or newer not found\nSome functions in this program may not work as intended","OK")
	EndIf	
EndIf
plouf
Posts: 666
Joined: Sun Feb 04, 2018 11:51 pm
Location: Athens,Greece

Re: reqtools.library version on 68k

Post by plouf »

but according to OP reqtools MAY exist yet an older version aka v38
however you need v39+ ,to work correctly, which only means you need to have update

reqtools v39.3 is free on aminet since 2001 so is just an update issue !

you can i guess check version of reqtools via version command
like this

Code: Select all

Run("version libs:reqtools.library >ram:t/tempout")
but its just too much... just add in your README the requirements :)
Christos
User avatar
airsoftsoftwair
Posts: 5832
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: reqtools.library version on 68k

Post by airsoftsoftwair »

amyren wrote: Mon Apr 14, 2025 10:39 am There is no internal error detection in stringrequest that could be used to warn about the missing library?
If StringRequest() can't open reqtools.library it will trigger an #ERR_OPENLIB error so you could just watch out for this and then react accordingly, e.g.

Code: Select all

err, s$ = ?StringRequest("Test", "Enter something")
If err = #ERR_OPENLIB
   DebugPrint("Reqtools.library missing!")
   End
EndIf
Post Reply