RPTools.net

Discussion and Support

Skip to content

It is currently Sun Dec 17, 2017 4:38 pm 






Reply to topic  [ 6 posts ] 

Previous topic | Next topic 

  Print view

Author Message
 Offline
Cave Troll
 
Joined: Fri Aug 07, 2015 12:16 pm
Posts: 45
 Post subject: Edit the content file of a .rptok file
PostPosted: Sat Mar 18, 2017 5:10 am 
I would like to change the properties of a token directly in the content.xml file. Is there a guide somewhere that tells me what structure the content.xml file has to have so maptool recognizes everything correctly?


Top
 Profile  
 
User avatar  Offline
Great Wyrm
 
Joined: Mon May 10, 2010 11:59 am
Posts: 1722
Location: Chicagoland
 Post subject: Re: Edit the content file of a .rptok file
PostPosted: Sat Mar 18, 2017 1:47 pm 
No, but most variables are usually obvious. Your best bet is to look at the token class source file as it's pretty much the streamed content of that class.

_________________
-Jamz
____________________
Custom MapTool 1.4.x.x Fork: maptool.nerps.net
Custom TokenTool 2.0 Fork: tokentool.nerps.net
More information here: MapTool Nerps! Fork


Top
 Profile  
 
 Offline
Giant
 
Joined: Mon Aug 03, 2015 5:30 pm
Posts: 227
 Post subject: Re: Edit the content file of a .rptok file
PostPosted: Sat Mar 18, 2017 4:02 pm 
Make sure you have a backup of your original file. Apparently, some .zip programs alter the compressions settings to something not compatible with MapTool. 7zip works, though, and can open the .rptok file directly (and manipulate it from the command line).


Top
 Profile  
 
 Offline
Cave Troll
 
Joined: Fri Aug 07, 2015 12:16 pm
Posts: 45
 Post subject: Re: Edit the content file of a .rptok file
PostPosted: Sun Mar 19, 2017 1:46 am 
JamzTheMan wrote:
Your best bet is to look at the token class source file as it's pretty much the streamed content of that class.

This might be a stupid question, but where do i find the token class source file?


Top
 Profile  
 
User avatar  Offline
Great Wyrm
 
Joined: Mon May 10, 2010 11:59 am
Posts: 1722
Location: Chicagoland
 Post subject: Re: Edit the content file of a .rptok file
PostPosted: Sun Mar 19, 2017 2:55 am 
https://github.com/RPTools/maptool/blob ... Token.java

_________________
-Jamz
____________________
Custom MapTool 1.4.x.x Fork: maptool.nerps.net
Custom TokenTool 2.0 Fork: tokentool.nerps.net
More information here: MapTool Nerps! Fork


Top
 Profile  
 
 Offline
Cave Troll
 
Joined: Fri Aug 07, 2015 12:16 pm
Posts: 45
 Post subject: Re: Edit the content file of a .rptok file
PostPosted: Sun Mar 19, 2017 6:01 am 
Thanks!


Top
 Profile  
 
Display posts from previous:  Sort by  
Reply to topic  [ 6 posts ] 

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 post attachments in this forum

Search for:

Who is online

In total there is 1 user online :: 0 registered, 0 hidden and 1 guest (based on users active over the past 5 minutes)
Most users ever online was 243 on Sun Nov 04, 2012 6:14 am

Users browsing this forum: No registered users and 1 guest





Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

Style based on Andreas08 by Andreas Viklund

Style by Elizabeth Shulman