Page 1 of 1

reqtools.library version on 68k

Posted: Sun Feb 20, 2022 12:19 pm
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.

Re: reqtools.library version on 68k

Posted: Tue Mar 01, 2022 4:28 pm
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...

Re: reqtools.library version on 68k

Posted: Tue Mar 01, 2022 5:32 pm
by jPV
Here you are.

Re: reqtools.library version on 68k

Posted: Fri Mar 04, 2022 11:10 pm
by airsoftsoftwair
Thanks, I can confirm this works fine.

Re: reqtools.library version on 68k

Posted: Fri Sep 15, 2023 10:38 am
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.

Re: reqtools.library version on 68k

Posted: Mon Apr 14, 2025 10:39 am
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

Re: reqtools.library version on 68k

Posted: Mon Apr 14, 2025 9:16 pm
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 :)

Re: reqtools.library version on 68k

Posted: Fri Apr 18, 2025 10:54 pm
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