[0.12.21] 128X128 Mod Technology Graphics buggered.

Bugs that are actually features.
pCountNullMem
Burner Inserter
Burner Inserter
Posts: 7
Joined: Tue Sep 02, 2014 3:03 pm
Contact:

[0.12.21] 128X128 Mod Technology Graphics buggered.

Post by pCountNullMem »

This is a visual bug. Appears when displaying a technology image from a simple mod, like this one.

Here is the mod for testing/viewing of the bug: http://www78.zippyshare.com/v/Kh1A3clx/file.html

Attached is a picture demonstrating the bug. Note that the technology image is a copy of the one that the base game displays.

Location RED Circle: The technology image wasn't resized to fit the UI size, unlike the base game images.
Location BLUE Circle: The technology image is drawn at twice its size. (it's stretched partial image)

That's all for now. I hope that this gets fixed asap.

Without a fix, mod technologies end up looking stretched at the blue location, when the mod uses the older 64X64 image size.
Attachments
Factorio Technology BUG.jpg
Factorio Technology BUG.jpg (682.68 KiB) Viewed 8649 times
User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5290
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

Re: [0.12.21] 128X128 Mod Technology Graphics buggered.

Post by Klonan »

Not a bug;

In your technology definition you need a line saying " icon_size = 128, " as the icon you're usign is sized 128x128 (default size is 64x64)
pCountNullMem
Burner Inserter
Burner Inserter
Posts: 7
Joined: Tue Sep 02, 2014 3:03 pm
Contact:

Re: [0.12.21] 128X128 Mod Technology Graphics buggered.

Post by pCountNullMem »

Thanks, Klonan.

Turns out we have an omission in the base game lua.. 128x128 default value for the base lua while mod lua has a 64x64 default, which made me look at it like that was a bug... anyway, that fixes it. (A list of accepted properties and their defaults would be nice I suppose..)

So while it may not be a bug it's definitely derping up the icon for the mod even though its pretty much a copy of the base chemistry.lua.
I could be blind though. :shock:

The point is, it's confusing.

Just looking at the documentation, class LuaTechnology, I don't see what it inherits, so I've got no idea.
(doc-html/LuaTechnology.html)

Anyway.. that's all for now.
Post Reply

Return to “Not a bug”