Graal Forums  

Go Back   Graal Forums > Development Forums > Future Improvements
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 02-04-2007, 07:02 PM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
255 chars at playerflags

When requesting the playerflags of the player (Client-RC), it will cutoff the textwidth to 255 chars.. can this be fixed or something? Its quite annoying.

Whenever I edit my attributes, it overwrites the old variables that contain more then 255 chars... I can't edit my attributes without that I mess something up..
__________________

Last edited by Chompy; 02-04-2007 at 10:55 PM..
Reply With Quote
  #2  
Old 02-04-2007, 07:15 PM
Gambet Gambet is offline
Registered User
Join Date: Oct 2003
Posts: 2,712
Gambet is on a distinguished road
Quote:
Originally Posted by Chompy View Post
When requisting the playerflags of the player, it will cutoff the textwidth to 255 chars.. can this be fixed or something? Its quite annoying.

Whenever I edit my attributes, it overwrites the old variables that contain more then 255 chars... I can't edit my attributes without that I mess something up..


Maybe Skyld's Client RC doesn't contain that problem?


You could always try it out if you havn't already.
Reply With Quote
  #3  
Old 02-04-2007, 07:26 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
The scripted RC use something new (requesttext) for editing the flags separately, which doesn't have problems with the flags length. It would be possible to add that to the external RC too.
Reply With Quote
  #4  
Old 02-04-2007, 08:06 PM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
Quote:
Originally Posted by Gambet View Post
Maybe Skyld's Client RC doesn't contain that problem?


You could always try it out if you havn't already.
I did, and I did test it with the client rc Skyld made (using echo when setting the lines)

Quote:
Originally Posted by Stefan View Post
The scripted RC use something new (requesttext) for editing the flags separately, which doesn't have problems with the flags length. It would be possible to add that to the external RC too.
The scripted RC loads 255 chars, thats my problem :[
__________________
Reply With Quote
  #5  
Old 02-05-2007, 05:07 AM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
Excuse my bluntness, but its a huge ass problem. I can't cache certain things in client flags because they'd be immediately cut off if attributes were edited, something that happens often during development.

And I'd really like it if there was some way to delete flags from client right when player logs off.
__________________
Reply With Quote
  #6  
Old 02-05-2007, 06:57 AM
Twinny Twinny is offline
My empire of dirt
Twinny's Avatar
Join Date: Mar 2006
Location: Australia
Posts: 2,422
Twinny is just really niceTwinny is just really nice
Send a message via AIM to Twinny
Quote:
Originally Posted by Inverness View Post
And I'd really like it if there was some way to delete flags from client right when player logs off.
I've already asked for that. Nothing was ever done so I still wipe flags when the player logs on
Reply With Quote
  #7  
Old 02-05-2007, 07:39 AM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Actually, when for example opening a clients attributes or serverflags on NORMAL RC, the flags length also gets cutoff. So if you were to click on the "Apply" button, the strings get cutoff at 255 letters. This "problem" has been around for as long as Ive used RC, and thats a mighty long time now.
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #8  
Old 02-05-2007, 04:19 PM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
Well, this 255 chars stuff just hates my mudlib >_>

Since, in my mudlib I store items as clientr.mud.item<ID> = { ... };
but the description of the item, plus requirment, stats, and attributes takes so much chars :[

So I gotta make a whole new mudlib, or wait until this can be taken care off..
__________________
Reply With Quote
  #9  
Old 02-05-2007, 05:07 PM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Quote:
Originally Posted by Chompy View Post
Well, this 255 chars stuff just hates my mudlib >_>

Since, in my mudlib I store items as clientr.mud.item<ID> = { ... };
but the description of the item, plus requirment, stats, and attributes takes so much chars :[

So I gotta make a whole new mudlib, or wait until this can be taken care off..
Thats a really crappy way to do it.
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #10  
Old 02-05-2007, 05:38 PM
Twinny Twinny is offline
My empire of dirt
Twinny's Avatar
Join Date: Mar 2006
Location: Australia
Posts: 2,422
Twinny is just really niceTwinny is just really nice
Send a message via AIM to Twinny
Indeed. Perhaps

clientr.mud.item22="banhammer",quantity,{additiona l buffs/mods};
Reference banhammer from either a file or dbnpc.
Reply With Quote
  #11  
Old 02-05-2007, 05:43 PM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
I've made two mudlib so far, one was just by files (player fiels had information of what files the player had etc.. was totally laggy since it had to go to serverside all the time to get info), this is my second mudlib, but, I have quite alot of vars assigned to the item.. enchants, buffs, requirments, adds (when equipping), type, mode, etc.., but I might try a other mudlib with like

clientr.mud.item<ID> = { ... };
clientr.mud.item<ID>_info = { ... };

hmm.. atm I am making my third mudlib :]
__________________
Reply With Quote
  #12  
Old 02-05-2007, 07:37 PM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
You need to go object-based like mine. Since you can store infinite number of variables in the item object and only reflect the ones you need to clientr flags, and that is only for displaying the player's inventory, everything else is done serverside.
__________________
Reply With Quote
  #13  
Old 02-05-2007, 08:23 PM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
Quote:
Originally Posted by Inverness View Post
You need to go object-based like mine. Since you can store infinite number of variables in the item object and only reflect the ones you need to clientr flags, and that is only for displaying the player's inventory, everything else is done serverside.
rawr
__________________
Reply With Quote
  #14  
Old 02-05-2007, 08:28 PM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
I simply define an array of what variables I want to display to client and they're searched for and writen to clientr flags. And I also use a function when getting the item data from clientr flags. mud_getitemrefvar(varname, itemid) So i'm not dependent on index of stuff in the array.

A good example of the usefulness of this is I only display the fullname on client. In the item object the full name is created from name_pre, name_suf, name_sl, and name_pl. For Prefix, Suffix, Singular and Plural. I'm sure its obvious how that goes. So if I used some spell called Disentigrate Weapon, it would reduce the damage of the active weapon and change the item's prefix to "Rusted" or something. And because the item would then have differences from the archetype its marked as unique and the new prefix and damage are saved with the item, then any operations done by archetype only don't include that item since its unique, something must be done to it by specific ID.
__________________
Reply With Quote
  #15  
Old 02-05-2007, 09:55 PM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
Uhh...the character limit only happens when you /open your self o_o
__________________
Do it with a DON!
Reply With Quote
  #16  
Old 02-05-2007, 09:59 PM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
Quote:
Originally Posted by zokemon View Post
Uhh...the character limit only happens when you /open your self o_o
;o. Even when you use requesttext(); you get 255 chars..
__________________
Reply With Quote
  #17  
Old 02-05-2007, 11:16 PM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
How retarded >_>

I hope this is fixed soon for the external RC.

Also, Is there any way to fix this thing with the external RC where sometimes windows open with the edges outside of the screen, its really irritating when you have to move stuff back alot.
__________________
Reply With Quote
  #18  
Old 02-06-2007, 12:27 AM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Quote:
Originally Posted by zokemon View Post
Uhh...the character limit only happens when you /open your self o_o
Wrong. Happens when you /open ANYONE, and it also happens with serverflags.
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #19  
Old 02-06-2007, 12:48 AM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
I had to move my archetype variable array and other mud stuff into a weapon because there are like 30+ and I think it was getting cut off or about to be.
__________________
Reply With Quote
  #20  
Old 02-09-2007, 07:01 PM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
Sorry for double-post but I would like to know if this is going to be fixed soon -_- I can't imagine why it would be that difficult.
__________________
Reply With Quote
  #21  
Old 02-09-2007, 09:18 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
I don't see anything that is cutting the flags, it's only a problem for the old RC with supports a maximum of 220 characters per flag.
Reply With Quote
  #22  
Old 02-09-2007, 09:23 PM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Quote:
Originally Posted by Stefan View Post
I don't see anything that is cutting the flags, it's only a problem for the old RC with supports a maximum of 220 characters per flag.
I just tried it with RC 2.05, and it cuts the flags
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #23  
Old 02-09-2007, 11:21 PM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
Stefan simply test it out for yourself, make a very large string and open it in RC then check to see if it cuts, then there is no doubt.
__________________
Reply With Quote
  #24  
Old 02-09-2007, 11:25 PM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
It does cut in RC. RC is what cuts it o_o
Graal doesn't.
__________________
Do it with a DON!
Reply With Quote
  #25  
Old 02-09-2007, 11:33 PM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
Quote:
Originally Posted by zokemon View Post
It does cut in RC. RC is what cuts it o_o
Graal doesn't.
Exactly, since it happens in other text editors and not just the one for attributes.
__________________
Reply With Quote
  #26  
Old 02-10-2007, 01:08 AM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
Well its working fine for me, 350+ characters without problems
Reply With Quote
  #27  
Old 02-10-2007, 01:52 AM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
You're using the normal RC version and even on a normal server?

Well, here are two pictures to show you what I did.

For the first one, I made a simple script to write a string to client flags with the numbers 1 to 199. I had the last 5 characters of the string displayed on RC immediately afterwards to verify if the string was right. Next I opened the player's attributes and saved again without changing anything in it. Then I opened the script back up and commented out the string writing part and simply displayed the last 5 characters on RC again, notice how they've been cut off. And in both cases the horizontal scroll is all the way to the right.

Edit: I went back and checked the length of the string and got 208, if this helps at all.
Attached Thumbnails
Click image for larger version

Name:	cutoff1.jpg
Views:	154
Size:	162.7 KB
ID:	39495   Click image for larger version

Name:	cutoff3.jpg
Views:	150
Size:	151.7 KB
ID:	39496  
__________________
Reply With Quote
  #28  
Old 02-10-2007, 02:12 AM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
I have already said that the external RC/RC2 are limited to flags of 220 characters. The question here is about the client-rc/scripted-RC
Reply With Quote
  #29  
Old 02-10-2007, 02:19 AM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
Hm, I must have missed that then, my fault.
...
So why the hell is it limited? Does it have something to do with GTK+ or so?
I really hope you can fix this soon.
__________________
Reply With Quote
  #30  
Old 02-10-2007, 03:05 AM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
Because that is how RC was coded a while back...each line in your flags was to only be 255 characters long (I guess for memory? o_O)
__________________
Do it with a DON!
Reply With Quote
  #31  
Old 02-10-2007, 03:30 AM
Tyhm Tyhm is offline
Psionic Youth
Tyhm's Avatar
Join Date: Mar 2001
Location: Babord, West Graal Deaths:1009 Kills:1
Posts: 5,635
Tyhm has a spectacular aura about
Oh cool, it's been released?
__________________
"Whatever," said Bean, "I was just glad to get out of the toilet."

"Power does not corrupt. Fear corrupts, perhaps the fear of a loss of power."- John Steinbeck
"I'm only acting retarded, what's your excuse?" queried the Gord.
- My pet, the Levelup Gnome

http://forums.graalonline.com/forums...&postcount=233
Reply With Quote
  #32  
Old 02-21-2007, 03:57 PM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
bump

Quote:
Originally Posted by Stefan View Post
I have already said that the external RC/RC2 are limited to flags of 220 characters. The question here is about the client-rc/scripted-RC
The scripted/client rc use requesttext() which also return 255 chars..
So the scripted one also cuts to 255 chars.. :[
__________________
Reply With Quote
  #33  
Old 03-03-2007, 12:43 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
Quote:
Originally Posted by Chompy View Post
The scripted/client rc use requesttext() which also return 255 chars..
So the scripted one also cuts to 255 chars.. :[
No, requesttext() is retrieving the whole list of flags, which is limited to around 100k, but the single variables can have any length.
Reply With Quote
  #34  
Old 03-03-2007, 04:13 PM
Twinny Twinny is offline
My empire of dirt
Twinny's Avatar
Join Date: Mar 2006
Location: Australia
Posts: 2,422
Twinny is just really niceTwinny is just really nice
Send a message via AIM to Twinny
Trying to open certain accounts on Zodiac causes RC to crash . Too much data for RC to handle .

Mainly Yen's bad mud handling but it's still annoying.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 01:30 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.