tgstation / FastDMM

A robust BYOND map editor
GNU General Public License v3.0
7 stars 13 forks source link

Illegal Group Reference when loading Goonstation.dme #31

Closed ZeWaka closed 4 years ago

ZeWaka commented 6 years ago

Title.

Version: 0.7.3

image

Rockdtben commented 6 years ago

@ZeWaka Could you link me to the repo where you got the Goonstation.dme?

ZeWaka commented 6 years ago

@Rockdtben It's a private repo accessible to only Goonstation coders.

Rockdtben commented 6 years ago

@ZeWaka I'm going to have to add some more debugging code to FastDMM to figure out what is causing this error.

Whenever I have something ready I will ping you again.

Rockdtben commented 6 years ago

@ZeWaka Try out the latest https://github.com/tgstation/FastDMM/releases/tag/v0.7.4 released today and see if that helps.

ZeWaka commented 6 years ago

Getting a slightly different error.

java.lang.IllegalArgumentException: Illegal group reference
    at java.util.regex.Matcher.appendReplacement(Unknown Source)
    at com.github.tgstation.fastdmm.objtree.ObjectTree.completeTree(ObjectTree.java:191)
    at com.github.tgstation.fastdmm.FastDMM$3.run(FastDMM.java:626)
Exception in thread "Thread-7" java.lang.NullPointerException
    at com.github.tgstation.fastdmm.FastDMM.addToRecent(FastDMM.java:1167)
    at com.github.tgstation.fastdmm.FastDMM.access$600(FastDMM.java:56)
    at com.github.tgstation.fastdmm.FastDMM$3.run(FastDMM.java:647)

Also, I get this error upon opening the latest tgstation.dme

java.lang.IllegalArgumentException: Illegal group reference
    at java.util.regex.Matcher.appendReplacement(Unknown Source)
    at com.github.tgstation.fastdmm.objtree.ObjectTree.completeTree(ObjectTree.java:191)
    at com.github.tgstation.fastdmm.FastDMM$3.run(FastDMM.java:626)
Exception in thread "Thread-7" java.lang.NullPointerException
    at com.github.tgstation.fastdmm.FastDMM.addToRecent(FastDMM.java:1167)
    at com.github.tgstation.fastdmm.FastDMM.access$600(FastDMM.java:56)
    at com.github.tgstation.fastdmm.FastDMM$3.run(FastDMM.java:647)
_basemap.dm references a nonexistent file: D:\Spess\tgstation\_maps\templates.dm
Rockdtben commented 6 years ago

@ZeWaka A file containing your recently loaded projects is contained in this path.

System.getProperty("user.home") + File.separator + ".fastdmm" + File.separator

Which in windows would be

C:\Users\YOURUSERNAME\.fastdmm\

In this folder there may be two files:

Rename recent.json to recent_bak.json and then load FastDMM and let me know what happens.

If that works then if you are okay with it could you past the conents of recent_bak.json? It is what keeps track of your recently loaded projects and I think the following may of happened.

You may have moved a project to a different folder and the recent list is trying to get it and it is failing.

ZeWaka commented 6 years ago

Okay, tgstation.dme loads fine. Attached is the contents of my folder.

However, when I load goonstation.dme I get the same error.

java.lang.IllegalArgumentException: Illegal group reference
    at java.util.regex.Matcher.appendReplacement(Unknown Source)
    at com.github.tgstation.fastdmm.objtree.ObjectTree.completeTree(ObjectTree.java:191)
    at com.github.tgstation.fastdmm.FastDMM$3.run(FastDMM.java:626)
Exception in thread "Thread-7" java.lang.NullPointerException
    at com.github.tgstation.fastdmm.FastDMM.addToRecent(FastDMM.java:1202)
    at com.github.tgstation.fastdmm.FastDMM.access$600(FastDMM.java:56)
    at com.github.tgstation.fastdmm.FastDMM$3.run(FastDMM.java:647)

fastdmm.zip

Rockdtben commented 6 years ago

@ZeWaka Okay. I'll ping you again when I have another release for you to test. Hopefully we will have it fixed this time.