|
Saffire
|
 |
« on: September 01, 2009, 07:22:42 pm » |
|
When using the in-game editor, a line cannot be any longer than the wrap width of the player using the editor. Try setting your wrap width to 80, and then write a line in the description editor to something longer than 80 characters. It'll shorten it to 80, starting from the back, and moving forward, so the beginning will get cut off, not the end of the line.
|
|
|
|
|
Logged
|
|
|
|
|
Justin
|
 |
« Reply #1 on: September 03, 2009, 08:42:24 am » |
|
Odd...I'll look into it.
|
|
|
|
|
Logged
|
|
|
|
|
Justin
|
 |
« Reply #2 on: September 22, 2009, 03:28:17 pm » |
|
This seems to only happen when the line has no spaces in it. Is that your experience, too?
|
|
|
|
|
Logged
|
|
|
|
|
Justin
|
 |
« Reply #3 on: September 22, 2009, 04:52:41 pm » |
|
This should be fixed here.
|
|
|
|
|
Logged
|
|
|
|
|
Saffire
|
 |
« Reply #4 on: September 28, 2009, 09:43:45 pm » |
|
The new code fixed the problem, but it created a new one for me: It's adding "[0m" without quotes to the end of my prompts.
|
|
|
|
|
Logged
|
|
|
|
|
Justin
|
 |
« Reply #5 on: November 10, 2009, 02:10:10 pm » |
|
What does the code for your prompt look like?
|
|
|
|
|
Logged
|
|
|
|
|
Saffire
|
 |
« Reply #6 on: November 10, 2009, 04:03:52 pm » |
|
I haven't got my computer with me at the moment, since I'm not at home until tomorrow or the next day. I can post it then.
|
|
|
|
|
Logged
|
|
|
|
|
Saffire
|
 |
« Reply #7 on: November 11, 2009, 03:11:31 pm » |
|
Ok here it is. def prompt health = info.stats.health mana = info.stats.mana max_health = info.stats.max_health max_mana = info.stats.max_mana h_color = case when health >= max_health * 0.75 h_color = "green" when health >= max_health * 0.5 h_color = "brightyellow" else h_color = "brightred" end
m_color = case when mana >= max_mana * 0.75 m_color = "green" when health >= max_mana * 0.5 m_color = "brightyellow" else m_color = "brightred" end balance = case when @balance "b" else "-" end
blind = case when self.blind? "b" else "" end
deaf = case when self.deaf? "d" else "" end
prone = case when self.prone? "p" else "" end
"H:<#{h_color}>#{info.stats.health}</>/<green>#{info.stats.max_health}</> M:<#{m_color}>#{info.stats.mana}</>/<green>#{info.stats.max_health}</> [<green>#{balance}</> <brightyellow>#{blind}#{deaf}#{prone}</>] #{IAC + GA}" end
|
|
|
|
|
Logged
|
|
|
|
|
Justin
|
 |
« Reply #8 on: November 17, 2009, 12:51:32 pm » |
|
I'm not seeing this problem...what operating system, Ruby version, and EventMachine version are you using?
Also, you have info.stats.max_health where I believe you want max_mana.
|
|
|
|
|
Logged
|
|
|
|
|
Saffire
|
 |
« Reply #9 on: November 18, 2009, 10:15:46 am » |
|
Windows XP. Ruby version 1.8.6. I'm not sure on the version of Eventmachine, I think it's 10 or 11. I can't check because my development system is currently broken. And you're right on the info.stats.max_health. I'll fix that when I can. Thanks 
|
|
|
|
|
Logged
|
|
|
|
|
Saffire
|
 |
« Reply #10 on: January 03, 2010, 10:51:11 pm » |
|
What does the #{IAC + GA} at the end of the prompt code do? It seems that if I remove that portion of it things go back to normal, and it doesn't look like it breaks anything if they're removed.
|
|
|
|
|
Logged
|
|
|
|
|
Justin
|
 |
« Reply #11 on: January 03, 2010, 11:55:55 pm » |
|
It lets the client know it's the end of the line. Have you tried it in more than one client?
|
|
|
|
|
Logged
|
|
|
|
|
Saffire
|
 |
« Reply #12 on: January 04, 2010, 12:01:50 am » |
|
Huh, weird. I tried it in a different client and it works fine. But for some reason zMUD doesn't like the IAC + GA. Which is really weird, since I haven't changed any zMUD settings. I'll look into it on my end. Thanks again Justin. 
|
|
|
|
|
Logged
|
|
|
|
|