-
Posts
52 -
Joined
-
Last visited
-
Feedback
0%
Content Type
Forums
Store
Third Party - Providers Directory
Feature Plan
Release Notes
Docs
Events
Posts posted by Sinval
-
-
I'll try mainline é r40250 ?
-
#include <stdio.h> void WriteVersion() { #ifndef __WIN32__ FILE* fp = fopen("VERSION.txt", "w"); if (fp) { fprintf(fp, "game perforce revision: %sn", __P4_VERSION__); fprintf(fp, "%s@%s:%sn", __USER__, __HOSTNAME__, __PWD__); fclose(fp); } #endif }
-
mainline
https://metin2.download/picture/5E5JSnaWrQfc0i1Z6676m2J9WC8hyR0g/.png
someone help me fix to compile?
-
bool GetIPInfo() { #ifndef __WIN32__ struct ifaddrs* ifaddrp = NULL; if (0 != getifaddrs(&ifaddrp)) return false; for( struct ifaddrs* ifap=ifaddrp ; NULL != ifap ; ifap = ifap->ifa_next ) { struct sockaddr_in * sai = (struct sockaddr_in *) ifap->ifa_addr; if (!ifap->ifa_netmask || // ignore if no netmask sai->sin_addr.s_addr == 0 || // ignore if address is 0.0.0.0 sai->sin_addr.s_addr == 16777343) // ignore if address is 127.0.0.1 continue; #else WSADATA wsa_data; char host_name[100]; HOSTENT* host_ent; int n = 0; if (WSAStartup(0x0101, &wsa_data)) { return false; } gethostname(host_name, sizeof(host_name)); host_ent = gethostbyname(host_name); if (host_ent == NULL) { return false; } for ( ; host_ent->h_addr_list[n] != NULL; ++n) { struct sockaddr_in addr; struct sockaddr_in* sai = &addr; memcpy(&sai->sin_addr.s_addr, host_ent->h_addr_list[n], host_ent->h_length); #endif char * netip = inet_ntoa(sai->sin_addr); if (!strncmp(netip, "192.168", 7)) // ignore if address is starting with 192 { strlcpy(g_szInternalIP, netip, sizeof(g_szInternalIP)); #ifndef __WIN32__ fprintf(stderr, "INTERNAL_IP: %s interface %sn", netip, ifap->ifa_name); #else fprintf(stderr, "INTERNAL_IP: %sn", netip); #endif } else if (!strncmp(netip, "10.", 3)) { strlcpy(g_szInternalIP, netip, sizeof(g_szInternalIP)); #ifndef __WIN32__ fprintf(stderr, "INTERNAL_IP: %s interface %sn", netip, ifap->ifa_name); #else fprintf(stderr, "INTERNAL_IP: %sn", netip); #endif } else if (g_szPublicIP[0] == '0') { strlcpy(g_szPublicIP, netip, sizeof(g_szPublicIP)); #ifndef __WIN32__ fprintf(stderr, "PUBLIC_IP: %s interface %sn", netip, ifap->ifa_name); #else fprintf(stderr, "PUBLIC_IP: %sn", netip); #endif } } #ifndef __WIN32__ freeifaddrs( ifaddrp ); #else WSACleanup(); #endif if (g_szPublicIP[0] != '0') return true; else return false; }
>
bool GetIPInfo() { struct ifaddrs* ifaddrp = NULL; if (0 != getifaddrs(&ifaddrp)) return false; for( struct ifaddrs* ifap=ifaddrp ; NULL != ifap ; ifap = ifap->ifa_next ) { struct sockaddr_in * sai = (struct sockaddr_in *) ifap->ifa_addr; if (!ifap->ifa_netmask || sai->sin_addr.s_addr == 0 || sai->sin_addr.s_addr == 16777343) continue; char * netip = inet_ntoa(sai->sin_addr); if (g_szPublicIP[0] != '0') { strlcpy(g_szInternalIP, netip, sizeof(g_szInternalIP)); fprintf(stderr, "INTERNAL_IP: %s interface %sn", netip, ifap->ifa_name); } else if (g_szPublicIP[0] == '0') { strlcpy(g_szPublicIP, netip, sizeof(g_szPublicIP)); fprintf(stderr, "PUBLIC_IP: %s interface %sn", netip, ifap->ifa_name); } } }
well?
-
ui build mainline gave several errors like corrigilos?
-
cliente do game 40k only works with official item_proto or made with 40k dump proto using txts
- 1
-
-
Install mysql command when starting it gives someone knows how to solve this?
-
someone help me compile the source'm beginner and need help, if anyone can help me teamviwer, or have a virtual machine. vdi with FreeBSD installed and configured and you can give me would appreciate.
at sinval
-
Yes, compress and uncompress has not item_proto 40k?
-
0304 19:41:11838 :: CPythonItem::LoadItemTable: invalid item_proto[locale/de/item_proto] STRIDE[152] != sizeof(SItemTable) 0304 19:41:11838 :: LoadLocaleData - LoadItemProto(locale/de/item_proto) Error 0304 19:41:27548 :: CPythonPlayer::SetItemData(window_type : 1, dwSlotIndex=0, itemIndex=71055) - Failed to item data 0304 19:41:27548 :: CPythonPlayer::SetItemData(window_type : 1, dwSlotIndex=16, itemIndex=30115) - Failed to item data 0304 19:41:27548 :: CPythonPlayer::SetItemData(window_type : 1, dwSlotIndex=13, itemIndex=30114) - Failed to item data 0304 19:41:27548 :: CPythonPlayer::SetItemData(window_type : 1, dwSlotIndex=3, itemIndex=30111) - Failed to item data 0304 19:41:27548 :: CPythonPlayer::SetItemData(window_type : 1, dwSlotIndex=5, itemIndex=71054) - Failed to item data
-
someone has a configured virtual machine to compile that I can spend?
-
-
move the function from seconds to minutes, will be able to use just minutes and there is better to leave it in seconds if you stay only minutes and seconds ever need
-
Any bug in command /shutdown ?
- 1
-
Way 2)
You can modify the function to calcute minutes to seconds it's pretty easy just go to file item.cpp
and go to the event:
find this:
and replace with this:
if you did this you need to make some changes in char_item.cpp
find this:
and replace to this:
after that find this:
and replace to this:
1item->StartDestroyEvent(1);I advise not to use because you can not use like 10 seconds and just poderar in 30 minutes.
- 1
-
If you change the do_war to GM_IMPLEMENTOR then just GMs can do wars, you should check the value in the do_war event.
Here is a small and ugly fix:
Search for this in cmd_general.cpp:
if (type >= GUILD_WAR_TYPE_MAX_NUM)
Add this over that:
if (type < 0) { ch->Disconnect("/war HACKER"); return; }
- 1
-
before
after
well?
- 1
-
source
cmd.cpp
{ "dice", do_dice, 0, POS_DEAD, GM_PLAYER }, { "ÁÖ»çÀ§", do_dice, 0, POS_DEAD, GM_PLAYER },
=>
{ "dice", do_dice, 0, POS_DEAD, GM_IMPLEMENTOR }, { "ÁÖ»çÀ§", do_dice, 0, POS_DEAD, GM_IMPLEMENTORR },
with this GM_PLAYER everyone could use, to solve simply by GM_IMPLEMENTOR as in the example.
sorry bad english but google translator.
desc.h
#define HANDSHAKE_RETRY_LIMIT 32
32 = MAX_ALLOW ?
- 1
-
-
-
Thanks
-
thanks Vanilla
Variable which have to char, you can leave example?
char g_bCheckClientVersion = true; // função ativada false desativa string g_stClientVersion = "1215955205"; // "1215955205" chave -key
well?
-
thank you, it is then the function fix?
VDI FreeBSD 9.2 / Compilable Sources
in Binaries
Posted
compilei novaline = syserr
Some correction? ?