Page 1 of 1

AttributeError: 'Curry' object has no attribute

Posted: Fri Sep 03, 2021 2:54 am
by Elliot Dreemurr
i cant figure out what the issue is or even what its trying 2 tell me

Code: Select all

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/script.rpy", line 12, in script call
    call minigames
  File "game/minigame.rpy", line 143, in script
    python:
  File "game/minigame.rpy", line 179, in <module>
    if t.cPoint >= 2:
AttributeError: 'Curry' object has no attribute 'cPoint'

-- Full Traceback ------------------------------------------------------------

Full traceback:
  File "game/script.rpy", line 12, in script call
    call minigames
  File "game/minigame.rpy", line 143, in script
    python:
  File "renpy/ast.py", line 923, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "renpy/python.py", line 2235, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/minigame.rpy", line 179, in <module>
    if t.cPoint >= 2:
AttributeError: 'Curry' object has no attribute 'cPoint'

Windows-10-10.0.19041
Ren'Py 7.4.8.1895
Only You 1.0
Fri Sep  3 02:37:03 2021
here is the original code

Code: Select all

label socialgame(transition=True):
    stop music fadeout 2.0
    scene grey with fadeoutslow
    show screen quick_menu
    show chara at go_left
    show jessica at go_mid
    show jamison at go_right
    #play music
    $ config.skipping = False
    $ config.allow_skipping = False
    if chapter == 1:
        call screen intro("What is everyone up to these days?\n\nPick out posts that you're friends\n have shared and pertain to whomever you like most!", ok_action=Return())
    python:
        progress = 1
        numWords = 25
        words = list(social_words)
        cPointTotal = 0
        jnPointTotal = 0
        jaPointTotal = 0

        charaTime = renpy.random.random() * 4 + 4
        jessicaTime = renpy.random.random() * 4 + 4
        jamisonTime = renpy.random.random() * 4 + 4
        charaPos = renpy.random.randint(-1,1)
        jessicaPos = renpy.random.randint(-1,1)
        jamisonPos = renpy.random.randint(-1,1)
        charaOffset = 0
        jessicaOffset = 0
        jamisonOffset = 0
        charaZoom = 1
        jessicaZoom = 1
        jamisonZoom = 1

        ystart = 270
        while True:
            pstring = str(progress)
            ui.text(pstring + "/" + str(numWords), xpos=790, ypos=200, color='#000')
            for j in range(2):
                if j == 0:
                    x = 510
                else:
                    x = 650
                for i in range(4):
                    word = random.choice(words)
                    words.remove
                    ui.textbutton(word.word, clicked=ui.returns, xpos=x, ypos=i * 52 + ystart)

            t = ui.interact()
            if t.cPoint >= 2:
                renpy.show("chara leap")
            if t.jaPoint >= 2:
                renpy.show("jessica leap")
            if t.jnPoint >= 2:
                renpy.show("jamison leap")
            cPointTotal += t.cPoint
            jaPointTotal += t.jaPoint
            jnPointTotal += t.jnPoint
            progress += 1
            if progress > numWords:
                renpy.jump('points')

    label points:

        if jnPoint > jaPoint and jnPoint > cPoint:
            $ winner = 'jn'
        elif jaPoint > cPoint:
            $ winner = 'ja'
        else:
            $ winner = 'c'

        $ config.allow_skipping = True
        $ allow_skipping = True
        stop music fadeout 2.0
        hide screen quick_menu
        scene black with dissolveslow
        pause 1.0
        return