Widget: IdleBuilder 2 - Page 2

Widget: IdleBuilder 2

Discuss Lua based Spring scripts (LuaUI widgets, mission scripts, gaia scripts, mod-rules scripts, scripted keybindings, etc...)

Moderator: Moderators

User avatar
jackalope
Posts: 695
Joined: 18 Jun 2006, 22:43

Post by jackalope »

FEATURE REQUEST:

can you make it so that if a builder is idle more than 5 seconds a marker is placed on him that says "lol, nice micro (playername)" or "gg idlebuilder" etc?
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Post by KDR_11k »

trepan wrote:How about feeding those stacktraces to the devs? ;-)
(especially if you have already run them through the converter)
I actually can't remember why I didn't.
chlue
Posts: 101
Joined: 28 Dec 2005, 20:48

Post by chlue »

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.

Image

jackalope your request is a joke? Or do you really wan't a widget that insults the player??
User avatar
NOiZE
Balanced Annihilation Developer
Posts: 3984
Joined: 28 Apr 2005, 19:29

Post by NOiZE »

chlue wrote:jackalope your request is a joke? Or do you really wan't a widget that insults the player??
yes please.
User avatar
ginekolog
Posts: 837
Joined: 27 Feb 2006, 13:49

Post by ginekolog »

chlue wrote:
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?
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.
ty, deleting \LuaUI\Config\widget_data.lua' made it working. Its nice... is it heavier on cpu than ray's?
User avatar
Dihi
Posts: 24
Joined: 13 Feb 2007, 23:01

Post by Dihi »

This does not seem to work in .75 for me. Is anyone else experiencing this? Any chance of an update? :)
chlue
Posts: 101
Joined: 28 Dec 2005, 20:48

Post by chlue »

Dihi wrote:This does not seem to work in .75 for me. Is anyone else experiencing this? Any chance of an update? :)
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.

version that worked in april
vital
Posts: 17
Joined: 08 Jun 2007, 12:40

Post by vital »

nop, this version don't load. I hope you'll find time to update that very usefull widget
chlue
Posts: 101
Joined: 28 Dec 2005, 20:48

Post by chlue »

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.

Code: Select all

[string "LuaUI\Widgets\gui_idle_builders2.lua"]:480: attempt to call field 'GetCameraPos' (a nil value)
Kloot
Spring Developer
Posts: 1867
Joined: 08 Oct 2006, 16:58

Post by Kloot »

That function was renamed to GetCameraPosition() IIRC.
User avatar
Dragon45
Posts: 2883
Joined: 16 Aug 2004, 04:36

Post by Dragon45 »

have it insult player plz.
ZellSF
Posts: 1187
Joined: 08 Jul 2006, 19:07

Post by ZellSF »

Make it moveable, that'd be much more interesting than insults.

edit: also fix right click? or just disable it?
chlue
Posts: 101
Joined: 28 Dec 2005, 20:48

Post by chlue »

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 8)
@ 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?

Image
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Post by KDR_11k »

Your goal should be tweakmode support.
ZellSF
Posts: 1187
Joined: 08 Jul 2006, 19:07

Post by ZellSF »

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 8)
@ 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?

Image
Moving would still work, look at the (buggy) buildbar widget. Though, changing vertical position is good enough for me atm.

I would like a way to change alignment though (choose if new icons appear on the right, left or as they do now)
el_matarife
Posts: 933
Joined: 27 Feb 2006, 02:04

Re: Widget: IdleBuilder 2

Post by el_matarife »

Can anyone take a look at this widget to figure out why it crashes sometimes?
Post Reply

Return to “Lua Scripts”