Skip to content

game built for old version does not run when using new python stubs #2806

@nycki93

Description

@nycki93

I built the current version 1.2.3019-dev Pro (32853aa), which includes the updated python stubs from #2350. I tried to run o moku e mun in it, and got this error:

>Traceback (most recent call last):
  File "main.py", line 2021
    reify(120,85,60,136)
  File "main.py", line 1454, in reify
    things.app
end(Torch(wx,wy-2,solid_at(wx-4,wy+4)))
  File "main.py", line 1398, in 
solid_at
    return flag_at(x,y,0)
  File "main.py", line 1395, in flag_at
    return tile_has_flag(tx,ty,f)
  File "main.py", line 1403, in 
tile_has_flag
    return fget(mget(tx,ty),f)
TypeError: expected 'int', got 'float'

if I change the offending line like this:

 return fget(mget(tx,ty),f
 return fget(mget(int(tx),int(ty)),f

then I'm able to get to the title screen. I suspect there will be other 'legacy' carts that are broken by the new stubs, too. is there a way to disable linting when running a cart?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions