Gamebase 64 Forum

RegisterRegister Log inLog in

Gamebase variable / command line help..

 
Post new topic   Reply to topic    -= GB64 Forum =- Forum Index -> The GameBase Frontend
View previous topic :: View next topic  
Author Message
Paul Irvine
Cool Member
Cool Member


Joined: 11 Sep 2004
Posts: 309
GB64-Points: 309


PostPosted: Sun Dec 06, 2009 2:30 pm    Post subject: Gamebase variable / command line help.. Reply with quote

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
View user's profile Send private message
Paul Irvine
Cool Member
Cool Member


Joined: 11 Sep 2004
Posts: 309
GB64-Points: 309


PostPosted: Sun Dec 06, 2009 3:37 pm    Post subject: Reply with quote

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
View user's profile Send private message
Paul Irvine
Cool Member
Cool Member


Joined: 11 Sep 2004
Posts: 309
GB64-Points: 309


PostPosted: Sun Dec 06, 2009 5:17 pm    Post subject: Reply with quote

Sorted now...
_________________
-------
Visit my blog.. http://mclaneinc.wordpress.com/
Back to top
View user's profile Send private message
K.C.
Cool Member
Cool Member


Joined: 29 Sep 2003
Posts: 361
GB64-Points: 363
Location: The Netherlands

PostPosted: Sun Dec 06, 2009 5:27 pm    Post subject: Reply with quote

Look here for my version of the script!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    -= GB64 Forum =- Forum Index -> The GameBase Frontend All times are GMT
Page 1 of 1

 
Jump to:  
Cannot post new topics
Cannot reply to topics
Cannot edit your posts
Cannot delete your posts
Cannot vote in polls in this forum


Powered by phpBB © phpBB Group

The C64 Banner Exchange
The C64 Banner Exchange

gb64.com ©1997-2010 The GB64 Team