Be chatting in party
Have other party member log out, as you are typing a message
-
loftar
- Posts: 9096
- Joined: Fri Apr 03, 2009 7:05 am
- Location: Your character database
Re: How to crash client with haven error
Oooh, I see. I've been seeing the chat widget a lot in the error reports, but I didn't know that was what caused it. Thanks!
"Object-oriented design is the roman numerals of computing." -- Rob Pike
-
kobnach
- Posts: 671
- Joined: Wed Jun 10, 2009 5:04 am
Re: How to crash client with haven error
Glad to help. It took a while for me to spot the pattern.
-
Blaze
- Posts: 1072
- Joined: Sun May 31, 2009 3:59 am
- Location: Hearth
Re: How to crash client with haven error
I've already mentioned this before: viewtopic.php?f=4&t=595&p=5095
Also, if the last non-leading member of the party joins a different party without leaving the first one, the leader will be stuck with a party chat menu and cannot leave it.
Also, if the last non-leading member of the party joins a different party without leaving the first one, the leader will be stuck with a party chat menu and cannot leave it.
You see a masterful engraving by Blaze. On it is Blaze, bears, boars, and foxes. Blaze is striking down the bears. The boars are screaming. The foxes are in a fetal position. The image relates to the return of Blaze in the late winter of 2009.
-
kobnach
- Posts: 671
- Joined: Wed Jun 10, 2009 5:04 am
Re: How to crash client with haven error
oh! That's how I got the party of one the other day.Blaze wrote:I've already mentioned this before: viewtopic.php?f=4&t=595&p=5095
Also, if the last non-leading member of the party joins a different party without leaving the first one, the leader will be stuck with a party chat menu and cannot leave it.
-
ZestyLemons
- Posts: 58
- Joined: Tue Aug 11, 2009 9:49 pm
Re: How to crash client with haven error
If you enter a message that is too long as well, it crashes you and everyone in your party
One day I hope to start a village. It shall be called 'Fruit Town'
-
loftar
- Posts: 9096
- Joined: Fri Apr 03, 2009 7:05 am
- Location: Your character database
Re: How to crash client with haven error
Yeah, I know (though actually, it's one word that needs to be too long)... that really does needs to be fixed, but it requires me finding out how to actually measure text and such stuff in Java. The current line-wrapping code is terribly ugly and buggy because I haven't yet manage to gather the will-power to penetrate further into Java's text and font library. It also ties in with creating multi-line and styled tooltips.ZestyLemons wrote:If you enter a message that is too long as well, it crashes you and everyone in your party
Hey -- the client is open source. Any takers? :)
"Object-oriented design is the roman numerals of computing." -- Rob Pike
-
theTrav
- Posts: 3464
- Joined: Fri May 29, 2009 11:25 pm
Re: How to crash client with haven error
Heh, I'll take a look at it after I've got custom resource packs working (looked at it last night and you were right, you do already come really close to allowing for it, the version field is the only restriction)loftar wrote:Hey -- the client is open source. Any takers?
Of course my quick fix will probably be to truncate words at an arbitrary length and just drop a heap of data. Blame the users, it's all their fault
-
theTrav
- Posts: 3464
- Joined: Fri May 29, 2009 11:25 pm
Re: How to crash client with haven error
bug patched and pushed to my fork of your github code base.
Solution I've done is kind of rough but functional.
iterate through all words in text entered
if word can be added to current line add it
else, if current line has words, end current line, then recurs on the new word
if line is empty and word does not fit on it, split the word in half, recurs on each half in order
it can lead to some odd looking wraps, but only when you put in massive strings of text. To be honest, strings that massive are going to look odd no matter what.
Solution I've done is kind of rough but functional.
iterate through all words in text entered
if word can be added to current line add it
else, if current line has words, end current line, then recurs on the new word
if line is empty and word does not fit on it, split the word in half, recurs on each half in order
it can lead to some odd looking wraps, but only when you put in massive strings of text. To be honest, strings that massive are going to look odd no matter what.
-
loftar
- Posts: 9096
- Joined: Fri Apr 03, 2009 7:05 am
- Location: Your character database
Re: How to crash client with haven error
Cool, I'll probably apply it as a fix until I will myself to look up the real text measuring APIs. Thanks!
I have to ask, though -- why are you using an Indir<StringBuffer> instead of just a StringBuffer?
I have to ask, though -- why are you using an Indir<StringBuffer> instead of just a StringBuffer?
"Object-oriented design is the roman numerals of computing." -- Rob Pike