• If you have a mod, tool or prefab, please use the Resources section. Click Mods at the top of the forums.

Working CCTV System

three08

New member
CCTV System with player controlled pan, tilt, zoom and lights.

Just select your screen with the link tool then select the cameras to be linked. Press activate on the screen to turn on or change to the next camera. Requires power.

Download Link

  • Both the screen and cameras require power.
  • Activate the screen to change cameras.
  • Any unpowered cameras will be skipped.
  • Hold shift while activating the screen to turn the system off.
  • Use the left and right arrow keys to pan the active camera, up and down arrows to tilt, keypad + - to zoom, L to activate the light. (You must be looking at the screen)
  • Cameras must be linked to a screen using the CCTVLinkTool. Select a screen, then select the cameras to link.
  • Cameras can only be linked to 1 screen at a time, if the camera you're trying to link is already linked to another screen that link will be removed.


Demo:

 
CCTV System with player controlled pan, tilt, zoom and lights.
Just select your screen with the link tool then select the cameras to be linked. Press activate on the screen to turn on or change to the next camera. Requires power.

Download Link

  • Both the screen and cameras require power.
  • Activate the screen to change cameras.
  • Any unpowered cameras will be skipped.
  • Hold shift while activating the screen to turn the system off.
  • Use the left and right arrow keys to pan the active camera, up and down arrows to tilt, keypad + - to zoom, L to activate the light. (You must be looking at the screen)
  • Cameras must be linked to a screen using the CCTVLinkTool. Select a screen, then select the cameras to link.
  • Cameras can only be linked to 1 screen at a time, if the camera you're trying to link is already linked to another screen that link will be removed.
wow. That's amazing! Great job man!

 
Forgot to mention there should be a update soon to add and fix these things.

If the camera is in another chunk then the screen wont be able to find it.

Anyone can link to any cam right now, I'll look at adding a restriction so only the owner can link them.

I haven't added recipes yet.

I haven't tested in MP so let me know how it goes. Also in SP you cant see the player on the screen but you can see the zombies. I'm hopping in MP you will be able to see the other players.

 
Last edited by a moderator:
You will see a frame rate drop, for me its only about 6 fps for each screen.
A few of my friends have tried it, and both high - and moderate-configuration computers can suffer severe FPS losses

 
Mod is still working perfectly. :D I also added a recipe for each item in the mod. Allowing them to be crafted instead of spawned from the creative menu...

<configs>

<append xpath="/recipes">

<recipe name="CCTVScreen" count="1" craft_area="workbench">

<ingredient name="tv_large_1" count="1"/>

<ingredient name="tv_large_2" count="1"/>

<ingredient name="resourceElectricParts" count="5"/>

</recipe>

<recipe name="CCTVCam" count="1" craft_area="workbench">

<ingredient name="motionsensor" count="1"/>

<ingredient name="resourceElectricParts" count="5"/>

</recipe>

<recipe name="CCTVLinkTool" count="1" craft_area="workbench">

<ingredient name="meleeToolWrench" count="1"/>

<ingredient name="meleeToolWireTool" count="1"/>

<ingredient name="resourceElectricParts" count="1"/>

</recipe>

</append>

</configs>

 
Can you help me ? have the mod with SDX Launcher installed at the server login I get the error message:

Execption: Class "BlockCCTVScreen, Mods" not found on Block CCTVScreen!

EDIT: Alpha17.1 (b9)

Logfile from Client

2019-02-02T15:22:22 16.777 INF StartAsClient

2019-02-02T15:22:22 16.777 INF Sending RequestToEnterGame...

2019-02-02T15:22:23 16.795 INF StartGame done

2019-02-02T15:22:23 17.661 INF Received mapping data for: blocks

2019-02-02T15:22:23 17.663 INF Received mapping data for: items

2019-02-02T15:22:23 17.666 INF Received config file 'materials' from server. Len: 5572

2019-02-02T15:22:24 17.830 INF Received config file 'physicsbodies' from server. Len: 3043

2019-02-02T15:22:24 17.843 INF Received config file 'blocks' from server. Len: 110469

Exception: Class 'BlockCCTVScreen, Mods' not found on block CCTVScreen!

at BlocksFromXml.CreateBlocks (.XmlFile _xmlFile, Boolean _fillLookupTable) [0x00000] in <filename unknown>:0

at BlocksFromXml.CreateBlocks (.XmlFile _xmlFile) [0x00000] in <filename unknown>:0

at WorldStaticData.LoadBlocks (.XmlFile _xmlFile) [0x00000] in <filename unknown>:0

at WorldStaticData.ReceivedConfigFile (System.String _name, System.Byte[] _data) [0x00000] in <filename unknown>:0

at GameManager.ConfigFileReceived (System.String _name, System.Byte[] _data) [0x00000] in <filename unknown>:0

at NetPackageConfigFile.ProcessPackage (.World _world, INetConnectionCallbacks _netConnectionCallback) [0x00000] in <filename unknown>:0

at ConnectionManager.ProcessPackages (INetConnection _connection, NetPackageDirection _disallowedDirection) [0x00000] in <filename unknown>:0

at ConnectionManager.Update () [0x00000] in <filename unknown>:0

(Filename: Line: -1)

 
Last edited by a moderator:
I am not sure about setting up servers. I just run the mod on my own games. It certainly is a problem with the blocks.xml.

I'd check the install paths.

Make sure that the right folders are in the servers directory.

 
Is the mod installed on both server and client? If it is, its not being started correctly on the server as it cant find the class.

Can you help me ? have the mod with SDX Launcher installed at the server login I get the error message:Execption: Class "BlockCCTVScreen, Mods" not found on Block CCTVScreen!

EDIT: Alpha17.1 (b9)

Logfile from Client

2019-02-02T15:22:22 16.777 INF StartAsClient

2019-02-02T15:22:22 16.777 INF Sending RequestToEnterGame...

2019-02-02T15:22:23 16.795 INF StartGame done

2019-02-02T15:22:23 17.661 INF Received mapping data for: blocks

2019-02-02T15:22:23 17.663 INF Received mapping data for: items

2019-02-02T15:22:23 17.666 INF Received config file 'materials' from server. Len: 5572

2019-02-02T15:22:24 17.830 INF Received config file 'physicsbodies' from server. Len: 3043

2019-02-02T15:22:24 17.843 INF Received config file 'blocks' from server. Len: 110469

Exception: Class 'BlockCCTVScreen, Mods' not found on block CCTVScreen!

at BlocksFromXml.CreateBlocks (.XmlFile _xmlFile, Boolean _fillLookupTable) [0x00000] in <filename unknown>:0

at BlocksFromXml.CreateBlocks (.XmlFile _xmlFile) [0x00000] in <filename unknown>:0

at WorldStaticData.LoadBlocks (.XmlFile _xmlFile) [0x00000] in <filename unknown>:0

at WorldStaticData.ReceivedConfigFile (System.String _name, System.Byte[] _data) [0x00000] in <filename unknown>:0

at GameManager.ConfigFileReceived (System.String _name, System.Byte[] _data) [0x00000] in <filename unknown>:0

at NetPackageConfigFile.ProcessPackage (.World _world, INetConnectionCallbacks _netConnectionCallback) [0x00000] in <filename unknown>:0

at ConnectionManager.ProcessPackages (INetConnection _connection, NetPackageDirection _disallowedDirection) [0x00000] in <filename unknown>:0

at ConnectionManager.Update () [0x00000] in <filename unknown>:0

(Filename: Line: -1)
 
Back
Top