(Another) New status "bar" - Stat3d

Posted by Faux on Thu 13 Jan 2005 02:41 AM — 6 posts, 30,103 views.

United Kingdom #0
http://faux.sison.nl/stat3d.png

Cube spins randomly and colours pulsate, also randomly.

Pretty nice effect if you ask me :)

Exactly the same code as the UDP sample posted before melded with Nehe's Lesson 14 (http://nehe.gamedev.net/data/lessons/lesson.asp?lesson=14).

If anyone wants the source..

Sample trigger passing data to it:


<triggers>
  <trigger
   enabled="y"
   match="^Your current experience is [0-9]* and you are level ([0-9]+) in .* your overall rating is ([0-9]+)\.$"
   regexp="y"
   send_to="12"
   sequence="100"
  >
  <send>UdpSend("127.0.0.1",4123,"eGL: %1")
UdpSend("127.0.0.1",4123,"fRating: %2")</send>
  </trigger>
</triggers>



etc. etc.



There's a binray.. http://faux.sison.nl/stat3d.zip, and the instructions are as follows:

UdpSend("127.0.0.1",4123,STRING)

Where STRING is a letter between 'a' and 'f', representing the face you want to write too, and the rest is what you want to write.

eg.

UdpSend("127.0.0.1",4123,"fRating: %2")


will write "Rating: " follwed by the second pattern match in your regular expression on the 6th face of the cube.



-- Faux the ....
Amended on Thu 13 Jan 2005 03:08 AM by Faux
USA #1
I wouldn't mind seeing the source.
United Kingdom #2
Don't get on at me for the push/pop whoring... or the removal of all of that gross, bloated c++ stuff..

I built if first in a vc6 project, but then using the m-soft toolkit/sdk (hence the "static" linking of the libs.)

To build it with the sdk and the c++ toolkit proprly installed, all you need to do is, in a command prompt:
cl stat3d.cpp
Easy enough..?

And yeah, also, it is nearly 100% stolen code. See the top.

http://faux.sison.nl/stat3d.cpp.html (140kb)
Amended on Thu 13 Jan 2005 12:56 PM by Faux
United Kingdom #3
Okay, I'm happy that the full set of triggers for Disc are working now:


<triggers>
  <trigger
   enabled="y"
   match="^Hp: ([-0-9]+)\(([-0-9]+)\)  Gp: ([-0-9]+)\(([-0-9]+)\)  Xp: ([-0-9]+)"
   regexp="y"
   send_to="12"
   sequence="96"
  >
  <send>UdpSend("127.0.0.1",4123,"aHp: %1 of %2")
UdpSend("127.0.0.1",4123,"bGp: %3 of %4")
UdpSend("127.0.0.1",4123,"cXp: %5")

</send>
  </trigger>
  <trigger
   enabled="y"
   match="^You are .*burden.* \(([0-9]+)\%\)\.$"
   regexp="y"
   send_to="12"
   sequence="100"
  >
  <send>UdpSend("127.0.0.1",4123,"dBurden: %1\%")</send>
  </trigger>
  <trigger
   enabled="y"
   match="^Your current experience is [0-9]* and you are level ([0-9]+) in .* your overall rating is ([0-9]+)\.$"
   regexp="y"
   send_to="12"
   sequence="100"
  >
  <send>UdpSend("127.0.0.1",4123,"eGL: %1")
UdpSend("127.0.0.1",4123,"fRating: %2")</send>
  </trigger>
</triggers>
Poland #4
Nice nice.. but if MClient window has focus, the Stat3d window gets hidden behind.. how can I get around that?
United Kingdom #5
I'd have to set it to always-on-top, or always-on-top-of-a-window.. which I can't remember how to do.

Maybe I'll look into it.