Raised This Month: $10 Target: $400
 2% 

[CSGO] Panorama Map Crash Fix (v1.4.0 30/03/2019)


Post New Thread Reply   
 
Thread Tools Display Modes
Effeff
AlliedModders Donor
Join Date: Jan 2019
Location: discord: ff#0533
Old 05-31-2019 , 05:50   Re: [CSGO] Panorama Map Crash Fix (v1.4.0 30/03/2019)
Reply With Quote #51

Quote:
Originally Posted by arestonelle View Post
Can u write a little manual how someone can rebuild map with hdr?
And if it a workshop map, does the radar stay?
Cuz i try use workshop map from root maps folder once, and the radar was black...
1: Get BSPSource
2: Wherever you extract the .zip to, run either bspinfo.bat or bspinfo.sh. A window should open.
3: Go to the workshop page of whatever map you have noticed players crash on during map change, and get the workshop ID from the top. (it is the number at the end of the url: ?id=#####...)
4: Navigate to ./csgo/maps/workshop/ and open the folder with that ID as its name
5: Drag the .bsp in that folder into the bspinfo window.
6: In General, under Detected compile parameters, on the vrad line, check if it says "-ldr". If it says "-both" or "-hdr" then the map is not LDR. If it is not LDR, then the map probably doesn't have a problem (this is not confirmed though, all just theory). If it is LDR, continue.
7: IMPORTANT. Contact the creator of that workshop map asking them if they can recompile the map in HDR, because CS:GO is not meant to have maps in LDR.

It is looked down upon to recompile the map and host it on a server without permission (plagiarism?). It is straight up wrong to recompile the map and then publish it to the workshop (plagiarism!). Ask the original author if they can do it. If they don't want to, offer to do it yourself. However, if you are not familiar with how to properly compile/pack a map, you should not be trying to fix this on your own. If you insist, you have to find out on your own, as I don't want to assist in plagiarism.

There's probably a way to automate this process but I don't know how. So, you would have to repeat these steps for each map on your server. Preferably, only check maps that you are suspicious of being involved with the crashing. If clients crash during a map change, the maps that could potentially be a problem are both the map they were playing before the change and the map after they change (also just theory, not fact).

Last edited by Effeff; 05-31-2019 at 05:51.
Effeff is offline
paulo_crash
AlliedModders Donor
Join Date: May 2016
Location: Brazil
Old 06-01-2019 , 16:12   Re: [CSGO] Panorama Map Crash Fix (v1.4.0 30/03/2019)
Reply With Quote #52

Quote:
Originally Posted by Effeff View Post
It is looked down upon to recompile the map and host it on a server without permission (plagiarism?). It is straight up wrong to recompile the map and then publish it to the workshop (plagiarism!).
Even if I go on my own server...

It is no wonder that the community does not help in anything, can not even solve the problem on the server itself that has to be at risk of responding to the law, legal that.

In any case congratulations to the tutorial, I found it very explanatory.

Last edited by paulo_crash; 06-01-2019 at 16:12.
paulo_crash is offline
RobertAM
Junior Member
Join Date: May 2020
Old 06-15-2020 , 03:03   Re: [CSGO] Panorama Map Crash Fix (v1.4.0 30/03/2019)
Reply With Quote #53

Has anyone done testing with CSGO server redirect method over just the retry command? What method are you using to monitor this issue?

Update: Based on my testing the server redirect method provides the same improvement as disconnect; retry.

Last edited by RobertAM; 06-22-2020 at 23:13. Reason: Updated result
RobertAM is offline
pokemonmaster
princess milk
Join Date: Nov 2010
Location: Somewhere in this world
Old 06-27-2020 , 10:42   Re: [CSGO] Panorama Map Crash Fix (v1.4.0 30/03/2019)
Reply With Quote #54

Wouldn't something like this be sufficient and better than timers? player_disconnect is only called once a player fully disconnects and is not called on map changes.

Only issue I can think of so far is that clients connecting from the same IP might face some issues, but that is (probably) easy to get around.

PHP Code:
#include <sourcemod>
#include <sdktools>

#pragma semicolon 1

public Plugin myinfo =
{
    
name "Panorama Map crash fix test",
    
author "pokemonmaster",
    
description "",
    
version "1.0",
    
url "http://alliedmods.net/"
};

StringMap g_Trie_ReconnectingClients;

public 
void OnPluginStart()
{
    
g_Trie_ReconnectingClients = new StringMap();
    
HookEvent("player_disconnect"Event_PlayerDisconnect);
}

public 
void OnClientAuthorized(int client, const char[] szAuth)
{
    
PrintToServer("-- Client Authorized %N (%d)"clientclient);
    
char szIP[30];
    
GetClientIP(clientszIPsizeof szIPfalse);
    
SetTrieValue(g_Trie_ReconnectingClientsszIPtrue);
}

public 
void OnClientConnected(int client)
{
    
char szIP[30], iValue;
    
GetClientIP(clientszIPsizeof szIPfalse);
    
    if(
GetTrieValue(g_Trie_ReconnectingClientsszIPiValue))
    {
        
PrintToServer("-- Reconnecting client %N (%d) connected!"clientclient);
        
ClientCommand(client"retry");
        return;
    }
    
    
PrintToServer("-- Client %N (%d) connected!"clientclient);
}

public 
void Event_PlayerDisconnect(Event hEventchar[] szEventNamebool bDontBroadcast)
{
    
int client GetClientOfUserId(GetEventInt(hEvent"userid"));
    
    if(!
client)
    {
        return;
    }
    
    
char szIP[30];
    
GetClientIP(clientszIPsizeof szIPfalse);
    
PrintToServer("-- Client Disconnect ---- Event - %N (%d)"clientclient);
    
RemoveFromTrie(g_Trie_ReconnectingClientsszIP);

__________________
اَشْهَدُ اَنْ لَّآ اِلٰهَ اِلَّا اللہُ وَحْدَه لَا شَرِيْكَ لَه وَ اَشْهَدُ اَنَّ مُحَمَّدًا عَبْدُه وَرَسُوْلُه
No longer active in AMXX. Sorry.

Last edited by pokemonmaster; 06-27-2020 at 13:13.
pokemonmaster is offline
mrdiega
Junior Member
Join Date: Dec 2020
Old 03-11-2021 , 15:57   Re: [CSGO] Panorama Map Crash Fix (v1.4.0 30/03/2019)
Reply With Quote #55

With the standard mapchooser it has no effect. With 10-12 people on the server, when the map changes from HDR to LDR, consistently 2-3 people have a game crush

btw, can mapchooser version somehow affect this? I have sm 1.10-build 6502 but the mapchooser is from sm 1.9-build 6281

The plugin was installed on a server with the Multi-1v1 mod
Attached Thumbnails
Click image for larger version

Name:	01.png
Views:	53
Size:	94.5 KB
ID:	188035   Click image for larger version

Name:	02.png
Views:	24
Size:	83.3 KB
ID:	188036   Click image for larger version

Name:	03.png
Views:	31
Size:	71.0 KB
ID:	188037  
mrdiega is offline
Ilusion9
Veteran Member
Join Date: Jun 2018
Location: Romania
Old 03-12-2021 , 04:38   Re: [CSGO] Panorama Map Crash Fix (v1.4.0 30/03/2019)
Reply With Quote #56

Quote:
Originally Posted by mrdiega View Post
With the standard mapchooser it has no effect. With 10-12 people on the server, when the map changes from HDR to LDR, consistently 2-3 people have a game crush

btw, can mapchooser version somehow affect this? I have sm 1.10-build 6502 but the mapchooser is from sm 1.9-build 6281

The plugin was installed on a server with the Multi-1v1 mod
Try this: https://github.com/Ilusion9/csgo-fix-mapchange-crash-sm
__________________
Ilusion9 is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 20:31.


Powered by vBulletin®
Copyright ©2000 - 2021, vBulletin Solutions, Inc.
Theme made by Freecode