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

Content and general development discussion, including maps, quests, and server code from the development team.
Post Reply
User avatar
o11c
Knight
Knight
Posts: 2262
Joined: Sun Feb 20, 2011 10:09 pm
Location: ^ ^

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

Post by o11c » Wed Sep 28, 2011 7:07 am

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
Former programmer for the TMWA server.
User avatar
argul
Novice
Novice
Posts: 237
Joined: Sun Aug 08, 2010 7:43 pm

Re: world map generation (for wiki)

Post by argul » Wed Sep 28, 2011 7:22 am

maybe it is even possible to extract
the 'TON of numbers' from the warp information?
---
User avatar
o11c
Knight
Knight
Posts: 2262
Joined: Sun Feb 20, 2011 10:09 pm
Location: ^ ^

Re: world map generation (for wiki)

Post by o11c » Wed Sep 28, 2011 8:56 am

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
Attachments
tulimshar.png
tulimshar.png (1.32 MiB) Viewed 3491 times
Former programmer for the TMWA server.
User avatar
baseballboy
Warrior
Warrior
Posts: 501
Joined: Sun Jan 04, 2009 9:04 pm
Location: USA, Alabama

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

Post by baseballboy » Wed Jul 11, 2012 4:12 pm

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.
Attachments
042-1.png
042-1.png (119.01 KiB) Viewed 3153 times
BaseBaIIBoy - 99, Zalika - 95, Mou. - 86, baseballboy - 83, Abacus - 82, Laticia - 76

<o11c> More boobs please.
User avatar
tux9th
TMW Adviser
TMW Adviser
Posts: 428
Joined: Fri Mar 09, 2012 9:21 pm
Location: -67.067433,54.433587

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

Post by tux9th » Tue Sep 25, 2012 5:59 pm

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
User avatar
tux9th
TMW Adviser
TMW Adviser
Posts: 428
Joined: Fri Mar 09, 2012 9:21 pm
Location: -67.067433,54.433587

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

Post by tux9th » Thu Sep 27, 2012 10:59 pm

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
Last edited by tux9th on Fri Nov 23, 2012 10:22 am, edited 1 time in total.
User avatar
tux9th
TMW Adviser
TMW Adviser
Posts: 428
Joined: Fri Mar 09, 2012 9:21 pm
Location: -67.067433,54.433587

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

Post by tux9th » Fri Nov 23, 2012 10:21 am

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
Post Reply