Jump to content

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


TMP4

Recommended Posts

  • 2 weeks later...

hello i have a problem with multi language. I get the error "when doesent have begin end clause" while reading quests.

I looked at qc.cc for this but I see it's already adapted what is the problem?

IMAGE :  the qc.cc part I'm talking about

My translate function = locale_quest(number)

USAGE:

when 20017.chat.locale_quest(26) begin
	bla bla
end

NOTE: There is no structural problem in the system. everything is in perfect condition. The problem is only in quest side.

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

  • 2 weeks later...
  • Contributor
2023.08.05: - New freshly installed VM with FreeBSD 13.2.
            - Installed a fix about an exploit: https://metin2.dev/topic/31147-itemmove-dupe-exploit-fix/#comment-158896
            - Expect this as the last update unless there will be some serious problem.

What's left on my todo list is MySQL8 compatibility, sadly don't expect it from me, lately I am interested in other things than Metin2.
If anyone do it and wanna share it (I will include the credit), contact me.

  • Good 1
Link to comment
Share on other sites

  • Management
29 minutes ago, TMP4 said:

What's left on my todo list is MySQL8 compatibility, sadly don't expect it from me, lately I am interested in other things than Metin2.
If anyone do it and wanna share it (I will include the credit), contact me.

Maybe one day, when I'm motivated, I can do it... :kekw:
That should be the base today...

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

  • 2 weeks later...

Good morning! I've been translating trasnlate.lua to pt-br for a few days (pt-pt is not the same thing) and when I uploaded the new locale.lua, it was like this. translate.lua_pt contains the same characters and it doesn't get bugged like that, is there something I'm doing wrong? Thanks in advance.

spacer.png

 

Edited by Ballads
Core X - External 2 Internal
  • Dislove 1
Link to comment
Share on other sites

  • 2 weeks later...
  • 2 weeks later...
  • Active Member
8 hours ago, TMP4 said:

K-perny-k-p-2023-09-15-072244.png

Any chance anyone saved it?

It's complicated, but you can try this:
https://support.google.com/youtube/answer/6395024?hl=es&dark=1&sjid=10250177798839608775-EU
 i read you can remove o cut parts from video, so change tittle or anything that says metin2, webzen or make it blurry so that the name is not seen @ TMP4

Edited by nazox

KH.jpg

Nicks: Nazox Krone Nagato Yahiko Yakiro
Proyecto: Trabajando en el.
Compañeros & firma: DreamHQ  - 2009-2015 [Nostalgia]

Link to comment
Share on other sites

  • Contributor
7 hours ago, nazox said:

It's complicated, but you can try this:
https://support.google.com/youtube/answer/6395024?hl=es&dark=1&sjid=10250177798839608775-EU
 i read you can remove o cut parts from video, so change tittle or anything that says metin2, webzen or make it blurry so that the name is not seen @ TMP4

The problem I don't have backup of the video file and youtube won't let you download it if it's striked.

If I have backup, I would reupload it to somewhere else.

Link to comment
Share on other sites

  • Active Member

Hello  again @ TMP4 ITEM_QUEST / CONFIRM_WHEN_USE and others doesn't work, i fixed it, maybe is no the best solution, but for me work.

1-Make copy your files.

2-Go to: /usr/metin2/src/common and open Item_lenght.h and search:

Spoiler

enum EItemFlag
{
    ITEM_FLAG_REFINEABLE        = (1 << 0),
    ITEM_FLAG_SAVE            = (1 << 1),
    ITEM_FLAG_STACKABLE        = (1 << 2),    // ¿©·¯°³ ÇÕÄ¥ ¼ö ÀÖÀ½
    ITEM_FLAG_COUNT_PER_1GOLD    = (1 << 3),
    ITEM_FLAG_SLOW_QUERY        = (1 << 4),
    ITEM_FLAG_UNUSED01        = (1 << 5),    // UNUSED
    ITEM_FLAG_UNIQUE        = (1 << 6),
    ITEM_FLAG_MAKECOUNT        = (1 << 7),
    ITEM_FLAG_IRREMOVABLE        = (1 << 8),
    ITEM_FLAG_CONFIRM_WHEN_USE    = (1 << 9),
    ITEM_FLAG_QUEST_USE        = (1 << 10),
    ITEM_FLAG_QUEST_USE_MULTIPLE    = (1 << 11),
    ITEM_FLAG_QUEST_GIVE        = (1 << 12),
    ITEM_FLAG_LOG            = (1 << 13),
    ITEM_FLAG_APPLICABLE        = (1 << 14),
};

If we look closely, we will see that it does not add up, we have a function that is "UNUSED" and FLAG_ITEM_QUEST does not exist, not to mention that it does not match the position of the files.

Well, let's go to fix this, after you open and search, replace with this:

Spoiler

enum EItemFlag
{
    ITEM_FLAG_REFINEABLE        = (1 << 0),
    ITEM_FLAG_SAVE            = (1 << 1),
    ITEM_FLAG_STACKABLE        = (1 << 2),    // ¿©·¯°³ ÇÕÄ¥ ¼ö ÀÖÀ½
    ITEM_FLAG_COUNT_PER_1GOLD    = (1 << 3),
    ITEM_FLAG_SLOW_QUERY        = (1 << 4),
    //ITEM_FLAG_UNUSED01        = (1 << 5),    // UNUSED
    ITEM_FLAG_UNIQUE        = (1 << 5),
    ITEM_FLAG_MAKECOUNT        = (1 << 6),
    ITEM_FLAG_IRREMOVABLE        = (1 << 7),
    ITEM_FLAG_CONFIRM_WHEN_USE    = (1 << 8),
    ITEM_FLAG_QUEST_USE        = (1 << 9),
    ITEM_FLAG_QUEST_USE_MULTIPLE    = (1 << 10),
    ITEM_FLAG_QUEST_GIVE        = (1 << 11),
    ITEM_FLAG_ITEM_QUEST        = (1 << 12),
    ITEM_FLAG_LOG            = (1 << 13),
    ITEM_FLAG_APPLICABLE        = (1 << 14),
};

Or just, remove the "ITEM_FLAG_UNUSED01" and add "ITEM_FLAG_ITEM_QUEST" after "ITEM_FLAG_QUEST_GIVE"

3.Compile game, and go to db/ProtoReader.cpp and search;

Spoiler

    string arFlag[] = {"ITEM_TUNABLE", "ITEM_SAVE", "ITEM_STACKABLE", "COUNT_PER_1GOLD", "ITEM_SLOW_QUERY", "ITEM_UNIQUE",
            "ITEM_MAKECOUNT", "ITEM_IRREMOVABLE", "CONFIRM_WHEN_USE", "QUEST_USE", "QUEST_USE_MULTIPLE",
            "QUEST_GIVE", "ITEM_QUEST", "LOG", "STACKABLE", "SLOW_QUERY", "REFINEABLE", "IRREMOVABLE", "ITEM_APPLICABLE"};

You can se, how this call "ITEM_TUNABLE" but this doesn't exist, apart the count max in item_lenght.h is 14 but here you have 17, so now change with this:

Quote

    string arFlag[] = {"ITEM_REFINEABLE", "ITEM_SAVE", "ITEM_STACKABLE", "COUNT_PER_1GOLD", "ITEM_SLOW_QUERY", "ITEM_UNIQUE",
                        "ITEM_MAKECOUNT", "ITEM_IRREMOVABLE", "CONFIRM_WHEN_USE", "QUEST_USE", "QUEST_USE_MULTIPLE",
                        "QUEST_GIVE", "ITEM_QUEST", "LOG", "ITEM_APPLICABLE"};

4.Now compile DB and go to Source Client/UserInterface and open PythonItemModule.cpp and comment this line:

Spoiler

//PyModule_AddIntConstant(poModule, "ITEM_FLAG_RARE",                CItemData::ITEM_FLAG_RARE);

4.1.Now go to GameLib/itemData.h and search:

Spoiler

        enum EItemFlag
        {
            ITEM_FLAG_REFINEABLE        = (1 << 0),        // °³·® °¡´É
            ITEM_FLAG_SAVE              = (1 << 1),
            ITEM_FLAG_STACKABLE         = (1 << 2),     // ¿©·¯°³ ÇÕÄ¥ ¼ö ÀÖÀ½
            ITEM_FLAG_COUNT_PER_1GOLD   = (1 << 3),        // °¡°ÝÀÌ °³¼ö / °¡°ÝÀ¸·Î º¯ÇÔ
            ITEM_FLAG_SLOW_QUERY        = (1 << 4),        // °ÔÀÓ Á¾·á½Ã¿¡¸¸ SQL¿¡ Äõ¸®ÇÔ
            ITEM_FLAG_RARE              = (1 << 5),
            ITEM_FLAG_UNIQUE            = (1 << 6),
            ITEM_FLAG_MAKECOUNT            = (1 << 7),
            ITEM_FLAG_IRREMOVABLE        = (1 << 8),
            ITEM_FLAG_CONFIRM_WHEN_USE    = (1 << 9),
            ITEM_FLAG_QUEST_USE         = (1 << 10),    // Äù½ºÆ® ½ºÅ©¸³Æ® µ¹¸®´ÂÁö?
            ITEM_FLAG_QUEST_USE_MULTIPLE= (1 << 11),    // Äù½ºÆ® ½ºÅ©¸³Æ® µ¹¸®´ÂÁö?
            ITEM_FLAG_UNUSED03          = (1 << 12),    // UNUSED03
            ITEM_FLAG_LOG               = (1 << 13),    // »ç¿ë½Ã ·Î±×¸¦ ³²±â´Â ¾ÆÀÌÅÛÀΰ¡?
            ITEM_FLAG_APPLICABLE        = (1 << 14),
        };

Replace:

Spoiler

        enum EItemFlag
        {
            ITEM_FLAG_REFINEABLE        = (1 << 0),        // °³·® °¡´É
            ITEM_FLAG_SAVE              = (1 << 1),
            ITEM_FLAG_STACKABLE         = (1 << 2),     // ¿©·¯°³ ÇÕÄ¥ ¼ö ÀÖÀ½
            ITEM_FLAG_COUNT_PER_1GOLD   = (1 << 3),        // °¡°ÝÀÌ °³¼ö / °¡°ÝÀ¸·Î º¯ÇÔ
            ITEM_FLAG_SLOW_QUERY        = (1 << 4),        // °ÔÀÓ Á¾·á½Ã¿¡¸¸ SQL¿¡ Äõ¸®ÇÔ
            //ITEM_FLAG_RARE              = (1 << 5),
            ITEM_FLAG_UNIQUE            = (1 << 5),
            ITEM_FLAG_MAKECOUNT            = (1 << 6),
            ITEM_FLAG_IRREMOVABLE        = (1 << 7),
            ITEM_FLAG_CONFIRM_WHEN_USE    = (1 << 8),
            ITEM_FLAG_QUEST_USE         = (1 << 9),    // Äù½ºÆ® ½ºÅ©¸³Æ® µ¹¸®´ÂÁö?
            ITEM_FLAG_QUEST_USE_MULTIPLE= (1 << 10),    // Äù½ºÆ® ½ºÅ©¸³Æ® µ¹¸®´ÂÁö?
            ITEM_QUEST_GIVE                = (1 << 11),
            ITEM_FLAG_ITEM_QUEST          = (1 << 12),    // UNUSED03
            ITEM_FLAG_LOG               = (1 << 13),    // »ç¿ë½Ã ·Î±×¸¦ ³²±â´Â ¾ÆÀÌÅÛÀΰ¡?
            ITEM_FLAG_APPLICABLE        = (1 << 14),
        };

5.In the end, compile Source Client, and open Dump_proto/ItemCSVReader.cpp and search:

Spoiler

int get_Item_Flag_Value(string inputString) 
{

    string arFlag[] = {"ITEM_REFINEABLE", "ITEM_SAVE", "ITEM_STACKABLE", "COUNT_PER_1GOLD", "ITEM_SLOW_QUERY", "ITEM_UNIQUE",
            "ITEM_MAKECOUNT", "ITEM_IRREMOVABLE", "CONFIRM_WHEN_USE", "QUEST_USE", "QUEST_USE_MULTIPLE",
            "QUEST_GIVE", "ITEM_QUEST", "LOG", "STACKABLE", "SLOW_QUERY", "REFINEABLE", "IRREMOVABLE", "ITEM_APPLICABLE"};

Replace:

Quote

int get_Item_Flag_Value(string inputString) 
{

    string arFlag[] = {"ITEM_REFINEABLE", "ITEM_SAVE", "ITEM_STACKABLE", "COUNT_PER_1GOLD", "ITEM_SLOW_QUERY", "ITEM_UNIQUE",
            "ITEM_MAKECOUNT", "ITEM_IRREMOVABLE", "CONFIRM_WHEN_USE", "QUEST_USE", "QUEST_USE_MULTIPLE",
            "QUEST_GIVE", "ITEM_QUEST", "LOG", "ITEM_APPLICABLE"};

Compile, dump the item/mob replace in locale, and have fun!!

https://metin2.download/picture/Vvv5TUrRwXW4bLbSHP31Yx8ohV20rB9G/.gif

9 minutes ago, TMP4 said:

The problem I don't have backup of the video file and youtube won't let you download it if it's striked.

If I have backup, I would reupload it to somewhere else.

What is the video about? I don't remember, I can record one myself and do you a favor, greetings.

Edited by Metin2 Dev International
Core X - External 2 Internal

KH.jpg

Nicks: Nazox Krone Nagato Yahiko Yakiro
Proyecto: Trabajando en el.
Compañeros & firma: DreamHQ  - 2009-2015 [Nostalgia]

Link to comment
Share on other sites

Hello @ TMP4, I have little problem with the specular shining on new added armors.(not tested on weapons). (I tested different armors from different creators)

When the armor is on +9, the armor is not shining as it should. They are like a +0 item. (just with the sparkles)

spacer.png <------ This is what I mean, the shine, that I'm missing. (Not the sparkles)

1.  I have the Alpha correctly done in photoshop.

2. I did set the the "specular" value in the sql. to 100 for the +9 item.

3. And I also did set the "specular" on the client, also 100 for the +9 item.

4. The textures are linked correctly in .msm

5. The vnum of the armor is 309 for +9.


Is there something that I'm missing, to set the specular correctly ?

Thanks.

Edited by Sioniraj
Added one more point
Link to comment
Share on other sites

2 hours ago, Sioniraj said:

Hello @ TMP4, I have little problem with the specular shining on new added armors.(not tested on weapons). (I tested different armors from different creators)

When the armor is on +9, the armor is not shining as it should. They are like a +0 item. (just with the sparkles)

spacer.png <------ This is what I mean, the shine, that I'm missing. (Not the sparkles)

1.  I have the Alpha correctly done in photoshop.

2. I did set the the "specular" value in the sql. to 100 for the +9 item.

3. And I also did set the "specular" on the client, also 100 for the +9 item.

4. The textures are linked correctly in .msm

5. The vnum of the armor is 309 for +9.


Is there something that I'm missing, to set the specular correctly ?

Thanks.

it doesn't look like +0 specular to me. +0 would be a bit "dry", zero shine

Link to comment
Share on other sites

14 minutes ago, Ballads said:

it doesn't look like +0 specular to me. +0 would be a bit "dry", zero shine

The first image is just showing what i need to achieve/get.

 

And this is what I have now on new added armors, not this one (Black Armor) , but I'm adding the reference image of what problem I have. (not working shine, just the little sparkles).

+ All original/old armors have the shine + (sparkle)

spacer.png

Also as I already sad, I did tried different armors from different creators, but no luck.

Edited by Sioniraj
Link to comment
Share on other sites

10 minutes ago, Sioniraj said:

The first image is just showing what i need to achieve/get.

 

And this is what I have now on new added armors, not this one (Black Armor) , but I'm adding the reference image of what problem I have. (not working shine, just the little sparkles).

+ All original/old armors have the shine + (sparkle)

spacer.png

Also as I already sad, I did tried different armors from different creators, but no luck.

show your item_proto 

Link to comment
Share on other sites

@ Ballads Here is the short version - With the armor. - I can't post the full version item_proto.txt right now (I got "This content must be approved before it can be edited." So the post is on hold, because of link.)
But anyway these are the only lines I changed/added.

300	Brn??samuraje +0	ITEM_ARMOR	ARMOR_BODY	2	ANTI_ASSASSIN | ANTI_SURA | ANTI_MUDANG | 	ITEM_TUNABLE	WEAR_BODY	NONE	120000	120000	501	601	10	LEVEL	90	LIMIT_NONE	0	APPLY_MOV_SPEED	-15	APPLY_RESIST_MAGIC	4	APPLY_MAX_HP_PCT	1	0	120	0	31	0	0	0	3	0
301	Brn??samuraje +1	ITEM_ARMOR	ARMOR_BODY	2	ANTI_ASSASSIN | ANTI_SURA | ANTI_MUDANG | 	ITEM_TUNABLE	WEAR_BODY	NONE	120000	130000	502	602	10	LEVEL	92	LIMIT_NONE	0	APPLY_MOV_SPEED	-15	APPLY_RESIST_MAGIC	5	APPLY_MAX_HP_PCT	1	0	120	0	31	0	5	0	3	0
302	Brn??samuraje +2	ITEM_ARMOR	ARMOR_BODY	2	ANTI_ASSASSIN | ANTI_SURA | ANTI_MUDANG | 	ITEM_TUNABLE	WEAR_BODY	NONE	120000	145000	503	603	10	LEVEL	94	LIMIT_NONE	0	APPLY_MOV_SPEED	-15	APPLY_RESIST_MAGIC	6	APPLY_MAX_HP_PCT	1	0	120	0	31	0	7	0	3	0
303	Brn??samuraje +3	ITEM_ARMOR	ARMOR_BODY	2	ANTI_ASSASSIN | ANTI_SURA | ANTI_MUDANG | 	ITEM_TUNABLE	WEAR_BODY	NONE	120000	165000	504	604	10	LEVEL	96	LIMIT_NONE	0	APPLY_MOV_SPEED	-12	APPLY_RESIST_MAGIC	7	APPLY_MAX_HP_PCT	2	0	120	0	31	0	10	0	3	0
304	Brn??samuraje +4	ITEM_ARMOR	ARMOR_BODY	2	ANTI_ASSASSIN | ANTI_SURA | ANTI_MUDANG | 	ITEM_TUNABLE	WEAR_BODY	NONE	120000	190000	505	605	10	LEVEL	98	LIMIT_NONE	0	APPLY_MOV_SPEED	-9	APPLY_RESIST_MAGIC	9	APPLY_MAX_HP_PCT	2	0	120	0	31	0	15	30	3	0
305	Brn??samuraje +5	ITEM_ARMOR	ARMOR_BODY	2	ANTI_ASSASSIN | ANTI_SURA | ANTI_MUDANG | 	ITEM_TUNABLE	WEAR_BODY	NONE	120000	220000	506	606	10	LEVEL	100	LIMIT_NONE	0	APPLY_MOV_SPEED	-6	APPLY_RESIST_MAGIC	12	APPLY_MAX_HP_PCT	3	0	120	0	31	0	22	40	3	0
306	Brn??samuraje +6	ITEM_ARMOR	ARMOR_BODY	2	ANTI_ASSASSIN | ANTI_SURA | ANTI_MUDANG | 	ITEM_TUNABLE	WEAR_BODY	NONE	120000	265000	507	607	10	LEVEL	102	LIMIT_NONE	0	APPLY_MOV_SPEED	-4	APPLY_RESIST_MAGIC	15	APPLY_MAX_HP_PCT	4	0	120	0	31	0	32	50	3	0
307	Brn??samuraje +7	ITEM_ARMOR	ARMOR_BODY	2	ANTI_ASSASSIN | ANTI_SURA | ANTI_MUDANG | 	ITEM_TUNABLE	WEAR_BODY	NONE	120000	325000	508	608	10	LEVEL	104	LIMIT_NONE	0	APPLY_MOV_SPEED	-2	APPLY_RESIST_MAGIC	18	APPLY_MAX_HP_PCT	5	0	120	0	31	0	47	65	3	0
308	Brn??samuraje +8	ITEM_ARMOR	ARMOR_BODY	2	ANTI_ASSASSIN | ANTI_SURA | ANTI_MUDANG | 	ITEM_TUNABLE	WEAR_BODY	NONE	120000	405000	509	609	10	LEVEL	104	LIMIT_NONE	0	APPLY_MOV_SPEED	-1	APPLY_RESIST_MAGIC	21	APPLY_MAX_HP_PCT	7	0	120	0	31	0	68	80	3	0
309	Brn??samuraje +9	ITEM_ARMOR	ARMOR_BODY	2	ANTI_ASSASSIN | ANTI_SURA | ANTI_MUDANG | 	ITEM_TUNABLE	WEAR_BODY	NONE	120000	515000	0	0	10	LEVEL	105	LIMIT_NONE	0	APPLY_MOV_SPEED	0	APPLY_RESIST_MAGIC	25	APPLY_MAX_HP_PCT	10	0	120	0	31	0	100	100	3	0

 

Edited by Sioniraj
Link to comment
Share on other sites

Hey, I wanted to ask,
1. What IPs do i use for BIND_IP and PROXY_IP when i want to start the server through Radmin VPN
2. Where can I get the IPs
3. What ip do i use in client config
4. Do i have to have open port of it even when its through Radmin VPN?

Thank you

Edited by Simisko
Link to comment
Share on other sites

On 9/25/2023 at 4:48 AM, Simisko said:

Hey, I wanted to ask,
1. What IPs do i use for BIND_IP and PROXY_IP when i want to start the server through Radmin VPN
2. Where can I get the IPs
3. What ip do i use in client config
4. Do i have to have open port of it even when its through Radmin VPN?

 

Or if you could give me a tutorial step by step how to create a hamachi server via the server.vdi
Thank you so much

 

  • Smile Tear 1
  • Love 3
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.