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"?
Finding a unitdef metal cost in an *A mod [solved]
Moderators: hoijui, Moderators
Finding a unitdef metal cost in an *A mod [solved]
Last edited by Bla on 15 May 2014, 00:21, edited 1 time in total.
Re: Finding a unitdef metal cost in an *A mod
try "Metal" instead
Re: Finding a unitdef metal cost in an *A mod
Hey, works thanks!