diff --git a/src/common/bundle/BundleProvider.ts b/src/common/bundle/BundleProvider.ts index 2565fd8..8f57cbb 100644 --- a/src/common/bundle/BundleProvider.ts +++ b/src/common/bundle/BundleProvider.ts @@ -65,8 +65,8 @@ export class BundleProvider { const files = await packAsync(imageBundle.images, { textureName: (convertCase ? documentClass.substring(1) : documentClass), - width: 3072, - height: 2048, + width: 10240, + height: 4320, fixedSize: false, allowRotation: false, detectIdentical: true, diff --git a/src/mapping/mappers/FurnitureDataMapper.ts b/src/mapping/mappers/FurnitureDataMapper.ts index 725d140..2a45c40 100644 --- a/src/mapping/mappers/FurnitureDataMapper.ts +++ b/src/mapping/mappers/FurnitureDataMapper.ts @@ -64,7 +64,7 @@ export class FurnitureDataMapper extends Mapper furnitureType.name = typeXML.name; furnitureType.description = typeXML.description; furnitureType.adurl = typeXML.adurl; - furnitureType.offerid = typeXML.offerid; + furnitureType.offerid = typeXML.id; furnitureType.buyout = typeXML.buyout; furnitureType.rentofferid = typeXML.rentofferid; furnitureType.rentbuyout = typeXML.rentbuyout; diff --git a/src/mapping/mappers/asset/LogicMapper.ts b/src/mapping/mappers/asset/LogicMapper.ts index 345622b..8d29529 100644 --- a/src/mapping/mappers/asset/LogicMapper.ts +++ b/src/mapping/mappers/asset/LogicMapper.ts @@ -128,6 +128,11 @@ export class LogicMapper extends Mapper for(const particleSystemXML of xml) { + if(particleSystemXML.size !== undefined) + { + if([ 32 ].indexOf(particleSystemXML.size) >= 0) continue; + } + const particleObject: IParticleSystem = {}; if(particleSystemXML.size !== undefined) particleObject.size = particleSystemXML.size; diff --git a/src/mapping/mappers/asset/VisualizationMapper.ts b/src/mapping/mappers/asset/VisualizationMapper.ts index fa79530..5e87fb0 100644 --- a/src/mapping/mappers/asset/VisualizationMapper.ts +++ b/src/mapping/mappers/asset/VisualizationMapper.ts @@ -189,6 +189,26 @@ export class VisualizationMapper extends Mapper } } + private static requestNextInsertId(requestId: number, output: { [index: string]: IAssetVisualAnimation }): string + { + let id = requestId.toString(); + + if(!output[id]) return id; + + let i = 1; + + while(i < 6) + { + id += '_' + i; + + if(!output[id]) return id; + + i++; + } + + return null; + } + private static mapVisualizationAnimationXML(xml: AnimationXML[], output: { [index: string]: IAssetVisualAnimation }): void { if(!xml || !xml.length || !output) return; @@ -212,7 +232,11 @@ export class VisualizationMapper extends Mapper } } - output[animationXML.id.toString()] = animation; + const id = this.requestNextInsertId(animationXML.id, output); + + if(!id) continue; + + output[id] = animation; } }