#Brutal Company Additions - https://thunderstore.io/c/lethal-company/p/Sculas/BrutalCompanyAdditions

118 messages · Page 1 of 1 (latest)

blazing plinth
#

Adds more events to Brutal Company Plus!

As of writing (04/12), only 2 of the 5 planned events have been implemented (Bling bling and Got any stock?). I'm working on getting the other 3 released as soon as possible (with new ideas coming as well).

This mod extends upon Brutal Company Plus. My reason for yet another BC mod is because none of the others are open-source! I'd wish to contribute to the original mods if it were possible, but all of them are closed source.

I'd love to hear event suggestions, and if you have some modding experience, feel free to PR them here (it's quite simple and organized): https://github.com/Sculas/BrutalCompanyAdditions

https://thunderstore.io/c/lethal-company/p/Sculas/BrutalCompanyAdditions/

bitter grail
#

just a headsup "Springbreak" is already an event inside BCP called InsideOut

blazing plinth
#

Ah, looks like we had the same idea then! I'll remove it in that case. Also, seems like I nuked your configuration in SelectRandomEvent (since most of this code was made yesterday, before the 3.0.0 update), which I'll fix as well.

bitter grail
#

The config file gives a more direct definition to each event btw

abstract jetty
#

welcome to the modder squad..der

blazing plinth
blazing plinth
#

1.1.0

Features

  • Added event configuration
    You can now configure which event is enabled or not.

Fixes

  • Fixed BCP 3.0.0+ compatibility
    Now handles the event configuration of BCP 3.0.0+ correctly.

Thunderstore

bitter grail
#

@blazing plinth can you shoot me a FR i have some info to ask of you

blazing plinth
#

This took me longer than I'd like to admit, but I've finally done it: Networked Turret AI!

#

I still have to implement the chasing part of the AI (right now it's just roaming around the map), will need balancing as well. There's a lot of turrets right now, but that's just for testing.

#

This will be for the Since when can they move?! event.

#

The hardest part was taking parts from EnemyAI and rewriting them for the turret (because they are incompatible. EnemyAI needs things a turret cannot provide). Then I spent a stupid amount of time debugging why NetworkTransform doesn't work, switching over to manual position syncing, realizing that events don't run on the client (so I had to sync events as well), and lastly forgetting to actually sync the position.

blazing plinth
#

Everything but opening doors should be implemented now, so I've opened a PR here. Really happy with what I've got so far.

random osprey
#

Hi i have a question! Every time i try to run this mod i just get stuck at "loading world", any reason yall can think of why the seed wont load?

random osprey
blazing plinth
#

@random osprey Which mods do you have installed besides BCA, and how can I reproduce this error? Does it happen every landing, or after a couple of landings?

blazing plinth
#

1.1.1

Fixes

  • Initialize BCManager at Start
    Should hopefully fix a NullReferenceException when loading the world in specific circumstances.
#

@random osprey @lofty saddle The issue should be fixed now (otherwise, I have no clue what it could be without reproduction steps). If any of you have some time, it would be greatly appreciated if you could check if it fixed it for you :)

pulsar zinc
#

I had the same problem before and now after the patch. Doesnt matter if I'm playing alone or with others. 1st pic is mod enabled and second when it works without the mod

#

I can give you the modlist too (it's long tho)

#

My lobby works fine when hosting for people with only Bigger Lobby and the api mod, but this mod breaks the whole loading.

blazing plinth
pulsar zinc
#

config of yours or the plus?

blazing plinth
#

mine

pulsar zinc
#

because i didnt change yours, there isnt anything to change

blazing plinth
#

alright, let me take a look at what it could be

pulsar zinc
#

I'll do my best and help you if you have any questions

blazing plinth
# pulsar zinc I'll do my best and help you if you have any questions

Thank you! I've added some logs to help me figure out the issue. In r2/TMM, go to Settings, click on "Browse profile folder", then go to BepInEx/plugins/Sculas-BrutalCompanyAdditions and replace the DLL with the one I'm about to send you. Then, try to reproduce the issue and send me your log file (in DM, if you wish).

pulsar zinc
#

ok ill do that

#

uhh ofc when I need the error it worked without issues :'D

#

sent in DM

blazing plinth
#

1.1.2

Fixes

  • Fixed support for BCP 3.0.0+ (thank you @pulsar zinc for helping!)
    Some leftover code from pre-1.1.0 broke when certain events were disabled in BCP.

Thunderstore

blazing plinth
#

As of my current testing, BCA works on v45. Will work on any issues I might find along the way during my testing/playing.

blazing plinth
#

Brutal Company Additions (v45 compatible)

random osprey
#

Once I get off work I can't wait to try it thank you for all your hard work 🙏

blazing plinth
#

I'm hoping to release the (major?) update soon! Just having a bit of an issue with door colliders refusing to trigger.

lofty saddle
#

oh nvm just read your last text

blazing plinth
#

Anyhow, I've finally got it working! Turrets can now open doors. Last thing that needs to be done is balancing, because right now this event is just a deathwish, lol

#

So, let's begin!

First thing first: yes, turrets can open doors, but it should be really slow to balance it out.

Secondly: turrets know about your last position for far too long. They should lose you pretty quickly, otherwise a deadend is guaranteed death.

Third: I'm thinking about nerfing turret damage for this event, otherwise you die far too quickly. Remind you, this is an event that needs to be fun. Not an event that should kill you (like the "This planet is NOT friendly!" event).

Lastly, I'm going to take a couple more looks at the AI and see if things need to be nerfed/changed. All in all, I'm hoping to release this update tomorrow.

One more note: the debug text you see becomes a publicly available option, however, you need to be host to actually see it. So unless the host really wants to cheat for themselves, you shouldn't need to worry about anyone cheating (unless they have some external cheat, of course).

blazing plinth
blazing plinth
blazing plinth
#

1.1.3

Fixes

  • Fixed BCP 3.3.0 compatibility
    Some changes were made in BCP 3.3.0 that broke this mod.

Thunderstore (might take a second to process)

trim raven
blazing plinth
trim raven
#

LO

blazing plinth
pulsar zinc
#

I'd love to have the turret damage as a config option :p Then the event can be less or more frustrating depending on the taste

blazing plinth
#

That's a good idea! Will do that.

vagrant token
#

you should add description of what your events do

blazing plinth
vagrant token
#

vague i guess i just dont like adding random events i might not like and might kill the mood in my group

blazing plinth
#

I've changed the event configuration to add the event description. You'll see this in the next update.

blazing plinth
#

Alright, that should almost be it. Last thing I'm going to add is that if the mod detects one of your friends does not have the mod installed, it will kick them out with a message to install it. Otherwise, bad things will happen...
Unity does this already, although unfortunately with an unfriendly error message...

blazing plinth
#

2.0.0

Sorry that it took me so long to add a new event, because somehow I thought the hardest event to make would be the
easiest. Oh, how wrong I was...

Anyhow, besides the new event, events are now also networked (which is the major update),
allowing for more interesting events in the future!
Next up will be the It's just a burning memory event.

Features

  • Added Since when can they move?! event
    Did someone give them wheels?
    Featuring custom AI and a whole lot of chaos!
    If you find this event too easy or too hard, please let me know! I'm still tweaking it.

Thunderstore

blazing plinth
#

Due to the game's interesting way of things, I failed to realize that turret damage is handled locally (instead of on the server). Meaning one of your friends can locally set the turret damage to 0 and they won't take any damage. I'll work on a fix in the next hour and push an update!

blazing plinth
#

2.0.1

Fixes

  • Properly sync turret damage to clients
    Prevents clients from getting the wrong amount of turret damage.

Thunderstore

blazing plinth
#

BCP has updated to include weighted chances for events. BCA currently overrides this, removing it in the process. I'll push an update later today that fixes this.

vagrant token
#

is this still compatible with new update of brutal company +

#

also does this run its own event at the same time as brutal company plus

blazing plinth
vagrant token
#

ah okay

blazing plinth
#

I might push out an update later today, but I'm also working on adding an API to Brutal Company Plus which should make it so I almost never have to fix anything again regarding BCP.

blazing plinth
vagrant token
#

i see

blazing plinth
#

2.1.0

Features

  • Added host-only forceevent command
    Allows the host in your game to force an event to happen next round.

Fixes

  • Fixed BCP 3.4.0 compatibility
    Event weights were added in BCP 3.4.0, which broke this mod.
    Currently, this mod will not use the event weights because I'm working together
    with Nips to get an official event API in BCP. That should also fix any future incompatibility issues.

Thunderstore

swift jacinth
#

hey how do i use the forceevent command properly i tried in terminal, in chat, with various event names, it never works for me and i have yet to see any of the new events from this mod

#

it seems to be missing the cfg file for me too idk if that is needed

blazing plinth
# swift jacinth hey how do i use the forceevent command properly i tried in terminal, in chat, w...

Ah, I'm sorry. In a rush I totally failed to mention that in the changelog. From version 2.1.0, you should be able to run forceevent [event name, partial allowed] in the terminal as host!

If you haven't seen any new events from BCA and you're missing the config file, I presume something went wrong here. Are you using a mod manager? If so, please make sure all of your mods are up-to-date. If not, check that Brutal Company Plus is at least version 3.4.0 and BCA is on version 2.1.0. If that's already the case, please send me your log file of you trying out the forceevent command. I'll make sure to take a look at it tomorrow.

swift jacinth
#

okay did a reinstall of all mods it still doesnt work, this is what the log says

#

[Error : BepInEx] Could not load [BrutalCompanyAdditions 2.1.0] because it has missing dependencies: BrutalCompanyPlus (v3.4.0 or newer)

#

brutal company no matter how much i update it, the config still says (## Settings file was created by plugin BrutalCompanyPlus v3.3.1)

#

brutal company plus events all work for me, but the commands and events added by your mod are not working for me and even on clean install im missing cfg files

swift jacinth
#

I understand the newest update of BrutalCompanyPlus is meant to be v3.4.0 but something is wrong, as the cfg is always 3.31

near ermine
#

If this mod doesn't have weight right now and how does it work now?

finite holly
#

Decompiled source of Brutal Company Plus v3.4.0
[BepInPlugin("BrutalCompanyPlus", "BrutalCompanyPlus", "3.3.1")
public const string PLUGIN_VERSION = "3.3.1";

Decompiled source of BrutalCompanyAdditions v2.1.0
[BepInDependency("BrutalCompanyPlus", "3.4.0")]

blazing plinth
#

Hmm.. that's weird. I'll take a look today!

blazing plinth
blazing plinth
blazing plinth
#

2.1.1

Fixes

  • Fixed BCP 3.4.0 compatibility
    Emergency fix. Seems like something went wrong in BCP while bumping the version number, which this mod checks for to ensure compatibility. This check has been temporarily removed until it's fixed in BCP.

Thunderstore

#

@swift jacinth @near ermine @finite holly The issue should be fixed now. Please give Thunderstore about 10 minutes for the update to come through.

near ermine
#

Thx!

swift jacinth
quiet swift
#

did you intend to make the events weighted to match up with BC+ at some point?

near ermine
quiet swift
#

ah ok, thanks. Is the current version working?

near ermine
#

Yes it does but only BC+ all events goes to 0 weight

#

The BCA evens will trigger

blazing plinth
blazing plinth
blazing plinth
signal kiln
#

I understand it says BCA must be installed for all users but does everyone need BCP or still just the host?

near ermine
blazing plinth
clear panther
#

Hey, I enjoy the work you put in the extra events. They are pretty amazing play-wise as well, but I was wondering if you plan on ever making a seperate version where the other players do not have to install the extra mods

#

A host-only version would be great!

blazing plinth
# clear panther A host-only version would be great!

That's certainly possible, but it means you lose out on multiple events since they require code to be executed on the client as well. I might look into adding it in the future, but at the moment it's not a priority due to technical complexities.

As for a general update regarding BCA:
Currently, I'm not working on BCA because I've been working hard to get my changes incorporated into BCP, so that BCA will not have compatibility issues anymore and BCP events will get better due to proper networking :) Once that's done though, I'll get back to adding more events!

clear panther
#

No problem! Hope everything turns out smooth in the end for you!

bright lake
#

k

cedar shoal
#

Hello, I really appreciate your work.
Wondering if there is a bug regarding tp the event Since when can they move? Ver 2.1.1
I am the host and set the turret damage to 4. (Play with 10+ friends)
When i get shot, the dmg is 4 but all my friends get shot for 50 dmg.
I give them my profile code and i double checked their config was set to 4.
Not sure if this is syncing issue or what.
Thanks a lot.

blazing plinth
warped moon
#

how do i disable events?

blazing plinth
# warped moon how do i disable events?

Open the Sculas.BrutalCompanyAdditions.cfg config file (if you use r2mm, you can find it in the "Config settings" tab), and set the events you want to disable to false.

warped moon
#

thank you!

blazing plinth
#

No problem :)

warped moon
#

does only the host have to do it or everyone`?

blazing plinth
#

Only the host needs to do this. The host decides which event happens and communicates that to all of the clients.

warped moon
#

okay, thank you

blazing plinth
#

(ignore: unarchiving thread)

lucid sorrel
#

I'm trying to figure out what each event does but can't find anything