Raised This Month: $32 Target: $400
 8% 

[L4D1 & L4D2] Map changer with rating system


Post New Thread Reply   
 
Thread Tools Display Modes
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 04-05-2020 , 16:24   Re: [L4D] Map changer with rating system
Reply With Quote #21

Everything works fine for me in both l4d1 and l4d2.
Try re-download and install again.

Show error logs if you have any.
What is your game, OS?
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas is offline
Cahit_asd
New Member
Join Date: Apr 2020
Old 04-06-2020 , 07:55   Re: [L4D] Map changer with rating system
Reply With Quote #22

i tried reinstalling , the same problem

the menu shows to me but nothing applied , when choosing map nothing change

left 4 dead 1 , windows
Cahit_asd is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 04-06-2020 , 22:29   Re: [L4D] Map changer with rating system
Reply With Quote #23

Do you have any chat message appearing when you select map to change to?

Dedicated or listen server?
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas is offline
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 04-07-2020 , 06:14   Re: [L4D] Map changer with rating system
Reply With Quote #24

I have a similar problem with the vanilla !sm_map command (windows OS),

If I type the map name "incorrectly" (e.g. c1m1 instead c1m1_hotel) it shows that the map is changing to c1m1_hotel but nothing happens, and any next !sm_map command fails, only restarting the server fixes this problem (local and dedicated).

Maybe is happening something similar to him.
__________________

Last edited by Marttt; 04-07-2020 at 06:15.
Marttt is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 04-07-2020 , 06:25   Re: [L4D] Map changer with rating system
Reply With Quote #25

Thank you, in the latest version I refused to use sm_map, also I always check for IsMapValid().

So, that's can't be described problem
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]

Last edited by Dragokas; 04-07-2020 at 06:26.
Dragokas is offline
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 04-07-2020 , 06:46   Re: [L4D] Map changer with rating system
Reply With Quote #26

Nice, didn't know about this function.

I made a test and IsMapValid("c1m1") returns true.

Also seems that you use the "ForceChangeLevel" for L4D1 which is the same command from sm_map, so it can be related. Btw I was just trying to help based on my experience.

Thanks.
__________________
Marttt is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 04-07-2020 , 07:58   Re: [L4D] Map changer with rating system
Reply With Quote #27

Cahit_asd, coop / versus?

Marttt, strange, anyway, map strings are hardcoded.
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 04-20-2020 , 04:23   Re: [L4D] Map changer with rating system
Reply With Quote #28

Updated.

Quote:
v.1.17 (20-Apr-2020)
- Added alternate method for changing map if first attempt failed.
- Added force mission change when finale win.
- Added command "!mapnext" - for ROOT admin allowing to change map to next level (or next campaign, if this is the last level).
- fixed MapChanger.l4d1.txt incorrect syntax, updated custom maps list.
- for custom maps: correct gamemode is selected now.
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas is offline
timonenluca
Member
Join Date: Apr 2020
Location: Europe
Old 04-22-2020 , 16:12   Re: [L4D1 & L4D2] Map changer with rating system
Reply With Quote #29

After using the mapchanger , everything works fine. But when i add new custom campaigns , it only displays always the first campaign and any line under it is ignored.

No error logs are found , it just only shows the first custom campaign. I eventually switch them up and ofcourse the first one shows again but the second one is ignored?

Code:
"campaigns"
{
"Urban Flight"
	{
		"coop"
		{
			"1"
			{
				"Map" "uf1_boulevard"
				"DisplayName" "1: Boulevard"
				"Image" "maps/uf1_boulevard"
			}
			"2"
			{
				"Map" "uf2_rooftops"
				"DisplayName" "2: Rooftops"
				"Image" "maps/uf2_rooftops"
			}
			"3"
			{
				"Map" "uf3_harbor"
				"DisplayName" "3: Harbor"
				"Image" "maps/uf3_harbor"
			}
			"4"		
			{
				"Map" "uf4_airfield"
				"DisplayName" "4: Airfield"
				"Image" "maps/uf4_airfield"
			}
		}
		"versus"
		{
			"1"
			{
				"Map" "uf1_boulevard"
				"DisplayName" "1: Boulevard (VS)"
				"Image" "maps/uf1_boulevard"
				"VersusCompletionScore"	"500"
			}
			"2"
			{
				"Map" "uf2_rooftops"
				"DisplayName" "2: Rooftops (VS)"
				"Image" "maps/uf2_rooftops"
				"VersusCompletionScore"	"600"
				"versus_boss_spawning"
				{
					"spawn_pos_min"		"0.0"
					"spawn_pos_max"		"0.0"
					"tank_chance"		"0"
					"witch_chance"		"0"
					"witch_and_tank"	"0"
				}
			}
			"3"
			{
				"Map" "uf3_harbor"
				"DisplayName" "3: Harbor (VS)"
				"Image" "maps/uf3_harbor"
				"VersusCompletionScore"	"700"
			}
			"4"
			{
				"Map" "uf4_airfield"
				"DisplayName" "4: Airfield (VS)"
				"Image" "maps/uf4_airfield"
				"VersusCompletionScore"	"800"
			}
		}	
		"survival"
		{
			"1"
			{
				"Map" "uf2_rooftops"
				"DisplayName" "Radio Station"
				"Image" "maps/uf2_station"
			}
			"2"
			{
				"Map" "uf4_airfield"
				"DisplayName" "Airfield"
				"Image" "maps/uf4_hanger"
			}
		}	
		"scavenge"
		{
			"1"
			{
				"Map" "uf4_airfield"
				"DisplayName" "Airfield"
				"Image" "maps/uf4_backarea"
			}
		}	
	}
}
	
	"Diescraper Redux 3.62"
	{
		"coop"
		{
			"1"
			{
				"Map" "l4d2_diescraper1_apartment_361"
				"DisplayName" "Apartment complex"
				"Image" "maps/l4d2_diescraper1_apartment_36"
			}

			"2"
			{
				"Map" "l4d2_diescraper2_streets_361"
				"DisplayName" "Downtown military outpost"
				"Image" "maps/l4d2_diescraper2_streets_36"
			}

			"3"
			{
				"Map" "l4d2_diescraper3_mid_361"
				"DisplayName" "The Skymall"
				"Image" "maps/l4d2_diescraper3_mid_36"
			}
			
			"4"
			{
				"Map" "l4d2_diescraper4_top_361"
				"DisplayName" "The top suites"
				"Image" "maps/l4d2_diescraper4_top_36"
			}
		}
	
		"survival"
		{

			"1"
			{
				"Map" "l4d2_diescraper3_mid_361"
				"DisplayName" "The Skymall"
				"Image" "maps/l4d2_diescraper3_mid_36"
			}

			"2"
			{
				"Map" "l4d2_diescraper4_top_361"
				"DisplayName" "The top suites"
				"Image" "maps/l4d2_diescraper4_top_36"
			}
		}
		
		
		"holdout"
		{
			"1"
			{
				"Map" "l4d2_diescraper4_top_361"
				"DisplayName" "The top suites"
				"Image" "maps/l4d2_diescraper4_top_36"
			}
		}
		
		"gdef"
		{
			"1"
			{
				"Map" "l4d2_diescraper2_streets_361"
				"DisplayName" "Downtown military outpost"
				"Image" "maps/l4d2_diescraper2_streets_36"
			}
			
			"2"
			{
				"Map" "l4d2_diescraper4_top_361"
				"DisplayName" "The top suites"
				"Image" "maps/l4d2_diescraper4_top_36"
			}
		}
	}
}
	
	
	
	
}

Last edited by timonenluca; 04-22-2020 at 16:13.
timonenluca is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 04-23-2020 , 02:46   Re: [L4D1 & L4D2] Map changer with rating system
Reply With Quote #30

Because syntax is incorrect.

Try this one:

PHP Code:
"campaigns"
{
    
"Urban Flight"
    
{
        
"coop"
        
{
            
"1"
            
{
                
"Map" "uf1_boulevard"
                "DisplayName" "1: Boulevard"
                "Image" "maps/uf1_boulevard"
            
}
            
"2"
            
{
                
"Map" "uf2_rooftops"
                "DisplayName" "2: Rooftops"
                "Image" "maps/uf2_rooftops"
            
}
            
"3"
            
{
                
"Map" "uf3_harbor"
                "DisplayName" "3: Harbor"
                "Image" "maps/uf3_harbor"
            
}
            
"4"        
            
{
                
"Map" "uf4_airfield"
                "DisplayName" "4: Airfield"
                "Image" "maps/uf4_airfield"
            
}
        }
        
"versus"
        
{
            
"1"
            
{
                
"Map" "uf1_boulevard"
                "DisplayName" "1: Boulevard (VS)"
                "Image" "maps/uf1_boulevard"
                "VersusCompletionScore"    "500"
            
}
            
"2"
            
{
                
"Map" "uf2_rooftops"
                "DisplayName" "2: Rooftops (VS)"
                "Image" "maps/uf2_rooftops"
                "VersusCompletionScore"    "600"
                "versus_boss_spawning"
                
{
                    
"spawn_pos_min"        "0.0"
                    "spawn_pos_max"        "0.0"
                    "tank_chance"        "0"
                    "witch_chance"        "0"
                    "witch_and_tank"    "0"
                
}
            }
            
"3"
            
{
                
"Map" "uf3_harbor"
                "DisplayName" "3: Harbor (VS)"
                "Image" "maps/uf3_harbor"
                "VersusCompletionScore"    "700"
            
}
            
"4"
            
{
                
"Map" "uf4_airfield"
                "DisplayName" "4: Airfield (VS)"
                "Image" "maps/uf4_airfield"
                "VersusCompletionScore"    "800"
            
}
        }    
        
"survival"
        
{
            
"1"
            
{
                
"Map" "uf2_rooftops"
                "DisplayName" "Radio Station"
                "Image" "maps/uf2_station"
            
}
            
"2"
            
{
                
"Map" "uf4_airfield"
                "DisplayName" "Airfield"
                "Image" "maps/uf4_hanger"
            
}
        }    
        
"scavenge"
        
{
            
"1"
            
{
                
"Map" "uf4_airfield"
                "DisplayName" "Airfield"
                "Image" "maps/uf4_backarea"
            
}
        }    
    }
    
    
"Diescraper Redux 3.62"
    
{
        
"coop"
        
{
            
"1"
            
{
                
"Map" "l4d2_diescraper1_apartment_361"
                "DisplayName" "Apartment complex"
                "Image" "maps/l4d2_diescraper1_apartment_36"
            
}

            
"2"
            
{
                
"Map" "l4d2_diescraper2_streets_361"
                "DisplayName" "Downtown military outpost"
                "Image" "maps/l4d2_diescraper2_streets_36"
            
}

            
"3"
            
{
                
"Map" "l4d2_diescraper3_mid_361"
                "DisplayName" "The Skymall"
                "Image" "maps/l4d2_diescraper3_mid_36"
            
}
            
            
"4"
            
{
                
"Map" "l4d2_diescraper4_top_361"
                "DisplayName" "The top suites"
                "Image" "maps/l4d2_diescraper4_top_36"
            
}
        }
    
        
"survival"
        
{
            
"1"
            
{
                
"Map" "l4d2_diescraper3_mid_361"
                "DisplayName" "The Skymall"
                "Image" "maps/l4d2_diescraper3_mid_36"
            
}

            
"2"
            
{
                
"Map" "l4d2_diescraper4_top_361"
                "DisplayName" "The top suites"
                "Image" "maps/l4d2_diescraper4_top_36"
            
}
        }
        
        
"holdout"
        
{
            
"1"
            
{
                
"Map" "l4d2_diescraper4_top_361"
                "DisplayName" "The top suites"
                "Image" "maps/l4d2_diescraper4_top_36"
            
}
        }
        
        
"gdef"
        
{
            
"1"
            
{
                
"Map" "l4d2_diescraper2_streets_361"
                "DisplayName" "Downtown military outpost"
                "Image" "maps/l4d2_diescraper2_streets_36"
            
}
            
            
"2"
            
{
                
"Map" "l4d2_diescraper4_top_361"
                "DisplayName" "The top suites"
                "Image" "maps/l4d2_diescraper4_top_36"
            
}
        }
    }

__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas 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 11:23.


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