Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > iComic plugins (writen in perl)

iComic plugins (writen in perl)
Thread Tools
Senior User
Join Date: Jan 2002
Location: Brisbane, Australia
Status: Offline
Reply With Quote
Aug 26, 2004, 10:11 PM
 
Hi,

Well...
How can you write a perl script. I tried x-code but I am not sure how to make it use like proper documentation (not sure of the name) you know like how it turns comments green and stuff like that. But it doesn't.

Is there a example of how to write a iComic plugin?
I looked at several others and its pretty difficult to read the code (hey i'm pretty rusty... i've done the whole java and basic junk).

I am trying to make a plugin for vg-cats and I am not having any luck.

You can look at the code for archive strip, and it is done by ids.
http://vgcats.com/comics/?strip_id=0 and it goes up by 1.

The comic is already named correctly so there isn't a need to change the name of the comic. Already in a YYMMDD sorta thing so it prolly won't be hard to like yeah...
http://vgcats.com/comics/images/040809.jpg

By any chance has anyone already writen one?
     
qyn
Dedicated MacNNer
Join Date: Dec 2000
Location: sj ca
Status: Offline
Reply With Quote
Aug 27, 2004, 12:57 PM
 
First off, there's lots of perl editors floating around, but XCode isn't one of them. BBEdit is good if you have it, google around for others.

The plug-in format doesn't appear to have any documentation, but it's pretty easy to understand what they do. The script generates a plist containing information about the comic in question, which is used by iComic to display the comic. It's the responsibility of the script to understand how to extract the relevant information. Actually a pretty nice setup. I'd guess that you don't really have to use a perl script, but anything that's executable (though I'm just guessing...).

If you can read the html at vgcats and understand how to extract the relevant info, then you should be able to write your own plugin pretty easily.
     
Senior User
Join Date: Jan 2002
Location: Brisbane, Australia
Status: Offline
Reply With Quote
Aug 28, 2004, 07:56 PM
 
Thanks for the advice qyn.

Yeah I tried BBedit before but it turns out I was the light version lol. (it was also kinda old).
I just did some searching and found some documentation .

However it seems a little difficult.
If only I could set it to look at the current date.
Then go back by one day. The comics are named by YYMMDD.
Like I don't really need it to search an arichive page.
Oh i'm really not sure.

Its just all my time is done studying mid terms and I prolly won't have time to try and make this for about 3 weeks. d'oh.
     
Senior User
Join Date: Jan 2002
Location: Brisbane, Australia
Status: Offline
Reply With Quote
Sep 2, 2004, 11:31 PM
 
Hi,

Well I looked at the Dilbert plugin (one of the main ones) and it has some pretty good documentation. However I am not able to find were they list the date for a specific comic on the archive page for VG Cats.

Would it be possible to just make it try and work its way backwards from the current date and test to see if the comic is downloadable?

http://vgcats.com/comics/images/YYMMDD.jpg then just keep minusing one.
I'm not really sure that would work with iComic.

Any advice?
I was thinking of making it like that old MacHall comic that worked with out dates.
But someone updated it to work with dates (totally re-writen) and I can't find the old one to look at to see how it was done.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 01:11 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2