English Amiga Board


Go Back   English Amiga Board > Other Projects > project.CD32 Conversion

 
 
Thread Tools
Old 12 February 2016, 16:43   #321
jayminer
Registered User

jayminer's Avatar
 
Join Date: Jun 2015
Location: Umeå / Sweden
Posts: 215
@jotd: have you looked into changing from RNLoader to Psygore's loader for CD32Load? Is this something you are working on?

I'm a bit curious since it would really help a lot with the compilation CD I'm working on if the "too many directories" problem was solved.
jayminer is offline  
Old 12 February 2016, 17:36   #322
Whitesnake
Martin Shaw

Whitesnake's Avatar
 
Join Date: Nov 2005
Location: United Kingdom
Posts: 400
Quote:
Originally Posted by jayminer View Post
@jotd: have you looked into changing from RNLoader to Psygore's loader for CD32Load? Is this something you are working on?

I'm a bit curious since it would really help a lot with the compilation CD I'm working on if the "too many directories" problem was solved.
Maybe an option for specifying a directory in the CD32Load command list might be a good idea?
Whitesnake is offline  
Old 12 February 2016, 17:44   #323
Akira
Registered User

Akira's Avatar
 
Join Date: May 2001
Location: New York
Posts: 19,265
Quote:
Originally Posted by Whitesnake View Post
Maybe an option for specifying a directory in the CD32Load command list might be a good idea?
It has nothing to do with that, it really has to do with how many files are physically stuck onto the CD, if you read pages before, the program has issues when reading stuff that is in the outer borders of the media.
Akira is offline  
Old 12 February 2016, 18:03   #324
patrik
Registered User
patrik's Avatar
 
Join Date: Jan 2005
Location: Umeå
Age: 39
Posts: 588
Quote:
Originally Posted by Akira View Post
It has nothing to do with that, it really has to do with how many files are physically stuck onto the CD, if you read pages before, the program has issues when reading stuff that is in the outer borders of the media.
To be nitpicking it is actually the number of directories combined with the lengths of their names that is the problem. The RN loader just loads the first 2048 Bytes of the path table which contains one entry for each directory, sorted in a specific way.

Each entry needs 8 + dirNameLenght Bytes plus it is padded upwards to an even Bytecount = minimum 10 Bytes per entry and that with names of 1 or 2 chars. So more than 2048/10~204 directories and you have issues for sure.

Made a rough script for viewing the individual entries byte-range in the path table, path depth and full path:
http://megaburken.net/~patrik/pathTableInfo.py

Every directory after -2047 printed by that script will not be found by the RN loader.

Last edited by patrik; 12 February 2016 at 18:24.
patrik is offline  
Old 12 February 2016, 18:39   #325
Retro1234
Boo

Retro1234's Avatar
 
Join Date: Jun 2006
Location: 5150
Posts: 4,593
My HD has hundreds of files and games and I've not had any problems yet

On a side note I know I should read the Docs but how do I program say Yellow=G

Also any chance of the following games working Lemmings,Cannon Fodder 2,Colditz

Thanks
Retro1234 is offline  
Old 12 February 2016, 19:00   #326
patrik
Registered User
patrik's Avatar
 
Join Date: Jan 2005
Location: Umeå
Age: 39
Posts: 588
Quote:
Originally Posted by Boo Boo View Post
My HD has hundreds of files and games and I've not had any problems yet
The limit on number of directories only affects loading from CD on the CD32.
patrik is offline  
Old 12 February 2016, 19:11   #327
Akira
Registered User

Akira's Avatar
 
Join Date: May 2001
Location: New York
Posts: 19,265
Quote:
Originally Posted by patrik View Post
To be nitpicking
I'm glad you were, that's a great explanation. Thanks Patrik!
So if I fill the disc with other stuff, as long as I put the CD32Load stuff first, it should be fine?

How can one control where in the disc the files go?
Akira is offline  
Old 12 February 2016, 19:39   #328
Psygore
Moderator

Psygore's Avatar
 
Join Date: Jan 2002
Location: France
Posts: 484
Quote:
Originally Posted by patrik View Post
To be nitpicking it is actually the number of directories combined with the lengths of their names that is the problem. The RN loader just loads the first 2048 Bytes of the path table which contains one entry for each directory, sorted in a specific way.

Each entry needs 8 + dirNameLenght Bytes plus it is padded upwards to an even Bytecount = minimum 10 Bytes per entry and that with names of 1 or 2 chars. So more than 2048/10~204 directories and you have issues for sure.

Made a rough script for viewing the individual entries byte-range in the path table, path depth and full path:
http://megaburken.net/~patrik/pathTableInfo.py

Every directory after -2047 printed by that script will not be found by the RN loader.
really ???
Psygore is offline  
Old 12 February 2016, 20:02   #329
patrik
Registered User
patrik's Avatar
 
Join Date: Jan 2005
Location: Umeå
Age: 39
Posts: 588
Quote:
Originally Posted by Psygore View Post
really ???
Unless I misinterpreted you when you said it only loaded the first sector of the path table?

I admit I havent tried a directory exactly on the byte after the first sector.
patrik is offline  
Old 12 February 2016, 20:29   #330
jotd
This cat is no more
jotd's Avatar
 
Join Date: Dec 2004
Location: FRANCE
Age: 48
Posts: 3,657
good contrib patrick!

btw yellow=g: joy1yellow=$rawkeycode for g. ex space is $40, p is $19, ill post an update where 0x prefix can be used too.
jotd is offline  
Old 12 February 2016, 20:41   #331
Amigajay
Registered User
 
Join Date: Jan 2010
Location: >
Posts: 2,174
If a game uses joystick up for something i.e jump or whatever (and its not mapped to a keyboard key i,e cursors) , is it possible to remap that to a cd32 button?
Amigajay is offline  
Old 12 February 2016, 21:31   #332
Psygore
Moderator

Psygore's Avatar
 
Join Date: Jan 2002
Location: France
Posts: 484
Quote:
Originally Posted by patrik View Post
Unless I misinterpreted you when you said it only loaded the first sector of the path table?

I admit I havent tried a directory exactly on the byte after the first sector.
I mean my loader doesn't have this restriction, surprising noboby tests it.
Psygore is offline  
Old 12 February 2016, 22:32   #333
jotd
This cat is no more
jotd's Avatar
 
Join Date: Dec 2004
Location: FRANCE
Age: 48
Posts: 3,657
That's because not everyone is able to use your code!!!

I'll integrate your loader in a next cd32load release. It will be touchy because I cannot fully replace it with RN loader since RN loader also can read IDE HD disks and some A600/A1200 users can benefit of it.
It's a good thing that you did not provide it earlier else I would have missed this opportunity.
Still tons of things to do on CD32Load. This is clearly high priority.
(the source code would be a bonus though )
jotd is offline  
Old 12 February 2016, 22:33   #334
jotd
This cat is no more
jotd's Avatar
 
Join Date: Dec 2004
Location: FRANCE
Age: 48
Posts: 3,657
Quote:
Originally Posted by Amigajay View Post
If a game uses joystick up for something i.e jump or whatever (and its not mapped to a keyboard key i,e cursors) , is it possible to remap that to a cd32 button?
Well I don't know but if Earok was able to emulate mouse from joystick then yes it can be done.
jotd is offline  
Old 12 February 2016, 22:35   #335
jotd
This cat is no more
jotd's Avatar
 
Join Date: Dec 2004
Location: FRANCE
Age: 48
Posts: 3,657
Quote:
Originally Posted by Boo Boo View Post
My HD has hundreds of files and games and I've not had any problems yet

On a side note I know I should read the Docs but how do I program say Yellow=G

Also any chance of the following games working Lemmings,Cannon Fodder 2,Colditz

Thanks
yellow=G => JOY1YELLOW=$24 (or 0x24 in the next version)

Lemmings, Cannon Fodder 2 both work.
BUT:
- password entering using VK is not possible on lemmings because last char checks the code (no RETURN required)
- On Cannon Fodder 2 you cannot save
jotd is offline  
Old 12 February 2016, 22:39   #336
patrik
Registered User
patrik's Avatar
 
Join Date: Jan 2005
Location: Umeå
Age: 39
Posts: 588
Quote:
Originally Posted by jotd View Post
I'll integrate your loader in a next cd32load release. It will be touchy because I cannot fully replace it with RN loader since RN loader also can read IDE HD disks and some A600/A1200 users can benefit of it.
Would it be beneficial in any way, like saving some CD32 memory, to make two versions of cd32load?

Same base code, but one version links in rn loader for amigas with ide controllers and the other one links in the psygore loader for use on the cd32?

Or maybe just overcomplication not worth it?
patrik is offline  
Old 12 February 2016, 22:52   #337
Retro1234
Boo

Retro1234's Avatar
 
Join Date: Jun 2006
Location: 5150
Posts: 4,593
Quote:
Originally Posted by jotd View Post
yellow=G => JOY1YELLOW=$24 (or 0x24 in the next version)

Lemmings, Cannon Fodder 2 both work.
BUT:
- password entering using VK is not possible on lemmings because last char checks the code (no RETURN required)
- On Cannon Fodder 2 you cannot save
Thank you for your reply, I noticed I'm not using the latest slaves ill try installing with latest install.
Retro1234 is offline  
Old 12 February 2016, 23:30   #338
Retro1234
Boo

Retro1234's Avatar
 
Join Date: Jun 2006
Location: 5150
Posts: 4,593
Im a twat there working Now im gonna try on my A1200 with mouse emulation

I better try a fresh install of colditz
Retro1234 is offline  
Old 12 February 2016, 23:35   #339
jotd
This cat is no more
jotd's Avatar
 
Join Date: Dec 2004
Location: FRANCE
Age: 48
Posts: 3,657
Quote:
Originally Posted by patrik View Post
Would it be beneficial in any way, like saving some CD32 memory, to make two versions of cd32load?

Same base code, but one version links in rn loader for amigas with ide controllers and the other one links in the psygore loader for use on the cd32?

Or maybe just overcomplication not worth it?
Good idea, I'll think about it.
I could rename CD32Load as it is now to RN32Load: HD/CD loading using RN interface
and provide CD32Load only with psygore interface for CD32 only!

memory would be saved, yes, but most important: both programs will be simpler. HD users will prefer RN32Load, others will use CD32Load.
And if there's a problem with CD32Load, RN32load can be used on CD games as a comparison.

BTW official v0.13 is on my website.
- fixed crashes at startup for slaves using SetCPU
- disabling a button with JOY1BLUE=$00 did not work
- 0x prefix for hex is now accepted to avoid ENV: conflicts with "$" (sorry, too much windows programming those days )
- stuff added for more compatiblity, but no new game works (sorry). Odyssey shows title screen, and crashes.

Mostly a release for bugfixes & provide Earok a stable base to hack his virtual key/mouse stuff.

next release will be BIG!!
jotd is offline  
Old 12 February 2016, 23:40   #340
jotd
This cat is no more
jotd's Avatar
 
Join Date: Dec 2004
Location: FRANCE
Age: 48
Posts: 3,657
Quote:
Originally Posted by Boo Boo View Post
Im a twat there working Now im gonna try on my A1200 with mouse emulation

I better try a fresh install of colditz
escape from colditz starts and you can play but crashes along the way. Maybe with NOCACHE...
jotd is offline  
 


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

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 07:04.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.
Page generated in 0.12185 seconds with 15 queries