Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Underflow issue? #1

Open
phmarek opened this issue Aug 23, 2012 · 5 comments
Open

Underflow issue? #1

phmarek opened this issue Aug 23, 2012 · 5 comments
Assignees

Comments

@phmarek
Copy link

phmarek commented Aug 23, 2012

Playing around a bit (and giving myself more powerups ;) I got this:

The value 32791 is not of type (SIGNED-BYTE 16).
   [Condition of type TYPE-ERROR]

Restarts:
  0: [RETRY] Retry SLIME REPL evaluation request.
  1: [*ABORT] Return to SLIME's top level.
  2: [ABORT] Abort thread (#<THREAD "repl-thread" RUNNING {10076B3693}>)

Backtrace:
  0: (LISPBUILDER-SDL::GFX-DRAW-CIRCLE-* 32791 21087 3 :SURFACE NIL :COLOR #<COLOR {1004DD6703}> :AA NIL)
  1: (DRAW-CIRCLE-* 32791 21087 3 :SURFACE NIL :COLOR #<COLOR {1004DD6703}> :ALPHA NIL :AA NIL :GFX-LOADED-P T)
  2: (DRAW-CIRCLE #(32791 21087) 3 :SURFACE NIL :COLOR #<COLOR {1004DD6703}> :ALPHA NIL :AA NIL :GFX-LOADED-P NIL)
  3: ((SB-PCL::FAST-METHOD RENDER (BULLET)) #<unused argument> #<unused argument> #<BULLET {100A958313}>)
  4: ((SB-PCL::FAST-METHOD RENDER-WORLD (WORLD T)) #<unused argument> #<unused argument> #<WORLD {1008C590E3}> NIL)
  5: ((LAMBDA () :IN MAIN))
  6: ((SB-PCL::FAST-METHOD LISPBUILDER-SDL::PROCESS-TIMESTEP (LISPBUILDER-SDL::FPS-MANAGER T)) #<unused argument> #<unused argument> #<unused argume
  7: ((SB-PCL::EMF LISPBUILDER-SDL::PROCESS-TIMESTEP) #<unused argument> #<unused argument> #<FPS-FIXED {1008C4C383}> #<CLOSURE (LAMBDA # :IN MAIN)
  8: ((SB-PCL::FAST-METHOD LISPBUILDER-SDL::PROCESS-TIMESTEP :AROUND (LISPBUILDER-SDL::FPS-MANAGER T)) ..)
  9: (MAIN)

I thought you might be interested.

@andyhd
Copy link
Owner

andyhd commented Aug 25, 2012

Thanks for your interest! I'll take a look.

@ghost ghost assigned andyhd Aug 25, 2012
@andyhd
Copy link
Owner

andyhd commented Aug 25, 2012

A bullet with those coordinates should be removed from the world in the update bullet method, so I'm not sure what happened. The render method should be more defensive and check the coordinates, probably.

What sort of playing around did you do?

@phmarek
Copy link
Author

phmarek commented Aug 25, 2012

(defparameter *powerup-max-age* 999)

and, in break-down,

      (if t #+nil (< (random 100) (/ 100 (+ 4 (* (level world) 0.3))))

Then I flew around a bit - shooting and fetching.

@andyhd
Copy link
Owner

andyhd commented Aug 25, 2012

Hehe. I've reproduced the bug myself, now. I'll add a check before rendering.

@phmarek
Copy link
Author

phmarek commented Aug 25, 2012

Oh, and BTW - as a VIM user, be sure to look at slimv (http://www.vim.org/scripts/script.php?script_id=2531) - uses python to connect vim to a swank server.

I got it running with swankR, too ... ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants