[Release]Ship Map

03/18/2010 06:10 -NewDawn-#31
Quote:
Originally Posted by .Arco View Post
Lol ignore the minimap, I couldn't find the correct one.
That's weird. My server hides the minimap if it's being used on the wrong map.
03/18/2010 17:48 HardNotTo#32
ok, created a quick npc to teleport you to the ship and for some odd reason i get console errors..Never would have guessed something this simple could get errors...but funny thing is...the NPC works

NPC:
Code:
#region Ship Map Enter
                            case 9083:
                                {
                                    if (Control == 0)
                                    {
                                        GC.AddSend(Packets.NPCSay("Hello, would you like to take a Cruise on the SS Minnow?"));
                                        GC.AddSend(Packets.NPCLink("Yes, I would.", 1));
                                        GC.AddSend(Packets.NPCLink("No, I dont want to right now.", 255));
                                        GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                        GC.AddSend(Packets.NPCFinish());
                                    }
                                    else if (Control == 1)
                                        GC.MyChar.Teleport(9999, 87, 79);
                                    break;
                                }
                            #endregion

ERRORS:
Code:
Starting to load DMaps.
Loading 9999 : C:\CodeEmperionCO\map/map/ship.DMap
Plus all the others that I deleted from this post to save space.

System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative
 and less than the size of the collection.
Parameter name: index
   at System.Collections.ArrayList.get_Item(Int32 index)
   at NewestCOServer.DMaps.GetMapStatus(UInt16 Map) in C:\rock test server\rikar
do updated\DMap.cs:line 65
   at NewestCOServer.Game.Character.Teleport(UInt16 Map, UInt16 X, UInt16 Y) in
C:\rock test server\rikardo updated\Game\Character.cs:line 2374
   at NewestCOServer.PacketHandling.NPCDialog.Handle(GameClient GC, Byte[] Data,
 UInt32 NPC, Byte Control) in C:\rock test server\rikardo updated\PacketHandling
\NPCDialog.cs:line 9487
03/18/2010 18:39 Paralyzer[GM]#33
That error looks like u didnt do it right are you sure the DMaps.cs goto the right file to load dmaps ? because it looks like it loads maps from C:\XodeEmperionCO\map/map/shit.DMap and then in the invalid error it loads from
C:\rock test server\rikardo updated\PacketHandling
\NPCDialog.cs:line 9487 so....
03/18/2010 20:40 HardNotTo#34
Quote:
Originally Posted by Paralyzer[GM] View Post
That error looks like u didnt do it right are you sure the DMaps.cs goto the right file to load dmaps ? because it looks like it loads maps from C:\XodeEmperionCO\map/map/shit.DMap and then in the invalid error it loads from
C:\rock test server\rikardo updated\PacketHandling
\NPCDialog.cs:line 9487 so....
yeah its loaded correctly, that line 9487 is the teleport coordinates which is why I dont understand what the problem is, im thinking maybe it has something to do with the map ID # because this is the first time I've ever had an error with teleporting. Like I said though, the NPC works and teleports me, it just gets those errors when I use it.

I will change the map ID and see if i still get the error
03/18/2010 21:22 Arcо#35
Quote:
Originally Posted by Paralyzer[GM] View Post
That error looks like u didnt do it right are you sure the DMaps.cs goto the right file to load dmaps ? because it looks like it loads maps from C:\XodeEmperionCO\map/map/shit.DMap and then in the invalid error it loads from
C:\rock test server\rikardo updated\PacketHandling
\NPCDialog.cs:line 9487 so....
Why did you name it sh*t.dmap?
Its supposed to be ship.dmap.
03/18/2010 21:46 -NewDawn-#36
Quote:
Originally Posted by MightyMan17 View Post
lol i lauf becuz him
Don't pretend to be arab Decker... it's raciest.
#reported.
07/11/2010 15:24 alexz003#37
Can anyone upload the DMap for me so that i can get it to work with my server?
07/11/2010 17:07 copz1337#38
Server crashes at the part when it starts loading Dmaps... which is the first thing. Why? It says access to the file location of the file GameMap.ani is denied.
07/11/2010 21:07 Korvacs#39
Try running as administrator Copz.
07/12/2010 05:17 copz1337#40
Quote:
Originally Posted by Korvacs View Post
Try running as administrator Copz.
It didn't make a difference.
07/12/2010 08:28 Arcо#41
It should be looking for gamemap.dat, not gamemap.ani
07/12/2010 10:46 DowJohn#42
can u add it on 5095?
07/12/2010 16:16 copz1337#43
Quote:
Originally Posted by .Arco View Post
It should be looking for gamemap.dat, not gamemap.ani
Well it is .dat, my mistake. Anyway I don't understand the problem.
07/14/2010 23:12 conal#44
how i can go to this map
07/15/2010 00:42 .Beatz#45
Quote:
Originally Posted by conal View Post
how i can go to this map
Make a new Teleport command.
in chat.cs search for /Scroll

Then add this to the bottom of that
Code:
if (Cmd[1] == "ship")
                            {
                                GC.MyChar.Teleport(9999, xxx, yyy); // Change xxx and yyy with valid coords for the ship map
                            }