Documentation error, or intentional?

Bug reports and feature requests. New features can only be added to the current development version. Bug-fixes may be back-ported.

Current release: 099 / Current development: 100
Post Reply
OWHorus
Grandmaster Poster
Posts: 105
Joined: Sat Feb 04, 2006 1:24 pm
Location: Vienna, Austria

Documentation error, or intentional?

Post by OWHorus »

Hello,

up to now character.acct is a ref to the account object. character.acctname is the name of the account as string.

character.acct is reported as: 'deprecated, will be removed in next release, use Client instead'
character.acctname is not deprecated, will continue to work (really?)

The new client object has no acct member! So we cannot use 'client instead'.
Does this mean, that for character.acct there will be no replacement?

So instead of writing

var playeraccount := character.acct;

we will need to write

var playeraccount := FindAccount(character.client.accntname);

Or is this an oversight in documentation?

Also, while character.acctname is not deprecated, i.e. will continue to work normally, the new client object also has a member 'acctname', so one could write either character.acctname or character.client.acctname. True?

OWHorus
User avatar
CWO
POL Expert
Posts: 1158
Joined: Sat Feb 04, 2006 5:49 pm
Location: Chicago, IL USA

Re: Documentation error, or intentional?

Post by CWO »

Now that you mention it, the documentation also lists client.acctname as Type "Account" but describes it as a string for the account name.
xeon
Forum Regular
Posts: 338
Joined: Fri Oct 31, 2008 3:18 am
Location: Italy

Re: Documentation error, or intentional?

Post by xeon »

I prefer the char.acct syntax than the FindAccount(char) syntax. Much cleaner. I hope the struct comes back.
Turley
POL Developer
Posts: 670
Joined: Sun Feb 05, 2006 4:45 am

Re: Documentation error, or intentional?

Post by Turley »

Hehe this looks like a documentation error. It looks like it references:
03-24-2010 Turley:
Added: ClientRef object
pkt.sendpacket() & SendPacket() now accepts client or character
r/o members:
ip, acctname, clientversion, clientinfo, clienttype, clientver_detail, uo_expansion_client
methods:
compareversion()
used as prelogin param for packethooks instead of old struct (so you can send packets)
Added: character.client
returns ClientRef object or error
Note: This or next release duplicate members/methods get deleted from chr (except acctname)
Post Reply