Skip to content

Camera Controller doesn't work properly #783

Description

@zakimano

Whenever I try to wire the CameraController, it gives me this error. (yep, this is with the pure gmod_wire_cameracontroller.lua) I double-checked everything, tried to get this working for days, and also spent hours trying to understand the lua code, and almost got it working, but it's still a mess. (If you want me to upload the "fixed" file, just ask.)
Or just tell me what the hell am I doing wrong. (For this error I only wired the CamController's Active to an E2 chip output, but that only contained a value of 1.)

(PS: Looked the problem up on google, didn't find anything, and I didn't see any active issues here w/ this problem. Pls help, I think this is an important part of wiremod.)

2015-01-04_00002

It says this:

Wire error (Entity [90][gmod_wire_cameracontroller]):
addons/trunk/lua/entities/gmod_wire_cameracontroller.lua:399: bad argument #1 to 'WriteFloat' (number expected, got function)
stack traceback:
    [C]: in function 'WriteFloat'
    addons/trunk/lua/entities/gmod_wire_cameracontroller.lua:399: in function 'SendPositions'
    addons/trunk/lua/entities/gmod_wire_cameracontroller.lua:416: in function 'SyncSettings'
    addons/trunk/lua/entities/gmod_wire_cameracontroller.lua:664: in function 'EnableCam'
    addons/trunk/lua/entities/gmod_wire_cameracontroller.lua:773: in function <addons/trunk/lua/entities/gmod_wire_cameracontroller.lua:770>
    [C]: in function 'xpcall'
    addons/trunk/lua/wire/server/wirelib.lua:62: in function 'TriggerInput'
    addons/trunk/lua/wire/server/wirelib.lua:495: in function 'Wire_Link'
    addons/trunk/lua/wire/server/wirelib.lua:674: in function 'Link_End'
    addons/trunk/lua/weapons/gmod_tool/stools/wire_adv.lua:160: in function 'func'
    lua/includes/modules/net.lua:32: in function <lua/includes/modules/net.lua:17>

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugThis issue is a general bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions