Database model ZXDB

This is the place for general discussion and updates about the ZXDB Database. This forum is not specific to Spectrum Computing.
Locked
hikoki
Manic Miner
Posts: 262
Joined: Thu Nov 16, 2017 10:54 am

Re: Database model ZXDB

Post by hikoki » Wed Jan 24, 2018 1:29 pm

The license of Mojon Twins' MK2 engine has changed to copyleft CC BY-NC-SA 3.0. and released on github: https://github.com/mojontwins/mk2
See the announcement on their site: http://www.mojontwins.com/2018/01/12/li ... -spectrum/
0 x

User avatar
Einar Saukas
Manic Miner
Posts: 481
Joined: Wed Nov 15, 2017 2:48 pm

Re: Database model ZXDB

Post by Einar Saukas » Wed Jan 24, 2018 1:47 pm

hikoki wrote:
Tue Jan 23, 2018 2:14 pm
Einar Saukas wrote: there's now a new group called "Gamebook (Multi-Choice Fiction)" to distinguish it from other adventures.

Here's the current list of games in this group:

https://spectrumcomputing.co.uk/index.p ... up_id=1038

This list is still missing "El Cementerio", that will be added in next ZXDB update. Are there any others?
There you have a few more CYOA. There must be more for sure.

https://awesome-table.com/-KTJLy2xX7_E1 ... N=gamebook

http://www.worldofspectrum.org/infoseek ... loadpics=1

http://www.worldofspectrum.org/infoseek ... loadpics=1

http://www.worldofspectrum.org/infoseek ... loadpics=1
Thank you!!!

This information will be in the next ZXDB update.
0 x

User avatar
Einar Saukas
Manic Miner
Posts: 481
Joined: Wed Nov 15, 2017 2:48 pm

Re: Database model ZXDB

Post by Einar Saukas » Wed Jan 24, 2018 1:56 pm

hikoki wrote:
Wed Jan 24, 2018 1:29 pm
The license of Mojon Twins' MK2 engine has changed to copyleft CC BY-NC-SA 3.0. and released on github: https://github.com/mojontwins/mk2
See the announcement on their site: http://www.mojontwins.com/2018/01/12/li ... -spectrum/
Thank you!!! It will be in the next ZXDB update too.
0 x

Ralf
Manic Miner
Posts: 839
Joined: Mon Nov 13, 2017 11:59 am
Location: Poland

Re: Database model ZXDB

Post by Ralf » Thu Jan 25, 2018 1:48 pm

Einar, I would have an question.

Running your script deletes exisitng database and makes a new one or updates an existing database?

I created my local copy in ZXDB as described in this thread:
viewtopic.php?f=32&t=328

if I create some sql views and other changes in my database and later run the latest update script I'll lose my changes, right?
0 x

User avatar
Einar Saukas
Manic Miner
Posts: 481
Joined: Wed Nov 15, 2017 2:48 pm

Re: Database model ZXDB

Post by Einar Saukas » Fri Jan 26, 2018 2:39 am

Ralf wrote:
Thu Jan 25, 2018 1:48 pm
Running your script deletes exisitng database and makes a new one or updates an existing database?
The script don't delete anything, but it assumes ZXDB tables don't exist, or they are all empty.

Technically the "incremental" scripts in ZXDB were originally intended to allow people update their database copy without recreating anything. However it was too much work to maintain them this way, and nobody was benefiting from them, so they don't work this way anymore. Although "incremental" scripts still exist, now they only serve the purpose of "auditing" (so anyone can see and help validate every correction and addition made to the original WoS content).

Ralf wrote:
Thu Jan 25, 2018 1:48 pm
if I create some sql views and other changes in my database and later run the latest update script I'll lose my changes, right?
If you delete data from all ZXDB tables, then run the ZXDB script, these tables will be repopulated with latest ZXDB content without losing your views. However if you made changes to ZXDB tables content, they would be lost. Notice that there's not much I could do to help you in this latter case. Even if I provided a separate script containing only the ZXDB changes, there's always the chance that a certain ZXDB update will override exactly the information you previously changed yourself...

My suggestion is, write instead your own script to create views and whatever other changes you want. Whenever there's a new ZXDB update, you can simply drop the entire database, run the latest ZXDB script, then run your own script afterwards. This is exactly how ZX Pokemaster build works now, I suggest you take a look at its source code.
1 x

Ralf
Manic Miner
Posts: 839
Joined: Mon Nov 13, 2017 11:59 am
Location: Poland

Re: Database model ZXDB

Post by Ralf » Fri Jan 26, 2018 12:10 pm

Thanks for the explanation.
Yes. keeping your views in a script seems a sane idea. And I wasn't going to alter the tables themselves.
0 x

User avatar
kolbeck
Dizzy
Posts: 53
Joined: Mon Nov 13, 2017 9:04 pm

Re: Database model ZXDB

Post by kolbeck » Fri Jan 26, 2018 1:17 pm

Einar Saukas wrote:
Fri Jan 26, 2018 2:39 am

My suggestion is, write instead your own script to create views and whatever other changes you want. Whenever there's a new ZXDB update, you can simply drop the entire database, run the latest ZXDB script, then run your own script afterwards. This is exactly how ZX Pokemaster build works now, I suggest you take a look at its source code.
ZXInfo works the same way, it assumes a clean ZXDB before doing its own work. I did try for long time to see if mysqldbcompare could do some kind of incremental update, but with no luck.

/Thomas
0 x
https://zxinfo.dk - another ZXDB frontend
https://api.zxinfo.dk/doc/ - ZXDB API for developers

hikoki
Manic Miner
Posts: 262
Joined: Thu Nov 16, 2017 10:54 am

Re: Database model ZXDB

Post by hikoki » Fri Jan 26, 2018 6:46 pm

I've noticed Spectrumcomputing is including more and more .tap files :)
I would recommend that someone checks out SC's files against the ones from my site Speccy21 as I've been quite scrupulous when collecting new updates. I can share my archive in a zip as well as my spreadsheet.
For example, Gabriele Amore put in-game music in all of his games recently. My guess is this game version does not have AY music: https://spectrumcomputing.co.uk/index.p ... 6&id=30230
0 x

User avatar
R-Tape
Site Admin
Posts: 1615
Joined: Thu Nov 09, 2017 11:46 am

Re: Database model ZXDB

Post by R-Tape » Fri Jan 26, 2018 7:20 pm

Cheers hik, I'll drop you a PM tomorrow.

I added a load in the last update, and your site is one of the main sources (I've always said you're an unsung hero). Hope you're cool with this, but I'd like to discuss in more detail tomorrow. I did almost all of Gab's in the last site update, but it was hard to pick the right file in his dropbox every time. I noticed some has two AY tracks.

BTW your Popeye is still Pengoquest :-p
0 x

hikoki
Manic Miner
Posts: 262
Joined: Thu Nov 16, 2017 10:54 am

Re: Database model ZXDB

Post by hikoki » Fri Jan 26, 2018 9:08 pm

R-Tape wrote: BTW your Popeye is still Pengoquest :-p
Oops. Ta! I had to do some automatic replacements within the spreadsheet. I'll check out it there are more bugged links like that one.
As for Gabam's games, I updated my download links after visiting his facebook page a few weeks ago.

Maybe I can help you somehow after reading your PM. Cheers
0 x

Locked