Post tutorial Report RSS BEC Gib Removal Time Editing Tutorial

It has come to my attention that users with an AMD Ryzen CPU have been having more issues running BEC at a smooth frame rate. I have helped a couple people get to the bottom of the issue and it seems that in some cases reducing the time gibs and debris stick around the map has been helpful. Not sure if this is an actual fix for everybody but it's worth a shot. In BEC 1.1 I will be adding a feature that will allow the user to customize the time gibs are removed to make this an easier process.

Posted by on - Basic Client Side Coding

For now, here is a quick and easy tutorial on how to edit this removal time manually via script editing.

1. Open up the BEC mod folder.

2. Uninstall BEC with the "Uninstall_BEC" batch file.

3. Open up the "BloodEX.KPF" file with any ZIP file editor such as 7-Zip.

4. Open the "scripts" folder.

5. Open the "sharedCallbacks.txt" file with any text file editor such as Notepad or WordPad.

6. Search for this line:

// GIB AND DEBRIS STAT CHANGE TIME
 7. Right under that line find this line:
r9 = BloodMath::RandomMul15(18000);


8. Adjust the tick value of "18000" to whatever you need it to be.

A tick value of "18000" equates to 3 minutes. Each minute has a value of "6000" ticks. Do the math and play around with this value until you reach a steady frame rate.

9. Save and close "sharedCallbacks.txt" and select ok when asked if you'd like to update the file in the archive if you're using 7-Zip.

10. Close the "BloodEX.KPF" file.

11. Install BEC with the "Install_BEC" batch file and run the game like normal.

I hope this helps anybody having issues with BEC. Even if you're not using an AMD CPU feel free to try this out if frame rate issues are bothering you.

Post comment Comments
alexandrutucu23456
alexandrutucu23456 - - 8 comments

My brother in christ, that line of code in this article doesn't match with the ones I have in my .txt file.

Mine look like this under each individual enemies listed:
r = BloodMath::RandomMul15(100);
if(r <= 10)

I don't really know what they do and what should I do. I'm tired of the game running like an Capstone software game. Please help

Reply Good karma Bad karma+1 vote
VGames Author
VGames - - 3,968 comments

alexandrutucu23456 You're in the wrong spot. Search for this line first :

// GIB AND DEBRIS STAT CHANGE TIME

Then look for this:

r9 = BloodMath::RandomMul15(18000);

Reply Good karma+1 vote
alexandrutucu23456
alexandrutucu23456 - - 8 comments

I did and the "//GIB AND DEBRIS STAT CHANGE TIME" lines are not there.

Reply Good karma Bad karma+1 vote
VGames Author
VGames - - 3,968 comments

Which file are u looking in?

Reply Good karma+1 vote
alexandrutucu23456
alexandrutucu23456 - - 8 comments

The one you said to look in

I even used to built-in line finder from Notepad and it wasn't there

Reply Good karma Bad karma+1 vote
VGames Author
VGames - - 3,968 comments

It’s in there. U have to be looking in the wrong file or your search is typed wrong. Post a pic if u can so I can make sure you’re in the right place. Also u need to put a space between the // and the GIB

Reply Good karma+1 vote
alexandrutucu23456
alexandrutucu23456 - - 8 comments

Ok, here's a link to a 3 min. video of me scrolling through that file

Reply Good karma Bad karma+1 vote
VGames Author
VGames - - 3,968 comments

You’re not editing the right KPF. You need to be editing the KPF inside the mod folder. Not the one in the main FS folder. That’s the original KPF. When u used the uninstall batch file for BEC u restored the original KPF in the main FS folder. You should be editing the KPF in the BEC mod folder

Reply Good karma+1 vote
alexandrutucu23456
alexandrutucu23456 - - 8 comments

oh crap, my bad man

Reply Good karma Bad karma+1 vote
alexandrutucu23456
alexandrutucu23456 - - 8 comments

yea its all good now, sorry for not paying attention, I'm a *******

Reply Good karma Bad karma+2 votes
VGames Author
VGames - - 3,968 comments

No problem dude. Let me know if it helps.

Reply Good karma+1 vote
alexandrutucu23456
alexandrutucu23456 - - 8 comments

OK, well. It did, only a little

I even turned it to zero and it doesn't lag that hard, but it still stutters. I guess its because the particle effects or something I dunno

Reply Good karma Bad karma+1 vote
atomicpunch98
atomicpunch98 - - 3 comments

Hello. The mod looks great. Unfortunately I can not run it. I have followed your instructions to a T. Still every time I get into the courtyard outside the funeral home in E1M1, my fps drops to 4. I have tried everything. I changed the renderer (DX11, Vulkan, OpenGL etc.), decreased fps to 30 max, turned off/on vsync, decreased my resolution and tried the method mentioned in this guide. However, every time that I have died and the camera would show me the monster that killed me, the fps would magically return to 30. This leads me to believe that it might be the weapon models that cause this issue. The value mentioned in the guide has been lowered to 6000 then to 1000 then to 0 and still nothing. My laptop ain't no spring chicken, but holy ****. The mod looks kick *** but as it stands right now I simply can not play it. I wish you the best of luck on your project. Hopefully you could give me some recommendation to fix my situation. My specs: Lenovo Laptop, Intel(R) Core(TM) i5-4210U CPU @ 1.70GHz 2.40 GHz, 8GB RAM, 64 bit.

Reply Good karma Bad karma+2 votes
VGames Author
VGames - - 3,968 comments

Thanks for the kind words. Sadly laptops in general have an up and down history with FS to begin with. There’s really no telling why your rig isn't working with BEC. U may be able to run FS but BEC is pushing things to the extreme both in shear content and also in computing. It may be your CPU, your MB bios, etc. I really don’t know what to tell you. If u can play on another PC that would’ve my best advice. Preferably a PC with an intel CPU. Just to try it out, have u disabled CD music by any chance. I have a beta tester with a monster PC that cannot play FS or BEC at all with CD music enabled. Go figure.

Reply Good karma+2 votes
atomicpunch98
atomicpunch98 - - 3 comments

Thank you very much for responding. I have recommended this mod to some of my friends to see how it works for them and cause the mod rules imho. Also, I have recommended this mod to a friend of mine who happens to be a gaming youtuber with a deep passion for 90's fps games and mods for those games. One day I hope to get an upgrade to my current rig and hopefully I will be able to give it a try at that time. Guess it's going on the list of magnificent mods that I am unable to pay due to technical limitations. But hey, I wish you and your team the best of luck in the future. You are doing God's work keeping this master piece alive. Cheers !

P.S. How can I turn off the CD Music? I would like to know the location of that option. Is it inside an in-game menu?

Reply Good karma Bad karma+1 vote
atomicpunch98
atomicpunch98 - - 3 comments

Also I think I might have figured out the reason for the technical difficulties on my part. It's the number of enemies+ the partical effects+ the weather effects (fog) + (and this is supper weird) Caleb's hat. All of these awesome effects are the cause of my issues from what I could gather. Once again, best of luck in your endeavors, but I wish in the future you could make the mod in such a way as to allow low end PC users to be able to play. If its even possible to achieve such a goal in FS at this point. I won't even bring NBlood into this, lmao. Still I will be saving money to get a better PC and hopefully I can play your mod at that time. And yes, apparently my CD music was off. I tried it with it on as well and in both cases the results were the same. Thanks for the suggestion though. Peace !

Reply Good karma Bad karma+1 vote
VGames Author
VGames - - 3,968 comments

Take care buddy. I’m always looking for ways to optimize so you never know what could be figured out eventually to help low end PC users even more.

Reply Good karma+2 votes
Kaostico
Kaostico - - 3 comments

Even after this tutorial, I'm having the same issues as atomicpunch98, even in a desktop computer.
My processor is a AMD FX(tm)-6300 Six-Core 3.5 ghz, 8 GBs of RAM and I have a GeForce GTX 1050 Ti.

Is there anything I can do? I love this game and your mod looks fantastic.

Reply Good karma Bad karma+1 vote
Guest
Guest - - 690,382 comments

This comment is currently awaiting admin approval, join now to view.

Post a comment

Your comment will be anonymous unless you join the community. Or sign in with your social account: