[Request] Advice/Help With DMaps

12/05/2008 18:56 Beta Limit#1
Ok yesterday i was on a mission to get DMaps onto my LOTF Source, I found some coding in Leavemealone's source that was about DMaps so i used the code from the source and i copied and pasted it in.

I added the whole of her DMaps.cs to General.cs of my source, edited it and added extra items needed to Config.ini until it fit in properly then grabbed the parts i needed from the World.cs.

In the end i got the server to attempt at loading the DMaps but it says DMap Not found for each one then says 145 DMaps loaded.

To double check whether it had worked or no i check to see if a mob could walk thought a tree on my server and it still could :(

If anyone can give me help with this or advise about i would appreciate it alot.

Note: I did not just copy and paste and I did try to add this myself and it did not work as i hoped so plan B = Ask the pros.

EDIT: Made Changes and Still will not even find them, my GameMap.Dat is in the path specified at the bottom of the code but it still cant find the DMaps

Code:
Welcome To Cell Online Server
Your Server IP is 127.0.0.1
Your Database Username is root
Your Database Password is *****
Your XP Rate is x30
Your Prof XP Rate is x30
Loaded 254 portals.
Loaded 1012 NPCs.
Loaded 140 Mobs.
Loaded 11148 items.
Loaded 140 Mob Spawns.
Loading Plus info done.
Spawned 2984 mobs.
Loading DMaps from GameMap.dat
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Dmap not found!
Loaded 145 DMaps.
C:\Users\Bradley\Desktop\Stuff\Cell Online Source\COServerProject\bin\Debug\Game
Map.Dat[COLOR="Lime"]\[/COLOR]
Press Enter to close the server.
Never close it any other way or the characters will not be saved!
the Green Backslash causes the Error below
Code:
Welcome To Cell Online Server
Your Server IP is 127.0.0.1
Your Database Username is root
Your Database Password is *****
Your XP Rate is x30
Your Prof XP Rate is x30
Loaded 254 portals.
Loaded 1012 NPCs.
Loaded 140 Mobs.
Loaded 11148 items.
Loaded 140 Mob Spawns.
Loading Plus info done.
Spawned 2984 mobs.
System.IO.IOException: The filename, directory name, or volume label syntax is i
ncorrect.

   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, I
nt32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions o
ptions, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access,
FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean
bFromProxy)
   at System.IO.FileStream..ctor(String path, FileMode mode)
   at COServer_Project.DMaps.LoadDMapz(String GameMapFile) in C:\Users\Bradley\D
esktop\Stuff\Cell Online Source\COServerProject\General.cs:line 436
   at COServer_Project.General..ctor() in C:\Users\Bradley\Desktop\Stuff\Cell On
line Source\COServerProject\[U]General.cs:line 94[/U]
Press any key to continue . . .
Underlined is the line Below my filepath - this line is a comment
12/05/2008 19:07 Kiyono#2
Well i had the same "DMAP not found" stuff but when i checked it the mobs couldn't walk over water anymore.


btw i think that future is a male.
12/05/2008 19:14 Beta Limit#3
My bad xD i changed the post so that its if Leavemealone is male or female coz i dont know them so i have no idea
12/05/2008 19:39 © Haydz#4
Future (leavemealone) Is Male.

Also you can't just load dmaps and expect mobs to suddenly stop moving where they shouldnt because you've added them. You need to add all the required checks for whether their coordinates are valid etc...

As for your DMap load error, you've probably provided an invalid directory for your maps location. Make sure it has a '\' on the end
12/05/2008 19:39 tanelipe#5
@Haydz : You lagged or what was with that triple post. :p

@Beta Limit : Since it says that DMap was not found, check the path it trys to read the data at, it's incorrect. When you read the location from .DMAP file it'll give it as /map/map/<mapname>.DMAP, you then have to add your CO folder location before that (And change the /'s to \'s ?) or where ever your dmaps are located at
12/05/2008 19:41 © Haydz#6
Hmm, I lagged. You deleted one of my posts and I deleted the other, LOL. leaving me postless =[=[
12/05/2008 20:41 -Reflexis-#7
put a / after the location of the dmaps
12/06/2008 16:29 tanelipe#8
Do you mind posting where your Conquer folder is located? If it is at the default location it suggests :

Code:
C:\Program Files\Conquer 2.0
And when you read the file location from the GameMap.dat it will give it in the following format :

Code:
map/map/<mapname>.DMap
Where the <mapname> is replaced with the name, for example arena

You then have to replace those "/"'s by "\"'s

Now when it loads the data the folder it reads them from should be

Conquer Folder + MapLocation.Replace('/', '\');

So in this example it would be :
Code:
string FullPath = @"C:\Program Files\Conquer 2.0\" +  MapLocation.Replace('/', '\');
Then just proceed to the loading data.
12/07/2008 18:31 Beta Limit#9
Quote:
Do you mind posting where your Conquer folder is located?
My Client folder is C:\Users\Bradley\Desktop\Stuff\COPrivate

The GameMap.dat is in the .ini folder so i figures i should add \ini on the end?

Will give the rest a try TY Tanelipe
12/07/2008 19:10 DarkNess~#10
i'm done Dmap but not working fine becuase must recode mob move drop items

and teleport to any city without scrolls

you may disable mob move but i think the game will be so poor