Numpy

This forum is currently in read-only mode.
  • Hello! I'm just wondering how to use numpy in Construct. I know I have to put some files into the data\python folder, but I'm not sure what's needed. Thanks.

  • This should do the trick (just tweak for Numpy):

  • Unfortunately the aiml example isn't working for me. Also, my computer is having issues making the executables. Anyway, what should I place in "test.py" for numpy?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Out of curiosity, what are you using numpy for?

  • Unfortunately the aiml example isn't working for me. Also, my computer is having issues making the executables.

    If the AIML example isn't working then you should probably solve that first before moving to something more complicated like numPy. Any specifics on what isn't working?

  • [quote:zpehgrok]

    Out of curiosity, what are you using numpy for?

    I didn't have a definite reason for using it. However, I was thinking of using matrices and matrix multiplication.

    [quote:zpehgrok]

    Any specifics on what isn't working?

    When i build the new executable, it doesn't work. I don't know if this is a reason why, but on the command line it says that the email.Generator and email.Iterators modules are missing once it has completed building it(py2exe). Doesn't say anything is wrong with cxfreeze, but that doesn't work either. I get this warning message, "WARNING: No match found for input: load aiml b" for both processes. I went through the rest of the tutorial and it didn't work in construct either. By the way, thanks for your help.

  • I get this warning message, "WARNING: No match found for input: load aiml b" for both processes

    The solution to this error is to make sure you have the actual AIML libraries in the same directory as the .cap file. It will be a directory that holds all of the aiml definitions. If you don't already have the libraries you can download them through a link in the tutorial.

    As far as the email.Generators and iterators error.. not sure haven't run into it before. Try the above solutions and let me know if it helps with the "load aiml b " error. At least then will be able to focus on the other error!

  • I finally got it to work using what you said. It's kind of annoying having to have place the libraries in with the .cap though. The email.Generators errors aren't stopping it from working so I guess those aren't important. I think I'll attempt to get numpy in, but I'll probably need help. Thanks a lot for all your help!

    Edit: I have no idea where to start. I downloaded a .zip file and I'm not sure what to do after that. There's a lot of files.

    Edit 2: I just put import numpy into the test.py. Will this work? It made a library.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)