Bug with duplicated Script Brains in Forge!

So I have 3 script brains on my map, all with the same script for different doors around the map. Each one has 74 nodes in it. Now, whenever I try to duplicate one of them I get “Cannot Duplicate Object. Object Limit Reached.” However I’m at 5% on simulation memory, and I can spawn new Script Brains from the menu and add as many nodes as I want to them.

Please fix this asap. I don’t want to have to redo 74 nodes for each door on my map…

I guess I can’t edit my own post on these forums?

Anyways I got around this bug by turning my script brain into a prefab, spawning the prefab, then ungrouping the prefab. So this is definitely a bug because I can make copies of my brain through this janky method.

Same thing happening to me with pre fab items. At 22% of budget. Can place 100’s of individual things but no pre fabs or duplicates. Gives same message as you.

I should state I can’t duplicate a prefab, can duplicate normal items.

Script Brains seem a little temperamental with prefabs.

A couple of times they have gone completely blank - even though the script still compiles and runs.

And then. another time half my variables lost their identifiers and were being dodgy to reasign.

I definitely recommend ungrouping your prefab as soon as you’ve dropped it. Save and test that version.

1 Like

Out of interest. They sound like very fancy doors. What are you doing that needs 74 nodes?

Yeah so there is a prefab limit for some reason. Not sure what it is but I had a ton on a map and I’d ungroup one and could place or duplicate another. So I just ungrouped almost all of them.

2 Likes

Some sort of confirmation on the issues with script brains would be nice. Unless I’m using one brain for the whole level (which bugs out after something like 170 nodes), half the time I either can’t open the node graphs of other brains (it always wants to open the same one,) or the ones placed by prefabs are either visibly blank (but compilable) or identifiers are missing.

1 Like

At first, it was a simple door with two switches to open/close it. Then I noticed the event for objects taking damage gets triggered for objects without health, even though the tooltip says it doesn’t. The damage amount is always 0 when it gets triggered, but at least it triggers. This gave me the idea to make my door destructible!

It sucks that the damage amount is always 0 because you have no way of knowing what weapon was used to get some relative damage value. But that doesn’t really matter for infection/melee hits, because one event trigger is one melee swing. So with that in mind, I made a health (integer) variable for the door and decrement it every time the damaged event triggers. At certain percentages of health the door rotates in different directions by a few degrees to indicate it’s taking damage. At 0 health it despawns.

2 Likes

I think I’m having the same problem. As I build I like to duplicate things. I’ve gotten to the point of where my objects don’t even show up when I duplicate. It still shows that they are there but they are invisible or load half in. I believe there is a duplication limit. It would also just randomly turn objects around my map invisible. Is this kinda the same problem you were having?

This drives me nuts. I’m working on a similarly complex, fully-custom grav lift, since the current vertical list is missing a bunch of properties. I have spent literally days trying to make a script that will work for more than one lift. There are a ton of issues with the script brains and this duplication issue is a huge issue for forgers with more programming experience, because it makes it a huge pain to create multiple objects with custom functionality. I will have to try your prefab method, because I have been stuck to trying to fit everything in one brain, since I can’t copy them. Stuff like this makes me want a proper, text-based editor even more! I never thought I’d say this, but Roblox did it right…

Just adding here that I also experience several of these bugs.

Most notably, there seems to be a 128 Node limit per Brain, after which new Nodes can be corrupted and/or appear off-graph. Is there a larger, total limit across all Brains? Is this a bug or an undocumented limit?

Second most egregious is the inability to open a specific Script Brain amongst several. Right now my “Logic” Brain, when selected and I open the Node Graph screen, shows my “Variables” Brain instead. I cannot get back into it.

Third, a corrupted Node that is semantically hooked correctly will need to be duplicated and rehooked up to resolve build errors. I wish the Log was more helpful in discerning trouble areas, caused by bug or true logic error; like a red border on error-causing Nodes.

Finally, Prefabbed Brains often need to be ungrouped to correctly reference their objects. These Prefabs may also be missing identifiers, most noticeable if you left comments as identifiers: they are now empty boxes all over.

Of course Energy % weapons don’t behave correctly with Get Magazine Rounds or Add Player Ammo, but these are amongst several other more general Forge bugs.

1 Like

An easy workaround, if it existed, would be to access a given Brain’s Node Graph through a button at the bottom of its Properties window, the way Lights have an added “Light” section in their props or Switches have “Advanced Properties” under the General section.

For myself, I sometimes have luck by not selecting any Brains and opening the Node Graph. This would, in the situation I described above, open the desired “Logic” graph; while selecting either of the two Brain’s first would only open the “Vats” graph.

Sorry for the triple post but I had to correct “Vats” to Variables* and there is no edit option.

Anyone else having a problem deleting scripts? Ive deleted an infection script but my player is still spawning like its an infection game type

Try opening the map fresh and opening Node Graph without first selecting any Script Brains. This may be a ghost graph. I had a ghost graph that would only show in this manner.

It was a duplicate of one of my actual Brains, so I deleted all the crud. The actual Brain was fine, and this empty “ghost graph” will still show on first map load without selecting a Brain.

I used "I used “Refill Player Ammo” works great.

Hope That Helps

There is a bug where duplicated script brains and nodes don’t contribute to the budget. This creates a scenario where a player can go over the budget and be unable to load their map. The workaround is to go back to an earlier version that does load and work from there, avoiding script brain and node duplication. I recommend saving early and saving often. We are targeting season 3 for a fix for this issue.

3 Likes