Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Best Database plugin

Author
Message
NickH
18
Years of Service
User Offline
Joined: 19th May 2008
Location: Nova Prospekt, North Yorks, UK
Posted: 26th Sep 2011 18:57 Edited at: 27th Sep 2011 13:32
Hi,

I've been using Dark Data for the first time today and though I've mostly figured it out, I seem to be getting the odd crash. Yes it could easily be my code, but still...I'm just wondering what everyone else thinks is the best way of creating a database within DBPro?

I've only implemented a simple event logging system, mainly as it's the easiest DB in the game, but I'm just not 100% convinced it could handle the big stuff later on.

Thanks
Nick
basjak
16
Years of Service
User Offline
Joined: 16th Apr 2010
Location: feel like signing up for mars
Posted: 26th Sep 2011 21:30
I think the crash happen when you use file incription mode. set it to zero and no crash will happen. I don't know why never managed to encript the files with dark datam, although the example file is encripted.
NickH
18
Years of Service
User Offline
Joined: 19th May 2008
Location: Nova Prospekt, North Yorks, UK
Posted: 27th Sep 2011 12:20
It still crashes randomly. Not very often, but it has once. I'm starting to think about making my own database functions using the Matrix plugins, but along the same lines as Dark Data.

I thought this thread would get more response than this! I was hoping for someone to come up with some plugins I've not heard of too.
Pincho Paxton
23
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 27th Sep 2011 12:37 Edited at: 27th Sep 2011 12:40
Not many people make Databases with DBPro, because it only takes about 5 minutes in VB. In DBPro you have to make the menus, and simple little things like that. Although it would take a bit longer though, it should be very easy to do. I don't think you have an option for random data though like VB. As far as I know, all of DBPro data is sequential. Another thing about DBPro is that dll addons are something that have evolved over the years. So it would be good if you did make some nice Database functions.

NickH
18
Years of Service
User Offline
Joined: 19th May 2008
Location: Nova Prospekt, North Yorks, UK
Posted: 27th Sep 2011 13:20
I'm not actually making a database program, it's a game, though my custom GUI system has almost everything Windows has, only created in DBPro . I'll be releasing some screenshots of this soon probably. I just need to get this DataBase thing sorted first.

When I say my own Database functions I don't mean I'm going to make my own plugin, I don't know C enough for that.
Pincho Paxton
23
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 27th Sep 2011 16:00 Edited at: 27th Sep 2011 16:02
I'm sure that people are happy with functions anyway. I've never been a fan of drop down menus. If I was making a game that required a hidden menu, I would make it slide in from the side of the screen like curtains. If you made that function, I would have uses for it.

basjak
16
Years of Service
User Offline
Joined: 16th Apr 2010
Location: feel like signing up for mars
Posted: 27th Sep 2011 16:52
can you leave me your data code snipet. maybe I can help you.

the best way to create data base is create user defined types objects (UDT). remember that each object can have its own id number which can be accessed directly using random access files.

if your game is simple and you're not expecting too many players (10-30 players), then create a user defined type array, sort this array according to score and then save it to a file.
NickH
18
Years of Service
User Offline
Joined: 19th May 2008
Location: Nova Prospekt, North Yorks, UK
Posted: 28th Sep 2011 11:57
I think I'm going to use arrays with types loading and saving only when the game is saved. Saving them as memblocks. The main game database will be created by a seperate program, which will turn a CSV spreadsheet into a memblock, which the game will load. I've already replaced my database code.

@basjack- As much as I'd like to make this a multiplayer game, I'm sticking with the 1 player for now.

@Pincho Paxton- I've already made a drop down menu function, but it's rarely used in the game and doesn't animate yet. In the next week (give or take) I'm thinking of releasing some screenshots as I need some actual help with something none GUI or database related. I'm hoping my screenshots will convince someone to join me in making this!
basjak
16
Years of Service
User Offline
Joined: 16th Apr 2010
Location: feel like signing up for mars
Posted: 28th Sep 2011 15:12
it would be very interesting for me to know how to turn spreadsheet into memblock. can you give us a sample program.
NickH
18
Years of Service
User Offline
Joined: 19th May 2008
Location: Nova Prospekt, North Yorks, UK
Posted: 28th Sep 2011 16:12 Edited at: 28th Sep 2011 16:13
@basjak I haven't done it yet, but I've found all the required commands to do it to a CSV file. Theres a few commands in the Matrix1 plugins that can handle CSV files. It's just a matter of reading the file and saving in the usual way. As I said I've not done it yet, so there isn't any code

Login to post a reply

Server time is: 2026-07-11 04:44:13
Your offset time is: 2026-07-11 04:44:13