Jump to content

Edit History

Please note that revisions older than 365 days are pruned and will no longer show here
xyth

xyth

VideoPlayers Modlet (Single Player Stable)

Note: Seems to work on Dedi, if you follow the install instructions, otherwise it will crash your server!  You were warned.

 

This A21 modlet now combines several A18/A19 modlets (Video Players, Billboards, and Theater Screens)

 

You must connect a wire to each device using the wire tool to activate it, then you can remove that wire.  

 

 

YouTube Video:

   

YouTube Video:

YouTube Video:

 

Description

 

 

Introduces mass media into the game.  Be sure to active each of these with a wire using the wire tool.  

 

 

Billboard01 is a mechanical billboard that shows 3 unique images on each side of the billboard. This is a single texture sheet which you can edit in a graphics program then import into unity and the reexport.

 

BillboardVideoMP4 is a electronic version, that will play 12 video clips in rotation. Like 12 TV channels.  Best part is you can replace the 12 video files in the mods/resources folder with your own.  In default, video0 is static, 1 is a cartoon clip, and 3 a classic video.  All the rest are static.  

 

Theater Screen  Adds a flat theater screen into the game. Designed with POI makers in mind, this screen is 16:9 format and 8x5 blocks in size. 

 

VideoTV is a large tabletop television that will play 12 video clips (or entire movies) in rotation. 

 

TVWall is a wall mounted version setup to replace the existing small wall mounted televisions. Its currently set to replace 20% of them but that can be adjusted in xml.  Some will be on by default, playing static, but otherwise are broken.  Replace video0 with a public service disaster message of your choice.

 

If you put down a land claim block you can pick these up by holding the E key.

 

Installing

 

Single Player

 

Normal mod install.  Drop the mod into your Mods folder and your done.  If you swap out any of the videos, they must have the exact same name and file extension as the one you're replacing. Those names are hard coded. It won't like strange .mp4 encoding so keep it simple.  Encoding help can be found in the old thread.

 

Dedi   Experimental - read carefully

For some reason, the dedicated servers default startup file named startdedicated.bat has a Unity startup parameter -nographics .   -nographics means dont load various shaders and the video decoding files needed to render video.  So your job is to edit that file before starting up the dedi.

 

On about line 69 of that file you will see this line:         start %GAMENAME% -logfile "%LOGFILE%" -quit -batchmode -nographics -configfile=serverconfig.xml -dedicated

 

Change it to:     start %GAMENAME% -logfile "%LOGFILE%" -quit -batchmode  -configfile=serverconfig.xml -dedicated

 

Failure to do this properly will crash your dedi hard and fast.

 

Download

The Modlet can be found here: https://github.com/7D2D/A21Mods/blob/main/VideoPlayers.zip or in the ModLauncher.

 

Known Issues

 

Sometimes the sound plays for a few seconds if you enter the game next to a billboard that has sound. This is because I need to active them on start as I can't use code to do that. Minor annoyance. 

 

You need to activate a newly placed video device by attaching a wire to it, but you can immediately remove that wire. That is because I'm using the switch class and it expects a wire to the switch. No way to fix that without code.

 

Videos need to be in .mp4 format.   There is a limit to how much memory can be allocated to video, so 12 long movies may well crash the server.

 

xyth

xyth

VideoPlayers Modlet (Single Player Stable)

Note: Seems to work on Dedi, if you follow the install instructions, otherwise it will crash your server!  You were warned.

 

This A20 modlet now combines several A18/A19 modlets (Video Players, Billboards, and Theater Screens)

 

You must connect a wire to each device using the wire tool to activate it, then you can remove that wire.  

 

 

YouTube Video:

   

YouTube Video:

YouTube Video:

 

Description

 

 

Introduces mass media into the game.  Be sure to active each of these with a wire using the wire tool.  

 

 

Billboard01 is a mechanical billboard that shows 3 unique images on each side of the billboard. This is a single texture sheet which you can edit in a graphics program then import into unity and the reexport.

 

BillboardVideoMP4 is a electronic version, that will play 12 video clips in rotation. Like 12 TV channels.  Best part is you can replace the 12 video files in the mods/resources folder with your own.  In default, video0 is static, 1 is a cartoon clip, and 3 a classic video.  All the rest are static.  

 

Theater Screen  Adds a flat theater screen into the game. Designed with POI makers in mind, this screen is 16:9 format and 8x5 blocks in size. 

 

VideoTV is a large tabletop television that will play 12 video clips (or entire movies) in rotation. 

 

TVWall is a wall mounted version setup to replace the existing small wall mounted televisions. Its currently set to replace 20% of them but that can be adjusted in xml.  Some will be on by default, playing static, but otherwise are broken.  Replace video0 with a public service disaster message of your choice.

 

If you put down a land claim block you can pick these up by holding the E key.

 

Installing

 

Single Player

 

Normal mod install.  Drop the mod into your Mods folder and your done.  If you swap out any of the videos, they must have the exact same name and file extension as the one you're replacing. Those names are hard coded. It won't like strange .mp4 encoding so keep it simple.  Encoding help can be found in the old thread.

 

Dedi   Experimental - read carefully

For some reason, the dedicated servers default startup file named startdedicated.bat has a Unity startup parameter -nographics .   -nographics means dont load various shaders and the video decoding files needed to render video.  So your job is to edit that file before starting up the dedi.

 

On about line 69 of that file you will see this line:         start %GAMENAME% -logfile "%LOGFILE%" -quit -batchmode -nographics -configfile=serverconfig.xml -dedicated

 

Change it to:     start %GAMENAME% -logfile "%LOGFILE%" -quit -batchmode  -configfile=serverconfig.xml -dedicated

 

Failure to do this properly will crash your dedi hard and fast.

 

Download

The Modlet can be found here: https://github.com/7D2D/A20Mods/blob/main/VideoPlayers.zip or in the ModLauncher.

 

Known Issues

 

Sometimes the sound plays for a few seconds if you enter the game next to a billboard that has sound. This is because I need to active them on start as I can't use code to do that. Minor annoyance. 

 

You need to activate a newly placed video device by attaching a wire to it, but you can immediately remove that wire. That is because I'm using the switch class and it expects a wire to the switch. No way to fix that without code.

 

Videos need to be in .mp4 format.   There is a limit to how much memory can be allocated to video, so 12 long movies may well crash the server.

 

×
×
  • Create New...