Page 1 of 1

[LUA/BA] Red Tooltip out of screen

Posted: 12 Feb 2015, 00:02
by FabriceFABS
Hey,

First of all, I've search forum with «out of screen», «red tooltip»... nothing.

LUA Red Tooltip on fullscreen often takes... I don't know why, where, when... negative coord (x) value (remember I've seen -5xxx for x coords.).
And during a game, I discover when I want for instance to know unit owner, that the window miss !! :/
This is very annoying because every time I've been ripped off because I don't think about checking... besides I don't have to this !

Just that I don't see the window and to avoid player waiting with a pause, I should remove BA.lua or editing it to remove negative value from (x) screen position coords.
It happens very often in fullscreen mode (1280*1024).

I found a way to avoid this problem by playing in windowed mode.
It was OK_ for ~ 1 or 2 months and now, same pb even in window mode...

SpringV98 + BA8.09.

Thx !

Re: [LUA/BA] Red Tooltip out of screen

Posted: 12 Feb 2015, 09:24
by Silentwings
I've had a report of this before, although its never happened to me. RedUIs positioning code is somewhat wtf and I've never touched it (there is nothing I can think of that would have caused a change here) but I'll try and figure out how it could malfunction...

Re: [LUA/BA] Red Tooltip out of screen

Posted: 12 Feb 2015, 09:56
by 8611
A way to reproduce (maybe not the same thing but a positioning problem of RedUI tooltip) is like this:
1) windowed spring, maximized
2) change it from maximized to resizeable
3) resize spring window (horizontally) as small as it will allow.
4) change back to maximized
5) RedUI tool is now at the very right of the screen. (instead of left)

RedUI resource bars break in similiar way:
After doing the above energy & metal bar will now be both to the very right of the screen, on top of each other.

Re: [LUA/BA] Red Tooltip out of screen

Posted: 12 Feb 2015, 10:39
by dansan
I have this problem too. It happens when changing between windowed and fs and the tooltip is at the very edge left-bottom. If goes from (around) x=0 to (around) x=-6000.
Maybe x=6000 would be the very right-edge of the current map, and there is somewhere a 0-6000 calculation or something similar like max_map_size?
It does not happen if I stay in wondowed mode.

Re: [LUA/BA] Red Tooltip out of screen

Posted: 13 Feb 2015, 09:17
by Silentwings

Re: [LUA/BA] Red Tooltip out of screen

Posted: 15 Feb 2015, 11:31
by Silentwings
Unfortunately neither of your ways to reproduce worked for me.

For me no amount of resizing/maximising/fullscreening and back again resulted in anything going off screen :(

Re: [LUA/BA] Red Tooltip out of screen

Posted: 15 Feb 2015, 11:53
by Silentwings
Could someone able to reproduce this do so with http://pastebin.com/wXb0fL1a and pastebin the infolog. It will print some debug info everytime you resize. It would be useful also if you could indicate (just type a chat message) at what point you just did something that triggered the bug.

(make a gui_red_tooltip.lua in your Spring/LuaUI/widgets dir and copy paste that file into it, this will override the default BA version)

Re: [LUA/BA] Red Tooltip out of screen

Posted: 05 Mar 2015, 09:54
by Silentwings
bump :wink:

Re: [LUA/BA] Red Tooltip out of screen

Posted: 27 Oct 2015, 17:42
by Jools
This also happens with "message separator" widget. As a fix, I usually just copy old values back from the config.