Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server
You last visited: Today at 13:44

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

Advertisement



Plz i need the id for this map

Discussion on Plz i need the id for this map within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old 03/12/2010, 23:29   #31
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
@kiyono
Arcо is offline  
Old 03/12/2010, 23:35   #32

 
Kiyono's Avatar
 
elite*gold: 20
Join Date: Jun 2006
Posts: 3,296
Received Thanks: 925
Quote:
Originally Posted by .Arco View Post
@kiyono
Oh I have that list but I want I just wanted to try to code something that reads and writes maps IDs.
Kiyono is offline  
Old 03/12/2010, 23:40   #33
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
Quote:
Originally Posted by Kiyono View Post
Oh I have that list but I want I just wanted to try to code something that reads and writes maps IDs.
I know, click the link, it leads you to a post by sparkie that I think you should read.
Arcо is offline  
Old 03/12/2010, 23:45   #34

 
Kiyono's Avatar
 
elite*gold: 20
Join Date: Jun 2006
Posts: 3,296
Received Thanks: 925
Quote:
Originally Posted by .Arco View Post
I know, click the link, it leads you to a post by sparkie that I think you should read.
Guess I fail at searching, I ran a few searches through the conquer section but couldn't find anything >_<
Kiyono is offline  
Old 03/12/2010, 23:50   #35
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
Quote:
Originally Posted by Kiyono View Post
Guess I fail at searching, I ran a few searches through the conquer section but couldn't find anything >_<
Yeah. Well I hope that post helps you.
Good luck.
Arcо is offline  
Old 03/13/2010, 00:18   #36

 
Kiyono's Avatar
 
elite*gold: 20
Join Date: Jun 2006
Posts: 3,296
Received Thanks: 925
Quote:
Originally Posted by .Arco View Post
Yeah. Well I hope that post helps you.
Good luck.
I tried some things but all failed, in other words no clue on how to use it >_<

//edit I'll try again later...when it's not 12:23 AM...
Kiyono is offline  
Old 03/13/2010, 00:41   #37
 
© Haydz's Avatar
 
elite*gold: 20
Join Date: Jan 2008
Posts: 1,042
Received Thanks: 252
Warning: Slightly Long Post

Okay, I see you made an attempt, which I am extremely happy about and applaud you, partly proves my theory about this place wrong

1.Making new GameMap.dat
So I'll start off with the code I used to generate a new GameMap.dat

Code:
 class Program
    {
        static string ConquerPath = @"C:\Program Files (x86)\Conquer 4351\";
        static string OutputPath = @"C:\";
        static string NewMapPath = @"map/map/sf-parade.DMap";

        static void Main()
        {
            using (BinaryReader Reader = new BinaryReader(new FileStream(ConquerPath + @"ini\GameMap.dat",FileMode.Open)))
            {
                int TotalMaps = Reader.ReadInt32();

                using (BinaryWriter Writer = new BinaryWriter(new FileStream(OutputPath + "GameMap.dat", FileMode.OpenOrCreate)))
                {
                    Writer.Write((int)(TotalMaps + 1));//Write total maps + 1 (our new map)

                    Writer.Write((int)(1844));//Our new map id, maybe we can specify our own?
                    Writer.Write((int)(NewMapPath.Length));//length of dmap file path
                    Writer.Write(Encoding.ASCII.GetBytes(NewMapPath));//Path to dmap file
                    Writer.Write((int)(256));//Puzzle Piece Size ([B]Not Always[/B] 256)

                    for (int i = 0; i < TotalMaps; i++)//Write existing maps into GameMap.dat
                    {
                        int nLength;
                        Writer.Write(Reader.ReadInt32());
                        Writer.Write(nLength = Reader.ReadInt32());
                        Writer.Write(Reader.ReadBytes(nLength));
                        Writer.Write(Reader.ReadUInt32());
                    }

                }
            }
            Console.WriteLine("Done!");
            Console.ReadLine();
        }

    }
ConquerPath is the path to your client version, in my case, 4351
OutputPath is basically where it puts the new GameMap.dat (Don't output it to your ini folder, place it somewhere else so you can copy + paste it in).
NewMapPath is the path to the DMap file of the map your adding, I'll explain more at the foot of my post.

Note: PuzzlePiece is not always 256, I'll explain more on how to get it at the footer

In regards to specifying our own MapID for the map, I'm not sure, I don't see why not though, I shall experiment later. (Not really sure why you would want to anyway).

2.Replacing Files
Alright, so now you should have copied + pasted your new gamemap.dat into the ini/gamemap.dat folder, you should now get an error in the debug log about map/map/sf-parade.DMap, is missing, simply go to that location in your official installation and copy + paste it in, I'll upload the files anyway.

Then next you'll get an error about the minimap not existing in the minimap.ani, simply open ani/MiniMap up with a text editor, then do the same in your 2.0 installation, find the index it's missing (our case: 1844) then copy + paste it in.
Code:
[1844]
FrameAmount=1
Frame0=data/MiniMap/sf-parade.jpg
Now we need to get the actual jpg file, so go to the Frame0 location and copy + paste it from your official to your client.

Now you need the puzzle file, which unfortunately doesnt seem to appear in the debug log, luckily for us, the name is the same as the map, so just go into your Conquer Installation, map/puzzle/ and copy + paste the sf-parade.pul into your client.

To proceed, we have to login and go to the map, to trigger map object errors, e.g. error in the debug log about a missing tree "n-tree1.tga" in Mapscene.ani, do the same, open up mapscene.ini as a text, copy the value into your client
Code:
[n-tree1.tga]
FrameAmount=1
Frame0=data/map/mapobj/newbie-v/tree/tree/n-tree1.dds
Then do the following for the other ani errors, tedious work..., also make sure you actually copy the dds files into the correct place too

Then that should be it, the map should be working perfectly , as you can see its a lot of tedious copy + pasting, but if the map is good, it will be worth it in the long run.

Result = sf-parade on 4351 client:

I may actually make an application which you can check which maps you would like to import from the official installation, it will then retrieve all values for you, create the gamemap, create the required files/folders etc.

To further elaborate on the PuzzleFile, it's not always 256, so basically by utilising the structure of gamemap.dat you will have to find the value from the official.

Hope this helps someone, it's obviously generic so you can do it for pretty much any map, I'll try to help people with problems, hope it isn't too complicated and, good luck
© Haydz is offline  
Thanks
8 Users
Old 03/13/2010, 12:27   #38

 
Kiyono's Avatar
 
elite*gold: 20
Join Date: Jun 2006
Posts: 3,296
Received Thanks: 925
Well that makes it easier, +thanks for the guide gonna try it now.
//edit 5095 client.
Kiyono is offline  
Old 03/13/2010, 13:50   #39
 
xI NiNJA DuCKey's Avatar
 
elite*gold: 0
Join Date: Mar 2010
Posts: 51
Received Thanks: 17
On AcidCO, You can type @map, I|t will give the Map ID, Also, I think PlainLazy may of made the map.
xI NiNJA DuCKey is offline  
Old 03/13/2010, 19:11   #40
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
Quote:
Originally Posted by xI NiNJA DuCKey View Post
On AcidCO, You can type @map, I|t will give the Map ID, Also, I think PlainLazy may of made the map.
For the last time, this is NOT a custom map. This was a map used by TQ for a parade event a while back.
Arcо is offline  
Old 03/14/2010, 11:35   #41
 
elite*gold: 0
Join Date: Feb 2010
Posts: 492
Received Thanks: 222
Acid-co as smart litte people they have re-done the map ids I tryed this along time ago no luck...

has anybody got the Dmap files ?
Paralyzer[GM] is offline  
Old 03/14/2010, 11:44   #42


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,126
Received Thanks: 2,518
Its already in your client, i said what the official MapID for this is further back in the thread...
Korvacs is offline  
Thanks
1 User
Old 03/14/2010, 12:00   #43
 
elite*gold: 0
Join Date: Feb 2010
Posts: 492
Received Thanks: 222
o.O and so it is +thanks
Paralyzer[GM] is offline  
Old 03/16/2010, 08:30   #44
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
Haydz I love you lol.
Ignore the minimap.
Attached Images
File Type: jpg 46083096.jpg (296.5 KB, 32 views)
File Type: jpg 46086250.jpg (295.8 KB, 22 views)
File Type: jpg 46088980.jpg (284.6 KB, 21 views)
File Type: jpg 46093849.jpg (282.4 KB, 21 views)
Arcо is offline  
Old 03/16/2010, 10:27   #45

 
Kiyono's Avatar
 
elite*gold: 20
Join Date: Jun 2006
Posts: 3,296
Received Thanks: 925
Quote:
Originally Posted by .Arco View Post
Haydz I love you lol.
Ignore the minimap.
Oh, that's a ship o_O
I'm also gonna add it to see how it looks =X
Kiyono is offline  
Reply




All times are GMT +1. The time now is 13:46.


Powered by vBulletin®
Copyright ©2000 - 2026, 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 ©2026 elitepvpers All Rights Reserved.