Jump to content

[40250] Reference Serverfile + Client + Src [15 Available Languages]


TMP4

Recommended Posts

  • Active+ Member

Im having a problem, and i can't find a way to fix it, for some reason, the war books (Sun-Zi, WeiLao-Zi, Wu-Zi) are giving a lot of exp, i can go from lvl 1 to lvl 85 with just 1 book, idk what i did to make this happen, but if someone could tell me how to disable this 

Link to comment
Share on other sites

  • Contributor
7 hours ago, LethalArms said:

Im having a problem, and i can't find a way to fix it, for some reason, the war books (Sun-Zi, WeiLao-Zi, Wu-Zi) are giving a lot of exp, i can go from lvl 1 to lvl 85 with just 1 book, idk what i did to make this happen, but if someone could tell me how to disable this 

I just checked it and they dont give exp. You may messed up the CHARACTER::PointChange.

Link to comment
Share on other sites

  • Active+ Member
12 hours ago, TMP4 said:

I just checked it and they dont give exp. You may messed up the CHARACTER::PointChange.

Oh okay, maybe it was that, i did change pointchange i think, because i implemented max yang and i dont remember if other systems i have also changed that, gonna see how i can fix that

Link to comment
Share on other sites

Hello guys and girls. for long time I was lookin for some working MT2 server and client. I download 40250 server and client, i try compile client in VS but i get this error
Severity    Code    Description    Project    File    Line    Suppression State
Error    MSB8020    The build tools for v143 (Platform Toolset = 'v143') cannot be found. To build using the v143 build tools, please install v143 build tools.  Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Retarget solution".    EterLocale    C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppBuild.targets    439    

Same issue in VC 2022 with Platform tools 143. and missing #include "afxres.h"

thanks in advance

Update I decide change from 143 to 142 in all properties all 17 projects changed from 143 so now all looks fine.

but after build solution i get problem with granny.
 

Edited by ShadoWDK
Link to comment
Share on other sites

  • Contributor
3 hours ago, Periuta said:

Hello @ TMP4, congratulations for this project.

i want to know if this have fixes exploit and if i can open a server directly as it is. 

 

Thanks for your hard work, sweetest boy.

Every public exploit fixed, but attacks came from outside of the Metin2 files can still affect you (like DDoS, or a vulnerable website).

You can open as-is, but it is 2014-like old style so don't expect thousands of players if you do not customize it.

  • Good 1
  • Love 2
Link to comment
Share on other sites

  • Contributor
1 hour ago, siema said:

Hello, very well done @ TMP4!
Just wanted to say that lv6 main quest quest seems to not work

Hi, it was already fixed in version 2022.01.13.
Use the main mega drive for download, the metin2.downloads links are for backup and not always up to date, I does not manage them.

Edited by TMP4
Link to comment
Share on other sites

  • Contributor
27 minutes ago, danblf said:

heloo i want to change items  price in npc so i tried to change gold value in item_proto from database but whenever i reboot and start server game edits the databese agin and item price doesnt change. what am i doing wrong ? @ TMP4 

item_proto.txt in the conf folder will be mirrored to the db every time you start the server therefore any changes you makes in the database will be overwritten by the item_proto.txt. Edit the txt or install a notxt mod.

  • Love 2
Link to comment
Share on other sites

  • Contributor
3 hours ago, assodimetin2 said:

I did follow all the steps, but it doesn't connect me to the server. Any help?

I'm trying from yesterday but nothing.

My car doesn't start, any help?

I hope you understand what's wrong with your question. Nobody can answer your question until you explain it in much more detail.

  • Lmao 1
  • Good 1
Link to comment
Share on other sites

  • Contributor
3 hours ago, pbugyon said:

hello, I have a problem, I can not configure the server for Hamachi ip. any advice? I have no experience all this

 

EDIT : i try sysinstall but command don't exist.

Open the virtual machine and write this in the console

ee /etc/rc.conf

Then delete everything and write this in the file(press ctrl+k to remove line by line, if you want):

hostname=".localhost"
keymap="us.kbd"
ifconfig_em0="192.168.1.119 netmask 0xffffff00"
defaultrouter="192.168.1.1"
sshd_enable="YES"
# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable
dumpdev="AUTO"
mysql_enable="yes"
ifconfig_em0="inet 25.26.45.100 netmask 255.0.0.0"
defaultrouter="25.26.45.233"

Replace 25.26.45.233 with your IP from hamachi.

Where it says 25.26.45.100 write your IP from hamachi, but instead of the last 3 numbers, write 100.

To make it simpler, what you need is the ifconfig_em0 and defaultrouter, but I just copy pasted everything from mine..

Press esc, leave editor and save changes.

 

After that, restart the network interface(write it in the console):

/etc/rc.d/netif restart

If it doesn't refresh automatically, give it a reboot.

 

Also, make sure your VM's Network configuration is set to Bridged Adapter and name LogMeIn Hamachi.

Here's a couple of pictures:

 

Something for the other users:

If it takes a while to connect to your VM from SSH or WinSCP, just delete `resolv.conf` from etc.

OR, just edit it and put your IP there. In my case, I would be able to do this:

ee /etc/resolv.conf

nameserver 25.26.45.100

Esc, exit and save changes.

Then run
/etc/rc.d/netif restart

You're good to go.

Or delete it:

rm -rf /etc/resolv.conf

 

Good luck!

Spoiler

Edited by Metin2 Dev
Core X - External 2 Internal
  • Love 1
Link to comment
Share on other sites

On 2/23/2022 at 11:52 PM, Amun said:

Open the virtual machine and write this in the console

ee /etc/rc.conf

Then delete everything and write this in the file(press ctrl+k to remove line by line, if you want):

hostname=".localhost"
keymap="us.kbd"
ifconfig_em0="192.168.1.119 netmask 0xffffff00"
defaultrouter="192.168.1.1"
sshd_enable="YES"
# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable
dumpdev="AUTO"
mysql_enable="yes"
ifconfig_em0="inet 25.26.45.100 netmask 255.0.0.0"
defaultrouter="25.26.45.233"

Replace 25.26.45.233 with your IP from hamachi.

Where it says 25.26.45.100 write your IP from hamachi, but instead of the last 3 numbers, write 100.

To make it simpler, what you need is the ifconfig_em0 and defaultrouter, but I just copy pasted everything from mine..

Press esc, leave editor and save changes.

 

After that, restart the network interface(write it in the console):

/etc/rc.d/netif restart

If it doesn't refresh automatically, give it a reboot.

 

Also, make sure your VM's Network configuration is set to Bridged Adapter and name LogMeIn Hamachi.

Here's a couple of pictures:

 

Something for the other users:

If it takes a while to connect to your VM from SSH or WinSCP, just delete `resolv.conf` from etc.

OR, just edit it and put your IP there. In my case, I would be able to do this:

ee /etc/resolv.conf

nameserver 25.26.45.100

Esc, exit and save changes.

Then run
/etc/rc.d/netif restart

You're good to go.

Or delete it:

rm -rf /etc/resolv.conf

 

Good luck!

it's work thank you ! 
Now I would like to ask another question maybe other people in the future will also have this problem. there is a particular mission at stake. the arms dealer asks to take oil from the shop (website) but if I click on the shop the site does not exist. how can I solve? is it possible to insert this item in the game? or can I create a website? 

https://metin2.download/picture/9eh4XM2IHHXmIeALWqN8jOV8KV7Sp926/.jpg this an screenshot 

 

Spoiler

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

2 hours ago, pbugyon said:

it's work thank you ! 
Now I would like to ask another question maybe other people in the future will also have this problem. there is a particular mission at stake. the arms dealer asks to take oil from the shop (website) but if I click on the shop the site does not exist. how can I solve? is it possible to insert this item in the game? or can I create a website? 

https://metin2.download/picture/9eh4XM2IHHXmIeALWqN8jOV8KV7Sp926/.jpg this an screenshot 

 

Make this:

 

Go TO:
/usr/metin2/server/channel1/first/CONFIG

And chance inside this to your shot homepage:

MALL_URL: google.com

Make this in all channels ( Dont inside DB )

Edited by Metin2 Dev
Core X - External 2 Internal
  • Love 1
Link to comment
Share on other sites

17 minutes ago, SolWayne said:

Make this:

 

Go TO:
/usr/metin2/server/channel1/first/CONFIG

And chance inside this to your shot homepage:

MALL_URL: google.com

Make this in all channels ( Dont inside DB )

already been inserted previously : CHANNEL: 1
HOSTNAME: first
PORT: 13000
P2P_PORT: 14000
DB_ADDR: 127.0.0.1
DB_PORT: 15000
MAP_ALLOW: 1 4 5 6 3 23 43 112 107 67 68 72 208 302 304
PLAYER_SQL: 127.0.0.1 metin2 password player
COMMON_SQL: 127.0.0.1 metin2 password common
LOG_SQL: 127.0.0.1 metin2 password log
TABLE_POSTFIX: 
PASSES_PER_SEC: 25
SAVE_EVENT_SECOND_CYCLE: 180
PING_EVENT_SECOND_CYCLE: 180
VIEW_RANGE: 8000
CHECK_MULTIHACK: 0
ADMINPAGE_PASSWORD: metin2adminpass
ADMINPAGE_IP: 127.0.0.1
SPEEDHACK_LIMIT_COUNT: 300
SPEEDHACK_LIMIT_BONUS: 80
PK_PROTECT_LEVEL: 15
MALL_URL: google.com
TRAFFIC_PROFILE: 
TEST_SERVER: 0
MAX_LEVEL: 105
#BIND_IP: Your Private/Internal IPv4 address
#PROXY_IP: Your Public/External IPv4 address
 

Link to comment
Share on other sites

  • Contributor
2 hours ago, pbugyon said:

already been inserted previously : CHANNEL: 1
HOSTNAME: first
PORT: 13000
P2P_PORT: 14000
DB_ADDR: 127.0.0.1
DB_PORT: 15000
MAP_ALLOW: 1 4 5 6 3 23 43 112 107 67 68 72 208 302 304
PLAYER_SQL: 127.0.0.1 metin2 password player
COMMON_SQL: 127.0.0.1 metin2 password common
LOG_SQL: 127.0.0.1 metin2 password log
TABLE_POSTFIX: 
PASSES_PER_SEC: 25
SAVE_EVENT_SECOND_CYCLE: 180
PING_EVENT_SECOND_CYCLE: 180
VIEW_RANGE: 8000
CHECK_MULTIHACK: 0
ADMINPAGE_PASSWORD: metin2adminpass
ADMINPAGE_IP: 127.0.0.1
SPEEDHACK_LIMIT_COUNT: 300
SPEEDHACK_LIMIT_BONUS: 80
PK_PROTECT_LEVEL: 15
MALL_URL: google.com
TRAFFIC_PROFILE: 
TEST_SERVER: 0
MAX_LEVEL: 105
#BIND_IP: Your Private/Internal IPv4 address
#PROXY_IP: Your Public/External IPv4 address
 

What he means is that the MALL_URL should be changed with the URL of you website's item shop. I'm not quite fond of the current item shop(through an integrated web browser) so, if I were you, I would find some in-game item shop system. But that's just me, you do what you want, obviously.

 

Cheers!

 

Edit:

I've looked a bit around. I think the URL is actually coming from cmd.

In game/src/cmd_general.cpp you will find:

		snprintf(buf, sizeof(buf), "mall http://%s/ishop?pid=%u&c=%s&sid=%d&sas=%s",
				g_strWebMallURL.c_str(), ch->GetPlayerID(), country_code, g_server_id, sas);

Where g_strWebMallURL is a constant holding the TLD.

That constant can be found in game/src/config.cpp

string g_strWebMallURL = "www.metin2.de";

Now, you have a few choices:

1.You can replace the TLD with your domain and keep everything else as is, but that would mean that your backend is actually compatible with all the query parameters.

2.You can just get rid of everything in ACMD(do_in_game_mall) and replace it's content with this(don't forget to change the constant with your TLD):

	char buf[128];
	snprintf(buf, sizeof(buf), "mall http://%s/ishop", g_strWebMallURL.c_str());

	ch->ChatPacket(CHAT_TYPE_COMMAND, buf);

OR you can remove the constant and write it straight in here:

	char buf[128];
	snprintf(buf, sizeof(buf), "mall http://YOUR_TLD/YOUR_ITEM_SHOP_PAGE");

	ch->ChatPacket(CHAT_TYPE_COMMAND, buf);

3. You can remove everything about mall and implement an in-game item shop.

 

Anyhow.. you'll figure it out 🙂

Cheers!

Edited by Amun
+ more details
  • Love 1
Link to comment
Share on other sites

55 minutes ago, Amun said:

What he means is that the MALL_URL should be changed with the URL of you website's item shop. I'm not quite fond of the current item shop(through an integrated web browser) so, if I were you, I would find some in-game item shop system. But that's just me, you do what you want, obviously.

 

Cheers!

oh ok thanks! I misunderstood the explanation, now I understand. I prefer your suggestion. also because I would not know how to create a website shop. but in reality I don't even know how to create a shop in game...

Link to comment
Share on other sites

  • Contributor
3 minutes ago, pbugyon said:

oh ok thanks! I misunderstood the explanation, now I understand. I prefer your suggestion. also because I would not know how to create a website shop. but in reality I don't even know how to create a shop in game...

I've added more details, in case you want options.

Edit:

There's lots of websites that are already made, you can just pick one..

Good luck 🙂

Edited by Amun
Link to comment
Share on other sites

17 minutes ago, Amun said:

I've added more details, in case you want options.

Edit:

There's lots of websites that are already made, you can just pick one..

Good luck 🙂

Thank you very much! you were very kind. I think I'll make a shop in game. because I only play with two of my friends at the private server. I'll see to find some guidance in the forum. thanks again to all !

Link to comment
Share on other sites

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.