Sound Tokens - Got it working, but needs a little work

Show off your RPG maps, campaigns, and tokens. Share your gaming experiences and stories under General Discussion and save this forum for things you've created that may help others run their own games. Use the subforums when appropriate.

Moderators: dorpond, trevor, Azhrei, Gamerdude

Post Reply
RevenantBob
Cave Troll
Posts: 36
Joined: Sat May 19, 2012 3:41 pm

Sound Tokens - Got it working, but needs a little work

Post by RevenantBob »

Maptool Music Resource Library!


Not sure if people are interested in this, but I got maptool resource folders for midi and mp3 files so players/GMs can drag sounds onto the map and play them for everyone.

If people are interested I'll post it here when I fix two issues.

1) The Java I'm using for MP3 playing doesn't seem to support over 128kbps which is annoying for some
2) MIDI Volume setting doesn't work just yet.


How does it work behind the scenes?

I set out two days ago to implement this. Essentially maptool transfers files regardless of file type. It was just a matter of reading the first 4 bytes of the file to identify it as a mp3 or midi and then placing a replacement icon (Speaker) in it's place.

Then adding a menu option to look for these file types and allow playing. Setting up code to transfer the action from client/server, etc. Whoala!


Shot Below is GM and me toying with it.
Large image
Image
Last edited by Azhrei on Sat Aug 17, 2013 1:09 am, edited 1 time in total.
Reason: added spoiler tag to large image

User avatar
aliasmask
RPTools Team
Posts: 9031
Joined: Tue Nov 10, 2009 6:11 pm
Location: California

Re: Sound Tokens - Got it working, but needs a little work

Post by aliasmask »

Very cool. Is the default to loop music? What would be really useful is to make some macro functions to play and stop music. That way the GM can play for players using a macro link in chat.

RevenantBob
Cave Troll
Posts: 36
Joined: Sat May 19, 2012 3:41 pm

Re: Sound Tokens - Got it working, but needs a little work

Post by RevenantBob »

The GM does play for people. When you hit play, it plays for everyone. Stop does a stop for everyone.

There'll be enhancements once I get these two issues fixed then I can put it out for people.


RevenantBob
Cave Troll
Posts: 36
Joined: Sat May 19, 2012 3:41 pm

Re: Sound Tokens - Got it working, but needs a little work

Post by RevenantBob »

wolph42 wrote:Hi, I'm Definately interested. I'm also curious how your work relates to this : http://forums.rptools.net/viewtopic.php?f=8&t=24085
Looks like he is using a script functionality to download sound from a webserver and play locally.

My modification is that sound becomes distributed like tokens (GM/Players simply drag them on the map) and they are transferred to everyone, stored in the maptool cache folder in the user directory and played and stopped by a server command message. It has nothing to do with the scripting system at all.

Adding scripting functionality to play and stop music from tokens is definitely something I'd like to do as well. I have a bunch of features I'd actually like to implement in maptool, but I'm starting with a few that have enhanced our own experiences.

Some features I've considered are:

1. Map tinting/shading in general to allow things like day/night transitions and what not.
2. More triggers for scripts. The oncampaignload is nice, but quite a few more triggers would aid maptool tremendously.
3. Letting people move a token that is only partially covered by fog of war. (This annoys my players primarily. The snap to grid with a speck of fog will make their token undraggable).

And so on...

User avatar
jfrazierjr
Deity
Posts: 5176
Joined: Tue Sep 11, 2007 7:31 pm

Re: Sound Tokens - Got it working, but needs a little work

Post by jfrazierjr »

RevenantBob wrote:
2. More triggers for scripts. The oncampaignload is nice, but quite a few more triggers would aid maptool tremendously.
Such as? ie, what specifically would you want to "automate"(I personally have my own list, that I will get around to at some point, but want to hear your ideas)
RevenantBob wrote:
3. Letting people move a token that is only partially covered by fog of war. (This annoys my players primarily. The snap to grid with a speck of fog will make their token undraggable).
ugh... yea.. I can't see an easy way(easy as in quick to code and foolproof in a number of scenariods) to do this without opening up the possibility of allowing them to move INTO solid FOW and then being unable to retrieve their token(ie, is it more grief for the GM to "fix" this scenario vs the current scenario... it really depends upon the players and how mature and intelligent they are during play).
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..

User avatar
wolph42
Winter Wolph
Posts: 9999
Joined: Fri Mar 20, 2009 5:40 am
Location: Netherlands
Contact:

Re: Sound Tokens - Got it working, but needs a little work

Post by wolph42 »

RevenantBob wrote:
wolph42 wrote:Hi, I'm Definately interested. I'm also curious how your work relates to this : http://forums.rptools.net/viewtopic.php?f=8&t=24085
Looks like he is using a script functionality to download sound from a webserver and play locally.

My modification is that sound becomes distributed like tokens (GM/Players simply drag them on the map) and they are transferred to everyone, stored in the maptool cache folder in the user directory and played and stopped by a server command message. It has nothing to do with the scripting system at all.

Adding scripting functionality to play and stop music from tokens is definitely something I'd like to do as well. I have a bunch of features I'd actually like to implement in maptool, but I'm starting with a few that have enhanced our own experiences.

Some features I've considered are:

1. Map tinting/shading in general to allow things like day/night transitions and what not.
2. More triggers for scripts. The oncampaignload is nice, but quite a few more triggers would aid maptool tremendously.
3. Letting people move a token that is only partially covered by fog of war. (This annoys my players primarily. The snap to grid with a speck of fog will make their token undraggable).

And so on...
Ok. Do you have anything to test yet? I'm curious how it works. Overall I like your drag n drop over the caching method as it stays true to the mt way. However the added scripts that LA crated are very useful especially as you can tie them onto a script.

Also does your audio play in a seperate thread or does it 'block' everything untils the sound is finished?

Volomon
Cave Troll
Posts: 56
Joined: Fri Jul 02, 2010 4:43 am
Contact:

Re: Sound Tokens - Got it working, but needs a little work

Post by Volomon »

This sounds very awesome I was tempted by someone elses work with Maptools to get music/sounds to play through Maptools though I required files and a server. This seems like a better alternative to that.

User avatar
Tanthos
Giant
Posts: 176
Joined: Thu Mar 28, 2013 6:55 pm
Location: United States

Re: Sound Tokens - Got it working, but needs a little work

Post by Tanthos »

:shock:

This is relevant to my interests.

Volomon
Cave Troll
Posts: 56
Joined: Fri Jul 02, 2010 4:43 am
Contact:

Re: Sound Tokens - Got it working, but needs a little work

Post by Volomon »

No progress or is this dead?

raazorfiend
Kobold
Posts: 17
Joined: Thu Sep 19, 2013 12:40 pm

Re: Sound Tokens - Got it working, but needs a little work

Post by raazorfiend »

THIS is an AWESOME idia! - I use music and sounds all the time when doing normal P&P sessions.
I usually make a cd or playlist in advance to improve atmosphere - and REALLY miss this funksion in maptools!

Tell me this is not dead!

raazorfiend
Kobold
Posts: 17
Joined: Thu Sep 19, 2013 12:40 pm

Re: Sound Tokens - Got it working, but needs a little work

Post by raazorfiend »

I´d love to see this work, please update!

User avatar
Jagged
Great Wyrm
Posts: 1306
Joined: Mon Sep 15, 2008 9:27 am
Location: Bristol, UK

Re: Sound Tokens - Got it working, but needs a little work

Post by Jagged »

This looks pretty cool. I don't use sounds in my games at the moment, but this looks good enough to make me start. :)

Nin
Cave Troll
Posts: 52
Joined: Tue Oct 25, 2011 8:17 am

Re: Sound Tokens - Got it working, but needs a little work

Post by Nin »

Yeah, that's the stuff I'm looking for.

User avatar
Altrunchen
Giant
Posts: 135
Joined: Sun Dec 02, 2012 3:01 pm

Re: Sound Tokens - Got it working, but needs a little work

Post by Altrunchen »

Do want! If only this was updated :'(

I've been looking for something like this for a LONG time now...if only...
Image

Post Reply

Return to “User Creations”