Left 4 Dead 2

Left 4 Dead 2

(MSC) Map Optimizer
19 Comments
(^^^) Xeno 6 Dec, 2024 @ 3:46am 
Hope there's a way to make the propclean command auto that will reduce the map crashes from custom maps and mods
[FoRcE]army_guy3  [author] 15 Jan, 2022 @ 5:59pm 
Glad to hear it works again. :)

The A3 Variant has almost all the functionality of the normal MSC so it should work with all MSC subscripts.

I believe the freeze is caused by a problem in the game engine code that times out while generating the script structure on lower end processors. I moved the code into the one place I know doesn't time out.. The ScriptMode_Init() function.

I'll work on getting this fix into the main MSC.

Thanks for the help in debugging, Scarlet :)
Lat Miku 15 Jan, 2022 @ 5:25pm 
wow it's miracle!! i tested itself and with your spawn weapons,map optimization scripts those worked perfectly now. Tks you so much for your help! I'm appreciated it!
[FoRcE]army_guy3  [author] 15 Jan, 2022 @ 11:34am 
Ok I updated the A3 variant. Can you tell me if that still freezes?
Lat Miku 15 Jan, 2022 @ 2:47am 
Yes, i tried itself with no other mods.
[FoRcE]army_guy3  [author] 15 Jan, 2022 @ 2:43am 
Ok I'll look more into it. Thanks for the info.

And just to be sure, You tried running A3 by itself with no other addons?
Lat Miku 15 Jan, 2022 @ 2:11am 
I must tab out of window to end task l4d2 by task manager, it's said my game is not responding.
Lat Miku 15 Jan, 2022 @ 2:09am 
Tks u for responding. I'm using window 10 and i tried to test all official maps with both old MSC and the new MSC A3 too and they are still same the problem. Actually my game is not crashing, it likes freezing my game at loading screen.
[FoRcE]army_guy3  [author] 15 Jan, 2022 @ 1:41am 
Also you can try the MSC A3 variant version to see if that works properly. Remember to disable the main MSC before using it.

https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2719910910
[FoRcE]army_guy3  [author] 15 Jan, 2022 @ 1:14am 
Hey Scarlet,
Glad to hear you enjoy my mods. I am actively attempting to find and fix crashing and freezing issues. The problem is mainly that I can't recreate the crashing on my end so debugging the cause is very difficult.

If you could answer the following questions, It would really help me out.

What operating system are you using?

What campaign did you try?

Does it still crash if the MSC is the only addon enabled? Meaning even the map optimizer is disabled.

Does it always crash in the same place while loading or does it vary?
Lat Miku 14 Jan, 2022 @ 11:51pm 
I love this mod but since the last stand has been updated, I can't use this mod with Master script controler anymore. My game keeps crashing from loading screen even i unticked other addons. I wonder there is anyway to fix that problem? Tks u.
[FoRcE]army_guy3  [author] 16 Oct, 2020 @ 3:31pm 
For instance if you optimize the first floor entrance to the hotel.. It will stop rendering the building but it won't stop rendering the skybox. The result is the building disappears at the z plane cull point.

The area is already optimized because it's inside that area portal but the script has no idea what area portals exist and what is optimized so it attempts to optimize it anyways.

The script is complicated to explain but I can say I only have a fraction of access to the game with vscripts that I need to make the script work exactly the way I want.

Don't have access to area portal information..
Don't have access to the sky box..
Don't have access to client object count rendering information..
Don't have access to client fps..
[FoRcE]army_guy3  [author] 16 Oct, 2020 @ 3:31pm 
Short answer is it's complicated.

The slightly less long answer is

I can make it automatically run the script but I can't make it automatically optimize without breaking things visually on some maps so I disabled it. I kept the code for automatically optimizing so I can make a file to allow you to switch it back on if you want.

The problem is I don't have any way of knowing what a clients fps is which would be needed to know if optimization in an area should be done.

The game has different ways of optimizing including area portals.
(^^^) Xeno 16 Oct, 2020 @ 12:48pm 
I guess this mod really helps for low end specs. Is it possible automatically optimize any map?
[FoRcE]army_guy3  [author] 23 Sep, 2020 @ 5:25am 
np glad you got it working. :)
Lat Miku 23 Sep, 2020 @ 2:48am 
tks you so much, it worked already.^^
[FoRcE]army_guy3  [author] 23 Sep, 2020 @ 1:56am 
It looks like the script may not be loaded into the MSC.

Copy and paste this into your chat:
/MSC_ADDSCRIPT MSC_Map_Optimizer


Restart map and see if it works.
Lat Miku 23 Sep, 2020 @ 1:32am 
i love this mod, but it doesnt work with me. i followed instruction and it said in my console
Master Script Controller: Command does not exist! when i type /arealag or /areareset in chatbox (subcribed Master script controller already). if i did wrong somewhere? pls help
[FoRcE]army_guy3  [author] 20 Sep, 2020 @ 4:05am 
The render auto optimize has been disabled. I may bring it back as a file option you can turn on and off later depending on how much people want it.

You can bind /arealag and /areareset to keyboard keys to avoid having to type it each time.