-
Posts
2151 -
Joined
-
Last visited
-
Feedback
100%
Content Type
Forums
Store
Feature Plan
Release Notes
Docs
Events
Everything posted by Metin2 Dev
-
I recently created a 8x8 map after that I already tested the max size of maps in the world editor and it's somewhere about 90x90. As for the shadow creation . You can split maps into pieces you don't have to render a picture in one path. Split it up to more stripes like in a 8x8 you make 8 maps and copy paste the first 8 folders from it into an empty 8x8 map copy paste the textureset and go on for shadow rendering. After you created all 8 Shadowmaps you can put them in paint(or whatever) together I could create a 60*60 map without any ram problems or crashes if you need help about it add me in discord ToXiC4k#9214
-
Source Update - Clang-14 / c++2b + FreeBSD-12 + SRC
Metin2 Dev replied to Mali's topic in Programming & Scripts
Just move on is not importing test.cpp -
Question about a condition in c++
Metin2 Dev replied to Kafa's topic in Community Support - Questions & Answers
BYTE bMaxItemSize = 1; const CSpecialItemGroup* pGroup = ITEM_MANAGER::instance().GetSpecialItemGroup(dwBoxVnum); if (pGroup) { for (int i = 0; i < pGroup->GetGroupSize(); i++) { const TItemTable* itemTable = ITEM_MANAGER::instance().GetTable(pGroup->GetVnum(i)); if(itemTable) { if(itemTable->bSize > bMaxItemSize) { bMaxItemSize = itemTable->bSize; if(bMaxItemSize == 3) break; } } } } if(GetEmptyInventory(bMaxItemSize) == -1) { ChatPacket(CHAT_TYPE_INFO, "You need %d perpendicular slots in your inventory to open the Chest.", bMaxItemSize); return false; } Place it in char_item.cpp inside case ITEM_GIFTBOX: after dwBoxVnum. (there are other cases for other types of chests, this instruction is only for giftbox type). Also I think the max size from the chest must be a info loaded when the special group is loaded and saved in a variable. The code I posted for you increases the time complexity of the function and it's not a good ideea ? -
fix Fix unknown header 100% server: 1k player online francec
Metin2 Dev replied to Draveniou1's topic in Bug Fixes
If you don't sent it to the server with some keys it doesn't matter what it have in it, all that matter is the size of the struct. And if you sent it with some keys to check on the server the only thing that matter it's the address of the struct in memory and the size of the struct, after that the keys are easy to find. -
Shop Search System (No ItemIndex!) Problem
Metin2 Dev replied to Kaiser's topic in Community Support - Questions & Answers
Did you try to click on the line of the item before you click on "Buy" ? -
fix Fix unknown header 100% server: 1k player online francec
Metin2 Dev replied to Draveniou1's topic in Bug Fixes
So you think that long array it's 900 bytes ? :))) It's actualy 36 bytes (288 bits) and yeah it can be found. This how it looks in memory (initialized with 1) And this is how it looks if it's 250+ bytes -
fix Fix unknown header 100% server: 1k player online francec
Metin2 Dev replied to Draveniou1's topic in Bug Fixes
Maybe they didn't because your server is not that popular. Your method is so fucked up and no one should use that. Yes I agree with a single byte argument for version control or smth but wtf is this ? int wertgwertgetdfgsdfgsdgdsfggrgergrgyergh[8]; long fghfghfgjfgsdfsdfsdfgjhfgjhdfhdhd[9]; int AWERWQRWsdfgsdgfsdgsdQEREFRSF[8]; long gsdfsfwetwersdgsdfgsdgwertfwetfwefwefgUiet[9]; int WETWETWdfgdfgdfgfghERTFWEFTWEFTWEFGWE[8]; long SDFWETGfhdfhdfghERTGWETFWERFWRFWQRQWRQWRt[9]; int WETFWEWEfgsdsdhgsdsdghsdghsdTFGWETGWETGWEGWGWETGTG[8]; Do you realize your login it's going to be very slow if that packet is large ? And who the fuck said you can't find the key if it's stored in 250 bytes ? -
FreeBSD 12.2 or 13.0 ?
Metin2 Dev replied to Metin2 Dev's topic in Community Support - Questions & Answers
I've read some stuff in this forum today and figured this out: - By default the files can compile only on 32bit. - But after compilation they can run on 64bit too. - Some files like the updated Kraizy can also compile on 64bit because they are manually migrated to do so. About wether 12.2 or 13 I think it also depends on the used files but more if the OS supportes the older required versions of needed software. But I'm not in the position right now to figure that out by myself. Will go with a 32bit 12.2 VM for now and try to figure it out later when I'm deeper into this whole topic. :) -
I'm just starting out with this whole Metin2 P-server thing and want to setup a fresh FreeBSD VM by myself as a base. Which version should I pick? 12.2 or 13.0? Will 13.0 work? edit: Also, should I get 32 or 64 bit? Thanks in advance.
-
[Py] How to use the def AddItemData function?
Metin2 Dev replied to Kaiser's topic in Community Support - Questions & Answers
If the argument have a default value and you don't need that argument you can skip it. And if you need let's say the last argument (which have a default value) you can use it like this : self.AddItemData(itemVnum, metinSlot, attrSlot, preview = 1) -
[40250] Reference Serverfile + Client + Src [15 Available Languages]
Metin2 Dev replied to TMP4's topic in Binaries
I switched to a host only network and now it is working. Dunno why bridge isn't workin in this case. I'm using bridge mode for several other things without any problems. -
[40250] Reference Serverfile + Client + Src [15 Available Languages]
Metin2 Dev replied to TMP4's topic in Binaries
Yep, I've set my indiviual IP. -
[40250] Reference Serverfile + Client + Src [15 Available Languages]
Metin2 Dev replied to TMP4's topic in Binaries
First of all: Thanks for sharing. I downloaded the files and setup the VM exactly as showed in the video. The VM's network adapter is in bridge mode. Then I added the IP to the root/serverinfo.py and regenerated/replaced it. However I cannot connect to the server: "Error while connecting to the server" Any ideas where could be the problem? Thanks -
i'm looking for the effects file
Metin2 Dev replied to bossy_max's topic in Community Support - Questions & Answers
I think that's the effect from Rubinum server but colored diferent. Contact Rubinum admins and maybe they will give it to you. (or stole it ?) -
You can't just to get them, there are some operations made to get those values. Here is the entire documentation of granny (search GrannyUpdateModelMatrix): [Hidden Content]
- 9 replies
-
- 25
-
-
-
-
-
-
// Search: if (40.0f < fabs(modelMatrix[3][1])) bIsAccumulationMotion = true; // Add this line before that if: modelMatrix[3][1] = animation->TrackGroups[trackIndex]->LoopTranslation[1];
-
just a quick showcase of stuff ive done so far for others Kuba2 Level 150 Farming Map, roundabout 120h of work Rework of a 4x4 Map https://metin2.download/picture/5VjMcu1vr3XG8R7ZxLsi8MSL1di2tijp/.gif Some Intro stuff Some Weapons upscaling custom skill stuff https://metin2.download/picture/O9984o3O76Wsd5Y8i9E6VuP5T2K8mAyO/.gif https://metin2.download/picture/6sXSH1dhSjB87j6r51ynIvwM8lKHB6p7/.gif https://metin2.download/picture/hS0Z0Api355425uh88ckyf4Z8UUYMdai/.gif https://metin2.download/picture/Lzwhj7499SfJ7WZE4rbCSODM2mW3dh5O/.gif https://metin2.download/picture/6r92za3Ua2aqLw932cfqjpnKwPNhC6aN/.gif Blender Render Example a bit of Recoloring upscaling examples from to Well thats it i surely have done much more stuff but i cant show it all here, cause well that would be a bit to much if you have any questions or intrest just add me at discord ToXiC4k#9214 peace
-
Yeah, that's a good approach. I think it's about what you want to sacrifice ? time or player experience (also if a channel it's not online something is wrong and need to be fixed asap, a good server never crash or maybe once a year ?) Yeah, I know, I just said things that can happen without proper checks.
-
Good job ? The ideea with geting the port from db it's nice (I think wom started this ideea some time ago), but not very good when we speak about a big server that use the db a lot (longer times when changing the channel). My advice it's to send all other channels info to every channel at boot and that will help you with more than change channel (now the current channel recieve the info about ch99 and other cores of the current channel if I'm not mistaken). The IsHack check is bad placed there and it can cause big problem for the server (players start the timer and jump over the check but in those 10 seconds they can open safebox and other stuff), also I recommend you use both CanWarp and IsHack checks because people skip one or the other when they implement new stuff ?
-
Wom2 Trade Panel link? Trade Chat link?
Metin2 Dev replied to Shahin's topic in Community Support - Questions & Answers
If I'm not mistaken the exchange info is in the leaked rubinum source. The trade chat is easy to made. -
Those ~5px are for the shadows if I'm not mistaken. Also the ideea made by Ymir to open the client in two diferent position is stupid. I consider opening the windowed client on the center it's the best solution: if (Windowed) { m_isWindowed = true; RECT rc; GetClientRect(&rc); int windowWidth = rc.right - rc.left; int windowHeight = (rc.bottom - rc.top); // 80 is the gap for the taskbar, you can increase it CMSApplication::SetPosition((GetScreenWidth() - windowWidth) / 2, (GetScreenHeight() - windowHeight - 80) / 2); } else { m_isWindowed = false; SetPosition(0, 0); }
-
How to double q.set_counter in one quest?
Metin2 Dev replied to player's topic in Community Support - Questions & Answers
From what I know you can't set two counters on the same quest. Official server has some quests where you need to kill multiple monsters but the counter is set when you kill one of the monsters. Example: you kill Wild Dog and it will apear wild dog counter, you kill hungry wild dog and it will apear the counter for that one. -
Did you try to increase this char list ?
-
I think it's a compiling problem, not a source problem (I had a similar problem in the past) so try these things: 1. Don't compile with -j flag when you move to production 2. Try downgrade c++2a to c++14 or c++11 3. If 1 and 2 don't work try to upgrade clang to version 10 (I think you use 9)
