ElenaiDev / ElenaiDodge2.0

Other
9 stars 9 forks source link

[Optional] Adding enters to the weights config causes crashing #19

Closed MitztheKat closed 3 years ago

MitztheKat commented 3 years ago

How did I discover this? - I was trying to sort out my .cfg file for future armor set additions. Why do I want this fixed? - I almost always edit my configs via notepad++. It's habit. And AFAIK I can't go into the settings mid-game and paste stuff in? I might be wrong, I'll look into it and correct myself if not. How difficult do I think this will be to fix? - Depending on how.. applicable the config from SOL-Potato is, either very easy or... difficult. I'm no MC modder but this may be out of range for a simple patch. Why did I reference SOL Potato Edition? - their config has a similar (number, minecraft item/buff) thing. I think you could salv- i mean borrow the code from that mod :P

ElenaiDev commented 3 years ago

Hi there!

So far I am unable to reproduce the issue, would you be able to send me your config file to look at?

Thanks so much!

MitztheKat commented 3 years ago

elenaidodge2-common.txt This is before I load it in. (just change the .txt to .toml or whatever) elenaidodge2-common-broken.txt This is the config* after the game crashes from loading in. I use notepad++ so... I don't know if you do.

ElenaiDev commented 3 years ago

Hi there!

The issue is that you've added spaces and returns to the config file! Make sure you put all your weights on one line otherwise this will happen.

Basically, pressing enter (in terms of code) actually looks like \r\n which means return and new line. This will cause a crash as it breaks the IDs!

Closing as the issue isn't on the mods end, hope this helps!