Community

 
Jump Menu:
Post Reply
Page 6 of 12  •  Prev 1 ... 4 5 6 7 8 ... 12 Next
Switch to Forum Live View
Sticky: [Map Testing Thread]
4 years ago  ::  Sep 28, 2009 - 12:01PM #51
Chirp
Date Joined: Jun 4, 2008
Posts: 1,451

Testing


RiverBattle.jpg

There is a world just around the corner of your mind,
where reality is an intruder and dreams come true.
You may escape into it at will.
You need no secret password, no magic wand or Aladdin's lamp;
only your own imagination and curiosity about things that never were.
Quick Reply
Cancel
4 years ago  ::  Sep 28, 2009 - 1:19PM #52
PBN
Date Joined: Jun 10, 2009
Posts: 6,721
yx A B C D E F G H I J K L M N O P Q R S T
0 g g g g g g g g g g g g g g g g g g g g
1 g g g g g g g g g g g g g g g g g g g g
2 g g g g g g g g g g g g g g g g g g g g
3 g g g g g g g g g g g g g g g g g g g g
4 g g g g g g g g g g g g g g g g g g g g
5 g g g g g g g g g g g g g g g g g g g g
6 g g g g g g g g g g g g g g g g g g g g
7 g g g g g g g g g g g g g g g g g g g g
8 g g g g g g g g g g g g g g g g g g g g
9 g g g g g g g g g g g g g g g g g g g g
10 g g g g g g g g g g g g g g g g g g g g
11 g g g g g g g g g g g g g g g g g g g g
12 g g g g g g g g g g g g g g g g g g g g
13 g g g g g g g g g g g g g g g g g g g g
14 g g g g g g g g g g g g g g g g g g g g
15 g g g g g g g g g g g g g g g g g g g g
16 g g g g g g g g g g g g g g g g g g g g
Through the ages, many would wonder "Does art imitate life or does life imitate art?"
I wonder "Does the art of discourse on the internet imitate the art of discourse in life or does the art of discourse in life imitate the art of discourse on the internet?"
Quick Reply
Cancel
4 years ago  ::  Sep 28, 2009 - 1:30PM #53
PBN
Date Joined: Jun 10, 2009
Posts: 6,721

Oh - for the max length of a post - it seems to be around 64k

Through the ages, many would wonder "Does art imitate life or does life imitate art?"
I wonder "Does the art of discourse on the internet imitate the art of discourse in life or does the art of discourse in life imitate the art of discourse on the internet?"
Quick Reply
Cancel
4 years ago  ::  Sep 28, 2009 - 1:47PM #54
shanizar
Date Joined: Dec 9, 2003
Posts: 1,017
yx A B C D E
0 g g g g g
1 g g g g g
2 g g g g g
3 g g g g g
4 g g g g g
Quick Reply
Cancel
4 years ago  ::  Sep 28, 2009 - 2:01PM #55
PBN
Date Joined: Jun 10, 2009
Posts: 6,721

Well, it's easy enough (global find/replace) to drop in the height and width attributes onto the img tags.  Although it adds a bunch to the length, it may not be SO bad, as the size of the map makes anything over an 18x18 grid too large for the screen.  (which hits on the  64k limit).


Basically, the 18px x 18px tokens are bit ... difficult to work with.  Looking at what WhiteBaron posted below, I thought 30px x 30px might work (the size I posted).  When I first tried on the 20 x 20 grid, I got the same ... mess... that came up earlier.  I trimmed it down row by row until I ended up 20 x 16 which crossed the 65535 boundary.


and that number is the number of total characters in the HTML code...


so...


{td style="border-top:solid 1px;border-left:solid 1px;"}{img  height="30" width="30" src="http://home.broadpark.no/~hfled/resources/tiles/grass_2.jpg" alt="g" /}{/td}


is 166 characters - braces in place of tag delimtiers

Through the ages, many would wonder "Does art imitate life or does life imitate art?"
I wonder "Does the art of discourse on the internet imitate the art of discourse in life or does the art of discourse in life imitate the art of discourse on the internet?"
Quick Reply
Cancel
4 years ago  ::  Sep 28, 2009 - 2:07PM #56
shanizar
Date Joined: Dec 9, 2003
Posts: 1,017

The main problem here is that I can't find any way of defining my styles outside the table cells themselves... I will try to do some research to find a way of making the html code shorter.


I can try increasing the size of my images to 32x32 or something like that, and then adding an option to set the size of the cells in the code. Setting it to anything other than the image size will add more html code though, as you say.


I could also shorten the name of the folders where the images are on the server, this would also cut the html code by a bit in maps with a lot of images...

Quick Reply
Cancel
4 years ago  ::  Sep 28, 2009 - 2:12PM #57
PBN
Date Joined: Jun 10, 2009
Posts: 6,721

some quick math: 19 (max cells for the screen at 30, as shown below - col 20 was/is cut off) x 30 = 570; 18 x 32 = 576.


32px is just about the limit (screen) for an 18 width grid.

Through the ages, many would wonder "Does art imitate life or does life imitate art?"
I wonder "Does the art of discourse on the internet imitate the art of discourse in life or does the art of discourse in life imitate the art of discourse on the internet?"
Quick Reply
Cancel
4 years ago  ::  Sep 28, 2009 - 2:17PM #58
shanizar
Date Joined: Dec 9, 2003
Posts: 1,017

As seen in the small map above, I can save a lot of html code just by making the grid double width (full border on all cells). Haven't thought about cutting down on that before


EDIT: quick test before I go to bed. By cutting down on file/folder names and setting full border on each cell I went from 5185 to 3633 characters on a 5x5 map with images in each cell... This makes it impossible to set color of cell walls, but I don't think many people use that option anyway.

Quick Reply
Cancel
4 years ago  ::  Sep 30, 2009 - 6:44AM #59
Golden_Silverstar
Date Joined: Sep 13, 2007
Posts: 220

Shanizar when on your mapmaker each square has a border but importing the map here removes the square. How do I get the lines making up the squares back? Edit; I guess the border color is white. Need them black.


 

yx A B C D E F G H I J K L M N O P Q R S T
0
1
2
3 8 7 6 5
4 4 3
5 L
6 2 1
7
8
9
10 K
11
12 D
13
14 F A
15
16 w
17
18
19
Visit my homepage with the maps of Faerun, Eberron and cities.
I DM the games Adventures into Conflict (4e FR) and Adventures into Power (3.5e FR)
Quick Reply
Cancel
4 years ago  ::  Sep 30, 2009 - 7:04AM #60
shanizar
Date Joined: Dec 9, 2003
Posts: 1,017

Hmm, are you saying that you aren't seeing borders around any of the squares in your map? It looks fine here...


You won't see it when editing the post, something to do with the html preview, but it should appear once you hit submit.


What operating system and web browser are you using?


 

Quick Reply
Cancel
Page 6 of 12  •  Prev 1 ... 4 5 6 7 8 ... 12 Next
Jump Menu:
 
    Viewing this thread :: 0 registered and 1 guest
    No registered users viewing