mirror of
https://github.com/billsonnn/nitro-converter.git
synced 2024-11-23 08:00:51 +01:00
Remove furni limit
This commit is contained in:
parent
15d99a58fa
commit
224d7ac736
1
.gitignore
vendored
1
.gitignore
vendored
@ -41,6 +41,7 @@ yarn-error.log
|
|||||||
testem.log
|
testem.log
|
||||||
/typings
|
/typings
|
||||||
.git
|
.git
|
||||||
|
error.log
|
||||||
|
|
||||||
# System Files
|
# System Files
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
39
error.log
39
error.log
@ -1,39 +0,0 @@
|
|||||||
TypeError: NitroBundle_1.default is not a constructor
|
|
||||||
TypeError: NitroBundle_1.default is not a constructor
|
|
||||||
TypeError: NitroBundle_1.default is not a constructor
|
|
||||||
TypeError: NitroBundle_1.default is not a constructor
|
|
||||||
TypeError: zlib_1.gzip.__promisify__ is not a function
|
|
||||||
TypeError: zlib_1.gzip.__promisify__ is not a function
|
|
||||||
TypeError: zlib_1.gzip.__promisify__ is not a function
|
|
||||||
TypeError: zlib_1.gzip.__promisify__ is not a function
|
|
||||||
TypeError: zlib_1.gzip.__promisify__ is not a function
|
|
||||||
TypeError: zlib_1.gzip.__promisify__ is not a function
|
|
||||||
TypeError: zlib_1.gzip.__promisify__ is not a function
|
|
||||||
TypeError: zlib_1.gzip.__promisify__ is not a function
|
|
||||||
TypeError: zlib_1.gzip.__promisify__ is not a function
|
|
||||||
TypeError: zlib_1.gzip.__promisify__ is not a function
|
|
||||||
TypeError: zlib_1.gzip.__promisify__ is not a function
|
|
||||||
TypeError: zlib_1.gzip.__promisify__ is not a function
|
|
||||||
TypeError: zlib_1.gzip.__promisify__ is not a function
|
|
||||||
TypeError: zlib_1.gzip.__promisify__ is not a function
|
|
||||||
TypeError: zlib_1.gzip.__promisify__ is not a function
|
|
||||||
TypeError: zlib_1.gzip.__promisify__ is not a function
|
|
||||||
TypeError: zlib_1.gzip.__promisify__ is not a function
|
|
||||||
TypeError: zlib_1.gzip.__promisify__ is not a function
|
|
||||||
TypeError: zlib_1.gzip.__promisify__ is not a function
|
|
||||||
TypeError: zlib_1.gzip.__promisify__ is not a function
|
|
||||||
TypeError: zlib_1.gzip.__promisify__ is not a function
|
|
||||||
TypeError: zlib_1.gzip.__promisify__ is not a function
|
|
||||||
TypeError: zlib_1.gzip.__promisify__ is not a function
|
|
||||||
TypeError: zlib_1.gzip.__promisify__ is not a function
|
|
||||||
TypeError: zlib_1.gzip.__promisify__ is not a function
|
|
||||||
TypeError: zlib_1.gzip.__promisify__ is not a function
|
|
||||||
TypeError: zlib_1.gzip.__promisify__ is not a function
|
|
||||||
TypeError: zlib_1.gzip.__promisify__ is not a function
|
|
||||||
TypeError: zlib_1.gzip.__promisify__ is not a function
|
|
||||||
TypeError: zlib_1.gzip.__promisify__ is not a function
|
|
||||||
TypeError: zlib_1.gzip.__promisify__ is not a function
|
|
||||||
TypeError: zlib_1.gzip.__promisify__ is not a function
|
|
||||||
TypeError: zlib_1.gzip.__promisify__ is not a function
|
|
||||||
TypeError: zlib_1.gzip.__promisify__ is not a function
|
|
||||||
TypeError: zlib_1.gzip.__promisify__ is not a function
|
|
@ -18,8 +18,6 @@ export class FurnitureDownloader
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
let count = 0;
|
|
||||||
|
|
||||||
const furniData = await this.parseFurniData();
|
const furniData = await this.parseFurniData();
|
||||||
const classNames: string[] = [];
|
const classNames: string[] = [];
|
||||||
|
|
||||||
@ -36,8 +34,6 @@ export class FurnitureDownloader
|
|||||||
const className = furniType.classname.split('*')[0];
|
const className = furniType.classname.split('*')[0];
|
||||||
const revision = furniType.revision;
|
const revision = furniType.revision;
|
||||||
|
|
||||||
if(count === 3) return;
|
|
||||||
|
|
||||||
if(classNames.indexOf(className) >= 0) continue;
|
if(classNames.indexOf(className) >= 0) continue;
|
||||||
|
|
||||||
classNames.push(className);
|
classNames.push(className);
|
||||||
@ -45,8 +41,6 @@ export class FurnitureDownloader
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
await this.extractFurniture(revision, className, callback);
|
await this.extractFurniture(revision, className, callback);
|
||||||
|
|
||||||
count ++;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
catch (error)
|
catch (error)
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
import * as ByteBuffer from 'bytebuffer';
|
import * as ByteBuffer from 'bytebuffer';
|
||||||
import { gzip } from 'zlib';
|
import { promisify } from 'util';
|
||||||
|
import * as zlib from 'zlib';
|
||||||
|
|
||||||
|
const gzip = promisify(zlib.gzip);
|
||||||
|
|
||||||
export class NitroBundle
|
export class NitroBundle
|
||||||
{
|
{
|
||||||
@ -31,7 +34,7 @@ export class NitroBundle
|
|||||||
buffer.writeUint16(fileName.length);
|
buffer.writeUint16(fileName.length);
|
||||||
buffer.writeString(fileName);
|
buffer.writeString(fileName);
|
||||||
|
|
||||||
const compressed = await gzip.__promisify__(file);
|
const compressed = await gzip(file);
|
||||||
buffer.writeUint32(compressed.length);
|
buffer.writeUint32(compressed.length);
|
||||||
buffer.append(compressed);
|
buffer.append(compressed);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user