mirror of
				https://github.com/tobspr/shapez.io.git
				synced 2025-06-13 13:04:03 +00:00 
			
		
		
		
	Merge pull request #212 from xSparfuchs/master
fix for screenshots larger than 16,384 x 16,384
This commit is contained in:
		
						commit
						e4b2c51484
					
				@ -56,7 +56,14 @@ export class HUDScreenshotExporter extends BaseHUDPart {
 | 
			
		||||
        const dimensions = maxChunk.sub(minChunk);
 | 
			
		||||
        logger.log("Dimensions:", dimensions);
 | 
			
		||||
 | 
			
		||||
        const chunkSizePixels = 128;
 | 
			
		||||
        let chunkSizePixels = 128;
 | 
			
		||||
        const maxDimensions = Math.max(dimensions.x, dimensions.y);
 | 
			
		||||
 | 
			
		||||
        if (maxDimensions > 128) {
 | 
			
		||||
            chunkSizePixels = Math.floor(128 * (128 / maxDimensions));
 | 
			
		||||
        }
 | 
			
		||||
        logger.log("ChunkSizePixels:", chunkSizePixels);
 | 
			
		||||
 | 
			
		||||
        const chunkScale = chunkSizePixels / (globalConfig.mapChunkSize * globalConfig.tileSize);
 | 
			
		||||
        logger.log("Scale:", chunkScale);
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user