what are you talking about?dynamic ip?
for 100% save:
for example:
145.451.45.4 or thisisaname.no-ip.org
i think he meant "exactly how to write it in config.lua", not 100% sure thowhat are you talking about?![]()
add in the DUC, to run these commands each time it notices a new IP,hmm...
But if i write in ip="hiho.no-ip.org" and i start the Server everybody can login and play.
after a huge of time
when the Internetprovider give me a new ip. (online ip changed from 128.324.2.12 to 12.232.232.2) and my router send it to dyndns.org and change there the ip to the new one.(so nslookup hiho.no-ip.org is correct) the players cant login. tibia error 10060
if they want to login they see there characters but if they click enter to play there comes the error (10060) why?
programm this into your OTServ,So you think the Server didnt registrate that hiho.no-ip.org is available under the new ip?
So i have to shutdown the Server "hardcore" like? with taskkill? so that he didnt save the files?
void runQuitAndWait()
{
setGameState(GAME_STATE_SHUTDOWN);
for (i=0; i < 99999; i++)
{
//hack.. lol
}
}
atexit(g_game.runQuitAndWait());
does it ask that when you doif i understand that right:
if i use the command taskkill /im "otserv.exe", WITHOUT using your Sourcecode, the Server ask me "Do you really want shutdown the Server? choose yes or no" So it wouldn't be easier to give the Server a parameter for automaticly choosing "yes" that he shutdown normally?
Because i dont understand your Sourcecode:
void runQuitAndWait()
{
setGameState(GAME_STATE_SHUTDOWN);
for (i=0; i < 99999; i++)
{
//hack.. lol
}
}
Its an empty For-Loop that need time because the high Integer "999999", so your idea was that he shutdown a little bid time after ip change that he make a Serversave automaticly (config.lua) and than he shutdown "hardcorelike"?
hans hendrik thx a lot for helping! you the first one who can help my! Plz answer fast
thx for reading
Holz