RPGObjects.com
http://www.rpgobjects.com/forum/

Filter Issues
http://www.rpgobjects.com/forum/viewtopic.php?f=4&t=1594
Page 1 of 1

Author:  Feldherren [ Sun Feb 13, 2011 9:48 pm ]
Post subject:  Filter Issues

Skip to the bottom for tl;dr-ness.

So despite some issues getting OpenRPG installed on my new computer, I finally succeeded. Further issues ensued with the alias library window crashing and making all of OpenRPG unresponsive save for the quit button - how considerate - until I updated to the beta version.

My problem is with filter behaviour. I tried setting up a filter that would replace or remove letters in messages to represent a different language. For instance, 'Cleverness of the Vortex' should work out as 'Csuusrurr a su Vassu'.

Code:
Replace... a  ,b,c,d,e,f,g ,h,i ,j ,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y ,z.
...with... i'a, ,s,s,u, ,ph, ,uh,th,h,s,n,r,a,z,w,s,r,s,i, ,z, ,il, .


Code:
Cleverness of the Vortex.
Csu usrurr a  s u Vassu .


Basically a Caesar cipher; I... don't have the persistence to make up a whole new language, or even this filter - I'm borrowing it from a generator at Chaotic Shiny - and it produces something that looks fairly close to being another language. Plus the players get rewarded early if they work out how to decipher the speech.

Anyway, if you work it out on paper, 'Cleverness of the Vortex' should indeed produce 'Csuusrurr a su Vassu'... but when I turn it into a filter in OpenRPG, and type that name, I instead get 'Criirrirr a si Varsi'.
I can even tell why it's doing that, I think; the above order, left-to-right, is the order I input letters to be replaced and replacements, in the filter, and filtering doesn't stop when a match is found for a letter to replace. So when it sees 'l' in 'Cleverness', it first replaces it with 's' then replaces that with 'r' when it continues checking and matches it with 's'.
Is there any way to have it not do that, or am I going to have to run stuff through the Language Mixer at Chaotic Shiny each time I want to know the translation for anything?

tl;dr - how do I stop filters from continuing to test for matches and replace letters after it's replaced a letter once already?

Author:  prof.ebral [ Mon Feb 14, 2011 12:18 am ]
Post subject:  Re: Filter Issues

The current filter is a bit archaic in design. It's on my to do lists for Traipse openrpg, but not in the near future.

Author:  Feldherren [ Mon Feb 14, 2011 12:34 am ]
Post subject:  Re: Filter Issues

I did try Traipse whilst trying to get OpenRPG to work properly.
It just... died when trying to use the alias library more than once, and never saved the filter I tried to create. Ah, well. I guess I'll have to keep an eye on your site for updates.

Author:  prof.ebral [ Mon Feb 14, 2011 1:06 am ]
Post subject:  Re: Filter Issues

I have not done anything special with the alias library in the current Traipse. I said that was planned for the future.

Author:  Feldherren [ Mon Feb 14, 2011 2:39 am ]
Post subject:  Re: Filter Issues

I meant I found it as buggy on this computer as non-beta OpenRPG. Admittedly when I got OpenRPG working I stopped trying to get Traipse working.
I'm kind of at a loss as to how Traipse differs from OpenRPG; are there just not that many differences thus far?

Author:  prof.ebral [ Mon Feb 14, 2011 3:14 am ]
Post subject:  Re: Filter Issues

No, not yet. Most of the differences in Traipse are subtle. The Meta server provides room lists: http://traipsemeta.madmathlabs.info/ the dieroller has a few more die rollers and allows for newer features, the layout does not break so often, the grid nodes can be referenced by cell, and other subtle features.

Author:  prof.ebral [ Thu Feb 17, 2011 9:27 am ]
Post subject:  Re: Filter Issues

Feldherren wrote:
tl;dr - how do I stop filters from continuing to test for matches and replace letters after it's replaced a letter once already?


Sorry, you can't. I'll work it into the next milestone of Traipse. Sorry the current one is not working for you. I am doing all of my chat / server / client work in the OpenIM software. You can get a copy here: http://traipse.assembla.com/spaces/openim/documents It requires PyQt instead of wxPython, and is still under heavy development. You can get a copy of PyQt here: http://www.riverbankcomputing.co.uk/sof ... t/download

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/