Page 1 of 1

world map inconsistent [was:world map generation (for wiki)]

Posted: 28 Sep 2011, 06:07
by o11c
I was playing with imagemagick, and came up with a useful thing:

Code: Select all

#!/bin/bash
## Copyright 2011 Ben Longbons
##    This program is free software: you can redistribute it and/or modify
##    it under the terms of the GNU General Public License as published by
##    the Free Software Foundation, either version 2 of the License, or
##    (at your option) any later version.
##
##    This program is distributed in the hope that it will be useful,
##    but WITHOUT ANY WARRANTY; without even the implied warranty of
##    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
##    GNU General Public License for more details.
##
##    You should have received a copy of the GNU General Public License
##    along with this program.  If not, see <http://www.gnu.org/licenses/>.

tilesize()
{
    let TILESIZE="$1"
}
continent()
{
    O="$1".png
    let T_W="$2"
    let T_H="$3"
    let P_W=T_W*TILESIZE
    let P_H=T_H*TILESIZE
    convert -size ${P_W}x${P_H} canvas:transparent "$O"
}
offset()
{
    let O_X+="$1"
    let O_Y+="$2"
}
map()
{
    local I T_X T_Y P_X P_Y
    I="$1".png
    let T_X=O_X+"$2"
    let T_Y=O_Y+"$3"
    let P_X=T_X*TILESIZE
    let P_Y=T_Y*TILESIZE

    convert "$O" \( "$I" -repage ${P_W}x${P_H}+${P_X}+${P_Y} -background transparent -flatten \) \( -clone 0 -clone 1 -composite \) \( -clone 1 -clone 0 -composite \) -delete 0,1 -compose blend -set option:compose:args 50 -composite "$O"
}

for ARG
do
    source "$ARG"
done
Edit: incomplete demo removed.

Now all I need are a TON of numbers...

Edit 2013-05-23: add copyright terms

Re: world map generation (for wiki)

Posted: 28 Sep 2011, 06:22
by argul
maybe it is even possible to extract
the 'TON of numbers' from the warp information?

Re: world map generation (for wiki)

Posted: 28 Sep 2011, 07:56
by o11c
argul wrote:maybe it is even possible to extract
the 'TON of numbers' from the warp information?
It would be possible to get within a few tiles (remember the warp doesn't lead exactly to the other place), provided you can correctly match up the to/from pair.

It didn't take too long to generate this by trial and error.

---

I finished Tulimshar, as much as possible. Maps 041-1 and 042-2 have major problems, there are a couple of minor issues elsewhere.

Moving this to content development as it has revealed content bugs, and is no longer just a website enhancement.

Code: Select all

tilesize 4

continent tulimshar 595 593
offset 174 253

map 001-1 0 0
map 002-1 -14 74
map 003-1 -174 64
map 004-1 -70 -28
map 005-1 123 114
map 006-1 271 190
map 021-1 -11 -126
map 022-1 -11 -214
map 024-1 -48 -136
# map 032-1 has no aboveground connection

# maps 041-1 and 042-1 don't fit properly
# following 004-1
map 041-1 -78 -106
: map 042-1 -62 -184
# following 042-1
: map 041-1 -126 -175
map 042-1 -110 -253

Re: world map inconsistent [was:world map generation (for wi

Posted: 11 Jul 2012, 15:12
by baseballboy
I know the thread is semi-old but I've fixed this mapping error (see my image attachment).
@o11c if you would so kindly regenerate this world view with my repo I would be extremely generous.

http://github.com/dweems/tmwa-client-data/

-BBB

Edit: Note this isn't the final version but it's the basic outline. Just trying to make it fit better.

Re: world map inconsistent [was:world map generation (for wi

Posted: 25 Sep 2012, 16:59
by tux9th
Image

Code: Select all

tilesize 4

continent tulimshar 595 593
offset 174 253

map 001-1 0 0
map 002-1 -14 74
map 003-1 -174 64
map 004-1 -70 -28
map 005-1 122 114
map 006-1 270 190
map 021-1 -11 -126
map 022-1 -11 -214
map 024-1 -48 -136
map 042-1 -89 -246
map 041-1 -103 -106
map 032-1 225 -93
greets

Re: world map inconsistent [was:world map generation (for wi

Posted: 27 Sep 2012, 21:59
by tux9th

Code: Select all

tilesize 4

continent argaes 786 554
offset 321 267

map 008-1 0 0
map 007-1 10 80
map 011-1 -100 0
map 010-1 -100 80
map 012-1 -159 -167
map 013-1 -29 -182
map 014-1 -181 -30
map 015-1 -180 80
map 016-1 -100 167
map 017-1 -29 -267
map 018-1 0 -81
map 025-1 -211 162
map 026-1 -321 162
map 027-1 -321 72
map 055-1 85 -182
map 056-1 85 -239
map 057-1 215 -182
#map 058-1 345 -258

Re: world map inconsistent [was:world map generation (for wi

Posted: 23 Nov 2012, 09:21
by tux9th

Code: Select all

tilesize 4

continent kaizei 595 461
offset 397 200

map 019-1 0 0
map 020-1 0 -107
map 030-1 0 75
map 031-1 70 -107
map 033-1 -98 0
map 034-1 -236 0
map 044-1 -133 61
map 045-1 -397 -29
map 046-1 -236 -100
map 047-1 -236 -200
map 048-1 -373 -200