So, I am redoing the swccg plugin because its a few years out of date and I'd like to change some of the sorting features to look for new criteria. Currently, the plugin is far from done but I'd like to test it before I get too far.
This is my first attempt at a plugin though and I went through the steps in the tutorial and got to the updatelist.txt and version.txt and I wasn't sure what to do about the url's.
So ultimately, I dont know much of anything as far as uploading files onto the web. Please keep that in mind.
I tried uploading everything to googledrive and i copied the various links to the two .txt's(I included updatelist.txt and version.txt in the updatelist.txt, but wasnt sure if i should), got the checksums, but then to get that new updatelist.txt online I uploaded again and I got a new link. Neither link ends with updatelist.txt which is what the plugin installer on lackey seems to want. So how do I create my own link so it can end in updatelist.txt?
Another question, if I update files for the plugin do I need to manually do it in the online file? Otherwise I have to upload it new each time and that changes the links and thus my updatelist.txt. I think I do have to make the change online, and that was the meaning of that red part about things being stored differently online from the local locations.
Also, I include the updatelist.txt and version.txt in the updatelist.txt itself, right?
fyi, I am doing this on windows 7.
Thanks!
I am not sure Google drive works well for doing updatelist.txt Have you tried DropBox? You put all the files in your Public folder on DropBox and you get the public link for it and that should never change.
In your updatelist.txt do not include the link to the updatelist.txt but do include the link to version.txt.
When updating the files with dropbox you should be able to just remove the online one and upload the new one
So I used dropbox and it does work like you said, the only issue that I have now is that it isn't downloading. and I wonder if its because of the format of the link that ends in updatelist.txt?dl=0.
I compared it with the pokemon plugin which is https://dl.dropboxusercontent.com/u/73204375/pokemon/high/updatelist.txt
mine is https://www.dropbox.com/x/#'s/updatelist.txt?dl=0.
Why does my link not have dl.dropboxusercontent.com etc? Do I need to change the addresses of my links to follow that format?
Also My file folder that's shared is swccg. so thats why i dont have the other folders. likewise I only have one version of cards no med or high, etc.
thanks for your help
Make sure you upload it to your Public folder. It is at the root of your DropBox
When the file is uploaded, right click on it and select Copy public link...
I just uploaded an old updatelist for a plugin that is no longer maintained and this is the link that I received.
https://dl.dropboxusercontent.com/u/12677812/oldupdatelist.txt
Does that work for you?
i dont see a public folder, do i have to make it? do i need to upgrade dropbox?
never mind i found it in the help section, i have to make one since i registered after 2012. ill let you know how it goes soon
maybe i should have looked into it a bit further. so i do need to upgrade to dropbbox pro. I'll probably get it next month and test it because ill be busy for the next few weeks.
Also, will paying for only one month of dosboxpro still allow me to keep the public folder and use it?
would box.com work? It seems I can manually make my own link there.
I have not tried box.com. Put a link here and I will try to see if I get the file.
https://app.box.com/s/lr1dvldtsyvsw9mt18cg442sepfxzpk3
It wouldnt let me end the link with updatelist.txt.
I'm not thinking this is gonna work. It appears to have some of the same issues as googledrive. I also saw something called a directlink which looks like dropboxes public folder thing. That however, takes an upgrade.
This also leads me to another question, if I were to get dropboxpro, could I set up the public folder with all the appropriate links and after one months subscription cancel it, but still have the folder remaining? or will it take away my folder when I cancel the subscription?
Yeah, I do not think that will work. It doesn't download the file directly.
What about Microsoft OneDrive? I have not tried it but maybe it will work.
I just tried OneDrive and it had the same issue, even if I made it a public file.
Another option would be to setup an ftp server on your own machine, if you do not mind people connecting directly to it.
I looked at a few things and found what looks to be a good reference for setting it up, but the guy really only espoused the positives and didn't mention any negatives. It's also a bit dated(2005). I don't have time to look at much more at the moment, but maybe you can answer my concern faster than a search.
How much access are we talking? Can it be only for the plugin, or is it also to other portions of my computer?
Normally, I wouldn't want anyone having access to my computer over the web. I can be very paranoid about cyber theft.
So I think I just found the solution in this thread.
http://www.lackeyccg.com/forum/index.php?topic=2635.0 (http://www.lackeyccg.com/forum/index.php?topic=2635.0)
I put in the two links and I got different results, which is what I think I want.
https://dl.dropboxusercontent.com/s/ye3wrjvxr1s7yg5/updatelist.txt (https://dl.dropboxusercontent.com/s/ye3wrjvxr1s7yg5/updatelist.txt)
well, i couldnt wait and i downloaded lackey and it worked!!! Now I just have to correct all the files and put them on dropbox!! Im super excited!! THanks for your help!!! I really appreciate it!! I am still curious about the ftp server if you wouldnt mind helping me understand it better. AWESOME!!!
i now hope that i dont have a new unforseen problem... haha
No problem. I can help test it out if needed. I also have an iPad to try it with.
https://dl.dropboxusercontent.com/s/s6lc9yi6p90ohu6/updatelist.txt
So, everything downloads except the cardgeneralurl. I have the folder linked up, but it doesnt give me a folder hierarchy at then end, so do I need to add it?
Also, is there a way to have the images go to subdirectories?
I know there are some errors bc I wasnt thinking when I transferred my cardata excel spreadsheet to the .txt file so it has quotation marks in them, so I'll need to redo them.
The updatelist.txt works.
The CardGeneralURLs should end with just a slash. Or you can use CardURLFiles like this:
CardURLFiles:
CardImageURLs1.txt
CardImageURLs2.txt
And then in your updatelist.txt make sure you have a download for those files (like this but change as needed for your URL and checksum):
plugins/swccg/CardImageURLs1.txt https://dl.dropboxusercontent.com/s/1sl1lsy1r11jbxc/CardImageURLs1.txt 3737773
plugins/swccg/CardImageURLs2.txt https://dl.dropboxusercontent.com/s/1sl1lsy1r11jbxc/CardImageURLs2.txt 1474488
And then in the actual files you would have your list of images, like so:
CardImageURLs:
setname/001S-j.jpg https://dl.dropboxusercontent.com/s/1sl1lsy1r11jbxc/001S-j.jpg
setname/001S.jpg https://dl.dropboxusercontent.com/s/1sl1lsy1r11jbxc/001S.jpg
setname/002S.jpg https://dl.dropboxusercontent.com/s/1sl1lsy1r11jbxc/002S.jpg
QuoteAlso, is there a way to have the images go to subdirectories?
Do you mean on the person's PC when they download the files or on your DropBox?
i mean on the person's pc when they download.
and i put a slash and it still doesnt download.
What i notice is if i put the link in like this CardGeneralURLs:https://dl.dropboxusercontent.com/sh/q2ctgnys71kxv3r/AABh9Fpvlej_AlL4RGD70SoRa/ , during download, it looks for it but adds a checksum so that cant be right.
If I hit return and then put it down, like this:
CardGeneralURLs:
https://dl.dropboxusercontent.com/sh/q2ctgnys71kxv3r/AABh9Fpvlej_AlL4RGD70SoRa/
Then it looks for images but it never finds the images. Even when I correct the image info in cardata.txt.
So, do I need to have the corrected image info on the cardata.txt? I just don't understand why it cant find my images when they are all in the folder.
Whenever I click on that link, https://dl.dropboxusercontent.com/sh/q2ctgnys71kxv3r/AABh9Fpvlej_AlL4RGD70SoRa/ , I get a 404 error like the folder does not exist.
As for folders on the person's PC, for the card images I think it is the SET field in your set list file. For instance, in your file you have:
2X-3KPR (Tooex) Premiere "PL-001,Light"
So that should put a file called PL-001,Light.jpg in my folder of X:\LackeyCCG\plugins\swccg\sets\setimages\Premiere\
Paste a link directly to an image here and I will see if I can see it.
I looked at the pokemon plugin which uses dropbox and it also gives a 404 but it downloads the images.
https://www.dropbox.com/s/hicuddbbnao7ksi/Dark.jpg?dl=0
I think this is the problem, here. Since, this isn't in a public directory and I manually changed the webaddresses. I think it is using these regualr dropbox urls. so then it cant get the image. so ill have to individually do each card and change each address, which isnt hard, just copy and paste all the links and then replace what i need. I just have to do it as I go along adding cards so its not too monotonous. I'll probably just put it in a file then.
I was already planning on this taking close to the end of the year hoping id have more time this summer to maybe finish then. I think i can still get it done by then. Luckily this isnt like magic with over 20000 cards. This is just 3000+.
would you agree thats the problem
Yes, that image downloads for me just fine. You can even remove the ?dl=0 from it.
Must be because it is not a public folder.
Yes, 3000+ is more manageable than 20000+ :)
that resolves i think my uploading concerns. I dont think I'll update the uploaded files and just modify things on the computer till i get it how i want.
As far as testing it functions and stuff i was wondering, when you have time, if you could help me figure out a couple things.
1. I have a destiny general function which is supposed to take from the reserve deck and put onto the table, and I want a button next to the recirculate button.
2. The other is a similar thing. the random retireve general function. I dont want a button bc it isnt used except with one specific card.(im also approaching these random functions one set at a time because there arent many but then it also makes sure i am incorporating everything.)
Neither of those two functions seem to be present as far as i can see.
Is there a way to stick a tag on a card put in a deck so when it gets to the top, it makes a sound that alerts everyone its there? For instance the premiere set has this card that you stick in your opponents reserve deck facedown and when it gets to the top, then you lose the card but the opponent cant pull any cards off that deck for the rest of the turn. so if there isnt anything to alert the players that the card is there, then it might not get used the way its supposed to and may even be used by the opponent as an extra life force.
Maybe it'll just need to be something that is kept in mind.
The other function that I was curious about was flipping the lost pile upside down. So the cards would need to be facedown, and the order of the pile needs to be reversed. This isnt important for the card itself, bc the essence of the card is to simply not know what you are putting into the lost pile which could be handled by changing the visibility to no one. there are other cards that, for instance, ask for pulling the most recent character. so that may change based upon flipping the lost pile upside down.
Those are two other functions that i'd like to implement, but im not sure how to go about doing that, especially the first of these two.
also are there gamezonefunctinons? because that might get the lost pile function thing to work.
k, so i figured out why they didnt work, i just had them coded in wrong.