Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Map export fail without printing errors when run with script #405

Open
HydrolienF opened this issue Jun 1, 2024 · 0 comments
Open

Map export fail without printing errors when run with script #405

HydrolienF opened this issue Jun 1, 2024 · 0 comments

Comments

@HydrolienF
Copy link

Hi thanks for sharing this incredible tool.

I'm facing some unexpected behavior, my map export fail without printing errors when run with script. It work with the GUI.
It look like to success to load the map then create entities/, region/, level.dat and session.lock but it never add anything in the 2 directories.

My script:

var fileName = 'Ireland.world';
var exportDir = '.';

print('Loading world ' + fileName);
var world = wp.getWorld()
    .fromFile(fileName)
    .go();

print('Exporting world to ' + exportDir);
wp.exportWorld(world)
    .toDirectory(exportDir)
    .go();
print('Done')

The terminal display:

>wpscript.exe .\exportWorld.js
WorldPainter scripting host version 2.22.1.
Copyright 2011-2024 pepsoft.org, The Netherlands.
This is free software distributed under the terms of the GPL, version 3, a copy
of which you can find in the installation directory.

Executing script "exportWorld.js" with no arguments.

Loading world Ireland.world
Exporting world to .
Done

My world is imported from a world in 1.16 and have custom biomes, but it is set to 1.19 world format.
I have tried serveral thing to debug.
Export the default map work.
Export a small part of my map didn't work.
Export the default world at loading world painter with a custom biome instead of plain work.
Export an imported from a 1.20.6 minecraft map work.

Am I doing something wrong ?
Do you have any idea of what could cause that ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant