phpbb bbcode addition for wesnoth maps?
Moderator: Forum Moderators
phpbb bbcode addition for wesnoth maps?
I made a map, and I PM'd someone the "source code" for it (the textual content of the map file) since I didn't want to bother with an attachment for something so simple. It occured to me that it would not be particularly hard to write a phpbb addon to make a bbcode tag for maps. A simple html <table> could be used, along with inline terrain images. It wouldnt have to be as fancy as the real game terrain engine, no tile borders or concave/convex tests, just the base hexagon tiles.
Opinions? Would something like this be useful? You could include a "screenshot" of your map without having to take a picture or upload it, just paste in this:
[map]
aaabbbb
aaabbcc
ddddbbb
[/map]
or whatever the text of your map is.
Opinions? Would something like this be useful? You could include a "screenshot" of your map without having to take a picture or upload it, just paste in this:
[map]
aaabbbb
aaabbcc
ddddbbb
[/map]
or whatever the text of your map is.
Doing that for 10*10 maps is fine, but when you get much larger the image starts getting pretty large. It would be much better to do a scaled-down version.
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
And I hate stupid people.
The World of Orbivm
I have implemented it in bbcode, with automagic scaling to keep the maps ~720 pixels wide (since i know some people still browse at 800x600). I had to overlap the hexes by 2 pixels horizontally to eliminate artifacts of browser image scaling. At this point its usable, but not perfect. I need to find a way to display player start positions over the images, and I am going to have to build a tropical forest tile since that seems to be missing from the images.
I don't want to link to my local web server here, the traffic would hurt... so heres a screenshot of the post on my forum.
I don't want to link to my local web server here, the traffic would hurt... so heres a screenshot of the post on my forum.
- Attachments
-
- [map] bbcode tag in action
- wtest.jpg (62.63 KiB) Viewed 9238 times
ok, i just threw some public-domain-font text on top of the keep tile to represent player start positions. this is the first productive thing ive ever done in php, gonna work on cleaning up the code a little (its only a few dozen lines, mostly the mapletter->imagefilename replacements).
- Attachments
-
- player 3 start position
- keep-tile-p3.png (9.34 KiB) Viewed 9203 times
-
- player 10 start position
- keep-tile-p0.png (8.41 KiB) Viewed 9197 times
- Eleazar
- Retired Terrain Art Director
- Posts: 2481
- Joined: July 16th, 2004, 1:47 am
- Location: US Midwest
- Contact:
impressive.
the terrain files with "-tile" at the end of the name are designed to show up on the mini-map. If a tile is transparent, many layered or not perfectly hex-shaped there should be a flattened, hex shaped "-tile" file.
If not let me and/or frame know.
I'd also recommend yellow text for the player start position numbers.
the terrain files with "-tile" at the end of the name are designed to show up on the mini-map. If a tile is transparent, many layered or not perfectly hex-shaped there should be a flattened, hex shaped "-tile" file.
If not let me and/or frame know.
I'd also recommend yellow text for the player start position numbers.
Feel free to PM me if you start a new terrain oriented thread. It's easy for me to miss them among all the other art threads.
-> What i might be working on
Attempting Lucidity
-> What i might be working on
Attempting Lucidity
- Eleazar
- Retired Terrain Art Director
- Posts: 2481
- Joined: July 16th, 2004, 1:47 am
- Location: US Midwest
- Contact:
Yeah, there won't be "-tile" files for single layered terrains, like dirt. But there should be for the forest.sparr wrote:although i used non-"-tile" files for many of them (dirt, etc).
Feel free to PM me if you start a new terrain oriented thread. It's easy for me to miss them among all the other art threads.
-> What i might be working on
Attempting Lucidity
-> What i might be working on
Attempting Lucidity
i made a tropical forest tile here http://www.wesnoth.org/forum/viewtopic. ... highlight=
ill do a few more demo screenshots of the "finished" script when i get home this evening. clean up the source a little more, then it will be ready for use if anyone actually wants it.
if anyone has suggestions, speak now or for a few hours hold your peace
ill do a few more demo screenshots of the "finished" script when i get home this evening. clean up the source a little more, then it will be ready for use if anyone actually wants it.
if anyone has suggestions, speak now or for a few hours hold your peace
Seems to me that the numbers on the keeps need to be brighter. Perhaps make them red.
This is looking really cool. Could there also be a "download" button, so you don't have to attach the map separately? I know nothing abou PHP, this may or may not be possible.
This is looking really cool. Could there also be a "download" button, so you don't have to attach the map separately? I know nothing abou PHP, this may or may not be possible.
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
And I hate stupid people.
The World of Orbivm