If I use the restore database button it sets the card.xml file to a really old version from like 2 years ago. Any way I can change the default card.xml?
Indeed. The first time you use magicHack it copies cards.xml to a backup file. When you click the "restore" button it just renames that backup file to "cards.xml", thus overwriting whatever was there.
This is pretty bad design, actually. I guess the way this should probably work is that when you hit the backup button it should first back up cards.xml and then restore the original. That way nothing gets lost. I kind of feel like an idiot for not doing that.
I'm not sure what you mean when you ask if there's any way to "change the default card.xml". Can you clarify?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
Anonymous
-
2014-03-21
I mean is there a way to change what the backup file is?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I didn't expose the option to change that in the GUI. Are you asking for me to add a text box where you can specify that file's name?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
Anonymous
-
2014-03-22
Doesn't necessarily need to be in the GUI due to how rarely it would be used. Just asking if there is currently any way to change the backup cards.xml other that reinstalling the program? What about having the path in the ini.txt or have a backupcards.xml in the magichack folder?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Just asking if there is currently any way to change the backup
cards.xml other that reinstalling the program?
magicHack doesn't really "install" in any way. If you downloaded the Windows package you just unzip it to somewhere and then run the executable.
If you want to modify it, the easiest thing to do is to download the python source files, install python on your computer, and just edit the source to do your bidding. The other thing you can do is just request a change to me and I'll implement it.
What about having the path in the ini.txt
Yeah, we could do that.
or have a backupcards.xml in the magichack folder?
Yeah, we could do that too. We'd have the user supply a name for the backup file so they can tell the difference if there's more than one.
Which option do you like better?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
Anonymous
-
2014-03-25
maybe the backupcards.xml file in the magichack folder would be the best option. Wouldn't this also fix the problem of not being able to add more than one custom set to a card.xml?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Wouldn't this also fix the problem of not being
able to add more than one custom set to a card.xml?
Er, sort of. I guess I could set it up so that you specify a starting file every time you export so that your custom cards are added to whatever .xml file you want. You could also specify the output file name. This way you can make whatever files you want.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I've been thinking about the most sensible way to handle this and I think the best option is to allow the user to specify the to which custom cards will be added, and then also specify the destination for the resulting combined .xml file. This will allow people to do whatever they want. I can leave the defaults the way they are now, except that I can make it so that when you use the "restore" button it keeps a copy of cards.xml before overwriting it.
What do you think?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Indeed. The first time you use magicHack it copies cards.xml to a backup file. When you click the "restore" button it just renames that backup file to "cards.xml", thus overwriting whatever was there.
This is pretty bad design, actually. I guess the way this should probably work is that when you hit the backup button it should first back up cards.xml and then restore the original. That way nothing gets lost. I kind of feel like an idiot for not doing that.
I'm not sure what you mean when you ask if there's any way to "change the default card.xml". Can you clarify?
I mean is there a way to change what the backup file is?
I didn't expose the option to change that in the GUI. Are you asking for me to add a text box where you can specify that file's name?
Doesn't necessarily need to be in the GUI due to how rarely it would be used. Just asking if there is currently any way to change the backup cards.xml other that reinstalling the program? What about having the path in the ini.txt or have a backupcards.xml in the magichack folder?
magicHack doesn't really "install" in any way. If you downloaded the Windows package you just unzip it to somewhere and then run the executable.
If you want to modify it, the easiest thing to do is to download the python source files, install python on your computer, and just edit the source to do your bidding. The other thing you can do is just request a change to me and I'll implement it.
Yeah, we could do that.
Yeah, we could do that too. We'd have the user supply a name for the backup file so they can tell the difference if there's more than one.
Which option do you like better?
maybe the backupcards.xml file in the magichack folder would be the best option. Wouldn't this also fix the problem of not being able to add more than one custom set to a card.xml?
Er, sort of. I guess I could set it up so that you specify a starting file every time you export so that your custom cards are added to whatever .xml file you want. You could also specify the output file name. This way you can make whatever files you want.
I've been thinking about the most sensible way to handle this and I think the best option is to allow the user to specify the to which custom cards will be added, and then also specify the destination for the resulting combined .xml file. This will allow people to do whatever they want. I can leave the defaults the way they are now, except that I can make it so that when you use the "restore" button it keeps a copy of cards.xml before overwriting it.
What do you think?