[1.4.1.7] [1.4.1.8] getName() calling setName()

Confirmed bugs should get a single post here. Check the READ ME FIRST sticky thread for the format.

Moderators: dorpond, trevor, Azhrei, giliath, jay, Mr.Ice, MapTool BugReport Manager

Forum rules
Posts that do not conform to the READ ME FIRST sticky thread are subject to deletion.
Post Reply
bocotainin
Kobold
Posts: 23
Joined: Sat Aug 22, 2009 5:07 am

[1.4.1.7] [1.4.1.8] getName() calling setName()

Post by bocotainin »

Tried on both versions, different computers.

with token impersonated and selected
[h: getname()]
returns
Function "setName" requires at least 1 parameters; 0 were provided
[h: getname("Test")]
returns no message but sets current token's name to Test

User avatar
aliasmask
RPTools Team
Posts: 9024
Joined: Tue Nov 10, 2009 6:11 pm
Location: Bay Area

Re: [1.4.1.7] [1.4.1.8] getName() calling setName()

Post by aliasmask »

Try using Wiki: getName() which gives you the correct output. getname may either something deprecated or java related, hence the confusing error message.

User avatar
Full Bleed
Demigod
Posts: 4736
Joined: Sun Feb 25, 2007 11:53 am
Location: FL

Re: [1.4.1.7] [1.4.1.8] getName() calling setName()

Post by Full Bleed »

bocotainin wrote:Tried on both versions, different computers.

with token impersonated and selected
[h: getname()]
returns
Function "setName" requires at least 1 parameters; 0 were provided
[h: getname("Test")]
returns no message but sets current token's name to Test
Function names are one of the few places in MT where CASE matters. So make sure you capitalize the "N" in getName().

At any rate, you did find a bug. (Confirmed in 1.4.0.2 as well.)

This should be moved to the Bug Forums.
Maptool is the Millennium Falcon of VTT's -- "She may not look like much, but she's got it where it counts."

Post Reply

Return to “Bug Reports”