Announcements: Cutting Costs (2024) » January 2024 Copyfraud Attack » Finding Universes to Join (and making yours more visible!) » Guide To Universes On RPG » Member Shoutout Thread » Starter Locations & Prompts for Newcomers » RPG Chat — the official app » Frequently Asked Questions » Suggestions & Requests: THE MASTER THREAD »

Latest Discussions: Adapa Adapa's for adapa » To the Rich Men North of Richmond » Shake Senora » Good Morning RPG! » Ramblings of a Madman: American History Unkempt » Site Revitalization » Map Making Resources » Lost Poetry » Wishes » Ring of Invisibility » Seeking Roleplayer for Rumple/Mr. Gold from Once Upon a Time » Some political parody for these trying times » What dinosaur are you? » So, I have an Etsy » Train Poetry I » Joker » D&D Alignment Chart: How To Get A Theorem Named After You » Dungeon23 : Creative Challenge » Returning User - Is it dead? » Twelve Days of Christmas »

Players Wanted: Long-term fantasy roleplay partners wanted » Serious Anime Crossover Roleplay (semi-literate) » Looking for a long term partner! » JoJo or Mha roleplay » Seeking long-term rp partners for MxM » [MxF] Ruining Beauty / Beauty x Bastard » Minecraft Rp Help Wanted » CALL FOR WITNESSES: The Public v Zosimos » Social Immortal: A Vampire Only Soiree [The Multiverse] » XENOMORPH EDM TOUR Feat. Synthe Gridd: Get Your Tickets! » Aishna: Tower of Desire » Looking for fellow RPGers/Characters » looking for a RP partner (ABO/BL) » Looking for a long term roleplay partner » Explore the World of Boruto with Our Roleplaying Group on FB » More Jedi, Sith, and Imperials needed! » Role-player's Wanted » OSR Armchair Warrior looking for Kin » Friday the 13th Fun, Anyone? » Writers Wanted! »

Making Imagemaps in BBCode!

a topic in Game Design Workshop, a part of the RPG forum.

Moderators: Ambassadors, Scholars

A forum for discussions about the general design of RPG systems and techniques for building good roleplaying games.

Making Imagemaps in BBCode!

Tips: 26.25 INK Postby LawOfTheLand on Sun May 07, 2017 2:13 am

An imagemap is an exciting new feature recently rolled out onto RPG, and it lets you select part of an image and turn it into a link to something else! It's like embedding a link in an image, only here you can specify what part of an image hides the button. For big roleplays with a lot of places in them like The Multiverse, it's a great tool to help visualize how various pieces of a setting fit together geographically, provided you can find an accurate enough graphic to represent the setting as a whole. So let's get started!

General Form
Code: Select all
[imagemap=name]imageURL[/imagemap]
[map=name]
[area=x1,y1,x2,y2,x3,y3,x4,y4]link[/area] //More area lines can follow this one, following the same template. You need at least three coordinates.
[/map]


As you can see, the raw code for this is fairly link-heavy, as you need both a link to the image itself as well as links to all the other things you want to link from it. As for the coordinates, well, we'll get into that in a moment.

Sample Code
Code: Select all
[center][imagemap=Johto]http://cdn.bulbagarden.net/upload/0/04/Johto.png[/imagemap]
[map=Johto]
[area=79,40,79,58,98,58,98,40]https://www.roleplaygateway.com/roleplay/the-multiverse/places/ecruteak-city[/area]
[area=88,120,88,130,106,130,106,120]https://www.roleplaygateway.com/roleplay/the-multiverse/places/azalea-town[/area]
[area=55,65,55,82,74,82,74,65]https://www.roleplaygateway.com/roleplay/the-multiverse/places/olivine-city[/area]
[area=43,59,43,70,54,70,54,59]https://www.roleplaygateway.com/roleplay/the-multiverse/places/battle-frontier[/area]
[area=49,98,49,104,56,104,56,98]https://www.roleplaygateway.com/roleplay/the-multiverse/places/whirl-islands[/area]
[area=119,47,119,58,129,58,129,47]https://www.roleplaygateway.com/roleplay/the-multiverse/places/mahogany-town[/area]
[area=63,87,63,105,89,105,89,87]https://www.roleplaygateway.com/roleplay/the-multiverse/places/goldenrod-city[/area]
[/map][/center]


This is a sample of the code I used to make the imagemap of the Johto region for Ecruteak City in The Multiverse. Let's go down it line by line.

Center tags centers the picture as a whole to make it look pretty and prominent. These are purely optional.
Imagemap tags tell the server that certain commands are valid for this particular picture, namely the area command.
The map tags start and end the list of clickable areas in the picture.
Area tags specify the pixel coordinates of the vertices for each clickable region. The destination link is inside the area tags. In this specific case, note that I'm even allowed to link back to the page the map is on. (As a note on style, I keep each area tag on a separate line. This doesn't impact how the code compiles, but what it does do is make bugs easier to find and squash.)
WARNING! When specifying a region with more than three vertices, make sure the coordinates are to adjacent vertices. In the rectangular regions I drew in the example, an early draft had it so upper right was followed immediately by lower left, making the clickable regions half as big as they should be. Basically, you had to click near the bottom for the link to work normally. So for a rectangle, make sure you go upper left, upper right, bottom right, bottom left! I learned this one the hard way.
N.B. You're allowed to make more complicated shapes than this. However, this way I only have to remember two ordered pairs when finding the coordinates in the image. It's just a personal preference.

After you're done linking all the things, you can proceed to pin your map wherever you like--on a place page to show what towns are adjacent, or maybe in one of your OOC threads to help breathe life into the world you're playing in. Then if a place on the picture looks interesting, and you put a button there, someone will be taken to the page for that location and be able to learn more about it!
Image

Tip jar: the author of this post has received 26.25 INK in return for their work.

User avatar
LawOfTheLand
Contributor
Contributor
Member for 16 years
Beta Tester Promethean Conversation Starter Author World Builder Conversationalist Friendly Beginnings Novelist Builder Donated! Party Starter Contributor Person of Interest Bug Hunter Streamwatcher Maiden Voyager Recruiter Greeter Visual Appeal Tipworthy Property Buyer Salesman Concierge Arc Warden Lifegiver

Re: Making Imagemaps in BBCode!

Tips: 1.25 INK Postby LawOfTheLand on Sat May 27, 2017 4:09 pm

List of imagemaps in the wild:

Cerulean City, The Multiverse
Ecruteak City, The Multiverse
Poni Island, The Multiverse

New idea for making imagemaps: If you have a group picture, you can just make an imagemap linking to each individual member. You could do this for a board of directors, soldiers in a squad, a basketball team, or even a Pokemon trainer and their faithful companions.

Tip jar: the author of this post has received 1.25 INK in return for their work.

User avatar
LawOfTheLand
Contributor
Contributor
Member for 16 years
Beta Tester Promethean Conversation Starter Author World Builder Conversationalist Friendly Beginnings Novelist Builder Donated! Party Starter Contributor Person of Interest Bug Hunter Streamwatcher Maiden Voyager Recruiter Greeter Visual Appeal Tipworthy Property Buyer Salesman Concierge Arc Warden Lifegiver

Re: Making Imagemaps in BBCode!

Tips: 13.00 INK Postby ColeMaibara on Thu Jun 22, 2017 5:41 pm

Negus Sol has some locations marked as an imagemap. The various points lead to The Aurora, Morta IV, Terra, and The Milky Way.

Image

Tip jar: the author of this post has received 13.00 INK in return for their work.

User avatar
ColeMaibara
Member for 12 years
Contributor Promethean Conversation Starter Author Inspiration World Builder Conversationalist Friendly Beginnings Novelist Builder Beta Tester Storyteller Arc Warden Party Starter Codeweaver Person of Interest Group Theory Helmsman Streamwatcher Maiden Voyager Tipworthy Cult Leader Greeter Visual Appeal Salesman Property Buyer Lifegiver

Re: Making Imagemaps in BBCode!

Tips: 0.50 INK Postby LawOfTheLand on Sat Sep 16, 2017 9:59 pm

Of course, the quick and dirty way to do this would simply be to download the image, edit it in the editor of your choice by adding a legend or simply a bunch of circles and arrows, and then upload the edited version. This way you could also make the argument that you've substantially altered the existing image, and can therefore claim it as fair use or some shit.

Tip jar: the author of this post has received 0.50 INK in return for their work.

User avatar
LawOfTheLand
Contributor
Contributor
Member for 16 years
Beta Tester Promethean Conversation Starter Author World Builder Conversationalist Friendly Beginnings Novelist Builder Donated! Party Starter Contributor Person of Interest Bug Hunter Streamwatcher Maiden Voyager Recruiter Greeter Visual Appeal Tipworthy Property Buyer Salesman Concierge Arc Warden Lifegiver

Re: Making Imagemaps in BBCode!

Tips: 1.25 INK Postby lostamongtrees on Thu Sep 21, 2017 6:18 pm

Thank you so much for this Law! Looking forward to making all the image maps for various locations! I'll update this post with my further additions

Lost's IMG Maps
tag me in the chat!

Image
Become a Cartographer
Chart the stars of
The Multiverse with us!

The Hunt
Do you have what it takes
to become a Hunter?

"Across the nations the stories spread like spiderweb laid upon spiderweb, and men and women planned the future, believing they knew truth.
They planned, and the Pattern absorbed their plans, weaving toward the future foretold."

- Robert Jordan

Tip jar: the author of this post has received 1.25 INK in return for their work.

User avatar
lostamongtrees
Ambassador
Ambassador
Member for 13 years
Promethean Conversation Starter Author Inspiration World Builder Conversationalist Novelist Arc Warden Party Starter Person of Interest Group Theory Helmsman Builder Streamwatcher Beta Tester Storyteller Maiden Voyager Greeter Concierge Friendly Beginnings Recruiter Tipworthy Cult Leader Hordemaster Historian Lifegiver Visual Appeal Donated! Salesman Property Buyer Contributor Giver Giver

Re: Making Imagemaps in BBCode!

Tips: 0.25 INK Postby Remæus on Sat Jan 25, 2020 6:05 pm

We're planning on importing 100% of the imagemaps we find in the Multiverse as seeds for the procedural generation of the local models. If you've got a map of your locations, go ahead and look into tooling for doing this easily! Share what you find so everyone can contribute.
Alvin Toffler wrote:The illiterates of the 21st century will not be those who cannot read and write but those who cannot learn, unlearn, and relearn.

Take a moment and consider joining my Patreon group, where I share personal development updates and plans for the future...

Tip jar: the author of this post has received 0.25 INK in return for their work.

User avatar
Remæus
Architect
Member for 19 years
Contributor Progenitor Author Promethean Conversation Starter Inspiration World Builder Conversationalist Friendly Beginnings Builder Greeter Beta Tester Arc Warden Party Starter Codeweaver Group Theory Person of Interest Streamwatcher Helmsman Recruiter Maiden Voyager Tipworthy Salesman Property Buyer Visual Appeal Concierge Cult Leader Lifegiver Storyteller Donated! Anomaly Hunter Giver

Re: Making Imagemaps in BBCode!

Tips: 0.25 INK Postby lil_kreen on Sun Feb 23, 2020 11:29 pm

Code: Select all
[imagemap=milkyway]https://drive.google.com/uc?export=download&id=1Nhar5zIlV-Wtm5zZllGqoioJitQx6g9o[/imagemap]
[map=milkyway][area=360,555,435,480,450,390,375,450]http://www.roleplaygateway.com/universes/the-multiverse/places/the-galactic-bar[/area]
[area=390,540,465,495,495,450,465,390,480,450,435,495]http://www.roleplaygateway.com/universes/the-multiverse/places/near-3kpc-arm[/area]
[area=420,405,360,420,315,480,315,555,345,480,375,435]http://www.roleplaygateway.com/universes/the-multiverse/places/far-3kpc-arm[/area]
[area=435,390,360,375,300,405,270,450,255,510,270,570,360,630,450,660,600,615,675,495,675,345,585,195,510,135,510,165,600,270,645,345,645,480,585,585,480,630,420,630,345,600,300,570,285,525,285,465,330,405]http://www.roleplaygateway.com/universes/the-multiverse/places/sagittarius-arm[/area]
[area=375,555,405,570,465,540,510,495,540,435,510,330,405,285,300,285,300,315,405,315,495,360,510,435,465,525]http://www.roleplaygateway.com/universes/the-multiverse/places/norma-arm[/area]
[area=255,330,165,375,135,465,135,585,180,690,210,735,330,810,405,825,615,810,795,675,780,660,645,765,585,780,480,795,360,780,210,690,165,570,165,465,210,390,255,345]http://www.roleplaygateway.com/universes/the-multiverse/places/outer-arm[/area]
[area=330,555,405,585,510,555,570,465,555,330,480,240,375,195,255,210,150,285,75,390,30,540,15,435,75,285,195,195,330,150,390,150,495,195,585,285,615,405,615,480,570,570,480,615,405,615,330,585]http://www.roleplaygateway.com/universes/the-multiverse/places/scutum-centaurus-arm[/area]
[area=450,390,480,360,390,330,330,330,270,360,210,435,195,510,210,600,255,675,330,735,435,750,555,750,690,675,750,570,750,540,675,630,585,690,525,720,420,720,345,690,240,600,225,525,240,450,300,375,360,360,420,375]http://www.roleplaygateway.com/universes/the-multiverse/places/perseus-arm[/area]
[area=285,600,300,600,390,660,390,675,405,675,510,690,495,705,405,705,345,675]https://www.roleplaygateway.com/universes/the-multiverse/places/orion-spur[/area]
[area=390,660,405,660,405,675,390,675]http://www.roleplaygateway.com/universes/the-multiverse/places/sol-deep-space[/area][/map]

Tip jar: the author of this post has received 0.25 INK in return for their work.

User avatar
lil_kreen
Groundskeeper
Groundskeeper
Member for 9 years
Author Novelist Donated! Beta Tester Contributor Codeweaver Person of Interest Maiden Voyager Salesman Property Buyer Arc Warden Storyteller Historian Group Theory Lifegiver Tipworthy World Builder Builder Friendly Beginnings Visual Appeal

Re: Making Imagemaps in BBCode!

Tips: 0.50 INK Postby lil_kreen on Sun Feb 23, 2020 11:34 pm

Imagemap notes:
The maximum size for the layout is 900px wide.
imagemaps cannot be scaled so the files must be actual size.

Regex to convert HTML image map in gimp's output (under web->image map)
  • you need to use the poly tool as the bbcode does not support circles or rect.
  • Neither does it support overlaying, make strips with polys rather than overlaying areas.
  • You will need something other than basic notepad (such as notepad++) to accomplish this.
From: <area shape="poly" coords="([\d,]+)"\s+href="([\d\.\w\\\-\/:]+)" \/>
To: \[area=\1\]\2\[\/area\]

Tip jar: the author of this post has received 0.50 INK in return for their work.

User avatar
lil_kreen
Groundskeeper
Groundskeeper
Member for 9 years
Author Novelist Donated! Beta Tester Contributor Codeweaver Person of Interest Maiden Voyager Salesman Property Buyer Arc Warden Storyteller Historian Group Theory Lifegiver Tipworthy World Builder Builder Friendly Beginnings Visual Appeal

Re: Making Imagemaps in BBCode!

Tips: 0.00 INK Postby lil_kreen on Sun Feb 23, 2020 11:42 pm

Code: Select all
[imagemap=skyriver]https://drive.google.com/uc?export=download&id=1PqjK_v29OCnjfv-vW_wvhSYqGirSKLs-[/imagemap]
[map=skyriver][area=428,344,396,356,381,389,392,425,427,444,462,431,478,394,463,356]https://www.roleplaygateway.com/universes/the-multiverse/places/skyriver-deep-core[/area]
[area=428,313,389,323,362,351,349,391,357,426,384,462,425,475,462,468,497,437,512,392,504,359,464,319,433,314,433,343,466,355,479,394,464,432,427,446,391,427,379,389,394,355,430,342]https://www.roleplaygateway.com/universes/the-multiverse/places/skyriver-core[/area]
[area=430,286,381,299,339,340,326,392,333,441,375,486,428,501,480,490,520,453,539,392,529,351,480,298,433,286,433,310,465,316,507,358,513,394,499,439,464,470,425,478,382,463,355,428,348,391,361,350,387,321,430,310]https://www.roleplaygateway.com/universes/the-multiverse/places/skyriver-colonies[/area]
[area=430,273,376,269,351,282,315,356,308,433,315,492,358,528,413,547,481,541,533,508,539,457,564,384,581,362,588,326,564,274,536,245,517,250,469,267,434,273,434,284,481,297,531,350,541,392,521,456,480,492,429,503,375,488,332,444,325,392,338,337,380,297,430,284]https://www.roleplaygateway.com/universes/the-multiverse/places/skyriver-inner-rim[/area]
[area=428,262,387,259,346,248,325,260,300,336,290,433,303,513,332,539,361,556,391,597,420,603,496,593,541,574,559,559,574,556,587,519,611,492,625,464,627,410,604,335,586,281,562,251,538,240,434,263,434,270,469,265,517,249,538,243,567,273,592,327,584,363,566,387,542,459,537,511,482,545,412,551,356,531,314,495,306,434,312,357,350,279,377,265,430,271]https://www.roleplaygateway.com/universes/the-multiverse/places/skyriver-expansion-region[/area]
[area=422,198,347,209,305,258,278,378,279,512,290,578,347,638,373,653,443,658,505,628,542,625,569,628,658,603,691,576,706,534,708,493,702,477,706,337,711,278,705,245,678,231,610,233,549,242,526,234,485,210,427,197,431,259,500,244,533,239,550,244,567,252,589,279,608,334,630,411,627,465,613,494,590,521,577,561,560,563,542,577,497,597,419,607,389,600,358,561,330,542,301,517,287,433,298,337,323,259,345,244,388,256,428,260]https://www.roleplaygateway.com/universes/the-multiverse/places/skyriver-mid-rim[/area]
[area=464,14,366,68,295,197,246,237,174,290,207,412,217,478,99,589,233,780,558,779,732,658,788,571,810,392,833,274,778,147,715,61,563,93,468,14,462,201,504,216,539,236,678,228,708,243,716,276,709,347,709,476,712,495,708,537,695,578,658,606,574,631,535,629,505,631,442,661,375,656,347,641,289,579,276,512,276,376,301,257,346,204,420,195,459,200]https://www.roleplaygateway.com/universes/the-multiverse/places/skyriver-outer-rim[/area][/map]

Tip jar: the author of this post has received 0.00 INK in return for their work.

User avatar
lil_kreen
Groundskeeper
Groundskeeper
Member for 9 years
Author Novelist Donated! Beta Tester Contributor Codeweaver Person of Interest Maiden Voyager Salesman Property Buyer Arc Warden Storyteller Historian Group Theory Lifegiver Tipworthy World Builder Builder Friendly Beginnings Visual Appeal


Post a reply

Make a Donation

$

RPG relies exclusively on user donations to support the platform.

Donors earn the "Contributor" achievement and are permanently recognized in the credits. Consider donating today!

 

Who is online

Users browsing this forum: No registered users and 1 guest