[12.8] unhelpful errors

Place to get help with not working mods / modding interface.
vzybilly
Fast Inserter
Fast Inserter
Posts: 143
Joined: Thu May 14, 2015 6:10 pm
Contact:

[12.8] unhelpful errors

Post by vzybilly »

To start off, I have a core mod that auto generates slightly changed things from the base. I only pass in the original thing and a table of my changes to make a new thing...
An example is (an item):

Code: Select all

_G.vzyGenerateThing({nameAll = machineName, order = "b["..machineName.."]"}, data.raw.item[machineFrom], nil)
With that out of the way, I've hit errors like

Code: Select all

Error Util.cpp:46: Error while loading entity prototype "vzy-compressed-accumulator-lv03" (accumulator): conversion of data to type "t" failed
quite often.

it took me abit to find the issue because I'm only setting 3 things and I've checked over them multiple times and it was working from my previous auto-building which made things worse. I threw a math.floor() around my setting of "discharge_cooldown" & "charge_cooldown" and I'm now at a new error... which I'm also having abit of troubles to figure out but this error is abit better and isn't really the focus...

Code: Select all

Error Util.cpp:46: Error while loading technology prototype "vzy-compressed-accumulator-lv01" (technology): No such node (name)
It should have a name but I'll start snooping that and see what I can find...
I just had an idea which might be abit overkill, when verbose logging is true (maybe just all the time?), dump all the data.raw things from the mod that crashed...
EDIT

(tl;dr)
It would be nice to know what data fails conversion, in this case it would be the cooldowns (double to integer)
Will code for Food. I also have 11+ mods!
daniel34
Global Moderator
Global Moderator
Posts: 2761
Joined: Thu Dec 25, 2014 7:30 am
Contact:

Re: [12.8] unhelpful errors

Post by daniel34 »

This shouldn't be under Bug reports, it should be in one of the following two, because it's a two-fold question:

(1) Modding help: You have problems getting your mod to run (please post the mod or relevant scripts)
(2) Ideas and Suggestions: Your suggestion is to improve the error messages the game shows when it runs into an error. If you want to post a suggestion like that, please not only post an example like here, but also a general view of how that suggestion could work and what errors it detects and how it responds to it.

I am moving this to Modding help for now.
If you think there's an actual bug in the game concerning modding, please post a complete mod or at least enough source files to recreate your issue.
quick links: log file | graphical issues | wiki
Post Reply

Return to “Modding help”