1. Hey Guest, is it this your first time on the forums?

    Visit the Beginner's Box

    Introduce yourself, read some of the ins and outs of the community, access to useful links and information.

    Dismiss Notice

Community App [Open Source] Map Editor 1.3.1

A simple yet powerful Map Editor for King Arthur's Gold! Officially discontinued but Open Source!

Mods: Downburst, Mazey
  1. numpad

    numpad Haxor

    Messages:
    43
    numpad updated Map Editor with a new update entry:

    [Fixed] Export now should work everywhere!

    Read the rest of this update entry...
     
    Noburu likes this.
  2. Inferdy

    Inferdy Arsonist

    Messages:
    246
    1.2.2 don't work normally!
    numpad is sorry.
    I hope, he will fix it later.
    But you can download 1.2.1 now.
    WARNING!
    Don't move Map Editor in any directory, contains symbols, different from English!!!
    Bad one directory: C:\Users\Илья\Desktop\
    Good one direcotry: D:\KAGloltrollolEditor\
     
    Noburu and numpad like this.
  3. numpad

    numpad Haxor

    Messages:
    43
    numpad updated Map Editor with a new update entry:

    Version 1.3 - Newsfeed and Script-Sharing

    Read the rest of this update entry...
     
    Inferdy and Noburu like this.
  4. hugio88

    hugio88 I am the king of KAG! Donator

    Messages:
    132
    I made a Script real quickly copied from the Gold script xD
    (Sorry for copying the most code @numpad )

    its a 'Stone' script xD (uploaded it to the New Scripts thingy)

    I'm Sorry but for the most part i'm new to JavaScripting, Maybe @numpad can teach me ::):???
     
    numpad likes this.
  5. numpad

    numpad Haxor

    Messages:
    43
    Copying scripts is no problem ;-) Happy to see someone making any.

    Sure, if you want so, you can add me on Skype (christian345200) and I can show you a bit ;-)
     
    Inferdy likes this.
  6. LucasTT

    LucasTT Haxor Tester

    Messages:
    455
    Anyone got ideas for scripts? I think I could do some.
     
    numpad and Noburu like this.
  7. ElIndio

    ElIndio Catapult Fodder

    Messages:
    2
    I'm not sure the export functionality is fixed, or if there's a problem on my end.
    This is the output it gives me when I try to export (the weird formatting is direct from command prompt; it's not a copy/paste error on my part):

    Code:
    Microsoft Windows [Version 6.1.7600]
    Copyright (c) 2009 Microsoft Corporation.  All rights reserved.
    
    C:\Users\Pat>cd/program files/kagmapeditor
    
    C:\Program Files\KAGMapEditor>java -jar mapeditor.jar
    java.lang.NullPointerException
            at java.io.Reader.<init>(Unknown Source)
            at java.io.InputStreamReader.<init>(Unknown Source)
            at java.util.Scanner.<init>(Unknown Source)
            at de.numpad.framework.IO.FileReader.string(FileReader.java:15)
            at de.numpad.framework.tool.api.Script.include(Script.java:190)
            at de.numpad.framework.tool.api.Script.<init>(Script.java:54)
            at de.numpad.framework.tool.api.Script.<init>(Script.java:45)
            at com.numpad.kageditor.MenuState.buidlHiddenScripts(MenuState.java:113)
    
            at com.numpad.kageditor.Editor.receiveUpdates(Editor.java:26)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
            at java.lang.reflect.Method.invoke(Unknown Source)
            at de.numpad.framework.Frapp$4.loop(Frapp.java:211)
            at de.numpad.framework.Frapp$4.run(Frapp.java:199)
    Started!
    java.lang.NullPointerException
            at java.io.Reader.<init>(Unknown Source)
            at java.io.InputStreamReader.<init>(Unknown Source)
            at java.util.Scanner.<init>(Unknown Source)
            at de.numpad.framework.IO.FileReader.string(FileReader.java:15)
            at de.numpad.framework.tool.api.Script.include(Script.java:190)
            at de.numpad.framework.tool.api.Script.<init>(Script.java:54)
            at de.numpad.framework.tool.api.Script.<init>(Script.java:45)
            at com.numpad.kageditor.AutoScript.<init>(AutoScript.java:25)
            at com.numpad.kageditor.EditorState.loadScripts(EditorState.java:784)
            at com.numpad.kageditor.EditorState$6.onAction(EditorState.java:157)
            at com.numpad.kageditor.EditorState$7.onRelease(EditorState.java:172)
            at de.numpad.framework.Logic.handleGUI(Logic.java:61)
            at de.numpad.framework.Frapp.logic(Frapp.java:370)
            at de.numpad.framework.Frapp.handleLogic(Frapp.java:240)
            at de.numpad.framework.Frapp$3.run(Frapp.java:100)
    java.lang.NullPointerException
            at java.io.Reader.<init>(Unknown Source)
            at java.io.InputStreamReader.<init>(Unknown Source)
            at java.util.Scanner.<init>(Unknown Source)
            at de.numpad.framework.IO.FileReader.string(FileReader.java:15)
            at de.numpad.framework.tool.api.Script.include(Script.java:190)
            at de.numpad.framework.tool.api.Script.<init>(Script.java:54)
            at de.numpad.framework.tool.api.Script.<init>(Script.java:45)
            at com.numpad.kageditor.AutoScript.<init>(AutoScript.java:25)
            at com.numpad.kageditor.EditorState.loadScripts(EditorState.java:784)
            at com.numpad.kageditor.EditorState$6.onAction(EditorState.java:157)
            at com.numpad.kageditor.EditorState$7.onRelease(EditorState.java:172)
            at de.numpad.framework.Logic.handleGUI(Logic.java:61)
            at de.numpad.framework.Frapp.logic(Frapp.java:370)
            at de.numpad.framework.Frapp.handleLogic(Frapp.java:240)
            at de.numpad.framework.Frapp$3.run(Frapp.java:100)
    javax.script.ScriptException: sun.org.mozilla.javascript.internal.EcmaError: Typ
    eError: Cannot find function require in object com.numpad.kageditor.AutoScript@3
    95e6726. (<Unknown source>#1) in <Unknown source> at line number 1
            at com.sun.script.javascript.RhinoScriptEngine.invoke(Unknown Source)
            at com.sun.script.javascript.RhinoScriptEngine.invokeFunction(Unknown So
    urce)
            at de.numpad.framework.tool.api.Script.call(Script.java:259)
            at com.numpad.kageditor.AutoScript.<init>(AutoScript.java:42)
            at com.numpad.kageditor.EditorState.loadScripts(EditorState.java:784)
            at com.numpad.kageditor.EditorState$6.onAction(EditorState.java:157)
            at com.numpad.kageditor.EditorState$7.onRelease(EditorState.java:172)
            at de.numpad.framework.Logic.handleGUI(Logic.java:61)
            at de.numpad.framework.Frapp.logic(Frapp.java:370)
            at de.numpad.framework.Frapp.handleLogic(Frapp.java:240)
            at de.numpad.framework.Frapp$3.run(Frapp.java:100)
    Caused by: sun.org.mozilla.javascript.internal.EcmaError: TypeError: Cannot find
    function require in object com.numpad.kageditor.AutoScript@395e6726. (<Unknown
    source>#1)
            at sun.org.mozilla.javascript.internal.ScriptRuntime.constructError(Unkn
    own Source)
            at sun.org.mozilla.javascript.internal.ScriptRuntime.constructError(Unkn
    own Source)
            at sun.org.mozilla.javascript.internal.ScriptRuntime.typeError(Unknown S
    ource)
            at sun.org.mozilla.javascript.internal.ScriptRuntime.typeError2(Unknown
    Source)
            at sun.org.mozilla.javascript.internal.ScriptRuntime.notFunctionError(Un
    known Source)
            at sun.org.mozilla.javascript.internal.ScriptRuntime.getPropFunctionAndT
    hisHelper(Unknown Source)
            at sun.org.mozilla.javascript.internal.ScriptRuntime.getPropFunctionAndT
    his(Unknown Source)
            at sun.org.mozilla.javascript.internal.Interpreter.interpretLoop(Unknown
    Source)
            at sun.org.mozilla.javascript.internal.Interpreter.interpret(Unknown Sou
    rce)
            at sun.org.mozilla.javascript.internal.InterpretedFunction.call(Unknown
    Source)
            at sun.org.mozilla.javascript.internal.ContextFactory.doTopCall(Unknown
    Source)
            at com.sun.script.javascript.RhinoScriptEngine$1.superDoTopCall(Unknown
    Source)
            at com.sun.script.javascript.RhinoScriptEngine$1.doTopCall(Unknown Sourc
    e)
            at sun.org.mozilla.javascript.internal.ScriptRuntime.doTopCall(Unknown S
    ource)
            at sun.org.mozilla.javascript.internal.InterpretedFunction.call(Unknown
    Source)
            ... 11 more
    java.io.FileNotFoundException: C:\Program%20Files\KAGMapEditor\export.png (The s
    ystem cannot find the path specified)
            at java.io.RandomAccessFile.open(Native Method)
            at java.io.RandomAccessFile.<init>(Unknown Source)
            at javax.imageio.stream.FileImageOutputStream.<init>(Unknown Source)
            at com.sun.imageio.spi.FileImageOutputStreamSpi.createOutputStreamInstan
    ce(Unknown Source)
            at javax.imageio.ImageIO.createImageOutputStream(Unknown Source)
            at javax.imageio.ImageIO.write(Unknown Source)
            at de.numpad.framework.IO.ImageLoader.save(ImageLoader.java:52)
            at de.numpad.framework.IO.ImageLoader.save(ImageLoader.java:64)
            at com.numpad.kageditor.EditorState$17.onRelease(EditorState.java:363)
            at de.numpad.framework.Logic.handleGUI(Logic.java:61)
            at de.numpad.framework.Frapp.logic(Frapp.java:370)
            at de.numpad.framework.Frapp.handleLogic(Frapp.java:240)
            at de.numpad.framework.Frapp$3.run(Frapp.java:100)
    Error PROBLEMATIC_CHARSET! Additional:
    java.lang.NullPointerException

    I've taken the liberty of adding you on Steam, I hope that was okay.
    I'm new to mapping and new to the forums, but not too new to KAG.

    Edit: Windows 7 x64. I have both 32-bit and 64-bit Java installed.
     
  8. hugio88

    hugio88 I am the king of KAG! Donator

    Messages:
    132
    Warning!

    If you have a Folder called: C:\user\hugio88\desktop\kag map\

    It will
    NOT work because of the SPACE in the Kag Map folder.


    just to warn you guys!
     
  9. Asu

    Asu THD Team THD Team Forum Moderator

    Messages:
    1,580
    Easier to say you only can have alphanumeric and numbers in folder names
     
    numpad likes this.
  10. numpad

    numpad Haxor

    Messages:
    43
    Noburu likes this.
  11. Mazey

    Mazey Haxor Global Moderator Forum Moderator Staff Alumni Donator Official Server Admin

    Messages:
    1,914
    Rotated platforms?
     
    101i likes this.
  12. numpad

    numpad Haxor

    Messages:
    43
    Already implemented?
     
  13. Mazey

    Mazey Haxor Global Moderator Forum Moderator Staff Alumni Donator Official Server Admin

    Messages:
    1,914
    Oops
     
  14. numpad

    numpad Haxor

    Messages:
    43
    In the next update, they'll be next to the normal Platform. Kinda sucks, that they are far away from the other one.
     
  15. Leo

    Leo Haxor

    Messages:
    503
    @numpad when I am trying "import" nothing happens and the application froze. I am using win8. Any ideas ?
     
    numpad likes this.
  16. Asu

    Asu THD Team THD Team Forum Moderator

    Messages:
    1,580
    Same
     
    numpad likes this.
  17. numpad

    numpad Haxor

    Messages:
    43
    I'll have a look at it this evening.
     
    Noburu likes this.
  18. Leo

    Leo Haxor

    Messages:
    503
    Got the error when trying to import:

    javax.imageio.IIOException: Can't read input file!
    at javax.imageio.ImageIO.read(Unknown Source)
    at de.numpad.framework.IO.ImageLoader.external(ImageLoader.java:36)
    at com.numpad.kageditor.EditorState$20.onRelease(EditorState.java:398)
    at de.numpad.framework.Logic.handleGUI(Logic.java:61)
    at de.numpad.framework.Frapp.logic(Frapp.java:370)
    at de.numpad.framework.Frapp.handleLogic(Frapp.java:240)
    at de.numpad.framework.Frapp$3.run(Frapp.java:100)
    Exception in thread "Thread-5" java.lang.ArrayIndexOutOfBoundsException: 1
    at com.numpad.kageditor.EditorState.createSkymap(EditorState.java:467)
    at com.numpad.kageditor.EditorState.access$7(EditorState.java:464)
    at com.numpad.kageditor.EditorState$20.onRelease(EditorState.java:399)
    at de.numpad.framework.Logic.handleGUI(Logic.java:61)
    at de.numpad.framework.Frapp.logic(Frapp.java:370)
    at de.numpad.framework.Frapp.handleLogic(Frapp.java:240)
    at de.numpad.framework.Frapp$3.run(Frapp.java:100)
     
    numpad likes this.
  19. numpad

    numpad Haxor

    Messages:
    43
    Thanks!
    You are using the latest Version right?
     
    Noburu likes this.
  20. Leo

    Leo Haxor

    Messages:
    503
    Yeah
     
Mods: Downburst, Mazey