Finding a unitdef metal cost in an *A mod [solved]
Posted: 14 May 2014, 04:10
in the spring java wrapper thing, given UnitDef uni and EngineCallback cb, to find the cost in metal I do
uni.findCost(cb.getResourceByName("metal"))
but I keep getting NullPointerException.
Is the resource name not "metal"?
uni.findCost(cb.getResourceByName("metal"))
but I keep getting NullPointerException.
Is the resource name not "metal"?