Calculate players resource, asset and definition ids.