LackeyCCG

LackeyCCG Forum => Plugins & Plugin Creation Forum => Topic started by: VictorSteiner on September 02, 2014, 09:36:57 AM

Title: Let's improve the Battletech CCG Plugin!
Post by: VictorSteiner on September 02, 2014, 09:36:57 AM
Hi guys, as you might have seen I post a lot because I really liked that game and want to play it with a friend that had to move away.

I found this link: https://dl.dropboxusercontent.com/u/32011559/LackeyCCGBetaWin.rar

On a Battletech page but I can't remember which ... maybe I'll find it by googling during the next days. It's an old Lackey client but has the Battletech Plugin in it.

It seems to be a version with a lot of cards in good quality, but some are really small and close to unreadable.


So, if you are interested in the game: Do you have high-res artwork of the game?

FOR THE PLUGIN:

Can anyone of you program plugins? The Battletech plugin doesn't have an "untapp all" button. The phases of the game that you can click do nothing (at least that is what I see from a few days with Lackey, maybe I'm missing something).

Is it possible to "program" the phases so stuff happens automatically or just certain stuff is allowed in each phase?

Happy to hear from some Battletech fans.

Victor.
Title: Re: Let's improve the Battletech CCG Plugin!
Post by: VictorSteiner on September 02, 2014, 09:56:35 AM
A question so I can start improving the card images on my own ... I found a folder that has the card with its name Advanced Manufacturing Techniques.jpg and again as AR001.jpg

So the image is there twice. How do I find out which one lackey is using? I guess it is the AR001.jpg since all cards are listed that way ... so someone might have thrown in a highres-version of the card and forgot to replace the old one .. but the AR001.jpg is from 2009 and the Advanced Manufacturing Techniques.jpg is from 2008 so ... hm.... How do I find out which one is used by Lackey?
Title: Re: Let's improve the Battletech CCG Plugin!
Post by: VictorSteiner on September 02, 2014, 09:58:01 AM
Hm, sorry to post so much, but I just found out that a lot, maybe all cards exist twice ... once with the AR0XX.jpg name and once with their card name ... how does that work in  Lackey?
Title: Re: Let's improve the Battletech CCG Plugin!
Post by: VictorSteiner on September 02, 2014, 12:18:45 PM
Another question concerning how the cards are handled in the plugin (or Lackey):

There are cards in Battletech that let you ignore certain rules (those cards let you play with combinations of factions that normally are only allowed to be played alone).

Normally that card is placed in the playing area from the start of the game. Is there a way that I can draw a certain card out of the cardpile before the game starts in Lackey?
Title: Re: Let's improve the Battletech CCG Plugin!
Post by: Trevor on September 02, 2014, 12:47:51 PM
Quote from: VictorSteiner on September 02, 2014, 09:36:57 AM
FOR THE PLUGIN:

Can anyone of you program plugins? The Battletech plugin doesn't have an "untapp all" button. The phases of the game that you can click do nothing (at least that is what I see from a few days with Lackey, maybe I'm missing something).

Is it possible to "program" the phases so stuff happens automatically or just certain stuff is allowed in each phase?

Happy to hear from some Battletech fans.

Victor.
Clicking the phase of the turn buttons is optional and only is used to communicate with other players when you intend to do things. This actually speeds up gameplay often because you can skip through phases where nothing happens. In lackey, you mostly need to do things yourself just like you would with physical cards. You CAN program scripts to automate a lot of things, but I suggest you be very careful to not make something happen automatically that might not be intended.
For example, say a card gains you 5 life points when you play it. If you drag the card to the table to show it to an opponent, for example, that will be interpreted incorrectly as "playing it", so if it automatically alters life points, that will be annoying. It is especially annoying if the action that is performed automatically cannot be undone. For example, if a card is accidentally drawn, you can't "unsee" the card, even if you put it back.
Title: Re: Let's improve the Battletech CCG Plugin!
Post by: Trevor on September 02, 2014, 01:04:02 PM
I'm taking a look at that plugin. They were distributing it in a terrible way. They were zipping the whole lackey folder, rather than just the plugin. Autoupdate URLs are the preferred way to install plugin, and if that is not possible, a simple zip of the plugin itself is usable.

He was also using the outdated plugin format. I would suggest taking the card data file "setinfo.txt" and the card images from that old plugin, and start from scratch.

All the card images should be the same dimensions. And I strongly advise against using spaces or non-alphanumerics in file names.
Title: Re: Let's improve the Battletech CCG Plugin!
Post by: Trevor on September 02, 2014, 01:12:53 PM
Quote from: VictorSteiner on September 02, 2014, 12:18:45 PM
Another question concerning how the cards are handled in the plugin (or Lackey):

There are cards in Battletech that let you ignore certain rules (those cards let you play with combinations of factions that normally are only allowed to be played alone).

Normally that card is placed in the playing area from the start of the game. Is there a way that I can draw a certain card out of the cardpile before the game starts in Lackey?
It sounds like you're talking about a deck zone. Some games define different piles of cards before the game even starts, like a "sideboard" or a "starting" or a "adventure deck" that aren't part of the main deck. This is done with deck zones, which can be loaded into game zones, which are piles of cards during the game.
Title: Re: Let's improve the Battletech CCG Plugin!
Post by: VictorSteiner on September 02, 2014, 04:58:51 PM
If I try this by reading through your how-to do a plugin as a non-programmer, what would be the fundemantal steps to create a new plugin where I as a player would do 90 % of the things myself ... just untapping stuff and the building counters that the game needs added?
Title: Re: Let's improve the Battletech CCG Plugin!
Post by: VictorSteiner on September 02, 2014, 05:42:44 PM
Quote from: Trevor on September 02, 2014, 01:04:02 PM
I'm taking a look at that plugin. They were distributing it in a terrible way. They were zipping the whole lackey folder, rather than just the plugin. Autoupdate URLs are the preferred way to install plugin, and if that is not possible, a simple zip of the plugin itself is usable.

He was also using the outdated plugin format. I would suggest taking the card data file "setinfo.txt" and the card images from that old plugin, and start from scratch.

All the card images should be the same dimensions. And I strongly advise against using spaces or non-alphanumerics in file names.

What about the cards existing twice? Once as 0001.something and once with their original game card name? Does that make sense? To me it looks like someone got better pictures but never renamed them properly?

I really wonder why the images look so bad in Lackey when they are crisp and easy to read via the finder on my Mac. Some images exist in 60 kb, some in 250 kb quality, but even the 250 kb ones that look very good in the Finder look very bad in Lackey. How come?
Title: Re: Let's improve the Battletech CCG Plugin!
Post by: Gordon228 on September 04, 2014, 02:37:51 PM
let me see what i can do to help.

Edit: it appers the maker of this added the low and med scans together but i still need to investigate.
Title: Re: Let's improve the Battletech CCG Plugin!
Post by: Gordon228 on September 04, 2014, 04:34:37 PM
here is an updated plugin info

<plugin>

<deckzone>
     <label>Deck</label>
     <gamezonetoloadto>Stockpile</gamezonetoloadto>
     <shuffle>yes</shuffle>
</deckzone>

<gamezone>
     <label>Hand</label>
     <visibletoowner>yes</visibletoowner>
     <visibletoothers>no</visibletoothers>
</gamezone>

<gamezone>
     <label>Stockpile</label>
     <visibletoowner>no</visibletoowner>
     <visibletoothers>no</visibletoothers>
</gamezone>

<gamezone>
     <label>Scrapheap</label>
     <visibletoowner>no</visibletoowner>
     <visibletoothers>no</visibletoothers>
</gamezone>

<phase>
<label>Untap</label>
</phase>

<phase>
<label>Draw</label>
</phase>

<phase>
<label>Repair Reload</label>
</phase>

<phase>
<label>Deploy</label>
</phase>

<phase>
<label>Missions</label>
</phase>

<phase>
<label>End of Turn</label>
</phase>

<generalfunction>
<label>Draw Card</label>
<kind>DRAWCARD</kind>
<includeasbutton>yes</includeasbutton>
</generalfunction>

<generalfunction>
<label>Spawn Card</label>
<kind>SPAWNCARD</kind>
<includeasbutton>yes</includeasbutton>
</generalfunction>

<generalfunction>
<label>Roll D6</label>
<kind>ROLLD6</kind>
<includeasbutton>yes</includeasbutton>
</generalfunction>


<cardfunction>
<label>Untap</label>
<kind>MAKERIGHT0DEGREES</kind>
<includeasbutton>yes</includeasbutton>
</cardfunction>


<cardfunction>
<label>Tap</label>
<kind>MAKERIGHT90DEGREES</kind>
<includeasbutton>yes</includeasbutton>
</cardfunction>


<cardfunction>
<label>Damage +1</label>
<kind>ADDCOUNTERRED</kind>
<includeasbutton>yes</includeasbutton>
<PositionX>.75</PositionX>
<PositionY>.04</PositionY>
</cardfunction>


<cardfunction>
<label>Repair</label>
<kind>REMOVECOUNTERRED</kind>
<includeasbutton>yes</includeasbutton>
</cardfunction>
<cardfunction>
<label>Construction +1</label>
<kind>ADDCOUNTERBLUE</kind>
<includeasbutton>yes</includeasbutton>
<PositionX>.5</PositionX>
<PositionY>.04</PositionY>
</cardfunction>



<cardfunction>
<label>Construction -1</label>
<kind>REMOVECOUNTERBLUE</kind>
<includeasbutton>yes</includeasbutton>
</cardfunction>


<cardfunction>
<label>Turn Over</label>
<kind>TURNOVER</kind>
<includeasbutton>yes</includeasbutton>
</cardfunction>

<cardfunction>
<label>Change Owner</label>
<kind>CHANGEOWNER</kind>
</cardfunction>

<cardfunction>
<label>Edit Note</label>
<kind>EDITNOTE</kind>
<includeasbutton>yes</includeasbutton>
<PositionX>.4</PositionX>
<PositionY>.95</PositionY>
</cardfunction>

<cardfunction>
<label>Clear</label>
<kind>CLEARCARD</kind>
<includeasbutton>yes</includeasbutton>
</cardfunction>


<definition>
<kind>ISYOURFACEDOWNVISIBLE</kind>
</definition>

</plugin>
i am slowly working on the card images. here is an updated card back + spawn card.

http://nikulas.webs.com/cardback.jpg (http://nikulas.webs.com/cardback.jpg)
http://nikulas.webs.com/spawned.jpg (http://nikulas.webs.com/spawned.jpg)
Title: Re: Let's improve the Battletech CCG Plugin!
Post by: Gordon228 on September 05, 2014, 12:14:39 AM
once i get the cards to the hi-res versions i will get all the images onto a site and then make an updatelistsurl.txt i will also be making some custom counters for damage and repair.
Title: Re: Let's improve the Battletech CCG Plugin!
Post by: VictorSteiner on September 05, 2014, 05:52:21 AM
Thanks, this sounds great, but I only can guess some of what you are doing (I could help if you share more about your process on a metalevel).

Are you just deleting the low-res images and renaming the medium-size ones? Or what are you doing atm?
Title: Re: Let's improve the Battletech CCG Plugin!
Post by: Gordon228 on September 05, 2014, 12:07:31 PM
no i will provide a low res version of the plugin i just need to figure out photobucket and then i can continue.
Title: Re: Let's improve the Battletech CCG Plugin!
Post by: VictorSteiner on September 05, 2014, 12:31:47 PM
I want a high-res, this is already low-res .. why do you want to do a low-res? I have a lot of the cards in 250 kbit quality, but a lot of them in the plugin folder you are working on are already about 250 kbit ... so I can give you the few that are missing.
Title: Re: Let's improve the Battletech CCG Plugin!
Post by: Gordon228 on September 05, 2014, 12:42:22 PM
the only images i am missing are the CE boxes also the lower res is for people that do not have a lot of space on there computer or tablet since it's over 300 megs of images.
Title: Re: Let's improve the Battletech CCG Plugin!
Post by: Trevor on September 05, 2014, 01:51:17 PM
Quote from: VictorSteiner on September 05, 2014, 12:31:47 PM
I want a high-res, this is already low-res .. why do you want to do a low-res? I have a lot of the cards in 250 kbit quality, but a lot of them in the plugin folder you are working on are already about 250 kbit ... so I can give you the few that are missing.
There are 2 issues with high-res: Dimensions and file size.
When you make a plugin's card images with very large dimensions, it really cuts into the space of the other windows, like the table. (You can resize this with the resize bars, but since lots of people don't realize that, you should assume they will use the card images at their default size. Smaller monitors (like laptops) also prefer smaller dimensions.
File size is an issue for people with slow connection speeds, or limited storage space on their device (which is especially true for laptops and the iPad version of Lackey). Some people also want to keep their lackey on a thumb drive which may not fit high-res images. Also, large file sizes can be an issue for plugin makers with limited hosting bandwidth.
I suggest if you want to also have a super high res version, you should also have a medium version. It's pretty easy to maintain 2 versions of the plugin. You reuse all the same files except your reference a different:
autoupdate URL
cardback.jpg
spawned.jpg
version.txt
and you link a different general card image path in the updatelist.txt.

I suggest you do not have card images wider than 250 pixels. I suggest you don't have file image sizes larger than 100kb.
Title: Re: Let's improve the Battletech CCG Plugin!
Post by: Gordon228 on September 05, 2014, 02:57:47 PM
well the card view box i got it to be the size of the magic high scans i would resize them but i am just updating the existing plugin so it's not in the old format i still need to update the pack definitions. if there was an easier way to resize over 1k cards then i would do it.
Title: Re: Let's improve the Battletech CCG Plugin!
Post by: Trevor on September 05, 2014, 08:19:52 PM
Quote from: Gordon228 on September 05, 2014, 02:57:47 PM
well the card view box i got it to be the size of the magic high scans i would resize them but i am just updating the existing plugin so it's not in the old format i still need to update the pack definitions. if there was an easier way to resize over 1k cards then i would do it.
Photoshop can easily batch resize images. PM me if you want more info.
Title: Re: Let's improve the Battletech CCG Plugin!
Post by: Nirrol on September 19, 2014, 11:07:45 AM
It's a bit rich to take something written 6-7 years ago and then complain it's in the "old format" - EVERYTHING was in the old format back then!!

They were distributed in archive format because it was faster and easier than the update system (for most of them, there was no update).

I have ALL of the cards in HiRes format (excluding, maybe, 1 or 2 of the box powers) although I think a few are mis-named/numbered, but that is an easy fix.

(I think this is the correct archive):
https://www.sendspace.com/file/xwf4y7

Contains:
Arsenal
Base Set Unlimited
Box Powers
Commander's Edition
Counterstrike
Crusade
DCI (One promo card)
Mechwarrior
Mercenaries


Here is a quick list of other "old style" plugins I have:
24, 7th Sea, A Game Of Thrones, Age Of Empires 2, Alien Predator, Allegiance, Anachranism, Arcadia, Austin Powers, Avatar, Babylon 5, Battle Cards, Battlelords, Battlestar Galactica, Battletech CCG, Behind, Ben 10, Beyblade, Bleach, Bloodwars, Blue Dragon, Blue Moon, Boy Crazy, Buffy, C-23, Case Closed, Chaotic, City Of Heroes, Conan, Corunea, Cote, Crow, Cthulhu, Cyberpunk, Dark Age, Dark Eden, Dark Millenium, Digimon, Dixie, Doomtown, Doomtrooper, Dot Hack, Dr Who, Dragon Ball Z CCG, Dragon Ball Z TCG, Dreamblade Cmg, Duel Masters, Dune, Echelons Of Fire, Eve, Eye Of Judgment, Fast Break, Fight Klub, Fire Emblem, Firestorm, Full Metal Alchemist, G I Joe, Galactic Empire, Grid Iron, Guardians, Harry Potter, Hecatomb, Hercules, Heresy, High Stakes Drifter, Highlander, Horus Heresy, Hum-Aliens, Huntiktcg, Hyborian Gates, Illuminati Nwo, Initial D, Inu Yasha, Jedi Knight, Killer Instinct, Kingdom Hearts, Knights Of The Zodiak, Kult, Legend Of The Burning Sea, Legend Of The Five Rings, Lord Of The Rings, Lycee, Lyoko, Magic, Maple Story, Marvel Ultimate, Middle Earth, Mlb Showdown, Monster Rancher, Mortal Kombat, Myl, Mythos, Naruto, Nascar Challenge, Neo Pets, Netrunner, Nfl Showdown, Nightmare, One-On-One Hockey Challenge, Ophidian 2350, Over The Edge, Overpower, Pirates, Pirates Of The Caribbean, Pokemon, Power Cardz, Powerrangers, Quest For The Grail, Rage, Rifts, Rumbling Spell Orchestra, Sailor Moon, Scooby Doo, Shadowfist, Shadowrun, Sim City, Simpsons, Sonicx, Spellfire, Spoils, Spongebob Squarepants, Spycraft, Star Quest, Star Trek 2E, Star Trek CCG, Star Wars CCG, Star Wars Galaxies, Star Wars Pocket Models, Stargate, Super Deck, Super Nova, Tempest Of The Gods, Terminator, Tlc, Tmnt, Tomb Raider, Top Of The Order, Ufs, VS. System, VTES, Warcry, Warhammer 40k, Warlord Sots, Wars, Wcw Nitro, Wheel Of Time, Wildstorm, Wing Commander, Wizard In Training, World Of Warcraft, Wyvern, X-Files, Xena, Young Jedi, Yu Yu Hakusho, Yu-Gi-Oh
Title: Re: Let's improve the Battletech CCG Plugin!
Post by: Johnny Blaze on September 19, 2014, 11:26:27 AM
Are these Full working plugins or just the scans if these are plugins i say post em
Title: Re: Let's improve the Battletech CCG Plugin!
Post by: smurph_83 on December 06, 2014, 07:33:53 PM
sorry to arrive late to this post... but i have the plugin file.

i have been keeping it safe for some time. here it is all you have to do is manually drop it into plugins folder and done. no auto update unfortunatley.

always up for a game of this just message me or keep this thread rolling for games.

http://www.mediafire.com/download/22riiemtg2f/battletech.zip
Title: Re: Let's improve the Battletech CCG Plugin!
Post by: smurph_83 on December 06, 2014, 07:36:55 PM
probs shoudl have read more thoroughly before posting... my set is medium res, as alot of people are put off by high res and ive never had  aproblem reading these cards as image size is fine imo.
Title: Re: Let's improve the Battletech CCG Plugin!
Post by: Johnny Blaze on December 06, 2014, 10:25:30 PM
im sticking with the high res from victor