zombiecalypse / Game-Design-Project

1 stars 0 forks source link

Game explodes on regular basis #41

Closed zombiecalypse closed 11 years ago

zombiecalypse commented 11 years ago

Stack trace:

/home/aaron/Dropbox/Projects/Game-Design-Project/GamePrototype/levels/pathfinding.rb:21:in `biuld_tree': private method `d' called for #<Array:0x000000022b0910> (NoMethodError)
    from /home/aaron/Dropbox/Projects/Game-Design-Project/GamePrototype/levels/pathfinding.rb:11:in `initialize'
    from /home/aaron/Dropbox/Projects/Game-Design-Project/GamePrototype/object_traits/mover.rb:89:in `new'
    from /home/aaron/Dropbox/Projects/Game-Design-Project/GamePrototype/object_traits/mover.rb:89:in `recalculate_path_to'
    from /home/aaron/Dropbox/Projects/Game-Design-Project/GamePrototype/object_traits/mover.rb:61:in `move'
    from /home/aaron/Dropbox/Projects/Game-Design-Project/GamePrototype/object_traits/mover.rb:112:in `update_trait'
    from /home/aaron/Dropbox/Projects/Game-Design-Project/GamePrototype/object_traits/state_ai.rb:39:in `update_trait'
    from /home/aaron/.rvm/gems/ruby-1.9.3-p327/gems/chingu-0.9rc9/lib/chingu/traits/timer.rb:168:in `update_trait'
    from /home/aaron/.rvm/gems/ruby-1.9.3-p327/gems/chingu-0.9rc9/lib/chingu/traits/asynchronous.rb:65:in `update_trait'
    from /home/aaron/.rvm/gems/ruby-1.9.3-p327/gems/chingu-0.9rc9/lib/chingu/game_object_list.rb:89:in `block in update'
    from /home/aaron/.rvm/gems/ruby-1.9.3-p327/gems/chingu-0.9rc9/lib/chingu/game_object_list.rb:89:in `each'
    from /home/aaron/.rvm/gems/ruby-1.9.3-p327/gems/chingu-0.9rc9/lib/chingu/game_object_list.rb:89:in `update'
    from /home/aaron/.rvm/gems/ruby-1.9.3-p327/gems/chingu-0.9rc9/lib/chingu/game_state.rb:175:in `update'
    from /home/aaron/Dropbox/Projects/Game-Design-Project/GamePrototype/levels/base_level.rb:95:in `update'
    from /home/aaron/.rvm/gems/ruby-1.9.3-p327/gems/chingu-0.9rc9/lib/chingu/game_state_manager.rb:250:in `update'
    from /home/aaron/.rvm/gems/ruby-1.9.3-p327/gems/chingu-0.9rc9/lib/chingu/window.rb:146:in `intermediate_update'
    from /home/aaron/.rvm/gems/ruby-1.9.3-p327/gems/chingu-0.9rc9/lib/chingu/window.rb:114:in `update'
    from demos/boss_demo.rb:22:in `<main>'
Blue-Robot commented 11 years ago

Don't worry, I will fix it tonight. Any more specifications on when it happens?

zombiecalypse commented 11 years ago

I think it occurs mostly when the enemy is close to a wall/...

Blue-Robot commented 11 years ago

Makes sence now :S Fixed with ca6c74fcc3c92dc4f3c69e8e66147901fab0a452