| View previous topic :: View next topic |
| Author |
Message |
Paul Irvine Cool Member

Joined: 11 Sep 2004 Posts: 309 GB64-Points: 309
|
Posted: Sun Dec 06, 2009 2:30 pm Post subject: Gamebase variable / command line help.. |
|
|
Hi peeps, need to pick your brains if I may.
Scenario is I'm trying to help the Demobase c64 team with help via Hoxs64. Lots of the demo collections are badly done ie just a collection of .prg files with no way of file selection upon boot ie you must load the file indidually rather than load"*",8,1 and that loading a first boot file that holds a selector.
While playing with hoxs64 I made this
Add_CLP( -autoload %gamepathfile%)
So it basically did a load"*",8,1
But after a few secs research I found that Hoxs64 man had included a way to specify a file number to load on a disk.
ie
Add_CLP( -autoload %gamepathfile% 3)
That loads the nth file on the disc.
Is there a way to assign a number to each individual disc entry so that when the script runs it inserts that file number into the script.
ie one database entry might load file 3 but a different disc might load file 8?
I'm sure it can be done but my brain hurts at this time.. _________________ -------
Visit my blog.. http://mclaneinc.wordpress.com/ |
|
| Back to top |
|
 |
Paul Irvine Cool Member

Joined: 11 Sep 2004 Posts: 309 GB64-Points: 309
|
Posted: Sun Dec 06, 2009 3:37 pm Post subject: |
|
|
Looking at it again I tried to make the key_pairs work but I can't sort it out.
I set it as files=8
and hoped I could use %key_files% to represent the number 8 but I seem to have got that logic wrong.
I don't need a complete If Contains thing, I just want to set a variable for each disc / entry in the database that can be inserted ala the first post _________________ -------
Visit my blog.. http://mclaneinc.wordpress.com/ |
|
| Back to top |
|
 |
Paul Irvine Cool Member

Joined: 11 Sep 2004 Posts: 309 GB64-Points: 309
|
|
| Back to top |
|
 |
K.C. Cool Member

Joined: 29 Sep 2003 Posts: 361 GB64-Points: 363 Location: The Netherlands
|
Posted: Sun Dec 06, 2009 5:27 pm Post subject: |
|
|
| Look here for my version of the script! |
|
| Back to top |
|
 |
|