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.
reqtools.library version on 68k
- airsoftsoftwair
- Posts: 5832
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
Re: reqtools.library version on 68k
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
- airsoftsoftwair
- Posts: 5832
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
Re: reqtools.library version on 68k
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
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.
I fixed it the same way by installing the back port.
Re: reqtools.library version on 68k
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?
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
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
but its just too much... just add in your README the requirements 
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")
Christos
- airsoftsoftwair
- Posts: 5832
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
Re: reqtools.library version on 68k
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