Skip to content

Starfall | acf.createGun - wirelib error (Regex is too complex!) #85

@Nikku-Miru

Description

@Nikku-Miru

So basically I just want to create a gun using Starfall with a single line.

local LeftGun = acf.createGun(chip():getPos(), Angle(0, 0, 0), "76mmSA", true)

But when I spawn the chip I always get a regex is too complex error from wirelib and the function creates an error gun that can't be deleted with undo.

lua/wire/server/wirelib.lua:33: Regex is too complex! 2 ext search length too long (500 max)
stack traceback:
    lua/wire/server/wirelib.lua:33: in function 'ParsePortName'
    lua/wire/server/wirelib.lua:130: in function 'CreateInputs'
    lua/entities/acf_gun/init.lua:195: in function 'Func'
    starfall/libs_sv/acf.lua:429: in function 'createGun'
    SF:main:6: in main chunk

I tried both id and name of the gun and both fail cause of that, I would expect the gun to spawn normally.
I'm using the Workshop version of the Addon.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions