[Request] How to set map size

01/23/2011 05:11 Bitters#1
Hi guys,

does any of you happen to know where the size of the maps is defined in?
I would like to replace the normal Underground Arena by the Soccer Arena. Replacing the map itself works fine, but obviously there is some size definition hidden anywhere in the files. I can see the whole football arena but only the part that corresponds to the size of the Underground Arena is accessible.

Any hints are much appreciated.
01/23/2011 06:11 castor4878#2
Quote:
Originally Posted by Bitters View Post
does any of you happen to know where the size of the maps is defined in?
Any hints are much appreciated.
Not in server files - it appartently doesn't care about actual map sizes, of course items defined in the .svmap shall have coords compliant with the map size but there is no check.

So, in client stuff, that size is likely defined in the .wld file.
These ones seem to contain (more or less) the .svmap data among other ... noise?
Some parts of the .wld are ciphered others are in plain, and unfortunately i haven't (so far) a clean parser for them, so if any has info or wanna work on these files ...

Edit - BTW why (just) replacing the ground of the Underground Arena ?

Players know that place and they may want to find it as expected - because they enjoy the shape, the size, ..., they are also experienced on how to move and fight in that place.
The Gate-Keepers 2-21 (Tellonia Druimos) and 2-22 (Apis Desitil) currently use only 2 of the 3 destinations; so why not create a *new* PvP map with the Soccer Arena layout and specific content & behaviors (having bomber mobs spawning in the field (low spawn rate, nice drop (says 10mn noostrum) could be nice and will do a real diff with the und. arena place).

Edit(2):
Quote:
Originally Posted by Bitters View Post
Miss Bitters.
A.k.a. Ben ??
01/23/2011 23:54 Bitters#3
Yeah, I somehow suspected the definitions to be somewhere in the .wld files. That makes it a little more complicated than I would have preferred it to be.

Why replacing the nomal arena? Because I hate it, to be honest. I would even remove it completely. We have quite a bunch of top players with very good equipment and what do they do the whole day? Naked PvP in the arena. Because you can brilliantly farm kills that way. So, the arena is quite popular with the people while jungle and DD1/2 are abandoned.

However, we have put some guards into the alleyways to keep the players from running into them and start spawnkilling. The disadvantage is that all classes with ranged attacks can safely stay within the range of their guards and attack / heal from there.
Having the football arena instead of the normal one would prevent that since it is approx. double the size.

Quote:
Originally Posted by castor4878 View Post
A.k.a. Ben ??
The one and only :D
And where might I know you from?
01/24/2011 01:07 Bаne#4
bitters o you know how to edit .WLD files??
01/24/2011 01:50 Bitters#5
I wish I knew how to do that. Thats why I said it would be more complicated to replace that map.

Looking through the interwebs I have found the world editor from Serious Sam and the Beast editor for Flyff that seem to be able to process .wld files somehow. Most likely they will not work with "our" .wld files but I wonder if anyone has ever given it a try.
01/24/2011 02:22 Bаne#6
i have given 13 diffrent programs a try bitter...

unless you know the engine that the .WLD files were made with....you can't run them, so we would need sonoVs engine...
01/24/2011 13:22 zargon05#7
Sometime back I found a source-code for processing wld files. We can possibly use that to edit shaiya wld files but I have to find it again.
01/24/2011 23:24 KaliKid#8
The wld files are basically geo data files for the maps. They can be opened with any text editor, but in order to make any sense of it, you would need the svmap and wld file and compare them both in a map editing program. Your problem lies in the fact that you are simply replacing the svmap, but the game still reads the geometry and images from the wld file.
01/24/2011 23:32 shinru2004#9
the map size is determined by the svmap files, once extracted you will notice a file called map.bin.... im not sure how to edit the file but that is what determines map size
01/25/2011 23:15 castor4878#10
Quote:
Originally Posted by KaliKid View Post
[...]
Your problem lies in the fact that you are simply replacing the svmap, but the game still reads the geometry and images from the wld file.
I also wondered about this (what elements have been replaced).
Bitters said the striking visual was working, so I assumed that alll required files were replaced (meaning on client file 60.wld duplicated and renamed 40.wld, on server file 60.svmap duplicated and renamed 40.svmap) - is this correct Bitters?

Quote:
Originally Posted by shinru2004 View Post
the map size is determined by the svmap files, once extracted you will notice a file called map.bin.... im not sure how to edit the file but that is what determines map size
for most of the map "how to edit" is useless since the .bin part is fully filled with 00s.
but what's true is that the bit-size of that block is the pixel-size of the map (or more simply the length of one side of the map (they are all square - even when it's false) is the first long read from that bin (also the first long from the svmap).

but still ... Bitters had certainly replace that svmap, did you ?
01/28/2011 01:01 Bitters#11
Sorry for the late reply.
To be honest, I don't exactly know if both have been replaced when we tried it since I did not do it myself. The .wld in the client files seem to have been replaced since there was an update when I re-logged. I don't know about the .svmap. Probably that was not touched as I would expect that server a restart is required for that change to take effect and I can't remember one when we tested it. Think I'll give it another try soon.