Jump to content

A16 - Working CCTV Camera and Screen!


three08

Recommended Posts

Great work three08,

 

If you're into coding you could dynamically create a channel based on the camera's x,y,z hashcode and use the tv block's activation event to cycle through the channels. You can add c# code by creates a "Scripts" folder in the mod directory and placing them in there.

When I first wrote this up I disabled all 4 cameras and did a C# script that turned the cameras on with a button press, it worked great in unity but I couldn't work out how to get it to work with 7 days to die, it was nothing like the scripts I've seen in other mods. I'll have to have a look at some of the scripts in the new mods that have just come out and see if I can work something out.

 

Demo Vid is set to private :fatigue:

it's still uploading, should be done in about 20 minutes

Link to comment
Share on other sites

When I first wrote this up I disabled all 4 cameras and did a C# script that turned the cameras on with a button press, it worked great in unity but I couldn't work out how to get it to work with 7 days to die, it was nothing like the scripts I've seen in other mods. I'll have to have a look at some of the scripts in the new mods that have just come out and see if I can work something out.

 

I'm sure Pacco or Morts mods will have some scripts in to have a look at. I've got a few mods for SDX that I'm working on that mess around with the block and item scripts that I'll be releasing hopefully soon. If you get stuck feel free to ping me a PM with any questions.

Link to comment
Share on other sites

  • 3 weeks later...
  • 2 weeks later...

Ok so far im here... is everywerhe a Tutorial or Howto to need a book for crafting the system? I searchd but not found anything or im to stupid ;)

<recipe name="CCTVScreen1" count="1" scrapable="False">
	<ingredient name="tv_large_1" count="2" />
</recipe>
<recipe name="CCTVScreen2" count="1" scrapable="False">
	<ingredient name="tv_large_1" count="2" />
</recipe>
<recipe name="CCTVScreen3" count="1" scrapable="False">
	<ingredient name="tv_large_1" count="2" />
</recipe>
<recipe name="CCTVScreen4" count="1" scrapable="False">
	<ingredient name="tv_large_1" count="2" />
</recipe>
<recipe name="CCTVCameraCam1" count="1" scrapable="False">
	<ingredient name="tv" count="1" />
	<ingredient name="headlight" count="1" />
	<ingredient name="ductTape" count="1" />
</recipe>
<recipe name="CCTVCameraCam2" count="1" scrapable="False">
	<ingredient name="tv" count="1" />
	<ingredient name="headlight" count="1" />
	<ingredient name="ductTape" count="1" />
</recipe>
<recipe name="CCTVCameraCam3" count="1" scrapable="False">
	<ingredient name="tv" count="1" />
	<ingredient name="headlight" count="1" />
	<ingredient name="ductTape" count="1" />
</recipe>
<recipe name="CCTVCameraCam4" count="1" scrapable="False">
	<ingredient name="tv" count="1" />
	<ingredient name="headlight" count="1" />
	<ingredient name="ductTape" count="1" />
</recipe>
<recipe name="CCTVScreenA1" count="1" scrapable="False">
	<ingredient name="tv_large_2" count="2" />
</recipe>
<recipe name="CCTVScreenA2" count="1" scrapable="False">
	<ingredient name="tv_large_2" count="2" />
</recipe>
<recipe name="CCTVScreenA3" count="1" scrapable="False">
	<ingredient name="tv_large_2" count="2" />
</recipe>
<recipe name="CCTVScreenA4" count="1" scrapable="False">
	<ingredient name="tv_large_2" count="2" />
</recipe>
<recipe name="CCTVSystem" count="1" scrapable="False">
	<ingredient name="tv" count="2" />
	<ingredient name="glue" count="1" />
	<ingredient name="ductTape" count="1" />
</recipe>

Thanks for Tips

 

mfg

Link to comment
Share on other sites

You only need recipes for CCTVScreen1 and CCTVScreenA1 and the four cameras.

 

The other screens are upgrade blocks...

 

Here:

 

<recipe name="CCTVScreen1" count="1" scrapable="False">
	<ingredient name="tv count="1" />
</recipe>

<recipe name="CCTVScreenA1" count="1" scrapable="False">
	<ingredient name="tv" count="1" />
</recipe>

<recipe name="CCTVCameraCam1" count="1" scrapable="False">
	<ingredient name="forgedSteel" count="5" />
	<ingredient name="glassCTRSheet" count="1" />
	<ingredient name="scrapCable" count="1" />
</recipe>

<recipe name="CCTVCameraCam2" count="1" scrapable="False">
	<ingredient name="forgedSteel" count="5" />
	<ingredient name="glassCTRSheet" count="1" />
	<ingredient name="scrapCable" count="1" />
</recipe>

<recipe name="CCTVCameraCam3" count="1" scrapable="False">
	<ingredient name="forgedSteel" count="5" />
	<ingredient name="glassCTRSheet" count="1" />
	<ingredient name="scrapCable" count="1" />
</recipe>

<recipe name="CCTVCameraCam4" count="1" scrapable="False">
	<ingredient name="forgedSteel" count="5" />
	<ingredient name="glassCTRSheet" count="1" />
	<ingredient name="scrapCable" count="1" />
</recipe>

 

Or you could make it easy on yourself and just do this...

 

<recipe name="CCTVSystem" count="1" scrapable="False">
	<ingredient name="forgedSteel" count="20" />
	<ingredient name="glassCTRSheet" count="4" />
	<ingredient name="scrapCable" count="4" />
               <ingredient name="tv count="1" />
</recipe>

Link to comment
Share on other sites

  • 3 weeks later...
  • 3 weeks later...

Version 2 is out! Cameras can now be panned left or right using the arrow keys!

 

 

Fixed FPS - The mod appears to have almost no effect on the FPS now.

Added script to control the TV output.

Added Scripts to control camera movement

Non active cameras are now disabled.

All cameras and screens are disabled on unload and load, this allows for the placement of another system as long as its not in the same chunk.

 

Camera Control Instructions:

Activate or change channels by selecting a channel using numpad 1, 2, 3 or 4 while looking at the screen.

Use the arrow keys to pan the active camera left and right.

E to turn the system off.

 

Download Link 1

 

or

 

Download Link 2

 

Demo:

[video=youtube_share;j1UAFbsCt8I]

Link to comment
Share on other sites

Version 2 is out! Cameras can now be panned left or right using the arrow keys!

 

 

Fixed FPS - The mod appears to have almost no effect on the FPS now.

Added script to control the TV output.

Added Scripts to control camera movement

Non active cameras are now disabled.

All cameras and screens are disabled on unload and load, this allows for the placement of another system as long as its not in the same chunk.

 

Camera Control Instructions:

Activate or change channels by selecting a channel using numpad 1, 2, 3 or 4 while looking at the screen.

Use the arrow keys to pan the active camera left and right.

E to turn the system off.

 

Download Link 1

 

or

 

Download Link 2

 

Demo:

[video=youtube_share;j1UAFbsCt8I]

 

Nice update man but vid is set to private lol :'(

Link to comment
Share on other sites

I haven't tested it with the old one. I think it should still work but the cameras use the same channels so they would show up on the new screen. You should be able to still use the auto scan TV without a problem, I'll test it out when I get the chance.

Link to comment
Share on other sites

Updated again.

 

Added Tilt

Added Zoom

Added Lights - WIP

Added XML settings to change:

- ZoomLevel

- ZoomSpeed

- PanSpeed

- MaxPanLeft

- MaxPanRight

- TiltSpeed

- HasLights - If set to false the lights will be disabled.

- InterfaceDisabled - If set to false the only input allowed will be changing channels.

 

Use the up and down arrows to tilt, keypad + - to zoom and L to activate the light.

 

Download Link 1

 

or

 

Download Link 2

 

See first post for an updated demo video.

Link to comment
Share on other sites

  • 4 weeks later...
  • 7 months later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...