Author Topic:  (Read 4637 times)

0 Members and 1 Guest are viewing this topic.

Offline Pete_Keller (OP)

  • Warrant Officer, Class 2
  • ****
  • P
  • Posts: 69
(No subject)
« on: October 08, 2007, 12:46:02 PM »
[quote="
« Last Edit: December 31, 1969, 06:00:00 PM by Pete_Keller »
 

Offline SteveAlt

  • Global Moderator
  • Rear Admiral
  • *****
  • Posts: 820
  • Thanked: 8 times
(No subject)
« Reply #1 on: October 08, 2007, 12:53:41 PM »
Quote from: "Pete_Keller"
It would be nice if Steve came up with a way of dumping and loading the starsystems to/from an XML file.

Then we could write an XSLT to update them to the new format, and keep the same star systems from revision to revision.

I have never used XML but anyone who wants to write an SAUpgrade type program is very welcome to try :)

Unless I change something to do with star systems, it should be possible to export and import them, although you will need to also move things like the game information because the system information will link to it.

System needs the Game table
Star needs Game and System (and Stellar Type but that shouldn't have changed)
SystemBody needs Star, System and Game

If you try moving race information and survey data though that is a lot more complex.

Steve
« Last Edit: December 31, 1969, 06:00:00 PM by SteveAlt »
 

Offline Pete_Keller (OP)

  • Warrant Officer, Class 2
  • ****
  • P
  • Posts: 69
(No subject)
« Reply #2 on: October 08, 2007, 01:02:02 PM »
OK,

The main thing is for the database to have the same star systems from upgrade to upgrade so that the story can stay the same.

Pete
« Last Edit: December 31, 1969, 06:00:00 PM by Pete_Keller »
 

Offline Þórgrímr

  • Rear Admiral
  • **********
  • Posts: 863
  • Thanked: 3 times
    • The World of the Gunny
(No subject)
« Reply #3 on: October 08, 2007, 01:20:09 PM »
Pete's right, the big thing is the star systems. For example, the Campania System in the previous version was a trinary system, what is what I needed so I did not have to create and delete multiple systems to get one. I do not expect to be so lucky this time.  :D




Cheers,
« Last Edit: December 31, 1969, 06:00:00 PM by Þórgrímr »
Sic vis pacem, para bellum
If you want peace, prepare for war
 

Offline Pete_Keller (OP)

  • Warrant Officer, Class 2
  • ****
  • P
  • Posts: 69
(No subject)
« Reply #4 on: October 08, 2007, 02:42:05 PM »
Erik,

can you split the xml discussion off of this topic and stick it in mechanics or something.

Thanks
Pete
« Last Edit: December 31, 1969, 06:00:00 PM by Pete_Keller »
 

Offline SteveAlt

  • Global Moderator
  • Rear Admiral
  • *****
  • Posts: 820
  • Thanked: 8 times
(No subject)
« Reply #5 on: October 08, 2007, 02:49:02 PM »
Quote from: "Pete_Keller"
Erik,

can you split the xml discussion off of this topic and stick it in mechanics or something.

Thanks
Pete

Probably installation would be the best sub-forum for this.

Steve
« Last Edit: December 31, 1969, 06:00:00 PM by SteveAlt »
 

Offline Randy

  • Sub-Lieutenant
  • ******
  • Posts: 146
  • Thanked: 1 times
(No subject)
« Reply #6 on: October 08, 2007, 10:23:48 PM »
Unless Steve has ahd a significant change of database design, it is extremely difficult to correctly do an upgrade simply due to alll the auto numbers assigned and used as keys.

Any upgrader script needs to account for this problem...
« Last Edit: December 31, 1969, 06:00:00 PM by Randy »
 

Offline Pete_Keller (OP)

  • Warrant Officer, Class 2
  • ****
  • P
  • Posts: 69
(No subject)
« Reply #7 on: October 12, 2007, 07:38:51 AM »
Quote from: "Randy"
Unless Steve has ahd a significant change of database design, it is extremely difficult to correctly do an upgrade simply due to alll the auto numbers assigned and used as keys.

Any upgrader script needs to account for this problem...


Yes, I am looking into it.
« Last Edit: December 31, 1969, 06:00:00 PM by Pete_Keller »
 

Offline Pete_Keller (OP)

  • Warrant Officer, Class 2
  • ****
  • P
  • Posts: 69
(No subject)
« Reply #8 on: October 12, 2007, 07:41:58 AM »
Steve could you add another table to 2.4.

Call it "Aurora_Version"

with fields called "Major", "Minor", "Revision", "Subrevision"

and currently set to 2, 4, 0, 0

This will allow you to check if the program is using the correct database.

It will also let me or someone else writing a conversion script to know which version of Aurora is in use.

Pete
« Last Edit: December 31, 1969, 06:00:00 PM by Pete_Keller »
 

Offline Steve Walmsley

  • Aurora Designer
  • Star Marshal
  • S
  • Posts: 11658
  • Thanked: 20379 times
(No subject)
« Reply #9 on: October 13, 2007, 07:45:09 AM »
Quote from: "Pete_Keller"
Steve could you add another table to 2.4.

Call it "Aurora_Version"

with fields called "Major", "Minor", "Revision", "Subrevision"

and currently set to 2, 4, 0, 0

This will allow you to check if the program is using the correct database.

It will also let me or someone else writing a conversion script to know which version of Aurora is in use.

Pete

I have added a three field table with major, minor and revision but there are a couple of problems with this approach.

a) An increment to minor indicates a database upgrade while revision indicates a code update. Therefore, even if I updated the database with the revision number, that would be no use to you because the databsase wouldn't be part of the upgrade. Really all you need for the database version though is the major/minor fields

b) This relies on me to remember to update the table. Given my record updating the about box and copyright window, that is by no means guaranteed :)

Steve
« Last Edit: December 31, 1969, 06:00:00 PM by Steve Walmsley »
 

Offline Pete_Keller (OP)

  • Warrant Officer, Class 2
  • ****
  • P
  • Posts: 69
(No subject)
« Reply #10 on: October 13, 2007, 08:40:14 AM »
Quote from: "Steve Walmsley"
Quote from: "Pete_Keller"
Steve could you add another table to 2.4.

Call it "Aurora_Version"

with fields called "Major", "Minor", "Revision", "Subrevision"

and currently set to 2, 4, 0, 0

This will allow you to check if the program is using the correct database.

It will also let me or someone else writing a conversion script to know which version of Aurora is in use.

Pete
I have added a three field table with major, minor and revision but there are a couple of problems with this approach.

a) An increment to minor indicates a database upgrade while revision indicates a code update. Therefore, even if I updated the database with the revision number, that would be no use to you because the databsase wouldn't be part of the upgrade. Really all you need for the database version though is the major/minor fields

:)

Steve[/quote]

As someone who is not that familiar with VB6, but is familiar with make and ant, is there a scripting capability in the method of creating the exe file?

Pete
« Last Edit: December 31, 1969, 06:00:00 PM by Pete_Keller »
 

Offline Erik L

  • Administrator
  • Admiral of the Fleet
  • *****
  • Posts: 5656
  • Thanked: 366 times
  • Forum Admin
  • Discord Username: icehawke
  • 2020 Supporter 2020 Supporter : Donate for 2020
    2022 Supporter 2022 Supporter : Donate for 2022
    Gold Supporter Gold Supporter : Support the forums with a Gold subscription
    2021 Supporter 2021 Supporter : Donate for 2021
(No subject)
« Reply #11 on: October 13, 2007, 08:57:51 AM »
Quote from: "Pete_Keller"
Quote from: "Steve Walmsley"
Quote from: "Pete_Keller"
Steve could you add another table to 2.4.

Call it "Aurora_Version"

with fields called "Major", "Minor", "Revision", "Subrevision"

and currently set to 2, 4, 0, 0

This will allow you to check if the program is using the correct database.

It will also let me or someone else writing a conversion script to know which version of Aurora is in use.

Pete
I have added a three field table with major, minor and revision but there are a couple of problems with this approach.

a) An increment to minor indicates a database upgrade while revision indicates a code update. Therefore, even if I updated the database with the revision number, that would be no use to you because the databsase wouldn't be part of the upgrade. Really all you need for the database version though is the major/minor fields

:)

Steve

As someone who is not that familiar with VB6, but is familiar with make and ant, is there a scripting capability in the method of creating the exe file?

Pete[/quote]

Actually if Steve is using app.majorversion & app.minorversion, they'll update automatically. However, updating the database... I'm not sure.
« Last Edit: December 31, 1969, 06:00:00 PM by Erik Luken »
 

Offline Steve Walmsley

  • Aurora Designer
  • Star Marshal
  • S
  • Posts: 11658
  • Thanked: 20379 times
(No subject)
« Reply #12 on: October 13, 2007, 09:03:20 AM »
Quote from: "Pete_Keller"
As someone who is not that familiar with VB6, but is familiar with make and ant, is there a scripting capability in the method of creating the exe file?

VB is like programming for the under-fives :)

Incidently my commercial prgramming background (from many years ago) is in C and C++ but VB6 is so much easier to use for something like SA and much, much easier to hack around with later than C++ code

Steve
« Last Edit: December 31, 1969, 06:00:00 PM by Steve Walmsley »
 

Offline Randy

  • Sub-Lieutenant
  • ******
  • Posts: 146
  • Thanked: 1 times
(No subject)
« Reply #13 on: October 13, 2007, 02:15:41 PM »
You can easily tell VB to update its version everytime you compile (or leave it as a manual process). The problem is, this won't prevent you from forgetting to update the values in the MDB. This part can't be automated in the VB6 compile process... :-(
« Last Edit: December 31, 1969, 06:00:00 PM by Randy »
 

Offline Þórgrímr

  • Rear Admiral
  • **********
  • Posts: 863
  • Thanked: 3 times
    • The World of the Gunny
(No subject)
« Reply #14 on: October 13, 2007, 02:19:27 PM »
Quote from: "Randy"
You can easily tell VB to update its version everytime you compile (or leave it as a manual process). The problem is, this won't prevent you from forgetting to update the values in the MDB. This part can't be automated in the VB6 compile process... :cry:  So we would have to rely on an automated process that would not require us to access the DB's.




 Cheers,
« Last Edit: December 31, 1969, 06:00:00 PM by Þórgrímr »
Sic vis pacem, para bellum
If you want peace, prepare for war