Jump to content
×
×
  • Create New...

[FIX] Black screen / Client freeze


Recommended Posts

2 hours ago, Distraught said:

How can you be just so so so so so stupid? If your server kicks you out it's because you don't even know what you are doing. Not my fix is the problem, it's more like your knowledge... Actually marty just repeated half of what I wrote down before and you're saying what I wrote is not working while licking his ass clean at the same time. (don't get me wrong, it's not against marty, it's against you and other incompetent stupid-ass motherfuckers like you)

Sorry for the language... But for nothing else...

 

The effects you use on your maps are not managed by EffectManager. They are managed by the Area itself.

I dont say anything on you or your fix *WTF.. You only dont understand.. I said I dont got black screen but kick.. So your fix works! But I think missing code or something because before I can got black screen, my char is kicked.. I think there is more than your fix.. And yes Im not pro, but Marty said he is not sure where is problem for sure and you safe it one of long time ago problem with one line??????!!! Respect if anyone say feedback.. Can be usefull for all.. Just with your code is no problem but game is not fit.. I dont have too much experiences with debug but I think there is overflow with some things.. 

 

Edit: Second kick before black screen.. Game works fine without lags without black screen but kicking if come black screen... 

Edited by Cunoo
Link to comment
  • Replies 38
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

I had the client on a tray for 12 hours, it works perfectly, no ejections, etc. I also installed Marty's fix, which really fixed the Flame Ghost monster "bug".

I don't know if it matters, but i use Marty's source.

Link to comment
19 minutes ago, xGalardo said:

I had the client on a tray for 12 hours, it works perfectly, no ejections, etc. I also installed Marty's fix, which really fixed the Flame Ghost monster "bug".

I don't know if it matters, but i use Marty's source.

Me too Marty fix works fine but this is only part.. I have strange bug with first part. I dont have problem with black screen but with kick if black screen cooming.. My cpu is 30%+ up if cooming black screen. I think this is not easy to safe with one line.. There is more things bad than granny controller. M

  • Lmao 1
Link to comment
  • Premium

@Cunoowhat do you mean with kick? Does the client crash or does the character get disconnected back the the login phase? If the client is crashing, have you tried to debug it?

Link to comment
14 hours ago, Owsap said:

@Cunoowhat do you mean with kick? Does the client crash or does the character get disconnected back the the login phase? If the client is crashing, have you tried to debug it?

No, client works fine.. I'm kicked to login before black screen.. So I never got black screen but insta kick to login.. 

Edited by Cunoo
Link to comment
  • Premium
1 minute ago, Cunoo said:

No, client works fibe.. I'm kicked to login before black screen.. So I never got black screen but insta kick to login.. 

🤔 I find it hard to believe that 1 line of code causes that. It must be something else and certainly it's another topic.

  • Good 1
Link to comment
1 minute ago, Owsap said:

🤔 I find it hard to believe that 1 line of code causes that. It must be something else and certainly it's another topic.

Can be about "_IMPROVED_PACKET_ENCRYPTION_" I had some similar problem with it (Like client instant kick instead of lagging when sorting a big inventory)

Link to comment
24 minutes ago, PetePeter said:

Can be about "_IMPROVED_PACKET_ENCRYPTION_" I had some similar problem with it (Like client instant kick instead of lagging when sorting a big inventory)

I think can be something like this.. Because I never got black screen after fix, but if I can "get" black screen (10 hours+ in game) Im kicked.. I test it 3x and same problem just Im kicked before I can got black screen... Game is compiled clean from kraizy same as client, only for test.. I think there is something more bad.. Game is overflowed with something more.. Im not sure where is problem because I try debug and nothing happen.. I dont have too much deep knowledges for more.. But for me is this problem really strange because I use clean game for test... Today I test it on my game.. So I write feedback too late..

Link to comment
3 hours ago, Cunoo said:

I think can be something like this.. Because I never got black screen after fix, but if I can "get" black screen (10 hours+ in game) Im kicked.. I test it 3x and same problem just Im kicked before I can got black screen... Game is compiled clean from kraizy same as client, only for test.. I think there is something more bad.. Game is overflowed with something more.. Im not sure where is problem because I try debug and nothing happen.. I dont have too much deep knowledges for more.. But for me is this problem really strange because I use clean game for test... Today I test it on my game.. So I write feedback too late..

if you find the problem, please leave the fix over here. it might help to improve the "black screen issue" topic, so it will be an upgrade to what @ Distraught left for us.

 

Link to comment
  • Honorable Member
On 9/16/2021 at 2:34 PM, Distraught said:

The effects you use on your maps are not managed by EffectManager. They are managed by the Area itself.

I've checked them, and they don't stack up. The loaded effects will keep being played as a loop until you move outside of the closed 2x2 area.

pHlKKTH.png

wjRlKI6.png

WEf9uNj.png

In here there was only one element inside m_EffectInstanceMap, and rkEftMgr.DestroyUnsafeEffectInstance has never being called.

I initially thought to move the CArea::__UpdateEffectList call inside CPythonBackground::Update, but we probably don't even need to do so if there are no temporary effects in the maps.

  • Metin2 Dev 2
  • Good 3
Link to comment
On 9/15/2021 at 2:02 PM, martysama0134 said:

The black screen was mostly caused by two major bugs:

  1. The granny controller freezing the process for n seconds until you get dc'd from the game
    1. You can test it by:
    2. Spawning tons of monsters
    3. Minimize the client for 30 - 40 minutes
    4. Maximizing the window again (it will freeze exactly at this point)
  2. The EffectManager not destroying the expired effects while the window was minimized, which caused all the executed effects to stack up and be run all at once after maximizing the window again
    1. You can test this bug very easily:
    2. Spawn tons Flame Ghosts and minimize the window
      1. /ma "Flame Ghost" 100
      2. /cannot_dead

I wasn't sure how to solve the 1st one, but for the 2nd one you can fix it in one of these ways:

Hidden Content

    Give reaction to this post to see the hidden content.

 

Hidden Content

    Give reaction to this post to see the hidden content.

1st Way) refresh only once every 256 frames = 4-6 seconds depending on the lag

Hidden Content

    Give reaction to this post to see the hidden content.

2nd Way) effect manager refresh for every frame

Hidden Content

    Give reaction to this post to see the hidden content.

3rd Way) move the update from RenderGame to UpdateGame (it may not be called if skipFrame=true on ::Process)

I've tried the 2nd way and it makes my Aura Sword flicker, is it normal?

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Read our Rules
  • Similar Content

    • By Gurgarath
      Hello! Many people complained about a "7 pixel bug" on some clients. For example the client will open a few pixels too far from the left-side of the screen. Usually between 7 and 9 pixel on the right.
      I still do not know why it happens for some people and not for other. I thought about a visual studio toolset, a screen configuration or whatever but it turns out to be harder to know why it actually happens, I also had only two people talking about this so I cannot get accurate data. Anyway, let's get started it's really easy.
      The bug looks
      Hidden Content
      Give reaction to this post to see the hidden content. , take from the official client it looks like 1 or 2 pixels only. But it looks almost exactly like it at some moments. First, make sure your metin2.cfg is correct and does not display a weird resolution (like 1913 * 1080).

      Then just add this small line in PythonApplication.cpp:
      SetPosition(-8, 0); Right after this one:
      AdjustSize(m_pySystem.GetWidth(), m_pySystem.GetHeight()); EDIT:
      If you happen to have it on the second window as well, move the line under the bAnotherWindow check. Just like this:
      And voilà, it's fixed. Don't hesistate to add or remove one pixel if needed.
      It's really small and looks like a workaround but I did it really quickly. I didn't test this fix on clients / computers not having the actual bug. If it is a client issue it shouldn't cause any problems, if it's a computer issue, I might need more data to fine-tune the fix. Don't forget to share some data if you have.
    • By Helia01
      Hey m2dev

      You summon a lot of monsters, they attack your character and then you kill or purge monsters, but the damage still continues to be shown visually. Is this a familiar situation?
      In addition, the damage is shown visually even after the death of the character... I love this game. 🥰


       
      I haven't seen a fix for this problem, let's try to fix this sh..


      Hidden Content
      Give reaction to this post to see the hidden content.
      I'm not saying that this is an ideal solution. If you have any ideas, please write comments.


      Best regards, Masha
    • By Abel(Tiger)
      An annoying bug which need a fix.
      Gif with the problem (from ѕeмa™) :  Hidden Content
      Give reaction to this post to see the hidden content.
      // PythonApplicationProcedure.cpp // After: if (m_isWindowFullScreenEnable) { __MinimizeFullScreenWindow(hWnd, m_dwWidth, m_dwHeight); } // Just add: OnMouseMiddleButtonUp(0, 0);  
    • By Shang
      M2 Download Center
      Hidden Content
      Give reaction to this post to see the hidden content. ( Internal )
      Hi devs, today I will release the fix I made for the skill cooldown, already fixed on official servers, this is the bug it self:

      And this is the fix:

      Regards!

      Hidden Content
      Give reaction to this post to see the hidden content. ### root/ui.py ### Search: def SetSlotCoolTimeColor(self, slotIndex, r, g, b, a): wndMgr.SetSlotCoolTimeColor(self.hWnd, slotIndex, r, g, b, a) ### Add after: def StoreSlotCoolTime(self, key, slotIndex, coolTime, elapsedTime = 0.0): wndMgr.StoreSlotCoolTime(self.hWnd, key, slotIndex, coolTime, elapsedTime) def RestoreSlotCoolTime(self, key): wndMgr.RestoreSlotCoolTime(self.hWnd, key)  
      Thanks to @Horinna for report that bug.
      Here's the fix:
      """ Find this: elif (not self.__CanUseSkillNow()) or (skillGrade != j): skillPage.SetSlotCount(realSlotIndex, 0) skillPage.DisableCoverButton(realSlotIndex) Add this under:""" skillPage.DeactivateSlot(realSlotIndex) # After the else, paste this: if player.IsSkillActive(slotIndex) and (skillGrade == j): # fix001 skillPage.ActivateSlot(realSlotIndex) # The if should look like this: if (skillGrade == skill.SKILL_GRADE_COUNT) and j == (skill.SKILL_GRADE_COUNT-1): skillPage.SetSlotCountNew(realSlotIndex, skillGrade, skillLevel) elif (not self.__CanUseSkillNow()) or (skillGrade != j): skillPage.SetSlotCount(realSlotIndex, 0) skillPage.DisableCoverButton(realSlotIndex) skillPage.DeactivateSlot(realSlotIndex) # fix else: skillPage.SetSlotCountNew(realSlotIndex, skillGrade, skillLevel) if player.IsSkillActive(slotIndex) and (skillGrade == j): # fix skillPage.ActivateSlot(realSlotIndex)  
  • Activity

    1. 169

      Render Target Remastered

    2. 169

      Render Target Remastered

    3. 6

      Official Item Combination + Transform & Enchant Costume

    4. 169

      Render Target Remastered

    5. 2

      Hosting packages - feedback requested

    6. 169

      Render Target Remastered

    7. 2

      Hosting packages - feedback requested

    8. 12

      Official loading and login collection + other

  • Recently Browsing

    No registered users viewing this page.

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.