hi!
i have stumbled across something VERY interesting..
i have successfully written one game (LodeRunner), which uses
many databases. i am now working on a new game (Joust) in which
i wish to also use many databases.
the problem i have, is that i by "default" create a database
with the name "ORIGINAL", using the following code:
note, the "card" stuff should not be a problem. :))
---
Err error;
// try card 0, then card 1
error = DmCreateDatabase(0,
appDBName, appDBCreator, appDBType, FALSE);
if (error != 0)
error = DmCreateDatabase(1,
appDBName, appDBCreator, appDBType, FALSE);
ErrFatalDisplayIf(error, "Could not create database.");
---
in LodeRunner, the variables are:
#define appDBCreator 'LODE'
#define appDBType 'DATA'
#define appDBName "ORIGINAL"
in Joust, the variables are:
#define appDBCreator 'JOST'
#define appDBType 'DATA'
#define appDBName "ORIGINAL"
when i have "LodeRunner" installed, and then i attempt to
execute "Joust", i get the "Could not create database." message.
when i remove "LodeRunner", and run "Joust", it works.
i am assuming that if i install "LodeRunner" after "Joust" has been
started, it will also fail.
any ideas? i was assuming that the appDBCreator ("LODE" and "JOST")
were the attributes that differentiated databases from each other.
why is the database creation failing?
cheers.
az.
--
Aaron Ardiri
Lecturer http://www.hig.se/~ardiri/
University-College i G�vle mailto:[EMAIL PROTECTED]
SE 801 76 G�vle SWEDEN
Tel: +46 26 64 87 38 Fax: +46 26 64 87 88
Mob: +46 70 352 8192 A/H: +46 26 10 16 11