Jump to content

EnneGi

Member
  • Posts

    10
  • Joined

  • Last visited

  • Feedback

    0%

About EnneGi

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

EnneGi's Achievements

Apprentice

Apprentice (3/16)

  • Collaborator
  • Dedicated
  • Reacting Well
  • One Year In
  • First Post

Recent Badges

3

Reputation

  1. You are the GOAT, thank you!! With the help of other guys in the forum, we have also found a solution for the drop bug (excessive drop bug): Excessive drop - Questions & Answers - Metin2 Dev If someone is interested, i leave the link shared for anyone
  2. Hi Hik, your searching was useful to me, as you said every windows server file is affected by this bug. I found the root cause. File: utils.c in libthecore DWORD thecore_random() { #ifdef __WIN32__ return rand(); #else return random(); #endif for Windows, it will use rand(). It has limitations for Windows, the maximum range is 32767. That's why the number extraction in Windows is so low. You have to find another way to random with bigger numbers, or as a workaround you can multiply the rand() value to have a maximum of iRandRange. You can find the multiplier value by dividing iRandRange / 32767. It's working, but it's a really bad workaround if you tell me, because we are not get a random result from 1 to iRandRange. If you want to try this workaround, find item_manager.cpp and change: number(1,iRandRange) To (rand() % 32767) * iMultiplier) Before while (it != g_vec_pkCommonDropItem[bRank].end()) in CreateDropItem add this: int iMultiplier = iRandRange / 32767 Before while sys_log(1, "CreateQuestDropItem victim(%s), killer(%s)", pkChr->GetName(), pkKiller->GetName() ); in CreateDropItem add this: int iMultiplier = iRandRange / 32767 My advise is to work in a good implementation of random for Windows. Cheers
  3. Client in release/distribution mode, db/game server in release to reproduce the bug. I tried db/game in debug mode, and client still in release/distribution and it works Thanks!!
  4. Really thanks for the tips. I'm working on it, if i found the root cause i will post it. Meanwhile, i found that this bug happens only in Release mode compilation with Windows. In debug mode, it just works out of the box, Skill points are setted. OBV this bug doesn't happen if you compile TMP4 source in freebsd. To summarize, it is reproducible only if you compile these source in Windows via Visual Studio in Release Mode - 32 bit.
  5. Really thanks, i solved, items were really in the inventory, i spawned some item in admin account and then all items reappear (magic?) For OP, i have found another bug, don't know if anyone has the same. Skill points not setting correctly, the abilities stay with 0 points. Someone know a fix for this? Thanks
  6. Did you edit something about socket count server side? Cause with the client TMP4 provided i can't see items in my inventory, even if i have them. In logs i had an error like "Invalid Socket Count 3, set to maximum"
  7. Hi everyone, I'll try again with a new help request. I did my homework this time, and with search function i did not find anything related with. I have a very annoying bug where when I drop an object from any mob, it randomly drops with 0,1,2,3 socket, whatever object it is. This gives me problems because I can't stack objects correctly, and some of them are generated with GALL sockets or EMPTY. Can anyone give me an input on where to check in the source? Itemproto TXT and sql side looks ok, but I accept advice and suggestions. I have not made any changes to the sources, and since it seems very stable to me (and the only one that I can compile decently for Windows), I would like to fix it. Can anyone help me? Thanks in advance for anyone who will help me.
  8. ... i already saw that, i didn't resolve. but thanks anyway. Maybe i'll write directly to the owner of the posts.
  9. Hi everyone, today i compiled binaries and client from this sources: [Hidden Content] My client brutally crashed with this error: SYSERR: Unknown packet header: 50, last: 76 1 I checked packet.h client and game but i can't find this packet header as HEADER_GC. Can someone help me? Thanks
  10. Hi! I hope someone can help me. I compiled DB and game without problems. Then i combined them with DB for mysql and locale from another SF. And everything is okay. Then i started my client, login is ok, but when the client go in the screen with the loading bar, a crash happened. The only syserror i have is "wsagetlasterror returned 10054". I can't find why the client always crash, maybe im using a wrong DB? What can i do? I used the test client 40k. I tried several other client and the result is the same. Sorry for bad english and thanks for the help.
×
×
  • 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.