Jump to content

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


TMP4

Recommended Posts

  • Active Member
On 7/20/2021 at 6:13 PM, TMP4 said:

M2 Download Center

This is the hidden content, please
  ( Mega.nz, Future updates will also be here )
This is the hidden content, please
 + 
This is the hidden content, please
 +
This is the hidden content, please
 
( Internal / Backup )

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

My goal was to make a reference r40250 serverfile as official as possible compared to what GF had back when their files got leaked in early 2014.
No new systems added, only bug fixes. While I spent several hours testing, there may still be bugs. Please report bugs to me so I can fix them in the
future, I want to make this project as bug free as possible.

Available languages: EN/DE/HU/FR/CZ/DK/ES/GR/IT/NL/PL/PT/RO/RU/TR
Please read Languages.txt to learn how to change the default EN language.

SSH for VM: root/123456789
MySQL: root/123456789
Ingame: admin/123456789

Aliases and it's commands:

start			cd /usr/metin2/server && sh start.sh
close			cd /usr/metin2/server && sh close.sh
clear			cd /usr/metin2/server && sh clear.sh
backup			cd /usr/metin2/server && sh backup.sh
questcompile		cd /usr/metin2/server/share/locale/english/quest && python2.7 make.py
dbclean			cd /usr/metin2/src/db/src && gmake clean
dbdep			cd /usr/metin2/src/db/src && gmake dep
dbcompile		cd /usr/metin2/src/db/src && gmake -j9
gameclean		cd /usr/metin2/src/game/src && gmake clean
gamedep			cd /usr/metin2/src/game/src && gmake dep
gamecompile		cd /usr/metin2/src/game/src && gmake -j9

Please read Changelog.txt to find more about the changes I made.

Special thanks to:

@Mali for the clean and updated client & server src files.
@Sanchez for the 2014 base client.
@Veltor88 for the translate.lua pack.
@Fazer for the locale_string pack

I made a little video about installing the serverfile (vm) and changing the language:

  Reveal hidden contents

PS: I know it's pretty late in 2021 but better than ever 😀

Sincerely,
TMP4

Have mount bug 

 

  • Metin2 Dev 3
  • kekw 1
  • Love 1
Link to comment
Share on other sites

  • Contributor
10 hours ago, Ulas said:

Have mount bug 

 

The right id for the boar mount is 71114. Use that.
71115 were unused / experimental item, what were not available for players.
But as you highlighted in your quest, it takes the item_proto's socket 2 value * 60. If you set a socket 2 value greater than 0, or modifiy the quest for a fix time like 71114 have, then 71115 will work too.

10 hours ago, siema said:

Hello, why alchemy requires now 15 slots for class upgrade? If i remember correctly it used to be 4 in previous version?

It's the very first version, that's why it needs 15 slots from Rough to Cut.
They nerfed the requirements over the years. 

The first version values are: 

  • Rough to Cut: 15
  • Cut to Rare: 10
  • Rare to Antique: 5
  • Antique to Legendary: 3
  • Legendary to Mythic: not exist in the first version
Edited by TMP4
  • Good 1
Link to comment
Share on other sites

  • Active Member
2 hours ago, TMP4 said:

The right id for the boar mount is 71114. Use that.
71115 were unused / experimental item, what were not available for players.
But as you highlighted in your quest, it takes the item_proto's socket 2 value * 60. If you set a socket 2 value greater than 0, or modifiy the quest for a fix time like 71114 have, then 71115 will work too.

It's the very first version, that's why it needs 15 slots from Rough to Cut.
They nerfed the requirements over the years. 

The first version values are: 

  • Rough to Cut: 15
  • Cut to Rare: 10
  • Rare to Antique: 5
  • Antique to Legendary: 3
  • Legendary to Mythic: not exist in the first version

https://metin2.download/picture/AeOiwN1Q7IL61F3bbY1fgl5Tj0hE2k5y/.png
https://metin2.download/picture/9NqRfaPu6tjxEPvNnX6GzU40250b94b4/.png
 

still not working

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

  • Contributor
40 minutes ago, Ulas said:

You missed it, you set for 71114, not 71115. Set it for 71115, one row down.

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

  • Active Member
20 minutes ago, TMP4 said:

You missed it, you set for 71114, not 71115. Set it for 71115, one row down.

https://metin2.download/picture/w2RZF1ZMz9B1zakd6A79Amnjz9L1fkOR/.png
https://metin2.download/picture/KP57nzfFjJQe6DTO1NY6JYNrLrKWKHKM/.png

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

  • Contributor
9 minutes ago, Ulas said:

You have to re-summon the item with /i because the socket already set with 0 in the old item in you inventory.

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

  • Contributor
1 hour ago, Ulas said:

I do again create item

The item is not time limited probably that's why the socket 2 does not set in the player.item table.

I suggest you to modify the ride.quest then like this:

			ride_info = {
				[71114] = { 20110,	5*60,					apply.DEF_GRADE_BONUS,	75,		75,	true	},
				[71115] = { 20110,	24*60,					apply.DEF_GRADE_BONUS,	100,	75,	false	},
				[71116] = { 20111,	5*60,					apply.DEF_GRADE_BONUS,	100,	80,	true	},
				[71117] = { 20111,	24*60,					apply.DEF_GRADE_BONUS,	150,	80,	false	},
				[71118] = { 20112,	5*60,					apply.DEF_GRADE_BONUS,	125,	85,	true	},
				[71119] = { 20112,	24*60,					apply.DEF_GRADE_BONUS,	200,	85,	false	},
				[71120] = { 20113,	5*60,					apply.ATT_GRADE_BONUS,	200,	85,	true	},
				[71121] = { 20113,	24*60,					apply.ATT_GRADE_BONUS,	300,	85,	false	},
				[71171] = { 20227,	item.get_socket(2)*60,	apply.MOV_SPEED,	60,		1,	false,	false,	false},
				[71172] = { 20226,	item.get_socket(2)*60,	apply.MOV_SPEED,	60,		1,	false,	false,	false},
			}

Don't forget to recompile the quests via make.py or questcompile command.

Edit: Tested it, updated the mega.nz archive with this quest modification.

Edited by TMP4
  • Good 1
Link to comment
Share on other sites

  • Contributor
16 hours ago, garofolo said:

BUGGGGGGGG SOMEONE HAVE FIX????

It's not really a bug but a deficiency, beacause global level refresh is actually does not exists in 40k.
Since there is no public tutorial, I could not add the global refresh for players. I did not want to take it out from other serverfile.

Edited by TMP4
Link to comment
Share on other sites

  • Contributor
59 minutes ago, Shishiro said:

i need help,

I'm running the game on Freebsd 9.2 can someone give me the libs please

Shared object "libcxxrt.so.1" not found, required by "game"
 

Two very important thing:

  • Do not use FreeBSD 9.2 in late 2022. It was EOL at December 31, 2014...
  • Do not download random libs from the internet. If you have an x64 vps, then compile game-db in virtualbox running same FreeBSD version just x32 where you can compile, and take the libs from the vm.
Link to comment
Share on other sites

  • Contributor
On 12/4/2022 at 5:31 AM, garofolo said:

BUGGGGGGGG SOMEONE HAVE FIX????

So I reinscpected the level refresh. Actually it is quite simple to make others players see your actual level:

PythonNetworkStreamPhaseGame.cpp

bool CPythonNetworkStream::RecvPointChange()
{
	[...]
	if (PointChange.dwVID == pInstance->GetVirtualID())
	{
		[...]
	}
	//Add this else
	else
	{
		if (PointChange.Type == POINT_LEVEL)
		{
			pInstance = CPythonCharacterManager::Instance().GetInstancePtr(PointChange.dwVID);
			if (pInstance)
			{
				pInstance->SetLevel(PointChange.value);
				pInstance->UpdateTextTailLevel(PointChange.value);
			}
		}
	}

	return true;
}

You just need to add that else and it will work.

Be aware it will only work when pointchange packet is broadcasted, e.g. someone leveled up via killing mobs, getting exp.
If a player receive level by GM command (/level, /advance) the packet will not broadcasted to all players, only the specific player gets it.

Edit: Mega archive updated with this change.

2022.12.05: - Added level refresh for other players at RecvPointChange in PythonNetworkStreamPhaseGame.cpp line 1540-1550.
Edited by TMP4
  • Good 1
Link to comment
Share on other sites

  • Contributor
4 hours ago, Ulas said:

directx8.lib have problem if you click item shop menu you can saw @ TMP4

 

Could not reproduce it. First I tought it maybe your attached debugger, but I tried with a debugger too:

In the past year and a half, no one has reported such an error to me, even though quite a lot of people have used and are using this server file.
Is it happening with an untouched source too? (Redownload & test)

  • Love 1
Link to comment
Share on other sites

  • Active Member
On 12/7/2022 at 9:48 PM, TMP4 said:

Could not reproduce it. First I tought it maybe your attached debugger, but I tried with a debugger too:

In the past year and a half, no one has reported such an error to me, even though quite a lot of people have used and are using this server file.
Is it happening with an untouched source too? (Redownload & test)

Yes this is my fault ❤️

Link to comment
Share on other sites

  • Contributor
12 hours ago, БlyatMAN said:

when i add 6/7 on item i have this error in syserr 

locale_find: LOCALE_ERROR: "더 이상 이 아이템으로 속성을 추가할 수 없습니다";

and i put it in string with the translation but still dosent work any fix?

or i did something wrong?

I only tested english now but it works.

What language do you use?
If it works in the untouched serverfile, you may messed up the cpp file character encoding (char_item.cpp i think).

Link to comment
Share on other sites

1 hour ago, TMP4 said:

I only tested english now but it works.

What language do you use?
If it works in the untouched serverfile, you may messed up the cpp file character encoding (char_item.cpp i think).

Try to put the 3d one. On first and second its ok but when you cant add more then 2 its problem.

Edited by БlyatMAN
  • Love 1
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.