Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
5 registered members (AndrewAMD, alibaba, Konsti, 2 invisible), 1,418 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
[Demo] A Database plugin for 3dgs!! #93052
10/04/06 17:58
10/04/06 17:58
Joined: Mar 2005
Posts: 309
Germany, Bavaria
Sinthoras Offline OP
Senior Member
Sinthoras  Offline OP
Senior Member

Joined: Mar 2005
Posts: 309
Germany, Bavaria
Hello there!

After a developement time of nearly two years, I finally finished my work.
A database plugin for 3dgs, without implementation of mySQL or something else.

My first version was based on text files, but I soon recognized that the speed is not acceptable.
30 seconds for a data amount of 1000 strings (ten chars) is way too much

Therefore, I tried a version based on the heap memory - the speed increased for about 10 000 times.
I think the current speed is acceptable now.

The database works a bit different than others, for example
- no script language, all is based on functions (but you could implement a language, of course.. )
- no front end (means no predefined columns, every row can imply different data types)
- no query tables (resulting out of the first and the second example)

Features
  • save / load all your data in/from only one file!
  • multithreaded save/load functions, the engine can run while your database is stored!
  • organize your data in tables!
  • name your tables as you like!
  • store as many variables/strings/vectors needed in only one row!


advanced dll Features (full version)
  • create as much databases as you like (via dll)!
  • complete source code provided!


I have uploaded a demo version in the Webshop
The full version is not available at the moment.
I have to write a bit more documentation for it, means it will take some days to its release.

Try it, and feel free to comment, report bugs or send new innovations by mail, post or PM.
A documentation for the dll is included in the download.

Regards,
Sinthoras

Re: A Database plugin for 3dgs!! [Re: Sinthoras] #93053
10/04/06 18:40
10/04/06 18:40
Joined: Aug 2000
Posts: 7,490
O
Orange Brat Offline

Senior Expert
Orange Brat  Offline

Senior Expert
O

Joined: Aug 2000
Posts: 7,490
Thanks. I have a dialogue heavy project with a subtitles option, so this should make life easier.


My User Contributions master list - my initial post links are down but scroll down page to find list to active links
Re: A Database plugin for 3dgs!! [Re: Orange Brat] #93054
10/04/06 19:09
10/04/06 19:09
Joined: Jul 2006
Posts: 783
London, UK
sheefo Offline
User
sheefo  Offline
User

Joined: Jul 2006
Posts: 783
London, UK
Wow, I needed a non-SQL database and have been searching for ages. Now that I found one I don't know what to do

Good job, you do a lot of great work Sinthoras.

Re: A Database plugin for 3dgs!! [Re: sheefo] #93055
10/04/06 19:12
10/04/06 19:12
Joined: Nov 2005
Posts: 131
D
darkstein Offline
Member
darkstein  Offline
Member
D

Joined: Nov 2005
Posts: 131
what version of 3dgs do you need for this?

Re: A Database plugin for 3dgs!! [Re: darkstein] #93056
10/04/06 19:17
10/04/06 19:17
Joined: Mar 2005
Posts: 309
Germany, Bavaria
Sinthoras Offline OP
Senior Member
Sinthoras  Offline OP
Senior Member

Joined: Mar 2005
Posts: 309
Germany, Bavaria
@Orange Bratt and sheefo:
Thank you, I hope you can enjoy my work.

@darkstein:
Well, I think the Standard Version 6.4 is enough. You can use plugins there, too, and no special feature of higher versions is recommended.

Re: [Demo] A Database plugin for 3dgs!! [Re: Sinthoras] #93057
10/04/06 20:12
10/04/06 20:12
Joined: Jan 2006
Posts: 968
EpsiloN Offline
User
EpsiloN  Offline
User

Joined: Jan 2006
Posts: 968
Sounds good , but what is the max number of chars for a cell ?


Extensive Multiplayer tutorial:
http://mesetts.com/index.php?page=201
Re: [Demo] A Database plugin for 3dgs!! [Re: EpsiloN] #93058
10/04/06 20:24
10/04/06 20:24
Joined: Mar 2005
Posts: 309
Germany, Bavaria
Sinthoras Offline OP
Senior Member
Sinthoras  Offline OP
Senior Member

Joined: Mar 2005
Posts: 309
Germany, Bavaria
What do you mean with 'for a cell'?

I tried storing a 50kilobyte string (~50000 chars) at position 1,1 of a table - no errors, I could save, load and change it.

[in addition]
I already tried saving a 16 mb table in a file, with around 10000 strings in it. This lasted quite long, means around 20 seconds (without threading the save function the engine stops for that time!!). You shouldn't save that many data in only one table, not because of save / load time but for access speed matters.
It is definately better to create a small amount of big strings and store it to quite little positions than create hundreds of thousand small strings.


Re: [Demo] A Database plugin for 3dgs!! [Re: Sinthoras] #93059
10/04/06 22:12
10/04/06 22:12
Joined: Jul 2001
Posts: 6,904
H
HeelX Offline
Senior Expert
HeelX  Offline
Senior Expert
H

Joined: Jul 2001
Posts: 6,904
Is it limited on strings, chars and numbers (floats/int) or can it also save as container format for other data types? Tell more about encryption possibilities.

Re: [Demo] A Database plugin for 3dgs!! [Re: HeelX] #93060
10/05/06 19:25
10/05/06 19:25
Joined: Mar 2005
Posts: 309
Germany, Bavaria
Sinthoras Offline OP
Senior Member
Sinthoras  Offline OP
Senior Member

Joined: Mar 2005
Posts: 309
Germany, Bavaria
Well - if you own the source code, you can store any data type possible. You just have to reserve memory (with a special dll function) and copy your data there.
The functional structure in c++ is nearly the same as in c-script.

The demo version (without source) is limited to 4*4 = 16 data cells per (3 possible) tables.
[important!]
The limitations of the demo version are 1-4 cells per row / column, not 1-5 as written in the README.
I regret this, thought it was more..

You can store one variable, one vector or one (unlimited) string in each of these cells.
In c-script, of course.

The full version is not limited in cells per table, and also not in tables per database.

Encryption is not implemented yet, because its hard to find a way to crypt all possible byte structures. If you have a good solution, just say it. (Or wait for the full version and implement it yourself )

Re: [Demo] A Database plugin for 3dgs!! [Re: Sinthoras] #93061
10/09/06 13:52
10/09/06 13:52
Joined: Apr 2006
Posts: 1,551
Netherlands
D3D Offline
Serious User
D3D  Offline
Serious User

Joined: Apr 2006
Posts: 1,551
Netherlands
Quote:

Encryption is not implemented yet




Would be nice to have a strong encryption method, although MD5 and SHA are not completely safe, it is always more secure then saving plain text passwords in the database.

Dusty


smile
Page 1 of 2 1 2

Moderated by  adoado, checkbutton, mk_1, Perro 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1