English Amiga Board

English Amiga Board (https://eab.abime.net/index.php)
-   support.FS-UAE (https://eab.abime.net/forumdisplay.php?f=122)
-   -   Option to change hdf params (surfaces etc) (https://eab.abime.net/showthread.php?t=89796)

rsn8887 13 December 2017 07:23

Option to change hdf params (surfaces etc)
 
Is it possible to support a few other .hdf geometries?

Since .hdf with surfaces = 1 cannot be larger than 1024 MB (?) or so, maybe can FS-UAE automatically set surfaces = 2 if filesize > 1024?

A user option to set those geometry parameters would be great, too.

jbl007 15 December 2017 15:59

You can use unofficial/unsupported uae_ options to archive this. For example
hard_drive_0=foo.hdf
translates to
Code:

uae_hardfile2=rw,DH0:./foo.hdf,32,1,2,512,0,,uae
uae_uaehf0=hdf,rw,DH0:./foo.hdf,32,1,2,512,0,,uae

Change the 1 to 2 and you'll have your 2 surfaces. :)

rsn8887 15 December 2017 17:40

Thanks, that's great news. In which file or in which option do I have to make this change? I am not very familiar with FS-UAE.

jbl007 15 December 2017 18:44

Just write it to your configuration file replacing your hard_drive_x options...
If you use the launcher: Highlight your config, go to "Additional Configuration" (rightmost tab), click on "custom configuration" (upper right button), write the lines here, make sure you don't have any hdd's in the "Harddives" tab configured, save the config, cross your fingers... :)

rsn8887 15 December 2017 18:53

I am confused by "uae_hardfile2"? What if I want to mount several hdf? Should I change it to "3" etc?

EDIT: I got it to work with multiple hdf, just repeat the "uae_hardfile2" option multiple times with different hdf.

EDIT2: It only works if I don't use the launcher and edit the config file directly. The launcher erases all additional uae_hardfile2 options that I add and only keeps the last one. Pretty annoying.

jbl007 15 December 2017 19:42

Quote:

Originally Posted by rsn8887 (Post 1206283)
The launcher erases all additional uae_hardfile2 options that I add and only keeps the last one.

Oh crap, I just noticed that right now. This is a limitation of pythons configparser module. It only accepts unique keys. It throws DuplicateOptionError exception by default or ignores them if initialized with strict=False. Looks like there's no easy way around it. :(

rsn8887 18 December 2017 06:02

I wonder if an exception could be added to allow multiple entries for this particular option uae_hardfile2.


All times are GMT +2. The time now is 18:50.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.

Page generated in 0.04732 seconds with 11 queries