-
Notifications
You must be signed in to change notification settings - Fork 48
Open
Description
Current version first read whole map into RAM (UP TO FEW GB RAM).
Then let me do some advanced operations on map.
Then I can save my modified map.
There are many functionalities for which I don't need whole map: read house tiles, find some item position
It would be nice, if I could run it with few MB RAM (remove 'tile' from memory just after it's loaded with items).
- After loading item:
(...)
const mapReader = new MapReader();
mapReader.on('readItem', function(tile, item)
{
if(item.id == 1387) {
console.log('found teleport', tile.pos);
}
}
);
mapReader.process('input.otbm');
- After loading tile with items and properties:
mapReader.on('readTile', function(tile) {});
Metadata
Metadata
Assignees
Labels
No labels