Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ MUSHclient
➜ Tips and tricks
➜ (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 page
Posted by
| Faux
United Kingdom (77 posts) 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/ | Top |
|
Posted by
| Shadowfyr
USA (1,791 posts) Bio
|
Date
| Reply #1 on Thu 13 Jan 2005 04:04 AM (UTC) |
Message
| I wouldn't mind seeing the source. | Top |
|
Posted by
| Faux
United Kingdom (77 posts) 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: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/ | Top |
|
Posted by
| Faux
United Kingdom (77 posts) 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/ | Top |
|
Posted by
| Scypio
Poland (50 posts) 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? | Top |
|
Posted by
| Faux
United Kingdom (77 posts) 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/ | 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.
24,390 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top