Code Monkey home page Code Monkey logo

Comments (10)

corpnewt avatar corpnewt commented on September 28, 2024

Hey there - sorry the deck.json info is kinda buried - it's actually in one of the comments at line 47 in the cog. You just need to go to http://www.crhallberg.com/cah/json to generate the json data, then save it as deck.json in the main project folder. I didn't include the deck as I thought it might leave things more open as you can select which decks and such you'd like to use. Hopefully that helps! Let me know if you have other questions.

from corpbot.py.

BleuSkie avatar BleuSkie commented on September 28, 2024

Wow, thanks for the quick reply. I really appreciate it. And yeah, it was buried a bit deep, but I did find that site in the code and got the file before I opened this question.

cah1
cah2

The earlier errors happened after, so I thought I might have to format the json file a specific way?

from corpbot.py.

corpnewt avatar corpnewt commented on September 28, 2024

Hmmmm - I just did select-all, copy, then paste for mine. As long as the site didn't change their format, it should all be the same. IIRC (as it's been a bit since I've worked on that code), there are 2 main lists, "blackCards" and "whiteCards". As long as you have those two, it should work correctly. If you can't figure it out, though, I'll add my deck.json to the code.

from corpbot.py.

BleuSkie avatar BleuSkie commented on September 28, 2024

Yep, select all and copy and paste is what I did as well. I did also check the box for all official cards/sets, but I didn't think that would affect it. White cards seem to be there.

cah3

Believe me, if I wasn't stumped, I wouldn't be here bothering you. Like, I figured out the reason the music cog wasn't working for me by looking through the code and fixed that alright (ffmpeg and path needed). If the format isn't what's wrong with the deck file, I have no other ideas.

from corpbot.py.

corpnewt avatar corpnewt commented on September 28, 2024

Alright - so I've slept for a few hours, and then went ahead and pulled fresh json data from the site - and I still get both the "blackCards" and "whiteCards" keys in my new deck.json. Can you send me your deck.json file so I can have a look at it? There might be something amiss with the formatting.

from corpbot.py.

BleuSkie avatar BleuSkie commented on September 28, 2024

Just got back from work. Yeah, I can do that and thanks again for taking the time to help.
...ok, apparently I have no idea how to upload files here yet lol. I just put it in google drive.
https://drive.google.com/file/d/1hvUlqSIzl1UZA1a8uXbpfxlXr3js0TAL/view?usp=sharing

from corpbot.py.

corpnewt avatar corpnewt commented on September 28, 2024

Well, this is interesting. It loads up fine on my end. The rabbit hole goes deeper, it seems.

from corpbot.py.

BleuSkie avatar BleuSkie commented on September 28, 2024

well rip me hahaha. I honestly don't know where to even look for a solution. Overall, it's not a big deal. The rest of your bot works for me and still has a lot of neat features, cah just wasn't in the "cards." If you think of something I could check or try, let me know. If not, no worries. Have a good night.

from corpbot.py.

BleuSkie avatar BleuSkie commented on September 28, 2024

Oh, I just closed and reloaded your bot to see if there was an update and it seems to work now :) I have no idea what changed, but it changed for the better lol. Consider this resolved :)))

from corpbot.py.

corpnewt avatar corpnewt commented on September 28, 2024

Hey! As long as it works haha. I also pushed a few new changes just now - so I'd recommend updating again. By all means if you run into any issues in the future - or just have some feature requests, let me know and I'll see what I can do!

from corpbot.py.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.