[WIP] Silkroad Map Viewer

06/16/2012 21:16 perrytje#1
[Only registered and activated users can see links. Click Here To Register...]
So, I've been having too much time on my hands due to being graduated and having holidays, so I've been looking into the silkroad map formats. I got a great amount of help from ni's blog ([Only registered and activated users can see links. Click Here To Register...]) trying to crack this, and also Synx gave me some useful info. So once I figured out the main layout of the files I set to coding with this map viewer as result.

[Only registered and activated users can see links. Click Here To Register...] (read the install manual)

All it does at the moment is just load maps, but I'm planning on turning this into a fully functional map editor, which I'm sure pserver owners would love to get their hands on, maybe I'll sell it and make some money, not sure yet :].

For now you can enjoy this application that (just) views the maps.

How to Install:
Put the .exe and 2 .dll's in a directory in which you have a fully extracted Data directory (get it from the pk2 with an extractor) and a fully extracted Map directory. Once you've extracted those 2 directories you will have to use the dds/ddj converter to convert all the .ddj files in Data\prim\mtrl\* and all .ddj files in Map\tile2d.

Once you've done this the directory should look like this: SroMapViewer.exe, the 2 dll's, Map and Data.

Open up the exe and look in the map files. The folders with numbers are the Y section, and the numbers of the files in there represent the X sections. Center jangan would be Map\97\168.o2.

You can pan around by holding the right mouse button and dragging (be careful it's a bit derpy). Zoom in and out with your mousewheel.

Some pics of the program in action:
06/17/2012 01:02 LastThief*#2
dude you're awesome O_O
06/17/2012 08:28 qoaway#3
fucking epic
06/17/2012 12:19 dracek#4
Looks like I have been challenged. Long live Gaia then.
[Thanks for mentioning me, by the way. Whats up yrrep?]
06/17/2012 12:22 perrytje#5
Quote:
Originally Posted by dracek View Post
Looks like I have been challenged. Long live Gaia then.
[Thanks for mentioning me, by the way. Whats up yrrep?]
Long time no speak man ;) wanted to contact you while coding this, but Nezekan sux :D I figured (almost) everything out myself though! Your blog really helped xD
06/17/2012 12:49 Nezekan#6
Quote:
Originally Posted by perrytje View Post
Long time no speak man ;) wanted to contact you while coding this, but Nezekan sux :D I figured (almost) everything out myself though! Your blog really helped xD
I forgot to tell you he actually replied a couple of hours later, but in the end I forgot to ask him


kekekeke ^_^
06/17/2012 13:19 dracek#7
Quote:
Originally Posted by Nezekan View Post
I forgot to tell you he actually replied a couple of hours later, but in the end I forgot to ask him
kekekeke ^_^
that happens way too much. why has not he joined the irc himself, we will never know.
06/17/2012 18:07 CraYu#8
Really nice work perrytje I guess soon we can create our own content basically a custom silkroad, a question from me are those map files from 0 to 56 different because they don't have the .o2 extension.
06/17/2012 18:13 perrytje#9
the .o format is basically an older version of the .o2 format. Almost every map has an .o2 now, but apparently not the ones you pointed out. I don't know what those maps are, I'll have to look into it later.
06/20/2012 13:22 PortalDark#10
this could change sro completely(custom edition ftw)
keep going
06/20/2012 15:13 ÑõÑ_Ŝŧóp#11
good job,but as an advice : obfuscate your code :|
06/20/2012 16:41 perrytje#12
Quote:
Originally Posted by ÑõÑ_Ŝŧóp View Post
good job,but as an advice : obfuscate your code :|
Thanks, but why would I?
06/20/2012 16:45 ÑõÑ_Ŝŧóp#13
Quote:
Originally Posted by perrytje View Post
Thanks, but why would I?
because your work will be leeched?
06/20/2012 16:47 perrytje#14
Quote:
Originally Posted by ÑõÑ_Ŝŧóp View Post
because your work will be leeched?
I haven't released the source, they would have to reverse it or decompile it somehow. If you can manage to do that it doesnt matter if I obfuscated it or not, they will figure it out.
06/20/2012 16:52 ÑõÑ_Ŝŧóp#15
Quote:
Originally Posted by perrytje View Post
I haven't released the source, they would have to reverse it or decompile it somehow. If you can manage to do that it doesnt matter if I obfuscated it or not, they will figure it out.
decompiling a .NET application is not hard its just too simple,if you obfuscate your application it would be a bit harder to understand the code,also after deobfuscating (which is not hard also) it will be hard to read the code... my advice is to use smart assembly at least