Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

[solved] version 2.9.2

edited January 2015 in OpenSesame

Hey,
An exp i built using version 2.8.0 is not working properly (the inline script) on the new version. Is there any solution for the problem?
Thanks,
Rotem

Comments

  • edited 5:48PM

    Hi,

    We can only provide good support, if you provide enough information on the issues you have. Based on your question, I can only recommend using the old version of Opensesame and not the new one. However, this is of course not optimal. Therefore, I'd like you to post your error message and maybe the code that you run that leads to the error here in the forum. Otherwise, we have no way of knowing what went wrong.

    Thanks,

    Eduard

    Buy Me A Coffee

  • edited January 2015

    Hey, i don't have an error message, just that my inline script doesn't run on the new version and i only see a black screen. This is my inline script:

    from psychopy.visual import DotStim
    from psychopy import event
    from openexp.keyboard import keyboard
    # Create a DotStim, which is automatically updated with every `draw()` call.
    ds = DotStim(win, fieldSize=900, speed=4, dotLife=22, nDots=500, coherence= \
        self.get('coher'),dotSize=3,signalDots='different',dir=self.get('dir'), \
        noiseDots='direction')
    t0 = self.time()
    if self.get('dir')==0:
        exp.set('correct_response','l')
    else:
        exp.set('correct_response','s')
    
    response_time = 0
    while response_time == 0:   
        for i in range(500):
            if i % 2 == 0:
                ds.draw()
            win.flip()
            keys = event.getKeys(keyList=['s', 'l'])
            if keys != []:
                t1 = self.time()
                response = keys[0]
                response_time = t1 - t0
                exp.set('response', response)
                exp.set('response_time', response_time)
                if self.get('response')==self.get('correct_response'):
                    exp.set('correct',1)
                else:
                    exp.set('correct',0)
                break
    test_rt.append(response_time)
    print(response_time)
    print(test_rt)
    
  • edited 5:48PM

    Hi,

    I had to disable the variables that you define in your sequence, because I can't see which format they have, but after doing that, the experiment was working with the new version.
    If you don't get an error message, you can try printing out as much stuff as possible, to see whether everything looks like it should.

    Good luck,
    Eduard

    Buy Me A Coffee

  • edited 5:48PM

    Hey Eduard,
    Not sure i understand what you mean by printing out as much stuff as possible.
    I tried again with no success. I think there in no error but that the moving dots in my exp become highly apart from one another in a way it's not possible to detect them on the screen. Maybe it has something to do with the computer screen definitions and the new version.
    Attached is my exp: http://pastebin.com/KLkJE7DF
    Thanks,
    Rotem

  • edited 5:48PM

    By printing out stuff I mean, you can use the print command to display variables and useful information in your debug window.
    E.g.


    ls = list(range(6)) for i,j in enumerate(ls): print 'enter the %ith iteration of loop'%i if j%2 ==0: print '%i is even'%j else: print '%i is odd'%j # this prints: #enter the 0th iteration of loop #0 is even #enter the 1th iteration of loop #1 is odd #enter the 2th iteration of loop #2 is even #enter the 3th iteration of loop #3 is odd #enter the 4th iteration of loop #4 is even #enter the 5th iteration of loop #5 is odd

    I tried your experiment and it works for me. So it is most likely no bug of Opensesame. What you can try is checking, the foreground/background colors, the backend you use, and other similar settings.

    Eduard

    Buy Me A Coffee

  • edited 5:48PM

    O.k thanks!

Sign In or Register to comment.

agen judi bola , sportbook, casino, togel, number game, singapore, tangkas, basket, slot, poker, dominoqq, agen bola. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 50.000 ,- bonus cashback hingga 10% , diskon togel hingga 66% bisa bermain di android dan IOS kapanpun dan dimana pun. poker , bandarq , aduq, domino qq , dominobet. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 10.000 ,- bonus turnover 0.5% dan bonus referral 20%. Bonus - bonus yang dihadirkan bisa terbilang cukup tinggi dan memuaskan, anda hanya perlu memasang pada situs yang memberikan bursa pasaran terbaik yaitu http://45.77.173.118/ Bola168. Situs penyedia segala jenis permainan poker online kini semakin banyak ditemukan di Internet, salah satunya TahunQQ merupakan situs Agen Judi Domino66 Dan BandarQ Terpercaya yang mampu memberikan banyak provit bagi bettornya. Permainan Yang Di Sediakan Dewi365 Juga sangat banyak Dan menarik dan Peluang untuk memenangkan Taruhan Judi online ini juga sangat mudah . Mainkan Segera Taruhan Sportbook anda bersama Agen Judi Bola Bersama Dewi365 Kemenangan Anda Berapa pun akan Terbayarkan. Tersedia 9 macam permainan seru yang bisa kamu mainkan hanya di dalam 1 ID saja. Permainan seru yang tersedia seperti Poker, Domino QQ Dan juga BandarQ Online. Semuanya tersedia lengkap hanya di ABGQQ. Situs ABGQQ sangat mudah dimenangkan, kamu juga akan mendapatkan mega bonus dan setiap pemain berhak mendapatkan cashback mingguan. ABGQQ juga telah diakui sebagai Bandar Domino Online yang menjamin sistem FAIR PLAY disetiap permainan yang bisa dimainkan dengan deposit minimal hanya Rp.25.000. DEWI365 adalah Bandar Judi Bola Terpercaya & resmi dan terpercaya di indonesia. Situs judi bola ini menyediakan fasilitas bagi anda untuk dapat bermain memainkan permainan judi bola. Didalam situs ini memiliki berbagai permainan taruhan bola terlengkap seperti Sbobet, yang membuat DEWI365 menjadi situs judi bola terbaik dan terpercaya di Indonesia. Tentunya sebagai situs yang bertugas sebagai Bandar Poker Online pastinya akan berusaha untuk menjaga semua informasi dan keamanan yang terdapat di POKERQQ13. Kotakqq adalah situs Judi Poker Online Terpercayayang menyediakan 9 jenis permainan sakong online, dominoqq, domino99, bandarq, bandar ceme, aduq, poker online, bandar poker, balak66, perang baccarat, dan capsa susun. Dengan minimal deposit withdraw 15.000 Anda sudah bisa memainkan semua permaina pkv games di situs kami. Jackpot besar,Win rate tinggi, Fair play, PKV Games