codetaylor / pyrotech-1.12

An early game mod with new primitive devices, combustion machines, smelting mechanics, storage options, tools, torches, advancements, and absolutely zero GUIs -- with exception to the substantially complete, mostly illustrated, and charred guidebook.
https://pyrotech.readthedocs.io/en/latest/
Other
52 stars 20 forks source link

Need help with custom ores (crash) #306

Closed CactusDuud closed 4 years ago

CactusDuud commented 4 years ago

What Happens

Trying to define custom ores, but I keep getting a crash I don't really understand.

What You Expect to Happen

Proper load

Script

In this case it's the config

Crash Log

Log

Affected Versions

codetaylor commented 4 years ago

Thanks for the report!

I took a quick look at the code and it doesn't seem to like lang entries that don't have a : in them or lang entries that aren't found in a lang file. The docs say it should work without the : and I'm pretty sure that it was intended to work with non-key strings like you're using. I'll look at it longer when I have some time.

CactusDuud commented 4 years ago

Update: It successfully ran when I removed the lang entries you mentioned.

codetaylor commented 4 years ago

This wasn't intended to work with non-key strings, but it was supposed to work with valid lang keys without a : separator. This will be fixed in 1.5.0.