All i said is i was able to duplicate a map not create a entirely new one. you can edit the maptiles etc to make it look unique. Just make sure your map number doesnt already exist.
Code:
Intro:
I know a lot of people have wanted to duplicate a map but get segment faults and invalid errors doing so. Well, in the process of creating my VIP system, I've figured out how to do it. (It was actually very easy because its similar to another method I used on a different MMO.)
I'll be using the example of duplicating Avalon Island because I just did, but the method is exactly the same for any map. You will need a hex editor with the ability to edit data types to accomplish this. I will be using XVI hex editor in this tutorial because it's free and easy to use.
Part Uno: Copy and Paste!
So first, we're going to open maplist.csv in the root folder of \share\. Do it with whatever you're comfortable with to use use to edit CSVs. Copy the Avalon Island row which should look something like this:
[code]18,Avalon Island,avalon.map,avalon.mol,Avalon.mel,Avalon.mac,Map\18_Avalon\NPC_18_Avalon.csv,2,18,1.7,-70,80,12,50,50,-2.2,0,90,light_requies.txt,water/skyCube_dri=.dds,75,,60,17,10,15,0,20,10,0,0,0,0,3,60000,0,1,1,0,1,0,1,0,1,..\Share\Map\18_Avalon\m018.mal,..\Share\Map\18_Avalon\MON_18_Avalon.csv,..\Share\Map\18_Avalon\NPC_18_Avalon.csv,,0,0,0,0,0,0,0,0,0,100,Map18_Avalon,0,0,,85,250,0,0,0,0,100,100,0,0,1,1,1,0,200,PC\LevelCap\Default.csv,0.65,1
Now, append a copy of it to the end of the document (paste it to the last blank row of the CSV)). Now you need to change the map index (the very first number) to whatever number you like, just make sure it's not one already taken on the list. This will be the number your map is referred to for stuff like... when you want to teleport to it on your GM you'd type /gm chase <your number> <x> <y>.(I used 777 cause I'm a G and that's how I roll)
Chapter 2: More copy and paste!
For now, just leave your editor with the CSV file open. We'll go back to it in a moment. Now, navigate to \share\map\18_avalon\. This is where you want to decide if you want to split up to files into different folders for your new map or leave them there. It doesn't really matter it's all an organizational prefrence (what folders were intended for haha). I won't be splitting my files into different folders, but, if you do remember later to adjust your path in the maplist.csv when we go back to editing it. Anyways, copy all (3) of the files in that folder and paste them to your appropriate directory. Now, rename them to whatever you want. I used m777.mal, mon_777_avalon.csv, and npc_777_avalon.csv cause I like practical naming conventions.(programmer's (good) habit)
Segment 3: Datatype value editing with XVI a.k.a yay! I'm leet!(not really)
Now, open up the .mal file with XVI (or whatever the hell you're using) and make sure the file pointer is at the very first byte(very top left -- as top left as it gets). If you're using XVI, make sure your data inspector (sounds kinky, eh?) is out (tools-> data inspector). It should look something like this:
This 18 is the bastard that's been haunting you with the error looks something like, "Segmentation fault: mal file contains wrong map index". Guess what you're looking at? Yep, that 18 in the integer datatype is the map index. You can edit this by tools->encode number.Next, type in your map index in the number text box and make sure the integer (bold and underlined means IMPORTANT!) radio button is selected then click OK. TA-DA! You're done with that. Now save it (file->save) and now you can exit XVI.
Division IV: CSV editing
Now back to the CSV file. I'm not going through this part in great detail like the last 3 sections because it's easy. Just simply change all the references to your the old CSV and .Mal files to your new ones then save maplist.csv and exit your CSV editor.
Section 5: Wrapping up
Technically, you're now through. You can copy the \share\ files you just edited to your server (or client whichever you just edited) and boot that sucka up and jump to your map. However, your load screen and mini-map will be fucked up. I'm not going through in detail how to edit this either, but I'll give you the location to the file that references the client to right .dds files for the mini-map and the load screen: \script\ui\com\imagetable.txt If you can figure it out, good. If not, sucks to be you cause you just did all that work to have a half-ass copy of a map. Maybe, if enough people complain I'll edit this section to be detailed on it. Hopefully, I won't have to though because that will leave more time for me to write other tutorials. (yay)
Last words:
Hope you enjoyed the tutorial and you learned something. If not, you just wasted your time. (haha)[/CODE]
Credits go to OP on DKU