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

Exporting worlds with the Scripting API #4

Open
DerMattinger opened this issue Mar 24, 2020 · 1 comment
Open

Exporting worlds with the Scripting API #4

DerMattinger opened this issue Mar 24, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@DerMattinger
Copy link

DerMattinger commented Mar 24, 2020

Hello,

I am trying to export a world with the Cubic Chunks Map Format using the WorldPainter Scripting API.
Inside the GUI, I can export the map without any problems, but when I try to open the map inside the script and export the map, I got the following error message:

[ERROR] IllegalArgumentException occurred while executing script.js java.lang.IllegalArgumentException: Unsupported platform Cubic Chunks (1.10.2 - 1.12.2) at org.pepsoft.worldpainter.exporting.JavaWorldExporter.<init>(JavaWorldExporter.java:46) at org.pepsoft.worldpainter.tools.scripts.ExportWorldOp.go(ExportWorldOp.java:81) at org.pepsoft.worldpainter.tools.scripts.ExportWorldOp.go(ExportWorldOp.java:38) at jdk.nashorn.internal.scripts.Script$Recompilation$2$wpscript.:program$:split-1(wpscript.js:1161) at jdk.nashorn.internal.scripts.Script$wpscript.:program(wpscript.js) at jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:637) at jdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.java:494) at jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:393) at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:449) at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:406) at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:402) at jdk.nashorn.api.scripting.NashornScriptEngine.eval(NashornScriptEngine.java:150) at javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:249) at org.pepsoft.worldpainter.tools.ScriptingTool.main(ScriptingTool.java:178) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.exe4j.runtime.LauncherEngine.launch(LauncherEngine.java:85) at com.exe4j.runtime.WinLauncher.main(WinLauncher.java:94) at com.install4j.runtime.launcher.WinLauncher.main(WinLauncher.java:25)

I am not sure if this is a general WorldPainter problem (like the scripting API completly ignores plugins) or if this is a problem with this plugin itself.

@Barteks2x
Copy link
Member

I never tested this as it probably didnt exist when i wrote this but it may be a small change required in my code.

@Barteks2x Barteks2x added the bug Something isn't working label Mar 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants