[ LOGIN | FORUMS HOME ]
play.net: Home · Mobile Mode · Go Play!
Mark as Read
Post Post
Prev_page Previous 1
New Window: Active Spells on 05/26/2015 04:16 PM CDT
Links-arrows 1
Reply Reply
A new addition to the magic system is now available in Prime and Platinum (TF to follow). The active spell window keeps track of spells on you and keeps a more-or-less accurate countdown of how long the spell has until it expires.

Please note that, due to the nature of DragonRealms' engine and a desire to keep the processes this consumes within reason, this window is not to-the-second accurate. It will update every 10 seconds, or when a spell is cast, or when you do a general PERC.

If you are currently in-game while reading this, you will need to log out and log back in to gain access to the new window.

Special thanks goes to GMs Rincius and Zadraes, both helped me navigate the jungle of playing with the game's XML stream, and to the anonymous player who inspired the project.

-Armifer
"Perinthia's astronomers are faced with a difficult choice. Either they must admit that all their calculations were wrong ... or else they must reveal that the order of the gods is reflected exactly in the city of monsters." - Calvino Italo
Reply Reply
Re: New Window: Active Spells on 05/26/2015 04:31 PM CDT
Links-arrows 2
Reply Reply


>If you are currently in-game while reading this, you will need to log out and log back in to gain access to the new window.

Bahaha, man, that confused the hell out of me.

You reach out with your senses and hear pulsating streams of harmonious Elemental mana coursing through the area.
Concentrating harder on the sounds you hear, you can sense immensely less mana to the west, around the same mana to the east, and somewhat less mana to the north.
Glythtide's Joy (Indefinite)
Eillie's Cry (36 roisaen)
You sense the Glythtide's Joy spell upon you, which will last until you fail to provide 15 mana for it.
You sense the Eillie's Cry spell upon you, which will last for about thirty-six roisaen.
You sense the Nexus spell matrix in the area, which will last for about five roisaen.
Roundtime: 5 sec.
Reply Reply
Re: New Window: Active Spells on 05/26/2015 04:31 PM CDT
Links-arrows 3
Reply Reply
OMG YAAAAAAASSSSSSSS!!!!!!

No more having to fish through every single spell for all the possibilities of matches in Genie and creating all those triggers.

I love, love, love, love, love, LOVE anyone and everyone who participated in the making of this!


(Unless this is somehow an April Fool's joke in May, in which case I hate you all.)



Elanthipedia - https://elanthipedia.play.net/mediawiki/index.php/Main_Page
Epedia Admins - https://elanthipedia.play.net/mediawiki/index.php/Elanthipedia:Administrators
Reply Reply
Re: New Window: Active Spells on 05/26/2015 04:32 PM CDT
Links-arrows 4
Reply Reply
P.S. can it include Trader speculates, possibly?



Elanthipedia - https://elanthipedia.play.net/mediawiki/index.php/Main_Page
Epedia Admins - https://elanthipedia.play.net/mediawiki/index.php/Elanthipedia:Administrators
Reply Reply
Re: New Window: Active Spells on 05/26/2015 04:33 PM CDT
Links-arrows 5
Reply Reply


>No more having to fish through every single spell for all the possibilities of matches in Genie and creating all those triggers.

Wait, what? How does this change anything?

Also, as an aside, I think it sucks that Barbs don't get this.
Reply Reply
Re: New Window: Active Spells on 05/26/2015 04:36 PM CDT
Links-arrows 6
Reply Reply
>> Wait, what? How does this change anything?

Livetracking spell durations in Genie before was such a monumental task that I looked at the work involved and flat-out gave up on ever doing it myself. Everyone I talked to who also uses Genie said the same thing.

So that said, if anyone can post how to get this working in Genie I will <3 you forever.



Thayet
Follow @thayelf on Twitter for absolutely nothing of any value whatsoever!
Reply Reply
Re: New Window: Active Spells on 05/26/2015 04:37 PM CDT
Links-arrows 7
Reply Reply
<<Wait, what? How does this change anything?

I used to track this manually with variables and created my own output window in Genie, but now I can just match off the window's html output without all the effort.

That said, I can't seem to get it to work in Genie atm. Trying with SF to see if it's any different.



Elanthipedia - https://elanthipedia.play.net/mediawiki/index.php/Main_Page
Epedia Admins - https://elanthipedia.play.net/mediawiki/index.php/Elanthipedia:Administrators
Reply Reply
Re: New Window: Active Spells on 05/26/2015 04:42 PM CDT
Links-arrows 8
Reply Reply
Okay, to get it working in Genie, just create a window called 'percWindow' and open that. The stream pushes to a window named that, but the game autocreates one called Active Spells.

If you want to get fancy, you can probably set up a trigger to echo everything in percWindow to Active Spells if you care about the window's name. I'm not going to bother.




Elanthipedia - https://elanthipedia.play.net/mediawiki/index.php/Main_Page
Epedia Admins - https://elanthipedia.play.net/mediawiki/index.php/Elanthipedia:Administrators
Reply Reply
Re: New Window: Active Spells on 05/26/2015 04:45 PM CDT
Links-arrows 9
Reply Reply
Arg, I need a bigger monitor.



Never attribute to malice that which is adequately explained by stupidity.
Reply Reply
Re: New Window: Active Spells on 05/26/2015 04:50 PM CDT
Links-arrows 11
Reply Reply
>>Also, as an aside, I think it sucks that Barbs don't get this.

https://www.youtube.com/watch?v=Bcg5rN-jlaw

-Armifer
"Perinthia's astronomers are faced with a difficult choice. Either they must admit that all their calculations were wrong ... or else they must reveal that the order of the gods is reflected exactly in the city of monsters." - Calvino Italo
Reply Reply
Re: New Window: Active Spells on 05/26/2015 05:20 PM CDT
Links-arrows 12
Reply Reply


>https://www.youtube.com/watch?v=Bcg5rN-jlaw

Can ah get ah I say can ah get an Amen brother Armifer?!

>I can just match off the window's html output without all the effort.

You have out client-fu'd me.
Reply Reply
Re: New Window: Active Spells on 05/26/2015 05:20 PM CDT
Links-arrows 13
Reply Reply
>>Okay, to get it working in Genie, just create a window called 'percWindow' and open that. The stream pushes to a window named that, but the game autocreates one called Active Spells.
>>If you want to get fancy, you can probably set up a trigger to echo everything in percWindow to Active Spells if you care about the window's name. I'm not going to bother.

If you relog without creating a new window, Genie will create a window with the percWindow ID and the "Active Spells" title. If you created your own percWindow save your layout and I bet you can just go into your .layout file and change the title there, would end up being the same thing.

- Player of Saracus

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Elanthiprofiles - http://elanthiprofiles.com - Show off your numbers!
Outlander - http://outlanderapp.com - Mac game client.
Reply Reply
Re: New Window: Active Spells on 05/26/2015 05:31 PM CDT
Links-arrows 14
Reply Reply
<If you relog without creating a new window, Genie will create a window with the percWindow ID and the "Active Spells" title. If you created your own percWindow save your layout and I bet you can just go into your .layout file and change the title there, would end up being the same thing.

It did this. It wasn't functioning, so I had to recreate a new window manually from scratch. I'll try going into the layout to change the display name, however, see if that works.

I've almost got a set of triggers functioning to match and store all the duration data which we can use to trigger with like with other global variables like experience rates, states of being, etc. I'll post it in a bit. Just working out how best to manage tracking durations ending.



Elanthipedia - https://elanthipedia.play.net/mediawiki/index.php/Main_Page
Epedia Admins - https://elanthipedia.play.net/mediawiki/index.php/Elanthipedia:Administrators
Reply Reply
Re: New Window: Active Spells on 05/26/2015 06:17 PM CDT
Links-arrows 15
Reply Reply

Anyone know how this works, if it works, with OM?
Reply Reply
Re: New Window: Active Spells on 05/26/2015 06:28 PM CDT
Links-arrows 16
Reply Reply
Okay got something cobbled together for Genie tracking of spells using the raw feed data. It only requires two genie triggers:

#trigger {<clearStream id="percWindow"/>} {#var Spell.ClearVariableCommand {#eval {replacere($Spell.ClearVariableCommand,"~",";")}};#send $Spell.ClearVariableCommand;#var Spell.ClearVariableCommand ""}

#trigger {<pushStream id="percWindow"/>(.+)<popStream/><pushStream id="percWindow"/> \((\d+|Indefinite)(| )(.*)\)} {#var tempSpell {#eval {replacere($1," ","")}};#var Spell.$tempSpell.isActive 1;#var Spell.$tempSpell.duration $2;#if {$4} {#var Spell.$tempSpell.unit $4};#var Spell.ClearVariableCommand $Spell.ClearVariableCommand#var Spell.$tempSpell.isActive 0~;#var Spell.ClearVariableCommand $Spell.ClearVariableCommand#var Spell.$tempSpell.duration 0~}

This saves the following variables):
Spell.SpellName.isActive (binary value - 1=true 0=false)
Spell.SpellName.duration (standard spell=raw number, cyclic=Indefinite)
Spell.SpellName.unit (standard spell=roisaen, anlas, etc., cyclic=n/a)

Note: SpellName is the full name of the spell with sentence capitalization and spaces removed (e.g. ClearVision, or StepsofVuan, or InvocationoftheSpheres.) This should work for any spell or ability that appears in the window, unless there's some different duration messaging I'm not aware of.

It also creates two additional variables (temp.Spell and Spell.ClearVariableCommand) but these are purely functional to the trigger itself and has no use for the user directly, so you can ignore them.



Elanthipedia - https://elanthipedia.play.net/mediawiki/index.php/Main_Page
Epedia Admins - https://elanthipedia.play.net/mediawiki/index.php/Elanthipedia:Administrators
Reply Reply
Re: New Window: Active Spells on 05/26/2015 06:31 PM CDT
Links-arrows 17
Reply Reply
Oh, this only works if 'Show Raw Data' is enabled. I'm experimenting with ways to do it without having it enabled, since it causes issues with automapper when enabled.



Elanthipedia - https://elanthipedia.play.net/mediawiki/index.php/Main_Page
Epedia Admins - https://elanthipedia.play.net/mediawiki/index.php/Elanthipedia:Administrators
Reply Reply
Re: New Window: Active Spells on 05/26/2015 06:37 PM CDT
Links-arrows 18
Reply Reply
>Anyone know how this works, if it works, with OM?


Osrel Meraud (Fading)
Hydra Hex (Indefinite)
Major Physical Protection (3 roisaen)
Minor Physical Protection (3 roisaen)
Benediction (4 roisaen)
Shield of Light (8042 roisaen)
Persistence of Mana (8021 roisaen)

Notice, the OM orb was not nearly expired. SoL and PoM are all I have in the orb right now.
Reply Reply
Re: New Window: Active Spells on 05/26/2015 06:42 PM CDT
Links-arrows 19
Reply Reply


>this only works if 'Show Raw Data' is enabled. I'm experimenting with ways to do it without having it enabled, since it causes issues with automapper when enabled.

Plugin would be the best way
Reply Reply
Re: New Window: Active Spells on 05/26/2015 06:44 PM CDT
Links-arrows 20
Reply Reply


So I'm guessing OM will always show as fading? That should probably be more like a cyclic, indefinite duration since it will still be there even if it doesn't have power to support spells. Surely the duration on sol and Pom aren't accurate either
Reply Reply
Re: New Window: Active Spells on 05/26/2015 06:47 PM CDT
Links-arrows 21
Reply Reply
<<Plugin would be the best way

Yeah, unfortunately I'm not versed in plug-in creation.

<<Osrel Meraud (Fading)

I'll add this to the duration parse.



Elanthipedia - https://elanthipedia.play.net/mediawiki/index.php/Main_Page
Epedia Admins - https://elanthipedia.play.net/mediawiki/index.php/Elanthipedia:Administrators
Reply Reply
Re: New Window: Active Spells on 05/26/2015 06:50 PM CDT
Links-arrows 22
Reply Reply
Some spells are going to need custom messaging due to how they function, OM is one, Moonblade slivers (which function as a spell, for purposes of tracking) are another. We'll get to them as we can.

-Armifer
"Perinthia's astronomers are faced with a difficult choice. Either they must admit that all their calculations were wrong ... or else they must reveal that the order of the gods is reflected exactly in the city of monsters." - Calvino Italo
Reply Reply
Re: New Window: Active Spells on 05/26/2015 06:52 PM CDT
Links-arrows 23
Reply Reply
<<<If you relog without creating a new window, Genie will create a window with the percWindow ID and the "Active Spells" title. If you created your own percWindow save your layout and I bet you can just go into your .layout file and change the title there, would end up being the same thing.

I investigated this further, and it appears to automatically create a window titled 'Active Spells' with the ID of 'percwindow' instead of 'percWindow'. Therein seems to be the issue.



Elanthipedia - https://elanthipedia.play.net/mediawiki/index.php/Main_Page
Epedia Admins - https://elanthipedia.play.net/mediawiki/index.php/Elanthipedia:Administrators
Reply Reply
Re: New Window: Active Spells on 05/26/2015 06:55 PM CDT
Links-arrows 24
Reply Reply
>>It did this. It wasn't functioning, so I had to recreate a new window manually from scratch. I'll try going into the layout to change the display name, however, see if that works.

You're right, the one Genie auto-makes has an uppercase id. It looks like it needs to be lowercase for it to work. I was able to edit the title after it was initially created and have it still work.

- Player of Saracus

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Elanthiprofiles - http://elanthiprofiles.com - Show off your numbers!
Outlander - http://outlanderapp.com - Mac game client.
Reply Reply
Re: New Window: Active Spells on 05/26/2015 06:58 PM CDT
Links-arrows 25
Reply Reply
OM, and related spells should show up a little nicer now.

ASGM Ricinus
Core, Logistics, Survival
Cleric Advocate
Reply Reply
Re: New Window: Active Spells on 05/26/2015 06:59 PM CDT
Links-arrows 26
Reply Reply
Oh, also TKS slivers should be better.

ASGM Ricinus
Core, Logistics, Survival
Cleric Advocate
Reply Reply
Re: New Window: Active Spells on 05/26/2015 07:07 PM CDT
Links-arrows 27
Reply Reply
>>I investigated this further, and it appears to automatically create a window titled 'Active Spells' with the ID of 'percwindow' instead of 'percWindow'. Therein seems to be the issue.

Yeah, messing with this more Genie seems to be treating it weird. Just having a window named percWindow seems to work best.

- Player of Saracus

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Elanthiprofiles - http://elanthiprofiles.com - Show off your numbers!
Outlander - http://outlanderapp.com - Mac game client.
Reply Reply
Re: New Window: Active Spells on 05/26/2015 07:13 PM CDT
Links-arrows 29
Reply Reply
Other option for triggers:

http://pastebin.com/6Jm6eWA8

Strips out spaces and apostrophes and will do everything in minutes. They also don't do the .isActive variable because you can just use "if $spellname.timeRemaining > 0" instead, and it's maybe better to create fewer variables.



Thayet
Follow @thayelf on Twitter for absolutely nothing of any value whatsoever!
Reply Reply
Re: New Window: Active Spells on 05/26/2015 07:30 PM CDT
Links-arrows 30
Reply Reply
<<Strips out spaces and apostrophes and will do everything in minutes. They also don't do the .isActive variable because you can just use "if $spellname.timeRemaining > 0" instead, and it's maybe better to create fewer variables.

I thought about doing that, but Fading doesn't actually mean duration is 0, just that it's less than 1 roisaen. In most cases that won't be an issue, but there are non-replaceable spells out there that would butt up against that in scripting or macro situations.

I also chose to use Spell.SpellName as the variable naming structure simply because it helps keep all the spell variables together for sorting and reading purposes when going through my full list of variables. I'm a big fan of categorizing variables this way for organizational purposes, since variables don't have classes. (I modelled it after the Time.Tracker variables, fwiw.) I do like converting the durations all to roisaen like you have there, so I can definitely strip the unit variable. Two variables for each spell isn't a huge number, so I'll work that into my triggers for sure. Also, good catch about the apostrophes. I'll make sure to adjust mine for that as well.

I'm doing a bit of research now on how to create a plugin, which doesn't seem too difficult relatively speaking. This time of year, however, is crazy busy for me with the fest and real life, so I'm not sure I can actually get to it within the next two to three weeks. I would not be hurt at all if someone wanted to take my triggers and convert them into a plug-in.



Elanthipedia - https://elanthipedia.play.net/mediawiki/index.php/Main_Page
Epedia Admins - https://elanthipedia.play.net/mediawiki/index.php/Elanthipedia:Administrators
Reply Reply
Re: New Window: Active Spells on 05/26/2015 07:54 PM CDT
Links-arrows 31
Reply Reply


>OM, and related spells should show up a little nicer now.

That was fast. Osrel Meraud still shows up as fading, but the spells in it show as '(OM)'

Neat! I really like this addition, thanks guys!
Reply Reply
Re: New Window: Active Spells on 05/26/2015 09:08 PM CDT
Links-arrows 32
Reply Reply
Can we get that for NMUs, please?



IM: Dannyboy00001111

"Fool proof system do not take into account the ingenuity of fools, nor the power of numbers."
Reply Reply
Re: New Window: Active Spells on 05/26/2015 09:17 PM CDT
Links-arrows 33
Reply Reply
Armifer, I have a question. Before I logged out and back in, I got the duration messages popping up in the story window every 10 seconds. After logging, they don't show up there at all, whether the Active Spells window is open or closed. Is this how it's intended to work?

If so, can we at least have the (fading) message sent to the main story window? I'd love to just highlight that so I know when to re-buff. I don't really have any room for more windows on my laptop. =(
Reply Reply
Re: New Window: Active Spells on 05/26/2015 09:28 PM CDT
Links-arrows 34
Reply Reply
>>Armifer, I have a question. Before I logged out and back in, I got the duration messages popping up in the story window every 10 seconds. After logging, they don't show up there at all, whether the Active Spells window is open or closed. Is this how it's intended to work?

If you're using Genie, the default Active Spells will not work, apparently due to how Genie handles naming windows/identifying XML streams. There's been some discussion of fixes in this very thread.

If you're using StormFront, I dunno. That's the first time I've heard of it not working.

>>If so, can we at least have the (fading) message sent to the main story window?

I'll give it some thought, but my gut response is "No."

-Armifer
"Perinthia's astronomers are faced with a difficult choice. Either they must admit that all their calculations were wrong ... or else they must reveal that the order of the gods is reflected exactly in the city of monsters." - Calvino Italo
Reply Reply
Re: New Window: Active Spells on 05/26/2015 09:40 PM CDT
Links-arrows 35
Reply Reply
<<After logging, they don't show up there at all, whether the Active Spells window is open or closed. Is this how it's intended to work?

Nothing is supposed to echo to the game window at all. So yes, it is working as intended.



Elanthipedia - https://elanthipedia.play.net/mediawiki/index.php/Main_Page
Epedia Admins - https://elanthipedia.play.net/mediawiki/index.php/Elanthipedia:Administrators
Reply Reply
Re: New Window: Active Spells on 05/26/2015 09:51 PM CDT
Links-arrows 36
Reply Reply
>>I'll give it some thought, but my gut response is "No."

Thanks for the quick response. Are you able to elaborate on why you think it's probably a no?
Reply Reply
Re: New Window: Active Spells on 05/26/2015 10:54 PM CDT
Links-arrows 37
Reply Reply
Thieves have stolen the secrets of the Active Spells window. Those buggers.

ASGM Ricinus
Core, Logistics, Survival
Cleric Advocate
Reply Reply
Re: New Window: Active Spells on 05/26/2015 11:07 PM CDT
Links-arrows 38
Reply Reply
<<Thieves

Yay!



Elanthipedia - https://elanthipedia.play.net/mediawiki/index.php/Main_Page
Epedia Admins - https://elanthipedia.play.net/mediawiki/index.php/Elanthipedia:Administrators
Reply Reply
Re: New Window: Active Spells on 05/26/2015 11:39 PM CDT
Links-arrows 40
Reply Reply


Are Barbarians in this update?? Don't see anything.
Reply Reply
Re: New Window: Active Spells on 05/26/2015 11:51 PM CDT
Links-arrows 41
Reply Reply
A post was removed.


..also...
>>Are Barbarians in this update?? Don't see anything.

No, this covered Thieves. They were easy to add to the system, so they were easily added.

ASGM Ricinus
Core, Logistics, Survival
Cleric Advocate
Reply Reply
Re: New Window: Active Spells on 05/26/2015 11:54 PM CDT
Links-arrows 42
Reply Reply
Someone created a Genie plugin that creates variables for the spell status and spell duration: http://www.genieclient.com/bulletin/files/file/202-spelltimer/

Note: The new active spells window works fine in Genie without this plugin. Use the plugin if you want to be able to set and check variables for spell status and duration within your scripts.

How to use the active spell functionality in Genie (no plugin needed)

1. In Genie, go to Edit->Configuration
2. Click the Windows tab.
3. Click the Add button.
4. Where it says Title, enter "percWindow" (without the quotation marks)
5. Check the box labeled "Time Stamp Output."
6. DO NOT CHECK the box labeled "Name List Only."
7. Change the font and color if you want.
8. Click Apply
9. Click OK
10. Arrange the windows how you want them.
11. Layout -> Save Default Layout



Mr. Gorbachev, tear down this wall rank!

Vote for DragonRealms on Top MUD Sites: http://www.topmudsites.com/vote-DragonRealms.html
Reply Reply
Re: New Window: Active Spells on 05/27/2015 12:07 AM CDT
Links-arrows 43
Reply Reply
>>Are Barbarians in this update?? Don't see anything.

No, this covered Thieves. They were easy to add to the system, so they were easily added.<<<


So BMR?
Reply Reply
Post Post
Prev_page Previous 1
Mark as Read