Garry's Mod

Garry's Mod

Cinema
Crizz P. 28 Dec, 2020 @ 4:47am
Bugs and Fixes - 2020
This is to serve anyone who has questions and hasn't gotten any answers concerning cinema bugs.

This is VERY IMPORTANT
  1. The theater screen message is a webpage loaded on a 3D object. It loads the static screen from the github of the creator of this addon. (Sam)

  2. All videos are loaded as web addresses, or doors into gmod.

  3. Some doors are locked and require a key to open in Gmod.

  4. Youtube requires such a key. See the console errors below.

  5. The api key that is built into this addon is exceeding its daily use limits because so many maps use it. Single players cannot change the api key - it's built into the addon and can't be edited.

  6. Server Owners can change the api key they used by replacing the one specified in one of the LUA source files they downloaded from GitHub.

Server Console Error 403 and Youtube videos not playing
The Cinema Gamemode comes packed with a youtube api key in an LUA file. It's used by most cinema servers using the default map to play videos. The api key has usage limitations, and because it's been used so much, you're going to need your own api key. Thankfully they don't cost anything and are easy to get and apply to gmod.

TO FIX IT
    Navigate to:
  1. steamapps\common\GarrysMod\garrysmod\gamemodes\cinema\gamemode\modules\theater\services\youtube_sh.lua and open the file in a text editor. You'll see there's an api key in it at the top.

  2. Go to Google's youtube api setup[developers.google.com] and follow the guide to generate your api key

  3. Paste your api key in the lua and save it. Make sure you save it as an lua file and not txt

Flash is not installed
This one can be a silly one. Gmod uses Awesomium (The in-game internet browser) to process most of its web features. For flash, we have to set Gmod up to use Chromium. If you have flash installed for your PC, you will still need to ensure that you have it installed for Chromium as well.

TO FIX IT
    Go here to
  1. get Flash for Chromium [get.adobe.com]

  2. After you've installed, go to steam and right click on Garry's Mod in your library. Make sure you are playing in the x86-64 build version of the game by clicking on Betas.

No Cinema Gamemode Folder
Like all addons, some types of content isn't downloaded to each person that connects. If you're subscribed to the cinema mod to host your own cinema map, you will need to unsubscribe from the addon, and follow the guide below to install and run your server. Some essential files are not included in the subscription.
TO FIX IT
Go to this link [github.com]and follow the instructions in your download to get it all working. Look at the steps above to get yourself an api key.

There's no spawn menu
The cinema gamemode doesn't inherit or derive from Sandbox. But if you do a little Googling you can find out how to make it work.

A lot of old questions get asked in new ways. Most of the answers are already in this.
Last edited by Crizz P.; 28 Feb, 2021 @ 3:25pm
< >
Showing 1-15 of 15 comments
Charles 9 Feb, 2021 @ 4:02pm 
Thanks for taking your time to make the guide, but I have a question
I can't seem to find the cinema folder in steamapps\common\GarrysMod\garrysmod\gamemodes, I've tried unsubbing and subbing to the addon too. Any suggestions?
Crizz P. 12 Feb, 2021 @ 9:00pm 
Originally posted by cursed_boi_200iq:
Thanks for taking your time to make the guide, but I have a question
I can't seem to find the cinema folder in steamapps\common\GarrysMod\garrysmod\gamemodes, I've tried unsubbing and subbing to the addon too. Any suggestions?

You'll need to download the github files and move them into your gamemode folder. IF YOU'RE DOING THIS TO PLAY A SINGLE PLAYER MAP this wont fix the problem. To play on single player, you'll need to be subscribed to the workshop... and that workshop uses an old api key for playing youtube videos. You will get 403 errors ("problem processing your request") when you try to watch videos.

Download the github if you plan to make your own server.

I can help you set up your own server, it's pretty easy to do after you get the hang of it. Friend me and I'll be happy to chat with you if you have issues figuring this out.
Charles 13 Feb, 2021 @ 6:16am 
Originally posted by Crizz P.:
Originally posted by cursed_boi_200iq:
Thanks for taking your time to make the guide, but I have a question
I can't seem to find the cinema folder in steamapps\common\GarrysMod\garrysmod\gamemodes, I've tried unsubbing and subbing to the addon too. Any suggestions?

You'll need to download the github files and move them into your gamemode folder. IF YOU'RE DOING THIS TO PLAY A SINGLE PLAYER MAP this wont fix the problem. To play on single player, you'll need to be subscribed to the workshop... and that workshop uses an old api key for playing youtube videos. You will get 403 errors ("problem processing your request") when you try to watch videos.

Download the github if you plan to make your own server.

I can help you set up your own server, it's pretty easy to do after you get the hang of it. Friend me and I'll be happy to chat with you if you have issues figuring this out.
I would love to accept your invitation, however I have no interest in making my own server, sorry. I just want to play singleplayer and watch some movies alone. Is there any way I can do so with this addon?
The Singing Fish 13 Feb, 2021 @ 7:47am 
Flash is no longer available for download, how to fix it?
Charles 13 Feb, 2021 @ 7:48am 
Originally posted by The Singing Fish:
Flash is no longer available for download, how to fix it?
flash has nothing to do with the issues. didn't you read the post or the author's comment?
The Singing Fish 13 Feb, 2021 @ 10:05am 
but mine still returns "there was a problem processing the requested video"
Dem 14 Feb, 2021 @ 8:16am 
It still says There was a problem processing the requested video. after changing it to beta
Crizz P. 15 Feb, 2021 @ 9:03pm 
Originally posted by cursed_boi_200iq:
Originally posted by Crizz P.:

You'll need to download the github files and move them into your gamemode folder. IF YOU'RE DOING THIS TO PLAY A SINGLE PLAYER MAP this wont fix the problem. To play on single player, you'll need to be subscribed to the workshop... and that workshop uses an old api key for playing youtube videos. You will get 403 errors ("problem processing your request") when you try to watch videos.

Download the github if you plan to make your own server.

I can help you set up your own server, it's pretty easy to do after you get the hang of it. Friend me and I'll be happy to chat with you if you have issues figuring this out.
I would love to accept your invitation, however I have no interest in making my own server, sorry. I just want to play singleplayer and watch some movies alone. Is there any way I can do so with this addon?

Originally posted by The Singing Fish:
but mine still returns "there was a problem processing the requested video"

Problem processing your request

  1. The in-game browser is a doorway to go to places on the net
  2. Some doors are locked by their web creators.
  3. The Youtube api key is the key to open the Youtube "door"
  4. The key has limits per-day and with all the maps using it, it's nearly maxed out.
  5. In the workshop content there is an LUA file with the api key used in it.
  6. These files don't download. You can't edit it.
  7. Server owners use the github above to download the files in the workshop and edit the api key to one they can make for their server only.
  8. The "processing request" error is the "door" telling you that "key" won't work.

Without an updated api key, this will continue to happen.

Here is what I'm doing for the cinema gamemode

I'll create a new Workshop that's updated. Flash is no longer used, so I'll get that message to go away. (I already have on my server.) I'll edit the LUAs so that all you'll have to do in single player, is add a file with YOUR api key in it. That should fix cinema for the time being.

To be clear I am not an expert. I just happen to have figured some more in-depth stuff out. Give me a week and I'll post a link to the new version.





Last edited by Crizz P.; 15 Feb, 2021 @ 9:04pm
Charles 16 Feb, 2021 @ 5:26am 
Originally posted by Crizz P.:
Originally posted by cursed_boi_200iq:
I would love to accept your invitation, however I have no interest in making my own server, sorry. I just want to play singleplayer and watch some movies alone. Is there any way I can do so with this addon?

Originally posted by The Singing Fish:
but mine still returns "there was a problem processing the requested video"

Problem processing your request

  1. The in-game browser is a doorway to go to places on the net
  2. Some doors are locked by their web creators.
  3. The Youtube api key is the key to open the Youtube "door"
  4. The key has limits per-day and with all the maps using it, it's nearly maxed out.
  5. In the workshop content there is an LUA file with the api key used in it.
  6. These files don't download. You can't edit it.
  7. Server owners use the github above to download the files in the workshop and edit the api key to one they can make for their server only.
  8. The "processing request" error is the "door" telling you that "key" won't work.

Without an updated api key, this will continue to happen.

Here is what I'm doing for the cinema gamemode

I'll create a new Workshop that's updated. Flash is no longer used, so I'll get that message to go away. (I already have on my server.) I'll edit the LUAs so that all you'll have to do in single player, is add a file with YOUR api key in it. That should fix cinema for the time being.

To be clear I am not an expert. I just happen to have figured some more in-depth stuff out. Give me a week and I'll post a link to the new version.

That sounds rad! Thanks for caring about the community and fixing things even when it's not your responsability, we all appreciate it!
Last edited by Charles; 16 Feb, 2021 @ 5:27am
Shadowsun™ 7 Mar, 2021 @ 5:04pm 
Originally posted by Crizz P.:
This is to serve anyone who has questions and hasn't gotten any answers concerning cinema bugs.

QUOTE SHORTED

Hello, my name is Nova™ (aka. Shadowsun™). Many people don't know me but I am the main programmer and technical server administrator of the gaming community KNAB-Networks. I don't want to talk much about myself or the community, but I'll get straight to the point.

PixelTailGames no longer supports the gamemode, so none of the API will work, nor will Twitch livestreaming be fixed. But I can give good news to those who want to host a Cinema where YouTube and Twitch streaming works.

I have been busy the last few days to make the gamemode usable again, here and there changes have been made to fix old issues. For example, YouTube does not work without an API key. This has now been replaced by another method to fetch the video data.

So also in this fork of Cinema the playback on Twitch livestreams is fixed, it neither needs an API key nor any changes to the server side code again. It works without any communication with the Twitch API servers.
There are some other minor changes like the warning that MacOS systems are not supported or the video history list with many entries that can bring the FPS to its knees.

the video history list has received a small refresh and it has been split into pages to save the FPS. Also a search function for the history list has been added. This feature comes from my closed source version of Cinema.


Everything now again briefly summarized
  • YouTube does not need an API key anymore.
  • Twitch service is fixed and working again. *¹
  • The video history is now divided into pages to avoid FPS drops.
  • There is now a search function to browse the video history.
  • No more MacOS "not supported" warning

*¹ = x86-64 Beta and the CEF codec fix is required.

The fixed Cinema version can be obtained from my fork using the link below. It is recommended to update the instructions for the OP (original poster).

https://github.com/FarukGamer/cinema
Charles 8 Mar, 2021 @ 6:23am 
Originally posted by Dr. Nova™:
Originally posted by Crizz P.:
This is to serve anyone who has questions and hasn't gotten any answers concerning cinema bugs.

QUOTE SHORTED

Hello, my name is Nova™ (aka. Shadowsun™). Many people don't know me but I am the main programmer and technical server administrator of the gaming community KNAB-Networks. I don't want to talk much about myself or the community, but I'll get straight to the point.

PixelTailGames no longer supports the gamemode, so none of the API will work, nor will Twitch livestreaming be fixed. But I can give good news to those who want to host a Cinema where YouTube and Twitch streaming works.

I have been busy the last few days to make the gamemode usable again, here and there changes have been made to fix old issues. For example, YouTube does not work without an API key. This has now been replaced by another method to fetch the video data.

So also in this fork of Cinema the playback on Twitch livestreams is fixed, it neither needs an API key nor any changes to the server side code again. It works without any communication with the Twitch API servers.
There are some other minor changes like the warning that MacOS systems are not supported or the video history list with many entries that can bring the FPS to its knees.

the video history list has received a small refresh and it has been split into pages to save the FPS. Also a search function for the history list has been added. This feature comes from my closed source version of Cinema.


Everything now again briefly summarized
  • YouTube does not need an API key anymore.
  • Twitch service is fixed and working again. *¹
  • The video history is now divided into pages to avoid FPS drops.
  • There is now a search function to browse the video history.
  • No more MacOS "not supported" warning

*¹ = x86-64 Beta and the CEF codec fix is required.

The fixed Cinema version can be obtained from my fork using the link below. It is recommended to update the instructions for the OP (original poster).

https://github.com/FarukGamer/cinema

wow, hi mr. nova, I'm glad you came with a fix for all of this. I do have a small question, how do I install these files on my Gmod copy? Addon folder? Merging with the files of the main game?
Shadowsun™ 8 Mar, 2021 @ 9:13am 
You have to take cinema folder inside cinema and place it under garrysmod/gamemodes/
But i would suggest to wait a bit, I will release it as a workshop addon. Since it may still get fixes here and there.
Charles 8 Mar, 2021 @ 10:13am 
alright, i'll wait just to make sure nothing happens. merging folders is dangerous especially when the addon isn't 100% fixed
Crizz P. 8 Mar, 2021 @ 5:34pm 
This is great! Thank you Dr. Nova!
< >
Showing 1-15 of 15 comments
Per page: 1530 50