English Amiga Board


Go Back   English Amiga Board > Other Projects > project.WHDLoad

 
 
Thread Tools
Old 08 March 2018, 01:58   #1
Amiga1992
Registered User
 
Join Date: May 2001
Location: ?
Posts: 19,644
PRELOAD as Global Option?

I dunno if this is the right place to post wishlist items but here goes:

Is it possible to make it so one can override the slave option of PRELOAD with a global option on whdload.prefs?

I notice I have a bunch of games that don't have PRELOAD on their .info and I have SO many it'd be a pain to try to change the .info for each. Having PRELOAD on whdload.prefs means that by default all games will try to PRELOAD, and only if there isn't enough RAM revert to NO PRELOAD.

It would be really cool to have that!

(Unless I am being mistaken, I thought PRELOAD cannot be set globally)
Amiga1992 is offline  
Old 08 March 2018, 13:56   #2
daxb
Registered User
 
Join Date: Oct 2009
Location: Germany
Posts: 3,303
Normally each icon should contain PRELOAD as tooltype. If PRELOAD works in whdload.prefs then it should already do what you want. Never tried it but you test it by trying.

To change/add tooltypes for all your installs you can use a simple ARexx script using rexxtricks.library. It has a gettooltypes() and settooltypes() function. I would first check with getdefaulttool() for "whdload" to make sure to alter only WHDLoad installs. Then read the tooltypes and check for "PRELOAD". If not present set it.
daxb is offline  
Old 08 March 2018, 14:02   #3
StingRay
move.l #$c0ff33,throat
 
StingRay's Avatar
 
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 6,863
Quote:
Originally Posted by daxb View Post
If PRELOAD works in whdload.prefs then it should already do what you want. Never tried it but you test it by trying.
PRELOAD is a local option. It doesn't work in the WHDLoad.prefs file.
StingRay is offline  
Old 08 March 2018, 14:33   #4
daxb
Registered User
 
Join Date: Oct 2009
Location: Germany
Posts: 3,303
Thanks. I didn't found that information in docs usage part.
daxb is offline  
Old 08 March 2018, 14:41   #5
DamienD
Banned
 
DamienD's Avatar
 
Join Date: Aug 2005
Location: London / Sydney
Age: 47
Posts: 20,420
Have a look at the table here daxb

... Usage and Options
DamienD is offline  
Old 08 March 2018, 14:56   #6
daxb
Registered User
 
Join Date: Oct 2009
Location: Germany
Posts: 3,303
I was quick searching for local/global but only in the description. Thanks DamienD, now I will (hopefully) remember that next time.
daxb is offline  
Old 08 March 2018, 16:41   #7
Amiga1992
Registered User
 
Join Date: May 2001
Location: ?
Posts: 19,644
Yeah this is why I asked.
It turns out these games have PRELOAD on their icons, but mother effing XBench is ignoring the tooltypes and launching WHDLoad without the Preload option

Yeah so it's an XBench bug, but if Preload was set globally, it would override this problem.
I don't get why it can't be global, because the way it works now, even if the slave says PRELOAD, if you don't have enough memory, it reverts to non-Preload mode. So if you had it set globally to preload except in the case there's not enough RAM, it would work the same way.
Amiga1992 is offline  
Old 08 March 2018, 19:17   #8
daxb
Registered User
 
Join Date: Oct 2009
Location: Germany
Posts: 3,303
Add a feature request on http://mantis.whdload.de/main_page.php for project WHDLoad or ask wepl if he isn't reading this.
daxb is offline  
Old 08 March 2018, 19:57   #9
Amiga1992
Registered User
 
Join Date: May 2001
Location: ?
Posts: 19,644
I might, but I don't want to bother Wepl much, since the main problem here is X-Bench.
Although I have a feeling there's a very good reason for PRELOAD not to be a global option.
Amiga1992 is offline  
Old 08 March 2018, 20:51   #10
malko
Ex nihilo nihil
 
malko's Avatar
 
Join Date: Oct 2017
Location: CH
Posts: 4,856
Quote:
Originally Posted by daxb View Post
[...] To change/add tooltypes for all your installs you can use a simple ARexx script using rexxtricks.library. It has a gettooltypes() and settooltypes() function. I would first check with getdefaulttool() for "whdload" to make sure to alter only WHDLoad installs. Then read the tooltypes and check for "PRELOAD". If not present set it.
As I have no ARexx knowledge, would you mind providing such script if you already have one ready ?
malko is offline  
Old 08 March 2018, 23:01   #11
daxb
Registered User
 
Join Date: Oct 2009
Location: Germany
Posts: 3,303
@Akira:
Bugreport to X-Bench author?

@malko:
I've only a GetIconInfo.rexx and changeIconType.rexx script ready what is already really simple. So it would need to be expanded/merged but the problem is that I cannot transfer data from/to my miggy. I've no delight to copy it by hand. Maybe others can help.
daxb is offline  
Old 08 March 2018, 23:12   #12
Wepl
Moderator
 
Wepl's Avatar
 
Join Date: Nov 2001
Location: Germany
Posts: 866
As already written PreLoad is a local option only.
The decision for this was probably that if globally set you cannot disable it for specific installs and I didn't want to introduce another option.
If there is a meaningful scenario I can make it global too (it's only a bit to add).
Wepl is offline  
Old 09 March 2018, 11:02   #13
Turran
Moderator
 
Turran's Avatar
 
Join Date: May 2012
Location: Stockholm / Sweden
Age: 49
Posts: 1,571
Doesnt x-bench have WHDLOAD options? I seem to remember a preload checkbox there...
Turran is offline  
Old 09 March 2018, 16:13   #14
Retro-Nerd
Missile Command Champion
 
Retro-Nerd's Avatar
 
Join Date: Aug 2005
Location: Germany
Age: 52
Posts: 12,435
It has. You should also read the white text regarding tooltypes. Preload (if set in the icons) works fine for me in Xbench.



Tried it also in WinUAE with a CD32 pad setting (pressing the button longer than one second) to start a game. Removed the "PRELOAD" entry from game icon of course. This works too. Do you use Scalos or a real WB? Scalos has some problems with tooltypes in Tinylauncher too.

Last edited by Retro-Nerd; 09 March 2018 at 17:14.
Retro-Nerd is offline  
Old 09 March 2018, 19:09   #15
Amiga1992
Registered User
 
Join Date: May 2001
Location: ?
Posts: 19,644
I don't use Scalos or WB, I am booting straight into X-Bench.

Is that the latest version of XBench? (xmas release). The program is ignoring whatever that is used in that options screen, checking or unchecking preload does not matter. Also those options only are valid if you start with GREEN button. Of course I also tried that, and it never preloads.

I already wrote on the XBench thread but Jim Neray doens't really seem to update this much, I don't even know if he reads the thread, he never replies, or rarely.

Quote:
Originally Posted by Wepl View Post
If there is a meaningful scenario I can make it global too (it's only a bit to add).
I think the only scenario is for when you just want to do write commandline "whdload whatever.slave" and it would default to preload. It could be handy, less stuff to type :P
Amiga1992 is offline  
Old 09 March 2018, 19:12   #16
Retro-Nerd
Missile Command Champion
 
Retro-Nerd's Avatar
 
Join Date: Aug 2005
Location: Germany
Age: 52
Posts: 12,435
Can Xbench really detect and scan the tooltypes from game icons if you boot straight into it? (Tinylauncher e.g. needs NewIcons or it can't read the tooltypes). From WB Xbench works fine though.

Last edited by Retro-Nerd; 09 March 2018 at 19:20.
Retro-Nerd is offline  
Old 09 March 2018, 19:37   #17
Amiga1992
Registered User
 
Join Date: May 2001
Location: ?
Posts: 19,644
Quote:
Originally Posted by Retro-Nerd View Post
Can Xbench really detect and scan the tooltypes from game icons if you boot straight into it? (Tinylauncher e.g. needs NewIcons or it can't read the tooltypes).
I have no idea, nothing in the measle docs say otherwise. But the info tooltypes are before any type of newicon data.
Perhaps if I change the icons to standard ones, it might work, but I'd like confirmation from Jim Neray before I approach such a gargantuan task.

However, even if it wasn't reading the info from the .info file, the green button tooltypes should work, and they are not working. I have PRELOAD set to YES on those options, and if I press the green button, the game still boots without preload.

Let's start with the fact that XBench isn't the best thing out there :/ But this seems like a bug/huge oversight.

Maybe it's best to split this thread at this point, this is too much XBench talk and not enough WHDLoad talk. I would still appreciate a global PRELOAD toggle, then I can get rid of all game icons!
Amiga1992 is offline  
Old 09 March 2018, 19:42   #18
Retro-Nerd
Missile Command Champion
 
Retro-Nerd's Avatar
 
Join Date: Aug 2005
Location: Germany
Age: 52
Posts: 12,435
Never liked it anyway. All this loading times and menues. I prefer it plain and simple. Tinylaucher does this job fine for me. Though the CD32 pad control for browsing the games list is nice in Xbench. Couldn't convince Gibs to add it though.
Retro-Nerd is offline  
Old 09 March 2018, 20:18   #19
Amiga1992
Registered User
 
Join Date: May 2001
Location: ?
Posts: 19,644
There's not a single decent launcher to be fair and XBench is spiritually the closest but ridden with performance issues and bloat. For the time being I will deal with it, until something better turns up.
I might even use that workbench-based one,m iGame was it? I'm that desperate
But it's nice to have a solution that doesn't need anything from Workbench at all.
Amiga1992 is offline  
Old 09 March 2018, 21:22   #20
jotd
This cat is no more
 
jotd's Avatar
 
Join Date: Dec 2004
Location: FRANCE
Age: 52
Posts: 8,160
another tooltype could be added: NOPRELOAD to counter the effect of a global preload.

In JST, "preload" is default.

yeah the game launchers are a very poor lot. I like AGS but there's this damn image not displaying/stuck bug which happens on real HW/HD images but not in HD folder (WinUAE) !!!
jotd is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
SWOS and preload Gordon project.WHDLoad 1 07 February 2017 21:59
Whdload on KS 2.05 and PRELOAD Gaula92 project.WHDLoad 9 17 February 2013 21:26
preload before turn off jit ? turrican3 project.WHDLoad 5 09 May 2011 23:08
SystemPatch3 - WHDLoad preload incompatible? Shoonay support.Apps 19 07 January 2011 08:04
Preload/S WHD how do i enable this ???? synchro Amiga scene 6 03 October 2004 14:37

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 12:15.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.16001 seconds with 13 queries