[Home] [Downloads] [Search] [Help/forum]


Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  Tips and tricks
. . -> [Subject]  (Another) New status "bar" - Stat3d

(Another) New status "bar" - Stat3d

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page


Posted by Faux   United Kingdom  (77 posts)  [Biography] bio
Date Thu 13 Jan 2005 02:41 AM (UTC)

Amended on Thu 13 Jan 2005 03:08 AM (UTC) by Faux

Message
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 ....

Faux, from Discworld. Feel free to come talk to me =)

http://faux.servebeer.com/
[Go to top] top

Posted by Shadowfyr   USA  (1,786 posts)  [Biography] bio
Date Reply #1 on Thu 13 Jan 2005 04:04 AM (UTC)
Message
I wouldn't mind seeing the source.
[Go to top] top

Posted by Faux   United Kingdom  (77 posts)  [Biography] bio
Date Reply #2 on Thu 13 Jan 2005 12:54 PM (UTC)

Amended on Thu 13 Jan 2005 12:56 PM (UTC) by Faux

Message
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)

Faux, from Discworld. Feel free to come talk to me =)

http://faux.servebeer.com/
[Go to top] top

Posted by Faux   United Kingdom  (77 posts)  [Biography] bio
Date Reply #3 on Thu 13 Jan 2005 01:15 PM (UTC)
Message
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>

Faux, from Discworld. Feel free to come talk to me =)

http://faux.servebeer.com/
[Go to top] top

Posted by Scypio   Poland  (50 posts)  [Biography] bio
Date Reply #4 on Fri 14 Jan 2005 04:27 PM (UTC)
Message
Nice nice.. but if MClient window has focus, the Stat3d window gets hidden behind.. how can I get around that?
[Go to top] top

Posted by Faux   United Kingdom  (77 posts)  [Biography] bio
Date Reply #5 on Fri 14 Jan 2005 06:31 PM (UTC)
Message
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.

Faux, from Discworld. Feel free to come talk to me =)

http://faux.servebeer.com/
[Go to top] top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


21,860 views.

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at HostDash]