Page 2 of 2

Re: Using the resource maps

Posted: 18 Mar 2009, 17:46
by Auswaschbar

Code: Select all

int* ConvertToSignedInt(unsigned*) {...};
int* signedValues = ConvertToSignedInt(Clb_UnitDef_getCategory(...))

Re: Using the resource maps

Posted: 18 Mar 2009, 18:08
by Pxtl
@Lurker: I thought you meant add 256 to everything, not just to the values that are below zero.

Re: Using the resource maps

Posted: 18 Mar 2009, 18:50
by lurker
Half of those are just bitfields; please just leave them as whatever is simplest, because it doesn't matter how they get interpreted at all.

Re: Using the resource maps

Posted: 26 Aug 2009, 13:44
by abma
i didn't read the whole thread.. but:

did you check OOAICallback.getMap().getResourceMapSpotsPositions()?

this function returns spots where to build resource extractors...

Re: Using the resource maps

Posted: 27 Aug 2009, 18:54
by LoidThanead
At the time of my initial post, that function did not exist yet. In fact, I believe it was added (partially) as a result of this discussion. ;)

Obviously, I'm using it now, though I've been working on my own method of finding the resource spots, with mixed results.