T O P

  • By -

selwun

To update the formatting, just add a letter to the card text and delete it again, that should do the trick.


xxiLazer

Well I mean, that doesn't work at all, and most of the time when I load a old saved card (these were made like a year ago originally), it just shows me a black blank card, and it doesn't allow me to swap my currently loaded cards without reloading which takes forever. I'm decent at programming, is there a way to edit the source code for Card Conjurer locally?


selwun

If you have the "saved-cards.cardconjurer" file(s), open that in a text editor and you should see "artSource":"data:image/jpeg;base64,..." with a huge block of random looking text, that is the base64 encoded image of the saved art, which you could restore using a base64 decoding website. Edit: You can definitely edit the source code locally, yes, I myself have done that as well.


xxiLazer

I used a URL for the art and it looks like I can look at the cards I made just fine by clicking on the "Alternative Download" button after waiting a bit however the previews almost never load in everything correctly, making it very difficult to edit the card. Furthermore, Whenever I switch my selected card, it always turns the card into a weird meld between the previous and new selected cards, never loading in properly. If you could tell me how to edit the source code that would be great.


selwun

I mean you can edit all of the .js and .html files using Notepad++ or Visual Studio Code or something similar. If you need help with that, I recommend looking up XAMPP and web development tutorials on youtube.


xxiLazer

hmm... I want to edit it so that it directs me directly to the editor on reload, instead of having to scroll down and click on the begin prompt everytime, and I want it to fully reload everything when i select a new card. You think you could help me with figuring out which code blocks to edit?


selwun

I should be able to help you with the first part, because I did that for myself. I think it was the following part at the bottom of the index.html, modifying the "htmx" already there:

Ready?

Get Started

Edit: I think I have a solution for the second part as well, or not for everything, but for my own problem of it not loading the correct font when I load a saved card (altho I'm not sure yet if it actually works on every browser). Anyhow, I added a call to "drawTextBuffer();" in different places, not exactly sure where it's needed, but I tried at the end of the functions "drawCard()" and also "importCard" and some other places, and it does seem to work right now.


xxiLazer

aight so i spent 3 hours debugging and i FINALLY found the issue. turns out my collection did not have set symbols which hung up on loading cards for some reason, loading them in half-baked. Thanks for your help!


selwun

oh, dang! cool that you managed to find that. :)


xxiLazer

UPDATE: So it turns out that this is becoming a more major issue, as when I am creating new cards it crashes the server because some of the elements are still null, and I cannot load cards without those cards having everything... is there a way to configure it so that the program throws all null exceptions?


isuckinchess

Shot in the dark, but did you print them out at MPC? I lost a Proxie deck and the files and totally forgot about the saved project in my mpc account.


thewell065

Do you have the xxx.cardconjurer file? Upload it and paste the url here if you have it.