I have seen 2-3 people ask this and not one person has helped.
How can we get are friends to connect to the server using Hamachi. I have done it like any other server and it dont seem to work. Please could someone tell us how to do this even if it is the same way.
Do we use the conquer loader for them too? IP of the database matter as its running on localhost?
I have not done this in a long time and have forgot how to do everything so help would be nice.
Yes, you simply need to edit the settings.txt file to use your EXTERNAL ip (or hamachi ip in this case) and then have them use conquerloader same as yourself.
The conquer loader has nothing referring to database, you're thinking of settings.txt file.
/* foreach (Client C in M.PullPlayers(M.MakeCoord(ToX, ToY, Client.Instance)))
{
if (SpawnCheck(Client, C))
{
Client.LocalClients.Add(C.UID, C);
Packets.SpawnClient(C, Client);
}
if(SpawnCheck(C, Client))
{
C.LocalClients.Add(Client.UID, Client);
Packets.SpawnClient(Client, C);
}
}
foreach (SOB S in M.PullSobs(M.MakeCoord(ToX, ToY, Client.Instance)))
{
if (S.Instance == Client.Instance && !Client.LocalSOBs.ContainsKey(S.UID))
{
Client.Send(Packets.SpawnSOB(S));
Client.LocalSOBs.Add(S.UID, S);
}
}
foreach (Npc N in M.PullNpcs(M.MakeCoord(ToX, ToY, Client.Instance)))
{
if
and this in tools.cs
Quote:
/* if (Program.ThreadDebug)
Console.WriteLine("Ground thread calling out!");
if (Dictionary.Maps.Count > 0)
{
lock (Dictionary.Maps)
{
foreach (KeyValuePair Map in Dictionary.Maps)
{
{
if (Map.Value.Items != null && Map.Value.Items.Count > 0)
{
lock (Map.Value.Items)
{
if (!(Map.Value.Items.Peek() is GroundItem))
{
Console.WriteLine("Error!! You are not storing structure 'GroundItem' in this queue!");
goto END;
}
while (Map.Value.Items.Count > 0 && DateTime.Now > ((GroundItem)Map.Value.Items.Peek()).Dropped.AddSe conds(30))
{
Console.WriteLine("Greater than time dropped!");
GroundItem Item = (GroundItem)Map.Value.Items.Dequeue();
///need to re-work the ground items system. This is old queue system I attempted and it SUCKS!
foreach (KeyValuePair Client in Dictionary.Clients)
{
if (Calculations.Distance(Item.X, Item.Y, Client.Value.X, Client.Value.Y) < 20)
{
Packets.Send(Packets.FloorItem(Item, 2), Client.Value);
if (Client.Value.LocalItems.ContainsKey(Item.UID))
Client.Value.LocalItems.Remove(Item.UID);
}
}
}
}
}
}
}
}
}
///ADD IN MONSTER DEATH AND RESPAWN CHECKS!!!
Thread.Sleep(1000);
}
catch { }*/
can any one answer me if this right and can any one tell me how to make new packets for new patches
first thing you need a thread/system timer to control the dropped items and no you cant just copy paste in walk.cs/any other file ,
and you need to read those short green lines lol
Quote:
///need to re-work the ground items system. This is old queue system I attempted and it SUCKS!
Spawning of items should be done in the MovePlayer code or w/e I called it in the map class (eewee, old map system sucks ahaha)
As for removing items... you need some structure to hold all ground items including when they were dropped and then use that thread to handle removing them.
The idea for that queue system is that you could still remove things from it like a normal dictionary before they expired and it would simply organize itself based on the next item needing to be processed (vs a normal fifo queue).
So yes... don't use that queue system, it's funky and not worth using.
hell you'd be better off just using a dictionary inside map to hold map ground items and then have the thread cycle through all maps and then cycle through all the items on that map and check if it needs removal. If it does, remove from each client nearby.
Umm...Please Pro4never can u tell me what to do??cuz when i try to Excute Batch File It Endes Unsucsefly and i dont know what to do??if u have any idea for me please tell me it!!!cuz im really bored and i want to play at this server it really look cool and good and everything but my problem is in the Navicat I Cant Excute Batch File Successfly!!!!And I Want to play at this server so please tell me what to do??cuz im crazy the C#Visual Studio 2010 Works Winmysqladmin Works EveryThing works Except The Navicat!!!if u can upload to me the SQL file u are using right now it will be nice from you thanks hope u find me a solution :P
Umm...Please Pro4never can u tell me what to do??cuz when i try to Excute Batch File It Endes Unsucsefly and i dont know what to do??if u have any idea for me please tell me it!!!cuz im really bored and i want to play at this server it really look cool and good and everything but my problem is in the Navicat I Cant Excute Batch File Successfly!!!!And I Want to play at this server so please tell me what to do??cuz im crazy the C#Visual Studio 2010 Works Winmysqladmin Works EveryThing works Except The Navicat!!!if u can upload to me the SQL file u are using right now it will be nice from you thanks hope u find me a solution :P