News:

A forum for users of LackeyCCG

Main Menu

Recent posts

#1
Plugins & Plugin Creation Forum / Galactic Empires
Last post by ericbsmith42 - November 18, 2022, 02:52:11 AM
Hello everyone. My name is Eric, and I'm the guy who's maintained the last real website dedicated for the Galactic Empires CCG, the GE Card Museum.


I'm pretty new to Lackey and brand new to creating a Lackey Plugin. I was handed a preliminary plugin for Galactic Empires, which I've expanded a bit and added the ability to automatically download cards for. I've yet to get to truly test the plugin with by playing, but will be looking for players and suggestions and feedback on the plugin. I'll probably have about a thousand questions once I get going on this.

The Plugin install file is at:
http://galacticempires.no-ip.org/GE/LackeyCCG/low/updatelist.txt
http://galacticempires.no-ip.org/GE/LackeyCCG/high/updatelist.txt

--
Eric B. Smith
ericbsmith42@gmail.com
#2
Plugins & Plugin Creation Forum / Re: Checksums unveiled?
Last post by lionelpx - November 15, 2022, 11:15:00 AM
I am pleased to let you know I have cracked this  8).

This is what you need to understand from Trevor's code:
  • Yes, it does consume the EOF -1 (\xFF) value, so you need to add it yourself
  • It does read each char as a signed char because in his code, Sum is a (signed) int so, even though he forces temp_char to be cast to unisgned char, it gets cast back to a signed char immediately because of the compound assignment to a signed int. That's how assignment works in C. The cast has no impact, you can remove/ignore it.
  • And the final very sneaky thing: it uses the C modulo operator %. The modulo operator in C does not work as it does in Python (see Guido's explanation). The C modulo is truncated while the Python modulo is floored. While the Python behavior makes sense (in numbers theory, you would go that way), it yields different values for negative integers, which is what makes us fail here. So you have to use a proper C-style truncated modulo implementation. Luckily, Python offers math.fmod.

So this is what you get:
import math

def checksum(path):
    value = 0
    with open(path, "rb") as fp:
        char = fp.peek(1)
        while char:
            char = fp.read(1)
            if char in [b"\n", b"\r"]:
                continue
            if char:
                value += int.from_bytes(char, byteorder="big", signed=True)
            else:
                value -= 1
            value = int(math.fmod(value, 100000000))
    return value

On my end, it works for all files, text or binary, images, and sounds alike. Have fun!
#3
Plugins & Plugin Creation Forum / Re: Magic: The Gathering Plugi...
Last post by CrazyChucky - November 08, 2022, 11:30:59 PM
Thanks! Reuploaded the images for SNC and CLB.
#4
Plugins & Plugin Creation Forum / Re: Magic: The Gathering Plugi...
Last post by turtlelemon - November 08, 2022, 02:41:12 AM
Thanks for updating!

Error Downloading Image for I think all 1snc and 2snc cards, as well as snc 276 and 278 and 2clb 931-934.
#5
Plugins & Plugin Creation Forum / Re: Magic: The Gathering Plugi...
Last post by CrazyChucky - November 06, 2022, 09:17:22 PM
A bunch of things in this update.

Newly added sets
  • The Brothers' War (BRO)
    • The Brothers' War Commander (BRC)
    • The Brothers' War Retro Artifacts (BRR), including the schematic versions
    • Transformers (BRO)
    • BRO draft boosters correctly contain one (or sometimes two) BRR retro artifacts.
  • Unfinity (UNF)
    • Packs always contain two Attractions.
    • For now, I've titled the extra versions of Attractions the same as I did with variants from Unstable: for instance, Balloon Stand, Balloon Stand (b), etc. I might decide to change this, depending on how deckbuilding sites like TappedOut decide to output the various versions, in order to make importing easier.
    • For now, Goblin Cruciverbalist and D00-DL, Caricaturist don't have scripts to spawn anything. I might make some custom tokens for them.

Sets with new hi-res images
  • Streets of New Capenna (SNC)

Other
  • Cards that generated some predefined tokens (such as Walkers and Powerstones) weren't getting their scripts. This has been fixed.
  • SO MANY new Secret Lair cards, geez.

With so many things add, I'd honestly be surprised if I haven't missed something. As always, please let me know if you find missing images or other errors.
#6
Plugins & Plugin Creation Forum / Re: Magic: The Gathering Plugi...
Last post by turtlelemon - October 25, 2022, 02:28:31 PM
Yeah, I haven't been feeling it either. I still don't like Universes Beyond, especially Warhammer grimdark, and I don't like Phyrexia either and that's all the products right not pretty much.  :'(
#7
Plugins & Plugin Creation Forum / Re: Magic: The Gathering Plugi...
Last post by CrazyChucky - October 24, 2022, 07:34:43 PM
Honestly I'm a generally a big Unset fan, but I've really not been feeling Magic lately (and also yeah, real life stuff). I'll get around to it. (And the images too, thanks!)
#8
Plugins & Plugin Creation Forum / Re: Magic: The Gathering Plugi...
Last post by turtlelemon - October 21, 2022, 09:44:15 AM
Not a fan of Unfinity and the stickers or has real life stuff gotten in the way?

Error downloading image for 2clb 931-934 and 1sld 677.
#9
Plugins & Plugin Creation Forum / Re: There is a script that can...
Last post by Fzero - October 15, 2022, 06:11:29 PM
Well, i find a way to do that. It's kinda gimmicky, but works.

I put a cardfunction as TURNOVER.
Then, i put the script in the card as "<s><a>y</a><l>Ativar</l><f>/cf;/c1;/ccg=1</f></s>"

That way, each time the card enters the field, it gains 1 counter. But if it is face-down, and we activate it, it flips face-up and gain 1 counter.
#10
Plugins & Plugin Creation Forum / There is a script that can tur...
Last post by Fzero - October 15, 2022, 05:44:17 PM
Well, i'm messing around with card scripts, and i want to make a card that has some effect when it's flipped face-up(For example, it flips face-up and gains counter, or flips face-up and summon cards). But i cant find a command that flip them face-up, only face-down(/cf).
I know it can be done manually, but would be a lot easier if it could be done with one single cardfunction.

Also, btw, i had to do a lot a diggin to find the /cf command. Maybe someone should update and revise the command list.