-
Posts
1112 -
Joined
-
Last visited
-
Days Won
20 -
Feedback
100%
Content Type
Forums
Store
Third Party - Providers Directory
Feature Plan
Release Notes
Docs
Events
Posts posted by TMP4
-
-
40 minutes ago, psmsbaa666 said:
Nevermind, I've tried it on first item that failed to appear in the Itemshop Warehouse ,on other items it does work.
So, I'm new to the Metin2 Dev and I'm using@ TMP4 Metin2 40250 Reference Server files...and I am wondering (because in that itemshop.sql file items have descriptions like 4000 HP, +15% mobs, e.t.c.) and defaulty the Metin2 40250 Reference Server files that I'm using have just the item description (and not always, sometimes just a name and time left) so they don't have any bonuses, how can I then, include/modify/add those in the serverfiles?
Is there some documentation that I should read? Can someone help me with this?
That's just description text to show. For example pet gives you +X HP. It's not match with official bonus values, it's just a leftover sql from some old proejct and it is just an example, you're required to fill the itemshop with your own items.
Item_award does not support setting bonus for equipment by default. But you can implement that:
If the item does not appear in your itemshop storage then check if the vnum exists in the server, also there is a given_time column in item_award, check if that time is lower then your server's current time (date command in FreeBSD.)
- 18
- 5
- 1
- 1
-
32 minutes ago, narcisxb said:
can you run it on FreeBSD 13.0?
Yes but you may need to recompile everything, the main project, and cryptopp and DevIL lib in extern.
If you don't know how & what then just update your vps to 13.1 then it should work without doing anything.- 1
-
4 minutes ago, Alessio said:
how can i see the list of bonus that i can use in these source files?
i'm trying to use POINT_RESIST_CRITICAL / 136 but when i try to use it in navicat i get an error
https://photos.app.goo.gl/29PY29VYL9c951G59Check game/src/constants.cpp's const TApplyInfo aApplyInfo[MAX_APPLY_NUM] =
POINT_RESIST_CRITICAL is number 90.
Also keep in mind that the proto is read from item_proto.txt, not from database by default unless you implemented notxt.
In the txt you need to use APPLY_ANTI_CRITICAL_PCT.(The navicat error in your picture is because you tried to enter a bigger number then the column's datatype)
- 1
-
A small update:
2023.02.25: - There were 2 empty lines at the end of the map_index file, and the server only expects 1, so it reloads the last map in your index file which results in npc.txt, boss.txt, regen.txt and stone.txt being loaded twice. /usr/metin2/server/share/locale/english/map/map_index - PROXY_IP only worked with ip addresses but Karbust extended his tutorial to work with domain names so now you can use DynDNS, for example, if you want. https://metin2.dev/topic/28293-select-character-on-40k-for-local-server-and-vps/#comment-155509
- 2
-
1 hour ago, Ace said:
if you have enters in the index file between the map names, it will show 2x npc's
the one way to fix it. but i cant see enters there in your index
I'm about 99% sure he have double enter at the end of the file since official have it too.
While we don't see any empty line at his code tag that's because this forum trims the end of your text when you use a code tag.
- 1
-
@TonisBoss @ Ace I created a new totally empty map with size 1x2 like this and it does actually duplicate npcs.
I set coord to +-1 so they're a little far away, my npc.txt is:
m 160 138 1 1 0 0 1m 100 1 20016
SpoilerEdit: @TonisBoss @ Ace I finally figured it out. If you have 2 empty line in your map_index file at the bottom, it'll duplicate your last map's npcs, probably tries to re-load it. I had an untouched map_index file from official files from 2013 december, and it does have 2 empty line by default.
TonisBoss please check your map_index file and remove the second empty line, only leave 1 empty line at the bottom, and it should work:
Spoiler- 1
-
1 hour ago, TonisBoss said:
Sorry for that. This is my npc.txt
//type cx cy sx sy z dir time percent count vnum //----------------------------------------------------------------------------------- // ¿öÇÁ m 128 138 0 0 0 7 1s 100 1 20016 m 128 134 0 0 0 1 1s 100 1 20355 m 128 132 0 0 0 5 1s 100 1 20091 m 125 138 0 0 0 1 1s 100 1 9010 m 128 140 0 0 0 0 1s 100 1 20023 m 128 142 0 0 0 0 1s 100 1 20095 m 130 138 0 0 0 8 1s 100 1 20024 m 128 135 0 0 0 7 1s 100 1 9003 m 126 138 0 0 0 3 1s 100 1 9002 m 127 136 0 0 0 3 1s 100 1 9001 m 125 137 0 0 0 1 1s 100 1 9005 m 130 140 0 0 0 1 1s 100 1 20094 m 125 140 0 0 0 1 1s 100 1 20008 m 122 138 0 0 0 5 1s 100 1 9004 m 125 135 0 0 0 5 1s 100 1 9009 m 131 141 0 0 0 0 1s 100 1 20380 m 132 142 0 0 0 4 1s 100 1 20009 m 133 143 0 0 0 1 1s 100 1 20355
https://metin2.download/picture/KI3W1DixGHNbi2EyVI2d3fhl9DEzkfuu/.png
That npc.txt is fine.
Are you sure this bug is related to my map? It only happens in this map?
You didn't duplicate npc.txt? Like you copyed it to stone.txt/boss.txt/regen.txt?
-
3 hours ago, TonisBoss said:
There is a visual bug with npc spawn.
If you set them in npc.txt they look like doubleThere is a video on the first post, I don't have such issue.
By the way if you want to report a bug then attach your npc.txt at least.
Maybe you set count to 2?
-
8 hours ago, Nuzzo said:
Oh okay, thank you very much!
One last thing, but by extracting the extern folder in windows, is there a possibility of losing any links?No, I didn't put any symlink there.
6 hours ago, GoldCash said:Guys, when i want use dbcompile or gamecompile I stuck in i dont have clang++-devel. But i dont know how to install..
Can anyone help me with this?You need FreeBSD 12+ (preferably 13.1) and pkg install llvm-devel. Then you can compile on a x32 system.
-
4 minutes ago, Nuzzo said:
It's fine now try the dbclean dbdep dbcompile.
-
4 minutes ago, Nuzzo said:
Try this:
cd /usr/metin2/src/server/libsql gmake clean gmake dep gmake
(so the last gmake is seperate)
-
5 minutes ago, Nuzzo said:
You forgot step 5, recompile libsql. Does the lib exists? metin2/src/server/libsql/libsql.a
-
25 minutes ago, KarlisBonden said:
https://metin2.download/picture/9knmEPdT4JdremE2X020XFnx726e8h9Y/.png
Here is the screenshot of my router port forwarding, I do have full access to my router and I've checked on the website and all the ports are opened, no problem. I recently changed to a DDNS provided by my ISP, it's something like example.xx.xx, do I have to type it like this in the PROXY_IP section in CONF files or it doesn't matter ? I can enter both number IP and DNS on yougetsignal and both show the ports are opened. My friend tries to join the server from a different country If that helps.
If yougetsignal.com/tools/open-ports/ says ports are working then they should be able to connect or at least sees the channels 'norm'.
I enabled DMs, send me your IP in DM and i'll try to connect to you. If you modified test/123456789 account then send me an account too.
Edit: I got your DM but I need your public ip, not your local ip. If your friend tried to connect with your local ip too then it's the problem. @ KarlisBonden
Edit2: I managed to log in with his public ip
-
20 minutes ago, KarlisBonden said:
Hello, I just created a new Metin2 server using @ TMP4 tutorial, but others can't join my server. I used the proxy ip method written in the FAQs, I forwarded the ports on auth, game99, first, game1,game2 channel 1. I can join the server just fine but my friends get error while connecting, the CH1 "NORM" doesn't show up, just blank "...". I turned anti-virus, firewall off still not working. What am I doing wrong ? For local/internal IP I used the IP shown in ifconfig from FreeBSD, but when I type ipconfig in cmd it shows a different local IP, should I use this one instead ? Sorry I know this isssue has been brought up here a million times but I can't find a solution on this forum or somewhere else. Would greatly appreciate If anyone could spare a minute to help !
This error is not related to Metin2, but your home network configuration. In your router's port forwarding you need to use your server's (FreeBSD running on Virtualbox) local ip, not your pc's local ip, so it's fine, do not change it. Since you did not attach a screenshot of your port forwarding I can't tell if it's fine or not.
When I had enabled DMs here and in discord, there were some ppl contacting me who had a main router provided by their ISP and it was locked (they did not had password) and they used a secondary router to share wifi and they did the port forwarding there. If it's the case in you then it's worth nothing to open ports in a secondary router. You have to do it in the main too. Because when a connection coming from the internet side, it'll blocked by the main router and will not reach the second. Also the second router is probably just an access point in this scenario, not even working as a real router.
https://www.yougetsignal.com/tools/open-ports/ Use this to check if you managed to successfully set up the port forwarding. Here you need to enter your public ip, and a port like ch1 core1.
-
53 minutes ago, HyperBae said:
UNIQUE_GROUP_DOUBLE_ITEM is defined in special_item_group.txt
Do you have an example of how this is declared?It is there by default. You don't need to define it yourself.
70043 is defined here too so it does increase both IDeltaPercent and iRandRange, so I guess it increases the chance the best. But check the calculation yourself on ITEM_MANAGER::CreateDropItem, it's overcompilcated as everything in Ymir's code.
By the way I did not touch such things so if something doesn't work well then it didn't work in the official servers at early 2014.
-
6 hours ago, HyperBae said:
thief gloves don't work
The glove with affect 67 (vnum: 71016) does not work because Ymir commented out it's plus percent from src:
bool ITEM_MANAGER::GetDropPct
//if (pkKiller->GetPoint(POINT_MALL_ITEMBONUS) > 0) //iDeltaPercent += iDeltaPercent * pkKiller->GetPoint(POINT_MALL_ITEMBONUS) / 100;
If you uncomment this and recompile gamefile, it may work.
-----
The other gloves should work because they're used in bool ITEM_MANAGER::GetDropPct in item_manager.cpp
For item 72004-72006, they're increasing IDeltaPercent:
Quote// ADD_PREMIUM
if (pkKiller->GetPremiumRemainSeconds(PREMIUM_ITEM) > 0 ||
pkKiller->IsEquipUniqueGroup(UNIQUE_GROUP_DOUBLE_ITEM))
iDeltaPercent += iDeltaPercent;
// END_OF_ADD_PREMIUMUNIQUE_GROUP_DOUBLE_ITEM is defined in special_item_group.txt
For item 70043 (UNIQUE_ITEM_DOUBLE_ITEM) is increasing iRandRange
QuoteiRandRange = iRandRange * 100 /
(100 +
CPrivManager::instance().GetPriv(pkKiller, PRIV_ITEM_DROP) +
pkKiller->IsEquipUniqueItem(UNIQUE_ITEM_DOUBLE_ITEM)?100:0);These 2 variable is used for the calculation for the chance in bool ITEM_MANAGER::CreateDropItem.
A common misunderstanding is that thieves' gloves will drop double items. No, this is not the case, it increases (a little) the chance of the drop.
-
26 minutes ago, uncons said:
hello, where is the teleport ring quest?
I'm sorry I don't know this.Işınlanma Yüzüğü
can you help please?
Here is a tutorial so you don't have to ask such question next time:
- 1
-
21 minutes ago, ricardo1813 said:
So, what i do wrong for doing this?
I would have to be a mind reader to be able to answer that.
Compare your item_proto, think about what have you modifiy what could break 6-7.
-
52 minutes ago, ricardo1813 said:
@ TMP4how i can fix normal 6/7 in files? i cant add in any item bonus from them. Can you help me? thx
No because it's working fine.
-
Maybe your friend went home so he's no longer in your local network? If so you have to use proxy_ip (check FAQ.txt).
- 1
-
6 hours ago, Ruraku said:
Do you know what I should do to be all good?
It's not that easy. You have to basically rewrite Metin2's codebase with a more modern environment, probably change game engine to UE. Big game developer companies doesn't do 1 map for all player either.
You can still use a big map for all players and it will work, just as wanted to point out all the load will be concentrated to 1 core. You have to think about some load balancing, forcing players to use different channnels is good for balancing but players probably wont like this.
- 1
-
If you want to play on that specific private server as your local pserver then you have to ask it's owner to send you the serverfiles (ofc. he will not do such things).
Your best (and only) choice is to create a server with a public serverfile and try to reproduce / copy your desired server's stuffs. You probably can't do it either as a beginner.
-
1 hour ago, Ruraku said:
Hello, I'm curious if I can make a 50x50 map or what is the limit for a map to not be full of glitches and bugs. I know the map will have in the final maybe 1-2GB but who cares in 2023 about space. I got a big project and I want to do a global map for all the players with daily missions on it. Please respond if you know
With 50x50 you're not exceeding any datatype limit so it should be doable.
The problem is more likely the resource management, you'll have 1 core where all players will be. I'm sure it will not run fine if you will have 1000s of players because Metin2's code is obselete, and not really optimized by any mean for this kind of use.
- 1
-
- 3
- 1
- 2
Aeldra owns Metin2 Toplist (.net)
in Metin2
Posted · Edited by TMP4
If it's true then what? It's nothing illegal or morally questionable.
It's like saying Apple - Samsung or Sony - Microsoft is bad because they're big and have influence.
Can you prove it? If this is true and you can prove it, then a lot of people's opinions about the website may change. But until then, it's defamation.