So you're getting the right-click menu on a token (not an object) when you right click it? Is it a token from an existing campaign or a new token in a new map?salmelo wrote:what is this about right clicking on a token not working? it works just fine for me, and I'm running b33.
MapTool 1.3 Development Build 33
Moderators: dorpond, trevor, Azhrei, Craig
- thelevitator
- Dragon
- Posts: 963
- Joined: Wed May 17, 2006 2:10 pm
- Location: "The Biggest Little City In The World!"
- Contact:
I was thinking the same thing. I have no problem right-clicking on tokens from earlier versions or new tokens in b33.
"Neither hexes nor squares can confine me!"
James Anthony
"It's all in your head....."
http://www.spelz.net
James Anthony
"It's all in your head....."
http://www.spelz.net
For the tech-savy there is a short explanation for those right click problems:
Saving a campaign essentially serializes the campaign object into an xml document via XStream (a java library for serialization). In other words the object in the memory gets "dumped" into a plain text file (so it would be human edit friendly). In a new build of the program we sometimes find ourselves adding new stuff to the campaign class (like the new campaign buttons and the aforementioned token states stuff).
So when you are loading an old campaign file, that file has no information about the new additions and when you serialize it back to a the campaign class those new stuff don't get loaded. XStream only fills existing data (naturally) and all those new stuff get null values. And that is why the right click doesn't work (you get null pointer exceptions = there is no such data).
Actually the fix is surprisingly simple: adding a null check before using a newly added feature. Which we sometimes tend to forget
Saving a campaign essentially serializes the campaign object into an xml document via XStream (a java library for serialization). In other words the object in the memory gets "dumped" into a plain text file (so it would be human edit friendly). In a new build of the program we sometimes find ourselves adding new stuff to the campaign class (like the new campaign buttons and the aforementioned token states stuff).
So when you are loading an old campaign file, that file has no information about the new additions and when you serialize it back to a the campaign class those new stuff don't get loaded. XStream only fills existing data (naturally) and all those new stuff get null values. And that is why the right click doesn't work (you get null pointer exceptions = there is no such data).
Actually the fix is surprisingly simple: adding a null check before using a newly added feature. Which we sometimes tend to forget
- jfrazierjr
- Deity
- Posts: 5176
- Joined: Tue Sep 11, 2007 7:31 pm
Quick question: Is the bug with derived values (propA + propB) going to be resolved in this build(b34) for output to the popup window when you hover over a token?
I know this has been mentioned(though I cannot find where), but if I create property as viewable on the "character sheet" hover over window, and set the value as a derived thing, it only shows the formula and not the derived value at this time.
I know this has been mentioned(though I cannot find where), but if I create property as viewable on the "character sheet" hover over window, and set the value as a derived thing, it only shows the formula and not the derived value at this time.
I save all my Campaign Files to DropBox. Not only can I access a campaign file from pretty much any OS that will run Maptool(Win,OSX, linux), but each file is versioned, so if something goes crazy wild, I can always roll back to a previous version of the same file.
Get your Dropbox 2GB via my referral link, and as a bonus, I get an extra 250 MB of space. Even if you don't don't use my link, I still enthusiastically recommend Dropbox..
Get your Dropbox 2GB via my referral link, and as a bonus, I get an extra 250 MB of space. Even if you don't don't use my link, I still enthusiastically recommend Dropbox..
- UntoldGlory
- Great Wyrm
- Posts: 1649
- Joined: Sun Mar 16, 2008 8:12 pm
Trevor said he was going to look into that but I have no idea whether he fixed that or not.jfrazierjr wrote:Quick question: Is the bug with derived values (propA + propB) going to be resolved in this build(b34) for output to the popup window when you hover over a token?
I know this has been mentioned(though I cannot find where), but if I create property as viewable on the "character sheet" hover over window, and set the value as a derived thing, it only shows the formula and not the derived value at this time.
Remind him please
- jfrazierjr
- Deity
- Posts: 5176
- Joined: Tue Sep 11, 2007 7:31 pm
Poke->Trevor....Ryss wrote:Trevor said he was going to look into that but I have no idea whether he fixed that or not.jfrazierjr wrote:Quick question: Is the bug with derived values (propA + propB) going to be resolved in this build(b34) for output to the popup window when you hover over a token?
I know this has been mentioned(though I cannot find where), but if I create property as viewable on the "character sheet" hover over window, and set the value as a derived thing, it only shows the formula and not the derived value at this time.
Remind him please
I save all my Campaign Files to DropBox. Not only can I access a campaign file from pretty much any OS that will run Maptool(Win,OSX, linux), but each file is versioned, so if something goes crazy wild, I can always roll back to a previous version of the same file.
Get your Dropbox 2GB via my referral link, and as a bonus, I get an extra 250 MB of space. Even if you don't don't use my link, I still enthusiastically recommend Dropbox..
Get your Dropbox 2GB via my referral link, and as a bonus, I get an extra 250 MB of space. Even if you don't don't use my link, I still enthusiastically recommend Dropbox..
- jfrazierjr
- Deity
- Posts: 5176
- Joined: Tue Sep 11, 2007 7:31 pm
Hmm.. that seems like an easy fix. I wish I had found this a few days ago. Now I have a game to prepare for tonight instead of spending time messing with the code, as I expect this is something I could actually fix without spending tons of hours searching the code.UntoldGlory wrote:I was under the impression that that was just something that hadn't been implemented yet, not actually a bug.
Joe
I save all my Campaign Files to DropBox. Not only can I access a campaign file from pretty much any OS that will run Maptool(Win,OSX, linux), but each file is versioned, so if something goes crazy wild, I can always roll back to a previous version of the same file.
Get your Dropbox 2GB via my referral link, and as a bonus, I get an extra 250 MB of space. Even if you don't don't use my link, I still enthusiastically recommend Dropbox..
Get your Dropbox 2GB via my referral link, and as a bonus, I get an extra 250 MB of space. Even if you don't don't use my link, I still enthusiastically recommend Dropbox..
- trevor
- Codeum Arcanum (RPTools Founder)
- Posts: 11311
- Joined: Mon Jan 09, 2006 4:16 pm
- Location: Austin, Tx
- Contact:
Ouch !jfrazierjr wrote:Poke->Trevor....Ryss wrote:Trevor said he was going to look into that but I have no idea whether he fixed that or not.jfrazierjr wrote:Quick question: Is the bug with derived values (propA + propB) going to be resolved in this build(b34) for output to the popup window when you hover over a token?
I know this has been mentioned(though I cannot find where), but if I create property as viewable on the "character sheet" hover over window, and set the value as a derived thing, it only shows the formula and not the derived value at this time.
Remind him please
I don't know if it will make it into b34 since I'm doing a build tonight to fix some of the more urgent issues.
Dreaming of a 1.3 release
- UntoldGlory
- Great Wyrm
- Posts: 1649
- Joined: Sun Mar 16, 2008 8:12 pm
Thanks for the explanation! I'm still taking my Java classes, but this makes perfect sense to me.Ryss wrote:For the tech-savy there is a short explanation for those right click problems:
Saving a campaign essentially serializes the campaign object into an xml document via XStream (a java library for serialization). In other words the object in the memory gets "dumped" into a plain text file (so it would be human edit friendly). In a new build of the program we sometimes find ourselves adding new stuff to the campaign class (like the new campaign buttons and the aforementioned token states stuff).
So when you are loading an old campaign file, that file has no information about the new additions and when you serialize it back to a the campaign class those new stuff don't get loaded. XStream only fills existing data (naturally) and all those new stuff get null values. And that is why the right click doesn't work (you get null pointer exceptions = there is no such data).
Actually the fix is surprisingly simple: adding a null check before using a newly added feature. Which we sometimes tend to forget