• SmartGoat

    Hey everyone,
    I recently bought an iPad Pro, and after a bit of use of Pythonista on it I noticed that the specific keyboard extension of Pythonista is on top of the auto-completion suggestions, which is kinda disappointing... does anyone know a fix ?
    Thanks in advance for all of your answers,
    Cordially,
    SmartGoat

    posted in Pythonista read more
  • SmartGoat

    @cvp I just wanted to test action.group, not especially do an action.sequence. It is just strange that if the two actions are running simultaneously and they theorically negate themselves, why wouldn't the character stay in place ?

    posted in Pythonista read more
  • SmartGoat

    @JonB First, thanks for answering me.
    Second, Crap ! It's much less usable than i thought. So there isn't any way to know if a given Node is executing an action ?
    Cordially,
    SmartGoat

    posted in Pythonista read more
  • SmartGoat

    Hi everyone,
    Today i was doing some tests on scene.Action capabilities, but I sruggled with two weirds behaviours of actions:

    1. Node.paused boolean does not seems to be locked in 'false' state, not changing when executing an action or not; however it is also possible that I didn't understood this attribute. testing code...
    from scene import *
    
    class Main(Scene):
            def setup(self):
                    self.background_color = '#cdcdcd'
                    self.char = SpriteNode('plf:AlienBlue_stand', x_scale = 3, y_scale =3)
                    self.char.position = (512,384)
                    self.add_child(self.char)
                    print(self.char.paused, 'a')
                    self.char.run_action(Action.move_by(0,-100,1.0))
                    print(self.char.paused, 'b')
    
    run(Main())
    

    ...which would presumably give us a False then a True. but we get two 'False'. Try it by yourself and tell me if you get others results !

    1. When I use a Action.group of two Actions which would negate themselves, only the second one is taken into account; testing code...
    class Main(Scene):
            def setup(self):
                    self.background_color = '#cdcdcd'
                    self.char = SpriteNode('plf:AlienBlue_stand', x_scale = 3, y_scale =3)
                    self.char.position = (512,384)
                    self.add_child(self.char)
            
            def touch_began(self,touch):
                    action_group = Action.group(Action.move_by(0,100),Action.move_by(0,-100))
                    if not self.char.paused:
                            self.char.run_action(action_group)
    
    run(Main())
    

    ... and for output I let you try it by yourself too. Have a nice day/night,
    Thanks in advance,
    SmartGoat

    posted in Pythonista read more
  • SmartGoat

    @biob I already done multiple Deep Learning experiences with Pythonista (numpy), I can show you some of them if you want to see how it works, just mp me !

    posted in Pythonista read more
  • SmartGoat

    @hmartin I can’t participate because of my level sadly but keep up the good work, it is so nice to see such persons like you who help the community with their projects ! Good luck man !

    posted in Pythonista read more
  • SmartGoat

    @ELECTRO8888 would love to see how your game looks, I kept my project in mind but don’t have actually the energy to start it, and i’m really interested in how you’ll do it

    posted in Pythonista read more
  • SmartGoat

    @JonB what ?? Tensorflow can work on Pythonista ? How did you manage to make it working ? I tried with stash but C-based modules were needed....

    posted in Pythonista read more
  • SmartGoat

    @jgoalby I love you, you found indirectly the error ^^ sometimes the difference in Y axis divided by difference in X axis between two objects was exactly 1, and I didn’t take this case in account in my vision_cut() function, so now i’ve made a little change and it’s now fixed ! Thank you so much for your help, and have a nice day / night !
    @JonB thank you for helping me, but the bug is already fixed, I hope it doesn’t annoy you ^^ good night !

    posted in Pythonista read more
  • SmartGoat

    Hi everyone, today I’m posting this because I get the most strange bug of my Pythonista experience. I was experiencing with neural networks made from scratch (in fact, behaviour of raptor VS sheep) and I get an amazingly simple TypeError in my main.py file (l.131):

    Traceback (most recent call last):
    File "/var/containers/Bundle/Application/2BCE66D1-3EB5-46DC-AFEE-F33C73B6BB37/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/site-packages/scene.py", line 199, in _draw
    self.update()
    File "/private/var/mobile/Containers/Shared/AppGroup/D48F6FDD-3F34-40EB-9497-17B2560BB120/Pythonista3/Documents/Neural Networks/RAPTOR-MOUTON/main.py", line 232, in update input = self.get_input(agent) File "/private/var/mobile/Containers/Shared/AppGroup/D48F6FDD-3F34-40EB-9497-17B2560BB120/Pythonista3/Documents/Neural Networks/RAPTOR-MOUTON/main.py", line 131, in get_input obj.position[0], obj.position[1])
    TypeError: 'NoneType' object is not iterable
    

    I get a NoneType object in a list, but I tried to debunk it in every way without seeing a single “None”..... I’m despaired...
    I tried one hundred times to resolve this, but even when I check before execution If BOTH positions (of f.vision_cut() args - > l.130) aren’t NoneType objects, I get the same error. Here is below the link of my project, with images and others scripts included in the project. Please just try and see how weird it is.
    https://www.dropbox.com/sh/ryf9tk90b1vtu38/AADJ_Xu6UIDstZJc6HEJ6RCxa?dl=0

    Thanks in advance for every answer !
    Cordially,
    SmartGoat

    P.S: I don’t have included comments, tell it to me if you absolutely need them to solve the bug, and I’ll make commented versions of my code. Have a nice day/night !

    posted in Pythonista read more

Internal error.

Oops! Looks like something went wrong!