HUD showing teammates alive.
- wrtlprnft
- Reverse Outside Corner Grinder
- Posts: 1679
- Joined: Wed Jan 04, 2006 4:42 am
- Location: 0x08048000
- Contact:
I attached my edited files, nothing is really ready yet...
My biggest problem is getting the data for the HUD.... I have no idea how to do that... you don't like callbacks and I don't want gHud to care about pumping the data into gHudWidget (and manage the kind of data it needs etc...).
Oh, and your current implementation doesn't seem to handle spectator mode very well...
My biggest problem is getting the data for the HUD.... I have no idea how to do that... you don't like callbacks and I don't want gHud to care about pumping the data into gHudWidget (and manage the kind of data it needs etc...).
Oh, and your current implementation doesn't seem to handle spectator mode very well...
- Attachments
-
- arma.tar.gz
- (10.57 KiB) Downloaded 450 times
I think it looks cool. Good work!
Oh, tank did not get around to do this, but maybe you can: The static function gCycle::MaximalSpeed() can give you the theoretical top speed of a cycle, the one you get when you're permanently between two walls and use the eventual booster to go even higher. It's not perfectly accurate yet, but that can change. Maybe you can use it for the speed meter scale?
Oh, tank did not get around to do this, but maybe you can: The static function gCycle::MaximalSpeed() can give you the theoretical top speed of a cycle, the one you get when you're permanently between two walls and use the eventual booster to go even higher. It's not perfectly accurate yet, but that can change. Maybe you can use it for the speed meter scale?
Try ceil(x/10)*10. You'll probably want to replace the 10 by the largest power of ten that is smaller than MaxSpeed*SomeFactor to cater for really fast and slow servers. SomeFactor should be in the range of .1 to .2, I guess.
Oh, and the only server where MaximalSpeed() was way out of the really reachable range was your race server No walls to take acceleration from, and you're dead (or, in unusual cases, you've won) long before you reach the theoretical maximum turbo speed.
Oh, and the only server where MaximalSpeed() was way out of the really reachable range was your race server No walls to take acceleration from, and you're dead (or, in unusual cases, you've won) long before you reach the theoretical maximum turbo speed.
- Lucifer
- Project Developer
- Posts: 8644
- Joined: Sun Aug 15, 2004 3:32 pm
- Location: Republic of Texas
- Contact:
FIrst look at dtd and resource file for cockpits. COmments welcome and desired.
Currently working with the dtd in the resource/proto directory. Is that the appropriate place? How are we going to organize cockpit resources into the resource system?
Currently working with the dtd in the resource/proto directory. Is that the appropriate place? How are we going to organize cockpit resources into the resource system?
- Attachments
-
- cockpit.tar.gz
- (1.57 KiB) Downloaded 433 times
- Lucifer
- Project Developer
- Posts: 8644
- Joined: Sun Aug 15, 2004 3:32 pm
- Location: Republic of Texas
- Contact:
Real progress. I just commited wrtl's latest, with some tweaks.
@wrtl: make sure you do some cvs updating before you start again. After doing the CXXFLAGS thing zman asked for, I found a number of things that had to be corrected.
DTD for cockpits and the standard cockpit are committed, however, the standard cockpit doesn't actually contain the entire hud that we have. Since it isn't loaded, no problem right now. But it is there for all to see. It's in "used it to write the DTD" shape right now.
For all, tXmlParser is ready to be used in the map parser. It will validate and load a map into the DOM type, which is what gParser does. A few changes will need to be maded to gParser to support it, I don't know the extent of the impact of those changes, so I didn't make them. If philippe can dream up a way to reduce even that without breaking the interface of tXmlParser, fine. Otherwise, it's ready. The SAX interface it provides is thoroughly untested! THe model for use that wrtl's laying down, um, I'm not entirely sure is correct, but I don't think it's blatantly wrong either (nad it was one of my suggestions, so I'll take responsibility for it if it turns out to be wrong). ANyway, gHud inherits it, rather than creating another class and instantiating it within gHud.
So, tXmlParser will do the minimum required of a base class for the map parser, but the interface might need some tweaking. I feel like it's a good interface, but y'all check it out. It should simplify making new resources a bit, but for the DOM mode, not significant. If you use it in the untested SAX mode, then it gives you native armagetron/std data structures instead of libxml2 data structures. I suspect we'll use SAX for the cockpit, that seems like the right parser to use there.
That's it. gHud doesn't actually use the map it loads into memory yet, wrtl went to bed before that happened.
@wrtl: make sure you do some cvs updating before you start again. After doing the CXXFLAGS thing zman asked for, I found a number of things that had to be corrected.
DTD for cockpits and the standard cockpit are committed, however, the standard cockpit doesn't actually contain the entire hud that we have. Since it isn't loaded, no problem right now. But it is there for all to see. It's in "used it to write the DTD" shape right now.
For all, tXmlParser is ready to be used in the map parser. It will validate and load a map into the DOM type, which is what gParser does. A few changes will need to be maded to gParser to support it, I don't know the extent of the impact of those changes, so I didn't make them. If philippe can dream up a way to reduce even that without breaking the interface of tXmlParser, fine. Otherwise, it's ready. The SAX interface it provides is thoroughly untested! THe model for use that wrtl's laying down, um, I'm not entirely sure is correct, but I don't think it's blatantly wrong either (nad it was one of my suggestions, so I'll take responsibility for it if it turns out to be wrong). ANyway, gHud inherits it, rather than creating another class and instantiating it within gHud.
So, tXmlParser will do the minimum required of a base class for the map parser, but the interface might need some tweaking. I feel like it's a good interface, but y'all check it out. It should simplify making new resources a bit, but for the DOM mode, not significant. If you use it in the untested SAX mode, then it gives you native armagetron/std data structures instead of libxml2 data structures. I suspect we'll use SAX for the cockpit, that seems like the right parser to use there.
That's it. gHud doesn't actually use the map it loads into memory yet, wrtl went to bed before that happened.
- 2020
- Outside Corner Grinder
- Posts: 1322
- Joined: Thu Dec 29, 2005 9:21 pm
- Location: the present, finally
brakes?
a little detail:
you know how on some servers
pressing the brake key makes the bike accelerate....
sounds a little pernicket
perhaps we should apply a different name to it
in the same way rubber refers to something to do with closeness to a wall
not sure what might be an alternative
that applies to accelerate and decelerate
however
when thinking back to the film
the guys start holding a rod
and then the bike builds around this
so
how about:
rod
rod and rubber
sounds kind of...
you know how on some servers
pressing the brake key makes the bike accelerate....
sounds a little pernicket
perhaps we should apply a different name to it
in the same way rubber refers to something to do with closeness to a wall
not sure what might be an alternative
that applies to accelerate and decelerate
however
when thinking back to the film
the guys start holding a rod
and then the bike builds around this
so
how about:
rod
rod and rubber
sounds kind of...
hold the line