LEDZ widgets: nukeTracker.lua
Moderator: Moderators
Re: LEDZ widgets: nukeTracker.lua
how about adding map/minimap tracking to it as well ? (by displaying a special symbol for it while in air, think defcon)
- Forboding Angel
- Evolution RTS Developer
- Posts: 14673
- Joined: 17 Nov 2005, 02:43
Re: LEDZ widgets: nukeTracker.lua
Nice! I can haz sauce?
Re: LEDZ widgets: nukeTracker.lua
This widget will be released along with others once I have cleaned up the code :)
Gajop, do you know how I could track the missile? I'm not sure of how to get the projectileID for instance.
Gajop, do you know how I could track the missile? I'm not sure of how to get the projectileID for instance.
- Forboding Angel
- Evolution RTS Developer
- Posts: 14673
- Joined: 17 Nov 2005, 02:43
Re: LEDZ widgets: nukeTracker.lua
For maximum awesomeness, allow the indicator to be animated (multiple image frames).
Re: LEDZ widgets: nukeTracker.lua
Thanks Beherith, but how do I get a projectileID from a firing silo?
Forboding Angel: You mean a moving animation on the minimap?
I'm literally just learning to use openGL stuff so bare with me on that one.
Forboding Angel: You mean a moving animation on the minimap?
I'm literally just learning to use openGL stuff so bare with me on that one.
Re: LEDZ widgets: nukeTracker.lua
When the silo fires, do a Spring.GetProjectilesInRectangle for whole map.
It will be called armsilo_armsilomissile or something, then you have its ID. Spring.GetProjectileName
When the projectile becomes invalid (position check returns nil) the nuke went boom.
Whatever you do, dont call GetProjectilesInRectangle every frame for whole map!
It will be called armsilo_armsilomissile or something, then you have its ID. Spring.GetProjectileName
When the projectile becomes invalid (position check returns nil) the nuke went boom.
Whatever you do, dont call GetProjectilesInRectangle every frame for whole map!
Re: LEDZ widgets: nukeTracker.lua
http://springrts.com/wiki/LuaCallinReturn#Projectiles: ?Beherith wrote:When the silo fires, do a Spring.GetProjectilesInRectangle for whole map.
Re: LEDZ widgets: nukeTracker.lua
Or yeah, dont be a tard like me and follow knorke's advice :)
Thanks!
Thanks!
Re: LEDZ widgets: nukeTracker.lua
I've tried out the projectile call-ins before. You need to set the watch weaponsID which I could only do via a gadget IIRC.
Am I missing something here?
Am I missing something here?
Re: LEDZ widgets: nukeTracker.lua
Show additional messages when nuke was successful / failed.
Nice job!
Nice job!
Re: LEDZ widgets: nukeTracker.lua
Now has a nice GUI box.
http://www.youtube.com/watch?v=Y_gFnLDhwtw
I have a couple of issues to sort out before I release it though, perhaps someone could help:
The sounds have been borrowed from a few sources which means they violate copyright. I believe the "missile launch sensors online" will be ok (recut voice of CABAL from CnC Tiberian Sun). However, "nuclear missile ready" is from CnC 3 and some of the sounds are from DEFCON (naturally). So will need to replace these.
Also, the missile itself is tracked by gettings its ID via Spring.GetProjectilesInRectangle(wholeMap) in a widget:StockpileChanged call-in. This sometimes fails and I can only reason that sometimes the projectile appears a gameframe after the stockpile on the silo decreases. Again, any sagacity thrown below will help massively!
http://www.youtube.com/watch?v=Y_gFnLDhwtw
I have a couple of issues to sort out before I release it though, perhaps someone could help:
The sounds have been borrowed from a few sources which means they violate copyright. I believe the "missile launch sensors online" will be ok (recut voice of CABAL from CnC Tiberian Sun). However, "nuclear missile ready" is from CnC 3 and some of the sounds are from DEFCON (naturally). So will need to replace these.
Also, the missile itself is tracked by gettings its ID via Spring.GetProjectilesInRectangle(wholeMap) in a widget:StockpileChanged call-in. This sometimes fails and I can only reason that sometimes the projectile appears a gameframe after the stockpile on the silo decreases. Again, any sagacity thrown below will help massively!
Re: LEDZ widgets: nukeTracker.lua
Looks really great!
Don't know what to do with sounds.. I propose to find a girl with a sexy voice and ask her to say these texts like in orgasm :-D I am serious :-D wanna sexy voice
Don't know what to do with sounds.. I propose to find a girl with a sexy voice and ask her to say these texts like in orgasm :-D I am serious :-D wanna sexy voice
Re: LEDZ widgets: nukeTracker.lua
Lolz Jamerlan.
"nukeTracker (sexy-bitch remix by Jamerlan)" is on the to-do.
"nukeTracker (sexy-bitch remix by Jamerlan)" is on the to-do.
Re: LEDZ widgets: nukeTracker.lua
Here is a beta version of the widget with sounds included (note these sounds include game ripped files) just for examples of eventual functionality.
http://www.mediafire.com/?2o5uiidfs56ksqt
http://www.mediafire.com/?2o5uiidfs56ksqt
- Forboding Angel
- Evolution RTS Developer
- Posts: 14673
- Joined: 17 Nov 2005, 02:43
Re: LEDZ widgets: nukeTracker.lua
Make gui optional (otherwise I have to dig into it and rip it out myself and I'd rather not).
Successful nuke sound, and Failed nuke sound.
Edit: The gui is neat, but the issue is for games that use ChiliGUI, we basically have to go in and remove it, which is a shame.
Successful nuke sound, and Failed nuke sound.
Edit: The gui is neat, but the issue is for games that use ChiliGUI, we basically have to go in and remove it, which is a shame.
Re: LEDZ widgets: nukeTracker.lua
What about ChiliGUI interferes with the GUI I made?The gui is neat, but the issue is for games that use ChiliGUI, we basically have to go in and remove it, which is a shame.
- Forboding Angel
- Evolution RTS Developer
- Posts: 14673
- Joined: 17 Nov 2005, 02:43
Re: LEDZ widgets: nukeTracker.lua
Honestly? The entire thing :-/
However, making gui in chili is apparently the easiest thing you will ever do (one of the reasons why some lua people only make things that are compatible with chili).
However, making gui in chili is apparently the easiest thing you will ever do (one of the reasons why some lua people only make things that are compatible with chili).
Re: LEDZ widgets: nukeTracker.lua
Are there actually things that interfere, as in things break in the widget and/or chilli if both are enabled? Or is it more a matter of it not being consistent graphically/interactively/etc.Forboding Angel wrote:Honestly? The entire thing :-/
However, making gui in chili is apparently the easiest thing you will ever do (one of the reasons why some lua people only make things that are compatible with chili).