Widget: IdleBuilder 2
Moderator: Moderators
I changed a lot of the internal behavior. No new features, but if this widget really could cause spring to crash, then the chance should be a lot lower now.
There are possible some bugs left, so I need player who try it out and post the eventual errors here.

jackalope your request is a joke? Or do you really wan't a widget that insults the player??
There are possible some bugs left, so I need player who try it out and post the eventual errors here.

jackalope your request is a joke? Or do you really wan't a widget that insults the player??
ty, deleting \LuaUI\Config\widget_data.lua' made it working. Its nice... is it heavier on cpu than ray's?chlue wrote:If there is something wrong with your config, you can try deleting the file '\LuaUI\Config\widget_data.lua'. If you do this you will lose at least the configuration of the widgets 'FPS' and 'Message Separator', too. So you should make a backup of this file if you use a lot of other widgets.ginekolog wrote:This one does not work for me, so i still use rays script. When i deactivate rays and turn on yours, it just does nothing. No indication of idlers.
Doing sth wrong here?
I didn't find the nerve to try to get spring working under linux since I switched to it. I have a version that worked with the svn build from april. You can try if it works with the current release, too. I will look into it the next days.Dihi wrote:This does not seem to work in .75 for me. Is anyone else experiencing this? Any chance of an update? :)
version that worked in april
Ok I tried to fix the problems.
So far the main part of the widgets seem to be working again.
What does not work:
- select nearst unit of this category
- the autobuild stuff is broken (guarding of factories works)
I didn't understand what happend to "Spring.GetCameraPos()". It is still in the api.txt, but does not work anymore. When anyone tell me how to replace this command the "select nearst unit of this category" will work again.
You can download IdleBuilder 2.3 BETA here.
I didn't test it in a real game, so there a probalby more errors. If you encounter one, please post the linenumber (if you are nice with a short description why and when) here. The errormessages can be found in the file "infolog.txt". As mentionend about, I am currently aware of this error.
So far the main part of the widgets seem to be working again.
What does not work:
- select nearst unit of this category
- the autobuild stuff is broken (guarding of factories works)
I didn't understand what happend to "Spring.GetCameraPos()". It is still in the api.txt, but does not work anymore. When anyone tell me how to replace this command the "select nearst unit of this category" will work again.
You can download IdleBuilder 2.3 BETA here.
I didn't test it in a real game, so there a probalby more errors. If you encounter one, please post the linenumber (if you are nice with a short description why and when) here. The errormessages can be found in the file "infolog.txt". As mentionend about, I am currently aware of this error.
Code: Select all
[string "LuaUI\Widgets\gui_idle_builders2.lua"]:480: attempt to call field 'GetCameraPos' (a nil value)
Ok I uploaded the last version as 2.3 to uf. The autobuild stuff is still broken, but I doubt it is usefull anyway. I changed the widget name, so it will create a new config. If you wan't to use your old config, you have to change "widget_data.lua", but we warned if your old config include some autobuild stuff, strange things might occur.
@ Kloot: Yes GetCameraPosition() works, thanks.
@ Dragon45: request reviewed and denied
@ ZellSF > "Make it moveable":
The widget centers itself horizontal on the screen (If you want to mess with the centering, you currently need to change line 186). If you want to change the vertical placement, this is allready possible. Just enter: /luaui v_pos <new spacing from bottom>. So if you enter "/luaui 100" ingame, the widget will start 100px from the bottom of the screen. Making it freely moveable will be a bit tricky, because the widget changes its dimensions dynamical. Do you need more controll?

@ Kloot: Yes GetCameraPosition() works, thanks.
@ Dragon45: request reviewed and denied

@ ZellSF > "Make it moveable":
The widget centers itself horizontal on the screen (If you want to mess with the centering, you currently need to change line 186). If you want to change the vertical placement, this is allready possible. Just enter: /luaui v_pos <new spacing from bottom>. So if you enter "/luaui 100" ingame, the widget will start 100px from the bottom of the screen. Making it freely moveable will be a bit tricky, because the widget changes its dimensions dynamical. Do you need more controll?

Moving would still work, look at the (buggy) buildbar widget. Though, changing vertical position is good enough for me atm.chlue wrote:Ok I uploaded the last version as 2.3 to uf. The autobuild stuff is still broken, but I doubt it is usefull anyway. I changed the widget name, so it will create a new config. If you wan't to use your old config, you have to change "widget_data.lua", but we warned if your old config include some autobuild stuff, strange things might occur.
@ Kloot: Yes GetCameraPosition() works, thanks.
@ Dragon45: request reviewed and denied![]()
@ ZellSF > "Make it moveable":
The widget centers itself horizontal on the screen (If you want to mess with the centering, you currently need to change line 186). If you want to change the vertical placement, this is allready possible. Just enter: /luaui v_pos <new spacing from bottom>. So if you enter "/luaui 100" ingame, the widget will start 100px from the bottom of the screen. Making it freely moveable will be a bit tricky, because the widget changes its dimensions dynamical. Do you need more controll?
I would like a way to change alignment though (choose if new icons appear on the right, left or as they do now)
-
- Posts: 933
- Joined: 27 Feb 2006, 02:04
Re: Widget: IdleBuilder 2
Can anyone take a look at this widget to figure out why it crashes sometimes?