Welcome to the Gamebase 64 forums.                 An attempt to document ALL Commodore 64 gameware before it's too late!

Gamebase variable / command line help..

Discuss GameBase, the Universal Emulator Frontend!

Moderator: Jimbo

Paul Irvine
Cool Member
Cool Member
Posts: 433
Joined: Sat Sep 11, 2004 11:06 am

Gamebase variable / command line help..

Sun Dec 06, 2009 2:30 pm

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..
-------
Loved ones are never gone as long as you remember them....
Paul Irvine
Cool Member
Cool Member
Posts: 433
Joined: Sat Sep 11, 2004 11:06 am

Sun Dec 06, 2009 3:37 pm

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
-------
Loved ones are never gone as long as you remember them....
Paul Irvine
Cool Member
Cool Member
Posts: 433
Joined: Sat Sep 11, 2004 11:06 am

Sun Dec 06, 2009 5:17 pm

Sorted now...
-------
Loved ones are never gone as long as you remember them....
User avatar
K.C.
Cool Member
Cool Member
Location: The Netherlands
Posts: 416
Joined: Mon Sep 29, 2003 9:57 am

Sun Dec 06, 2009 5:27 pm

Look here for my version of the script!

Return to “The GameBase Frontend”

Who is online

Users browsing this forum: No registered users and 48 guests