This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
?> Pmg.Runner.ensurePool( | |
?> galaxy.id.to_java(:int), galaxy.ruleset, | |
?> galaxy.pool_free_zones.to_java(:int), | |
?> max_zone_iterations.to_java(:int), | |
?> galaxy.pool_free_home_ss.to_java(:int), | |
?> max_home_ss_iterations.to_java(:int) | |
>> ) | |
TypeError: cannot convert instance of class org.jruby.java.proxies.ConcreteJavaProxy to int | |
from (irb):37:in `evaluate' | |
from org/jruby/RubyKernel.java:1091:in `eval' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<arturaz> >> Java::SpacemuleModulesConfigObjects::FormulaCalc.rubyCalc(3) | |
<arturaz> NameError: no method 'rubyCalc' for arguments (org.jruby.RubyFixnum) on Java::SpacemuleModulesConfigObjects::FormulaCalc | |
<arturaz> available overloads: | |
<arturaz> (org.jruby.RubyFixnum) | |
<arturaz> NameError: no method 'calc' for arguments (org.jruby.RubyString,org.jruby.RubyHash) on Java::SpacemuleModulesConfigObjects::FormulaCalc | |
<arturaz> available overloads: (org.jruby.RubyString,org.jruby.RubyHash) | |
<arturaz> WAT? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Combat.Runner.java_send(:run, | |
[ | |
Java::spacemule.modules.combat.objects.Location, | |
Java::java.lang.Boolean, | |
Java::scala.Option, | |
org.jruby.runtime.builtin.IRubyObject, | |
org.jruby.RubyHash, | |
org.jruby.RubyHash, | |
org.jruby.runtime.builtin.IRubyObject, | |
org.jruby.RubyHash, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private def doubleOpt(key: String) = data.double(key) match { | |
case null => None | |
case x: Double => Some(x) | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>> def a.===(o); puts o.inspect; true; end | |
=> nil | |
>> case a | |
>> when Hash then puts "woot" | |
>> end | |
=> nil |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Fake _target_ identity. This extends #is_a?, #kind_of?, #instance_of? on | |
# _target_ and #=== on _pretended_klass_. | |
# | |
# Example: fake_identity YourCustomHash, Hash | |
# | |
# @param [Class] target class that is being given fake identity | |
# @param [Class] pretended_klass class that target is pretending to be | |
def self.fake_identity(target, pretended_klass) | |
target.instance_eval do | |
[:is_a?, :kind_of?, :instance_of?].each do |method| |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val fire = L.block( | |
"Combatant "+combatant+" from alliance id "+allianceId+ | |
" is shooting", level=L.Debug | |
) { () => shootGuns(allianceId, combatant) } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Server has encountered an error! | |
[2012-05-21 03:28:28.524|dispatcher|main|error] Dispatcher: async call `push_to_player' aborted! | |
Celluloid::AbortError: caused by #<ArgumentError: Type signature mismatch! | |
* Expected variable 'player_id' to be Fixnum but it was NilClass (nil)>: Type signature mismatch! | |
* Expected variable 'player_id' to be Fixnum but it was NilClass (nil) | |
/home/spacegame/nebula-server/20120508112349/vendor/bundle/jruby/1.9/bundler/gems/celluloid-53b31cb209dd/lib/celluloid.rb:177:in `abort' | |
dummy:80:in `raise_to_abort' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Server has encountered an error! | |
[2012-05-27 13:06:25.091|worker-world_0|worker-world_0|error] <Player(784), pop: 2629/2500(2735), gid: 1, name: "auris505", creds: 18229, VIP: 2@0/2150> unregister in dispatcher-88.222.193.60:60524 failed: Exception: undefined method `exception' for #<String:0x261f19> (exception) | |
Backtrace: | |
/home/spacegame/nebula-server/20120526143740/vendor/bundle/jruby/1.9/bundler/gems/celluloid-53b31cb209dd/lib/celluloid/responses.rb:20:in `value' | |
/home/spacegame/nebula-server/20120526143740/vendor/bundle/jruby/1.9/bundler/gems/celluloid-53b31cb209dd/lib/celluloid/actor.rb:59:in `call' | |
/home/spacegame/nebula-server/20120526143740/vendor/bundle/jruby/1.9/bundler/gems/celluloid-53b31cb209dd/lib/celluloid/actor_proxy.rb:80:in `method_missing' | |
/home/spacegame/nebula-server/20120526143740/lib/app/models/player.rb:497:in `_callback_after_746' | |
/home/spacegame/nebula-server/20120526143740/vendor/bundle/jruby/1.9/gems/activesupport-3.2.3/lib/active_support/callbacks.rb:476:in `_run__1237543502__ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Raise an exception in caller context, but stay running | |
def abort(cause) | |
cause = case cause | |
when String then RuntimeError.new(cause) | |
when Exception then cause | |
else raise "Unknown abort cause class #{cause.class} for object #{cause.inspect}" | |
end | |
raise AbortError.new(cause) | |
end | |