Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server > CO2 PServer Guides & Releases
You last visited: Today at 02:45

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Release] TinyMap (DMap converter & loader)

Discussion on [Release] TinyMap (DMap converter & loader) within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Closed Thread
 
Old   #1
 
.Kinshi's Avatar
 
elite*gold: 0
Join Date: Dec 2010
Posts: 341
Received Thanks: 255
[Release] TinyMap (DMap converter & loader) [UPDATED]

TinyMap v1.7 + Source

:Updates:
  • Fixed bug with multiple Map Id's using the same DMap

:What?:
TinyMap is a DMap loader and converter for private servers (or any Conquer application) coded in C# (.Net 4.0)
It unzips the DMaps, loads them, combines them with Scene files, and converts into TinyMap format.
TinyMap files load a lot faster than the regular DMaps.

:Why?:
TinyMap is quick and easy to use. If you're still loading the regular DMaps or not loading them at all, this is for you!

:How to use:
Download the file below, it will have a TinyMap.dll file and a 7z.dll file.
Add a reference to only the TinyMap.dll file to your application, but NOT the 7z.dll file or SevenZipSharp.dll file. Put the 7z.dll and SevenZipSharp.dll files with your executable.
Include it in the file where you want to use it.
Code:
using TinyMap;
Then define a new TinyMapServer.
Code:
public static TinyMapServer TMapServer = new TinyMapServer();
To begin loading, change ConquerDirectory to where you installed Conquer.
Make sure it has the ini and map folders in it.
Code:
TMapServer.ConquerDirectory = @"C:\Program Files (x86)\Conquer 2.0";
TMapServer.Load();
To check for valid coordinates use:
Code:
bool valid = TMapServer.Valid(MapID, X, Y);
To check for valid coordinates, using height as well, use:
Code:
bool valid = TMapServer.Valid(MapID, currentX, currentY, newX, newY);
:Options:
Code:
// Options shown are set to their default value
TMapServer = new TinyMapServer() 
{
    ConquerDirectory  = @"C:\Program Files (x86)\Conquer 2.0",
    LoadPortals = false, // Adds portals to TinyMaps
    Threading = false, // Runs on a different process
    ShowOutput = false, // Shows what TinyMaps is doing
    ShowErrors = true, // Shows errors that occur
    LoadHeight = false, // Adds height to TinyMaps
    ExtractDMaps = true // Set to false for older client versions
};
:Features:
  • Scene support
  • Height support
  • Fast TinyMap load times
  • Optimized DMap load times
  • PNG conversion
  • Load TinyMap when a player enters a map

:Thanks:
  • Sparkie
  • Korvacs
Attached Files
File Type: zip TinyMap1.7.zip (478.4 KB, 657 views)
File Type: zip TinyMap1.7_src.zip (526.5 KB, 647 views)
.Kinshi is offline  
Thanks
27 Users
Old 02/02/2011, 15:27   #2
 
ImFlamedCOD's Avatar
 
elite*gold: 0
Join Date: Jun 2009
Posts: 378
Received Thanks: 140
Looks great, checked it out tested it with my latest source and everything worked fine. Nice release tho.
ImFlamedCOD is offline  
Old 02/02/2011, 19:22   #3
 
.Kinshi's Avatar
 
elite*gold: 0
Join Date: Dec 2010
Posts: 341
Received Thanks: 255
Quote:
Originally Posted by ImFlamedCOD View Post
Looks great, checked it out tested it with my latest source and everything worked fine. Nice release tho.
Thanks, I'm glad it worked for you!


Added version 1.4!
.Kinshi is offline  
Thanks
1 User
Old 02/03/2011, 02:41   #4
 
elite*gold: 80
Join Date: Sep 2007
Posts: 642
Received Thanks: 168
Doesn't Korv's loader do the same thing? Doesn't he convert them to like .smap or something? How does this compare to his?
Santa is offline  
Old 02/03/2011, 09:31   #5
 
.Kinshi's Avatar
 
elite*gold: 0
Join Date: Dec 2010
Posts: 341
Received Thanks: 255
Quote:
Originally Posted by StarBucks View Post
Doesn't Korv's loader do the same thing? Doesn't he convert them to like .smap or something? How does this compare to his?
Well, the new DMaps are zipped into .7z files, thus changing the GameMap.dat file to look for the .7z files, not .DMap files.
Korvac's doesn't support this, so it won't find and convert the new DMaps.

TinyMaps on the other hand, unzips the 7z files for you, loads them, and converts them.
If new maps come out, just delete your "tinymap" folder and the TinyMap server will convert them automagically.
It has more options to what you want to do, and is a lot easier to set up, you don't have to change files and folders around at all.

Plus, I'm updating and adding new features to TinyMaps.

Give it a try.
.Kinshi is offline  
Old 02/03/2011, 12:26   #6
 
.Kinshi's Avatar
 
elite*gold: 0
Join Date: Dec 2010
Posts: 341
Received Thanks: 255
Update!

Added version 1.5.9!
Changes:
  • Added validity checking for height
  • Fixed bug where scene files weren't loading correctly
  • Modified PNG conversion
.Kinshi is offline  
Thanks
1 User
Old 02/04/2011, 04:21   #7
 
elite*gold: 0
Join Date: Oct 2008
Posts: 25
Received Thanks: 9
TOO AWESOME MAN. YOU THE PRO MAN. I LOVE YOU KINSHIKINS!
Its Arco is offline  
Old 02/04/2011, 05:51   #8
 
.Kinshi's Avatar
 
elite*gold: 0
Join Date: Dec 2010
Posts: 341
Received Thanks: 255
Quote:
Originally Posted by stigs View Post
TOO AWESOME MAN. YOU THE PRO MAN. I LOVE YOU KINSHIKINS!
Thanks!


Update!

Added the SevenZipSharp.dll, which I forgot to pack this whole time cause I'm slightly retarded.
Just keep it with the 7z.dll file.
.Kinshi is offline  
Old 02/04/2011, 17:38   #9
 
gabrola's Avatar
 
elite*gold: 0
Join Date: Dec 2006
Posts: 1,039
Received Thanks: 1,335
Hmm you should save the accessibility and height values as bits just like in Korvacs' loader, that should make the maps much more smaller in size.
And you should work on converting to a png like this one...

gabrola is offline  
Thanks
1 User
Old 02/04/2011, 23:29   #10
 
.Kinshi's Avatar
 
elite*gold: 0
Join Date: Dec 2010
Posts: 341
Received Thanks: 255
Quote:
Originally Posted by gabrola View Post
Hmm you should save the accessibility and height values as bits just like in Korvacs' loader, that should make the maps much more smaller in size.
And you should work on converting to a png like this one...

Yeah I think that's the next update I'll work on.

Well this is designed for private servers, so accessibility and height are all I need. Making an image like that would require loading more values, which is not the point of this.
.Kinshi is offline  
Old 02/05/2011, 03:34   #11
 
elite*gold: 0
Join Date: Dec 2009
Posts: 630
Received Thanks: 437
That would be nice, just putting the .DDS files together then breaking them apart when you're done editing them.
Illiest is offline  
Old 02/05/2011, 07:10   #12
 
gabrola's Avatar
 
elite*gold: 0
Join Date: Dec 2006
Posts: 1,039
Received Thanks: 1,335
Quote:
Originally Posted by .Kinshi View Post
Yeah I think that's the next update I'll work on.

Well this is designed for private servers, so accessibility and height are all I need. Making an image like that would require loading more values, which is not the point of this.
It shouldn't be, this should be pretty useful for a person developing a bot for official CO.

Quote:
Originally Posted by edwardvuong View Post
That would be nice, just putting the .DDS files together then breaking them apart when you're done editing them.
Theirs still scenes which need to be put on the map, such as trees and stuff.
gabrola is offline  
Old 02/05/2011, 08:21   #13
 
.Kinshi's Avatar
 
elite*gold: 0
Join Date: Dec 2010
Posts: 341
Received Thanks: 255
Quote:
Originally Posted by gabrola View Post
It shouldn't be, this should be pretty useful for a person developing a bot for official CO.
Well what I was getting at is that its not designed to load all those extra stuff.
It checks for accessibility and height, which are the only things you really need for a server, or a bot, or anything like that.
.Kinshi is offline  
Old 02/05/2011, 09:55   #14
 
elite*gold: 0
Join Date: Oct 2008
Posts: 25
Received Thanks: 9
Quote:
Originally Posted by gabrola View Post
It shouldn't be, this should be pretty useful for a person developing a bot for official CO.
Well since its posted in the PServer Guides & Releases, one wouldn't think its for official CO.
Its Arco is offline  
Old 02/05/2011, 12:27   #15
 
.Kinshi's Avatar
 
elite*gold: 0
Join Date: Dec 2010
Posts: 341
Received Thanks: 255
Quote:
Originally Posted by stigs View Post
Well since its posted in the PServer Guides & Releases, one wouldn't think its for official CO.
It reads the official DMaps. So really it can be used for any application needing access and height from DMaps. Private servers are just the most prevalent application.
.Kinshi is offline  
Closed Thread


Similar Threads Similar Threads
[Release] ZSZC Loader (Edited From lolkop's loader)
10/28/2011 - SRO PServer Guides & Releases - 16 Replies
Hello , i have just Edited lolkop's loader for zszc Screen http://img825.imageshack.us/img825/4439/918201043 801am.jpg Download VirusTotal
[Release] Convert Dmap to PNG
01/13/2011 - CO2 PServer Guides & Releases - 10 Replies
Ok i wrote this little program to convert Dmaps to a png file to see what the map looks like. u can use this how ever you want. But i will be using it for my source execpt i add the scene files to the png and convert it to a .pmap for loading in my source. Instructions: Copy and paste gamemap.dat into main folder where ConvertDmap2PNG.exe is Copy and paste all dmap files into map/map folder.
[Release] Dmap Loader
11/20/2010 - CO2 PServer Guides & Releases - 8 Replies
#deleted
[RELEASE] DDS converter
08/18/2009 - EO PServer Guides & Releases - 9 Replies
Well, because this is a tool, i post it here and not on another section :bandit: People were complaining they cant open or edit a dds file.. This tool, can convert the dds file to jpg,png,bmp,tga and it can convert "to" dds :handsdown:



All times are GMT +2. The time now is 02:45.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.