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 !
[LUA/BA] Red Tooltip out of screen
Moderator: Content Developer
- Silentwings
- Posts: 3720
- Joined: 25 Oct 2008, 00:23
Re: [LUA/BA] Red Tooltip out of screen
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
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.
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
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.
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.
- Silentwings
- Posts: 3720
- Joined: 25 Oct 2008, 00:23
Re: [LUA/BA] Red Tooltip out of screen
Thanks, both. http://imolarpg.dyndns.org/trac/balatest/ticket/851A way to reproduce
- Silentwings
- Posts: 3720
- Joined: 25 Oct 2008, 00:23
Re: [LUA/BA] Red Tooltip out of screen
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
For me no amount of resizing/maximising/fullscreening and back again resulted in anything going off screen

- Silentwings
- Posts: 3720
- Joined: 25 Oct 2008, 00:23
Re: [LUA/BA] Red Tooltip out of screen
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)
(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
This also happens with "message separator" widget. As a fix, I usually just copy old values back from the config.