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

Content and general development discussion, including quest scripts and server code. TMW Classic is a project comprising the Legacy tmwAthena server & the designated improved engine server based on evolHercules.


Forum rules

This forum houses many years of development, tracing back to some of the earliest posts that exist on the board.

Its current use is for the continued development of the server and game it has always served: TMW Classic.

Post Reply
User avatar
o11c
Grand Knight
Grand Knight
Posts: 2262
Joined: 20 Feb 2011, 21:09
Location: ^ ^

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

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

Re: world map generation (for wiki)

Post by argul »

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

Re: world map generation (for wiki)

Post 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
Attachments
tulimshar.png
tulimshar.png (1.32 MiB) Viewed 5272 times
Former programmer for the TMWA server.
User avatar
baseballboy
Knight
Knight
Posts: 502
Joined: 04 Jan 2009, 20:04
Location: USA, North Carolina

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

Post 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.
Attachments
042-1.png
042-1.png (119.01 KiB) Viewed 4934 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: 09 Mar 2012, 20:21
Location: -67.067433,54.433587

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

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

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

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

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

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