GithubHelp home page GithubHelp logo

Comments (17)

lambslamchops avatar lambslamchops commented on August 29, 2024 1

I got it to work! Thanks for everything!

from mtg-photoshop-automation.

lambslamchops avatar lambslamchops commented on August 29, 2024 1

I do have to say the normal proxy works fine but it appears the other settings don't work. The new proxy.jsx file also has some missing bits like specified_template isn't defined and neither is exit_early. I assume you will get to these eventually but just thought I'd help. Thanks again so much!

from mtg-photoshop-automation.

ndepaola avatar ndepaola commented on August 29, 2024

hello - the script should automatically create card.json in the scripts folder when you run either proxy script, so it sounds like the command isn't working on your system. can you try pulling the refactor branch and run it again? if it fails to successfully run the python script, it'll now show you an error with the command it tried, which may help you debug. the python script also now no longer depends on any nonstandard libraries in case you were missing scrython or something. (also bear in mind that i'm committing to the refactor branch frequently atm and potentially with bugs)

from mtg-photoshop-automation.

lambslamchops avatar lambslamchops commented on August 29, 2024

Now it tells me error 24: proxy is not a function. It must not see the proxy.jsx in the same folder.

from mtg-photoshop-automation.

ndepaola avatar ndepaola commented on August 29, 2024

hmm - on that branch the main function that proxy_target and proxy_all calls is proxy_new(), so i'm not sure why you're hitting that error w/o seeing your setup. did you download the refactor branch to a different folder on your computer so you're starting with a blank slate?

from mtg-photoshop-automation.

lambslamchops avatar lambslamchops commented on August 29, 2024

Maybe I did it wrong, what do you mean by the refactor branch?

from mtg-photoshop-automation.

ndepaola avatar ndepaola commented on August 29, 2024

sorry, i should've clarified - i've been updating the project over here https://github.com/ndepaola/mtg-autoproxy/tree/refactor over the last week, but it's still a work in progress, hence why those changes aren't in the main version of the project yet. however i suspect i fixed the root cause of the issue you're experiencing on that branch. could you try downloading the code from that branch to a separate folder on your computer and run the scripts again?

from mtg-photoshop-automation.

lambslamchops avatar lambslamchops commented on August 29, 2024

Okay now it returns: Error 48: File or folder does not exist.
Line: 1
-> #include "scripts/proxy.jsx";

from mtg-photoshop-automation.

lambslamchops avatar lambslamchops commented on August 29, 2024

Sorry I rearranged the folders and it now returns
Line: 5
-> #include "..\settings.jsx";

from mtg-photoshop-automation.

ndepaola avatar ndepaola commented on August 29, 2024

understood - i'm downloading photoshop on my mac to test #include's and will get back to you when i've fixed it, it's probably a simple fix

from mtg-photoshop-automation.

lambslamchops avatar lambslamchops commented on August 29, 2024

I changed the 5th line to #include "settings.jsx"; and that seemed to work,
now it seems to have an issue running the get_card_info.py script
I changed the line to say "python3" since that's how mac needs it to read but it still doesn't like the command when the script runs it, but if I manually type it, the terminal looks like this python3 /Users/adamryan/Desktop/working_directory/mtg-autoproxy-refactor/scripts/get_card_info.py "plains" Searching Scryfall for: plains... and done! Saving JSON... and done!
Screen Shot 2021-08-02 at 1 21 59 AM

from mtg-photoshop-automation.

ndepaola avatar ndepaola commented on August 29, 2024

just tested this on my mac and i encountered the same issue - the terminal command was working from photoshop but it was failing to read the file - try replacing \\ with / in the json file path in constants.jsx. i'll do some more testing and see if it works with forward slashes on windows too, and update the rest of the project so it works on both platforms if so

from mtg-photoshop-automation.

ndepaola avatar ndepaola commented on August 29, 2024

should be fixed now

from mtg-photoshop-automation.

lambslamchops avatar lambslamchops commented on August 29, 2024

Screen Shot 2021-08-02 at 8 51 54 AM

Sadly, It still does not work. It returns this error now. I have all the templates downloaded so it must be something else.

Screen Shot 2021-08-02 at 8 54 04 AM

from mtg-photoshop-automation.

ndepaola avatar ndepaola commented on August 29, 2024

what card are you running the script with? I haven't re-implemented transform, mdfc, or planar cards on the refactor branch yet - maybe try with a normal-border card?

from mtg-photoshop-automation.

lambslamchops avatar lambslamchops commented on August 29, 2024

a basic plains

from mtg-photoshop-automation.

ndepaola avatar ndepaola commented on August 29, 2024

those two are defined in settings.jsx

from mtg-photoshop-automation.

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.