Jump to content

[1.13.2] Weird Mod Crashing Phenomenon [STILL NOT SOLVED!!]


Recommended Posts

Posted (edited)

Ok so basically I opened my mod yesterday and (it was working fine the previous day) and my game crashes.

https://pastebin.com/raw/GEbhDj46 <--Crash file

 

From this I can see that 

"net.minecraft.util.ResourceLocationException: Non [a-z0-9_.-] character in namespace of location: .DS_Store:sounds.json" is the problem.

I've searched around my mods folder and even Reinstalled the mdk and imported my src folder over and it still crashes. So from this I know it is my mod and not forge.

 

[22:01:10.925] [Client thread/DEBUG] [ne.mi.fm.pa.ResourcePackLoader/CORE]: Generating PackInfo named mod:yrim for mod file /Users/nathandesouza/Desktop/mood/RandomItems 1.13.219/forge-1.13.2-25.0.219-mdk/bin/main
[22:01:10.930] [Client thread/DEBUG] [ne.mi.fm.pa.ResourcePackLoader/CORE]: Generating PackInfo named mod:forge for mod file /Users/nathandesouza/.gradle/caches/forge_gradle/minecraft_user_repo/net/minecraftforge/forge/1.13.2-25.0.219_mapped_snapshot_20180921-1.13/forge-1.13.2-25.0.219_mapped_snapshot_20180921-1.13.jar
[22:01:10.934] [Client thread/INFO] [minecraft/SimpleReloadableResourceManager]: Reloading ResourceManager: forge-1.13.2-25.0.219_mapped_snapshot_20180921-1.13.jar, main, Default
[22:01:11.085] [Client thread/WARN] [minecraft/Locale]: Skipped language file: .DS_Store:lang/en_us.json (net.minecraft.util.ResourceLocationException: Non [a-z0-9_.-] character in namespace of location: .DS_Store:lang/en_us.json)
[22:01:12.347] [Client thread/INFO] [STDOUT/]: [net.minecraft.init.Bootstrap:printToSYSOUT:467]: ---- Minecraft Crash Report ----
// There are four lights!

 

^ This is my console just before the crash report starts.

Any help is appreciated i've been trying for over 4 hours now.

 

UPDATE:

 

OK something weird is going on. My mod doesnt crash if I remove the 'assets' folder (src/main/resources/assets/). So i took everything out of my assets folder to try and narrow the cause down AND IT CRASHES. An empty assets folder crashes my game? My game runs fine if I DELETE the assets folder. But as soon as i put it back in it crashes again with the same error? The assets folder is EMPTY, I REPEAT THE ASSETS FOLDER IS EMPTY!!

 

Any suggestions are welcome!

Thanks! :D

Edited by Ywes
Posted
  On 5/30/2019 at 2:53 PM, Ywes said:

 

Like i said before, I have removed everything in my assets folder (including the language file).

Expand  

sorry didn't read it quite fully
 

did you try to create the assets folder new and not just undo the deleted folder ... i could imagine that you have a hidden file in your previous assets folder

Posted (edited)

Indeed I have deleted and created a new folder. And still nothing.

 

Edit:

Might add that i have hidden folders turned on

Edited by Ywes
Posted

Not that im aware. Like i said I did a fresh install of the lastest mdk.

 

Also would you know where the sound.json file would be kept in the mdk folder?

Posted

But why is it doing it now? It has never happened before and ive been modding since 1.7.10 on this macOSX. Have you ever encountered a problem like this? I know you're like an expert at modding.

Posted
  On 5/30/2019 at 4:45 PM, Ywes said:

But why is it doing it now?

Expand  

.DS_Store files are files that store the hierarchy of a directory as well as the information of the files in it; this provides constant time complexity when searching the hard disk for certain file via spotlight.

However, they can be very annoying to deal with sometimes.

To remove it, simply cd into the directory and rm -rf .DS_Store.

 

The log you posted only shows the warning, which should not cause a crash.

Please post the crash log so we could figure out what really is crashing.

Some tips:

  Reveal hidden contents

 

Posted
  On 5/31/2019 at 12:09 AM, DavidM said:

To remove it, simply cd into the directory and rm -rf .DS_Store.

Expand  

 

Ok so i tried this and too be completely honest i dont know if it worked. See the thing is apple hides .DS_STORE files in the newest update, even if you have hidden files on.

 

  On 5/31/2019 at 12:09 AM, DavidM said:

The log you posted only shows the warning, which should not cause a crash.

Please post the crash log so we could figure out what really is crashing.

Expand  

 

I already posted my crash report in my main post but here is my latest anyway.

  Reveal hidden contents

 

Thank you!

Posted (edited)

Running ls -ld .* would show all hidden files in the current directory. You could use that to test for .DS_Store.

Edited by DavidM

Some tips:

  Reveal hidden contents

 

Posted

Ok i deleted the .DS_STORE files but to no avail. But i discovered something very interesting. 

So basically I redid my entire assets folder except this time i made them in eclipse instead of creating folders and it worked (without any files).

But as soon as i moved my files (the .lang and json ect) it crashed again with the same error. 

So i redid the whole assets package again and i made the .jsons and .lang files inside eclipse itself and it worked, no more crashing. UNTIL i refreshed my wrokspace and now its crashing again.

Do you have any idea whats going on?

Posted
  On 5/31/2019 at 4:21 AM, Ywes said:

Ok i deleted the .DS_STORE files but to no avail. But i discovered something very interesting. 

So basically I redid my entire assets folder except this time i made them in eclipse instead of creating folders and it worked (without any files).

But as soon as i moved my files (the .lang and json ect) it crashed again with the same error. 

So i redid the whole assets package again and i made the .jsons and .lang files inside eclipse itself and it worked, no more crashing. UNTIL i refreshed my wrokspace and now its crashing again.

Do you have any idea whats going on?

Expand  

Yes. .DS_Store updates every time a file/sub directory name changes, a file/sub directory is added/deleted, or a file is edited.

When you create a folder or file in eclipse, it seems that the action will not trigger a .DS_Store update.

Creating a folder via Finder will cause an update.

 

There is probably a way to disable the generation of DSstore via a command, but I don’t know it. Try google it up.

 

  On 5/31/2019 at 6:58 AM, diesieben07 said:

Jesus lord. It's as if they make their OS more unusable with every update.

Expand  

Apple do patronize its user. To illustrate, you cannot create a new text file in Mac OS via right click because Apple thinks “adding the option to create an empty text file might confuse the user; they should use tools they are working with, like Pages or Keynote, to create new files”.

Some tips:

  Reveal hidden contents

 

  • 4 months later...
Posted
  On 5/31/2019 at 9:19 AM, DavidM said:

Yes. .DS_Store updates every time a file/sub directory name changes, a file/sub directory is added/deleted, or a file is edited.

When you create a folder or file in eclipse, it seems that the action will not trigger a .DS_Store update.

Creating a folder via Finder will cause an update.

 

There is probably a way to disable the generation of DSstore via a command, but I don’t know it. Try google it up.

 

Apple do patronize its user. To illustrate, you cannot create a new text file in Mac OS via right click because Apple thinks “adding the option to create an empty text file might confuse the user; they should use tools they are working with, like Pages or Keynote, to create new files”.

Expand  

I also have a problem with this, even though this may be a little back I wish I could get some assistance.

net.minecraft.util.ResourceLocationException: Non [a-z0-9_.-] character in namespace of location: .DS_Store:sounds.json

Posted
  On 10/18/2019 at 8:10 AM, diesieben07 said:

Go ask google on how to disable those hideous stupid files.

Expand  

I did disable them from being created, yet I don't know how to remove it entirely.

[P.S] Does it have to do with anything alongside my code or just that one thing?

  • 2 months later...
Posted

I run this command before running the ./gradle build or if I have made name changes outside of the Eclipse environment.

 

find . -name '.DS_Store' -type f -delete

 

It clears out any pesky .DS_Store files out of my eclipse folder

 

 

Posted (edited)
  On 1/4/2020 at 11:32 PM, kwpugh said:

find . -name '.DS_Store' -type f -delete

Expand  

This is also the solution I found.

Please note this only occurs for Eclipse, IntelliJ has no such problem.

Edited by Cadiboo

About Me

  Reveal hidden contents

Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support.

When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible.

Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org

Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)

  • 4 months later...
Posted

Here is my answer. I am also a mac user with the same issue. The problem is that OSX puts .DS_STORE in the run files, crashing the game.

1. Duplicate the mod folder. This will make code editors think you are on a different project.

2. Delete the "runs" folder. This will make IntelliJ (or any code editor, like eclipse) forget about the DS_STORE files.

Posted
  On 1/4/2020 at 8:21 AM, Max801 said:

I have this same problem even when using 1.14.4. Has anyone found a solution?

Expand  

Yes, Duplicate the MDK folder and delete the runs from the duplicate. The .DS_STORE file will be gone. Run the duplicate.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.