Page 1 of 1

[0.12.21] 128X128 Mod Technology Graphics buggered.

Posted: Sat Jan 09, 2016 7:35 pm
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.

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

Posted: Sat Jan 09, 2016 11:20 pm
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)

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

Posted: Sun Jan 10, 2016 1:12 am
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.