Geo Highlight widget no worky in spring 94.1

Geo Highlight widget no worky in spring 94.1

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

Moderator: Moderators

Post Reply
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Geo Highlight widget no worky in spring 94.1

Post by Forboding Angel »

User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: Geo Highlight widget no worky in spring 94.1

Post by knorke »

posted widget worked when copied into empty mod, works in ba too (i assume its the same)
disable other widgets to test
User avatar
very_bad_soldier
Posts: 1397
Joined: 20 Feb 2007, 01:10

Re: Geo Highlight widget no worky in spring 94.1

Post by very_bad_soldier »

It often helps to say what happened exactly when you got the feeling it was not working. If Lua errors appear in the log post them.
Otherwise people will have no idea what you mean when you just say "no worky! wai?".
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Geo Highlight widget no worky in spring 94.1

Post by Forboding Angel »

No errors. Just doesn't work in 94.1 Works fine for me in 91.

I'll see if I can find some sort of conflict.

Sorry, my fault. Easy metal is blocking it. I don't understand what would have changed with spGetMapDrawMode() between 91 and 94.1 to cause it to stop working. That's frustrating :-(.
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: Geo Highlight widget no worky in spring 94.1

Post by knorke »

The change is you copypasted a wupget that toggles back ShowMetalMap as soon as metalview is activated.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Geo Highlight widget no worky in spring 94.1

Post by Forboding Angel »

I didn't copy paste anything. This is not my widget. I was pointing out that apparently spGetMapDrawMode() doesn't work the same way in 94.1 as it does in 91.
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: Geo Highlight widget no worky in spring 94.1

Post by knorke »

can you check if beside spGetMapDrawMode the F4 key was broken too?
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Geo Highlight widget no worky in spring 94.1

Post by Forboding Angel »

No, it's working fine. Like I said, easymetal is somehow causing interference.

https://code.google.com/p/evolutionrts/ ... al.lua#404

https://code.google.com/p/evolutionrts/ ... eos.lua#61

Both the widget and the gadget use that call. Ideally, they shouldn't conflict, and in 91 it was no problem, but for some reason, in 94.1, only easymetal shows.
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: Geo Highlight widget no worky in spring 94.1

Post by knorke »

what does look like when f4
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Geo Highlight widget no worky in spring 94.1

Post by Forboding Angel »

Little yellow circles of easymetal, and nothing on geos.
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: Geo Highlight widget no worky in spring 94.1

Post by knorke »

where did green go
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Geo Highlight widget no worky in spring 94.1

Post by Forboding Angel »

Easymetal replaces teh green with little yellow circles, and disallows placement of mexes anywhere but on a metal spot.
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: Geo Highlight widget no worky in spring 94.1

Post by knorke »

yes but the green where did go
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Geo Highlight widget no worky in spring 94.1

Post by Forboding Angel »

Commenting out this line: https://code.google.com/p/evolutionrts/ ... al.lua#405

Causes the geos highlight to show, but the yellow circles flicker like crazy
User avatar
CarRepairer
Cursed Zero-K Developer
Posts: 3359
Joined: 07 Nov 2007, 21:48

Re: Geo Highlight widget no worky in spring 94.1

Post by CarRepairer »

Like I said, the two are compatible and never have been. There is no way they worked together in spring 91, which I tested. Either the gadget needs updating, or the widget does.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Geo Highlight widget no worky in spring 94.1

Post by Forboding Angel »

They worked for me though, I even have some video somewhere of it working, but whatever.

Are not compatible doesn't mean that they couldn't be made to be compatible though.

They are obviously capable of being displayed at the same time.

Edit: Oops, that's what you just said.
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: Geo Highlight widget no worky in spring 94.1

Post by knorke »

like i said its because the easy wupget toggles back ShowMetalMap as soon as metalview is activated. so when something else wants to read it is already toggled back. spGetMapDrawMode did not change between 91 and 94
Post Reply

Return to “Lua Scripts”