News:

A forum for users of LackeyCCG

Main Menu

Never made a plugin before, how to upload

Started by KingWhirlie, February 20, 2015, 10:23:15 AM

Previous topic - Next topic

TriOpticon

 No problem.  I can help test it out if needed.  I also have an iPad to try it with.

KingWhirlie

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.

TriOpticon

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?



KingWhirlie

i mean on the person's pc when they download. 

KingWhirlie

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.

TriOpticon

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.

KingWhirlie

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

TriOpticon

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+  :)

KingWhirlie

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.

KingWhirlie

also are there gamezonefunctinons?  because that might get the lost pile function thing to work.

KingWhirlie

k, so i figured out why they didnt work, i just had them coded in wrong.