New [map] BBCode tag

Discussion of all aspects of multiplayer development: unit balancing, map development, server development, and so forth.

Moderator: Forum Moderators

sparr
Posts: 209
Joined: March 6th, 2006, 5:02 am

New [map] BBCode tag

Post by sparr »

We now have a bbcode tag for maps. Use the following bbcode:

Code: Select all

[map]
AAaaBBbbCCccDDdd
EEeeFFffGGggHHhh
IIiiJJjjKKkkLLll
MMmmNNnnOOooPPpp
QQqqRRrrSSssTTtt
UUuuVVvvWWwwXXxx
YYyyZZzz||//\\~~
  **^^%%@@[[]]??
$$..;;::__``1234
56790~~~~~~~~~~~
[/map]
To produce this result:
[map]
AAaaBBbbCCccDDdd
EEeeFFffGGggHHhh
IIiiJJjjKKkkLLll
MMmmNNnnOOooPPpp
QQqqRRrrSSssTTtt
UUuuVVvvWWwwXXxx
YYyyZZzz||//\\~~
**^^%%@@[[]]??
$$..;;::__``1234
56790~~~~~~~~~~~
[/map]

This example shows off most of the terrain types, including a bunch that dont really exist (yet). The tiles are individual, which means no pretty transitions like you get in a screenshot, but this should save bandwidth and time when displaying new maps on the forums.

PS: A few tiles are missing, due to my overlooking some php/html quirks in handling some characters during processing. This shall be fixed poste haste.
Last edited by sparr on June 3rd, 2007, 1:05 pm, edited 1 time in total.
Darth Fool
Retired Developer
Posts: 2633
Joined: March 22nd, 2004, 11:22 pm
Location: An Earl's Roadstead

Post by Darth Fool »

Am I the only one where the transparency beyond the hex edges isn't working?
User avatar
Sapient
Inactive Developer
Posts: 4453
Joined: November 26th, 2005, 7:41 am
Contact:

Post by Sapient »

Neat idea. It's not transparent for me, either. I'm using IE 6.
http://www.wesnoth.org/wiki/User:Sapient... "Looks like your skills saved us again. Uh, well at least, they saved Soarin's apple pie."
User avatar
turin
Lord of the East
Posts: 11662
Joined: January 11th, 2004, 7:17 pm
Location: Texas
Contact:

Post by turin »

Works for me.
For I am Turin Turambar - Master of Doom, by doom mastered. On permanent Wesbreak. Will not respond to private messages. Sorry!
And I hate stupid people.
The World of Orbivm
Xan
Inactive Developer
Posts: 258
Joined: August 28th, 2005, 3:05 pm
Contact:

Post by Xan »

AFAIK, all versions of IE don't display png transparency properly.
"It is time people learned about their failures and my successes."
sparr
Posts: 209
Joined: March 6th, 2006, 5:02 am

Post by sparr »

What Xan said. The funny part is that IE Mac rendered them properly around v5 or so, so MS obviously knows how to do it. FYI, IE also doesn't play nice with long URIs, a lot of css, and some html. Use broken browsers at your own risk.

PS: The tiles that should be avoided right now are & and " and 8. 8 is the only real tile right now, and most maps dont have 8 player starts, so no worries for the most part.
Hellrider
Posts: 81
Joined: July 22nd, 2005, 9:57 am

Post by Hellrider »

Really nice idea, thanks :D
User avatar
Noyga
Inactive Developer
Posts: 1790
Joined: September 26th, 2005, 5:56 pm
Location: France

Post by Noyga »

Really nice !
Btw sometimes you just want to show the map of a more complex scenario, so the 'Download this map" link doesn't help here.
Any way to disable it ?
sparr
Posts: 209
Joined: March 6th, 2006, 5:02 am

Post by sparr »

I did not consider scenarios when I added the download link. Making it optional is outside my skill with php. Sorry :(
radoz
Art Contributor
Posts: 51
Joined: March 18th, 2006, 11:38 am

Post by radoz »

Excellent idea and fun use of CSS, I'd say this new BBCode tag is pretty

[map]
ccccccccccccccccccccc
cIIIcIIIcIIIcIccccIsc
cIscsIsIsIsIsIscccIsc
cIsIcIsIsIsIsIsIccccc
ccIsscIsscIsscIsscIsc
ccccccccccccccccccccc
[/map]
There are only 10 types of people in the world: Those who understand binary, and those who don't ...
User avatar
Noyga
Inactive Developer
Posts: 1790
Joined: September 26th, 2005, 5:56 pm
Location: France

Post by Noyga »

sparr wrote:I did not consider scenarios when I added the download link. Making it optional is outside my skill with php. Sorry :(
Well it's a very minor problem of an awesome feature, it is proably fine as is :D
A possible solution would be to make 2 tags, like for example [map] and [map_download], the later with the download link enabled (the actual version).
User avatar
Ken_Oh
Moderator Emeritus
Posts: 2178
Joined: February 6th, 2006, 4:03 am
Location: Baltimore, Maryland, USA

Post by Ken_Oh »

I am amazed. (btw, works perfectly because I'm not using a broken browser, such as IE).
bioman
Posts: 53
Joined: September 24th, 2005, 12:38 pm
Location: England
Contact:

Post by bioman »

Love it! I guess this is as good a reason for anyone who uses these forums to get firefox..

*hint hint* :P
User avatar
Ranger M
Art Contributor
Posts: 1965
Joined: December 8th, 2005, 9:13 pm
Location: England

Post by Ranger M »

bioman wrote:Love it! I guess this is as good a reason for anyone who uses these forums to get firefox..

*hint hint* :P
Works fine on konqueror too.
scott
Posts: 5243
Joined: May 12th, 2004, 12:35 am
Location: San Pedro, CA

Post by scott »

I love this tag. I have started to use it to test quick map edits when it's not worth it to fire up the editor. Bravo!
Hope springs eternal.
Wesnoth acronym guide.
Post Reply