External input/output?

Thoughts, Help, Feature Requests, Bug Reports, Developing code for...

Moderators: dorpond, trevor, Azhrei

Forum rules
PLEASE don't post images of your entire desktop, attach entire campaign files when only a single file is needed, or generally act in some other anti-social behavior. :)
Post Reply
User avatar
Shadowfireomega
Giant
Posts: 218
Joined: Thu Dec 23, 2010 12:12 am
Location: San Antonio, Texas

External input/output?

Post by Shadowfireomega »

Is it possible to have maptool receive input from an external program and/or output to an external program? If so, would it have to be a program built with a certain language, or would any programming language work with the proper scripting?
"I love being wrong, for if I was always right, there would be nothing left to learn, and that would be a world I would not want to live in."
-Benjamin Fisher
"Knowledge is knowing a tomato is a fruit; wisdom is not putting it in a fruit salad."
-Miles Kington
"Space is his favorite thing in the world!"
-Kayla Kros
"Anything times 1 is 1"
-Kayla Kros

User avatar
JamzTheMan
Great Wyrm
Posts: 1872
Joined: Mon May 10, 2010 12:59 pm
Location: Chicagoland
Contact:

Re: External input/output?

Post by JamzTheMan »

Are you talking in theory or right now? Right now, technically no, although in my Fork i do have requestURL & sendURL so that provides a partial RESTful service but has to be initiated from MapTool. Craig had started on a "web engine" as well but it's POC. My fork also reads Hero Lab portfolios, so that is a form of "input from another source/program". It also can post an syrinscape URI which is an example of "output to another program"...

With that said, MT is open source, so you could build an API for communication to/from MT. Hard to answer anything more with more details.
-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

User avatar
Shadowfireomega
Giant
Posts: 218
Joined: Thu Dec 23, 2010 12:12 am
Location: San Antonio, Texas

Re: External input/output?

Post by Shadowfireomega »

Thanks, I am planning on learning some programming and I want to eventually make a inventory tracker/character sheet program that can be called upon by maptool. This is going to be part of a larger project of building a beastly gaming table and I hope to make the program decently graphical as to be displayed on small tablets built into the table.
"I love being wrong, for if I was always right, there would be nothing left to learn, and that would be a world I would not want to live in."
-Benjamin Fisher
"Knowledge is knowing a tomato is a fruit; wisdom is not putting it in a fruit salad."
-Miles Kington
"Space is his favorite thing in the world!"
-Kayla Kros
"Anything times 1 is 1"
-Kayla Kros

User avatar
JamzTheMan
Great Wyrm
Posts: 1872
Joined: Mon May 10, 2010 12:59 pm
Location: Chicagoland
Contact:

Re: External input/output?

Post by JamzTheMan »

It may be ambitious if you are just starting out learning to program. You will need to make modifications to MapTool so you might as well stick with Java for your solutions. The WebAPI may be the way to go as well. I don't know where Craig left off with it but it's a start: https://github.com/RPTools/maptool/tree/webapi

*Note: That branch is based on 1.4.0.0 so you would have to merge it with 1.4.0.5 or the 1.4.1 branch if you want the latest code...
-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

User avatar
Shadowfireomega
Giant
Posts: 218
Joined: Thu Dec 23, 2010 12:12 am
Location: San Antonio, Texas

Re: External input/output?

Post by Shadowfireomega »

It's more of an side goal, I don't expect to do it overnight xD I want to learn programming and when I start learning something new I set a goal that coincides with one of my interests as sort of a motivation to continue on when it gets tough. So I think I will start researching java courses, thanks!
"I love being wrong, for if I was always right, there would be nothing left to learn, and that would be a world I would not want to live in."
-Benjamin Fisher
"Knowledge is knowing a tomato is a fruit; wisdom is not putting it in a fruit salad."
-Miles Kington
"Space is his favorite thing in the world!"
-Kayla Kros
"Anything times 1 is 1"
-Kayla Kros

Post Reply

Return to “MapTool”