JP1 Remotes Forum Index JP1 Remotes


FAQFAQ SearchSearch 7 days of topics7 Days MemberlistMemberlist UsergroupsUsergroups RegisterRegister
ProfileProfile Log in to check your private messagesLog in to check your private messages Log inLog in

FIXED:RemoteMaster Support of Comments in Map Files

 
Post new topic   Reply to topic    JP1 Remotes Forum Index -> JP1 - Software
View previous topic :: View next topic  
Author Message
WagonMaster



Joined: 16 Apr 2009
Posts: 361

                    
PostPosted: Fri Nov 20, 2009 7:18 pm    Post subject: FIXED:RemoteMaster Support of Comments in Map Files Reply with quote

While testing all the new map/image files with RemoteMaster (RM), I've discovered that it does not appear to support having comments in the map files.

Here's a sample error message from 'rmaster.err' (RM v1.98-beta4):
Code:
Searching for remote with name Dreambox V1 URC-39711
java.lang.NumberFormatException: For input string: "Note"
   at java.lang.NumberFormatException.forInputString(Unknown Source)
   at java.lang.Integer.parseInt(Unknown Source)
   at java.lang.Integer.parseInt(Unknown Source)
   at com.hifiremote.jp1.ImageMap.parse(ImageMap.java:79)
   at com.hifiremote.jp1.Remote.load(Remote.java:282)
   at com.hifiremote.jp1.RemoteManager.findRemoteByName(RemoteManager.java:223)
   at com.hifiremote.jp1.KeyMapMaster.<init>(KeyMapMaster.java:189)
   at com.hifiremote.jp1.RemoteMaster.createAndShowGUI(RemoteMaster.java:1466)
   at com.hifiremote.jp1.RemoteMaster.access$9(RemoteMaster.java:1343)
   at com.hifiremote.jp1.RemoteMaster$5.run(RemoteMaster.java:1507)
   at java.awt.event.InvocationEvent.dispatch(Unknown Source)
   at java.awt.EventQueue.dispatchEvent(Unknown Source)
   at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
   at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
   at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
   at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
   at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
   at java.awt.EventDispatchThread.run(Unknown Source)

The "Map THIS!" application that is used to create these map files provides a field called "Internal comment about this area:" for every shape being defined. "Map THIS!" essentially creates a map file that looks like this (example from the 'Dreambox-V1.map' file, which generate the error shown above), with a '#'-style comment immediately above the line being commented:
Code:
   .
   .
   .
poly BOUQUET+ 131,206 163,219 164,203 162,191 155,186 146,187 138,194 133,199 131,206 131,206
poly BOUQUET- 130,210 161,224 154,234 144,243 136,244 131,242 127,235 126,224 130,210 130,210
circle MUTE  98,191 115,201
# Note: The 'LAME!'/'ZOOM' button became 'EXIT'/'ZOOM' on later versions.
circle LAME!{ZOOM}  98,215 115,225
circle INFO  43,261 53,272
# The small 'DREAM' button became 'MENU' on later versions.
circle DREAM{small}  158,261 170,273
poly UP 64,264 77,255 90,251 107,251 122,255 135,262 135,267 121,274 110,277 94,278 78,273 68,269 64,264 64,264
poly DOWN 67,327 75,320 87,316 96,314 112,314 124,318 133,324 135,330 121,337 107,340 95,341 83,338 72,334 67,327 67,327
   .
   .
   .

This optional entry is very useful to help explain various things (history, problems, etc) with the buttons being defined. Since it's a built-in part of the "Map THIS!" application, I think RM should support this feature too.

In a pinch, I could remove the comments from the map files (3 currently), but I'd rather not, since they help document the oddities quite nicely and, more importantly, in the most natural place to have them documented.

Any chance of getting these comments supported in the next version of RM?

Bill
Back to top
View user's profile Send private message
gfb107
Expert


Joined: 03 Aug 2003
Posts: 3411
Location: Cary, NC

                    
PostPosted: Wed Nov 25, 2009 8:19 pm    Post subject: Reply with quote

Yes
_________________
-- Greg
Original RemoteMaster developer
JP1 How-To's and Software Tools
The #1 Code Search FAQ and it's answer (PLEASE READ FIRST)
Back to top
View user's profile Send private message Visit poster's website
gfb107
Expert


Joined: 03 Aug 2003
Posts: 3411
Location: Cary, NC

                    
PostPosted: Fri Nov 27, 2009 10:57 am    Post subject: Reply with quote

Try Beta6:

RemoteMaster.v1.98beta6.zip (Windows, Linux 32/64)
RemoteMaster.v1.98beta6.exe (Windows only)
_________________
-- Greg
Original RemoteMaster developer
JP1 How-To's and Software Tools
The #1 Code Search FAQ and it's answer (PLEASE READ FIRST)
Back to top
View user's profile Send private message Visit poster's website
WagonMaster



Joined: 16 Apr 2009
Posts: 361

                    
PostPosted: Sat Nov 28, 2009 2:52 pm    Post subject: Reply with quote

I've now tested with the RM 1.98-beta6 and this problem is gone -- thanks!

I do have the same questions on the source code as mentioned here.

Bill
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic       JP1 Remotes Forum Index -> JP1 - Software All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

Powered by phpBB © 2001, 2005 phpBB Group
Top 7 Advantages of Playing Online Slots The Evolution of Remote Control