Code Monkey home page Code Monkey logo

photon's Introduction

Photon

Garry's Mod Lighting Engine

This is the official GitHub page for the Photon Lighting Engine. Code is licensed under a Creative Commons Non-Commercial Attribution agreement.

Contributing

Pull requests are welcome, but code may be adjusted before publish. Anyone who contributes will be appropriately credited on the addon page. Before you contribute, be sure to read the Contribution Guidelines.

Branching Model

Code under development is worked on in separate feature branches / forks. When this code is ready for testing, it's merged into development.

Code on the development branch is tested by the team to ensure it works as intended, and is then merged into the master branch.

The master branch contains code which is ready to go live. When the code goes live, the release is tagged on master.

Credits

The Core Development team currently contains 6 people.

Name Role
Schmal Photon Engine code, photon.lighting website
Noble Photon Fire and Rescue, various components
GermanDude Photon vehicles
Super Mighty Photon vehicles & components.
creator_2013 Photon Engine code & Components & Vehicles
Joshua Piper Photon Engine code, Discord Bot, external services & security.
SGM Vehicle Creator
Name Role
Deputy.Jones Vehicle Creator
goigle Photon Core code
TDM Vehicle Creator

Contributors

Name Contributions
ANorthCanadianFriend D&R RDS 17
DatedGore Various
Officer Pringle Touchmaster Delta Phaser
Nardoras Tinted Whelen Legacy
DBotThePony DHTML Creation Delay
jooiiee Various
djtb2924 Clientside Errors

Other

Christmas Cracker icon provided by Made, AU, from thenounproject.com.

photon's People

Contributors

allcontributors[bot] avatar anorthcanadianfriend avatar creator2013 avatar datedgore avatar dbotthepony avatar djtb2924 avatar ischmal avatar jooiiee avatar joshpiper avatar liltransition avatar noble-ux avatar officer-pringle avatar sentrygunman avatar supermighty1 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

photon's Issues

Primary and Secondary sirens in photon code.

Feature

In the current version of photon you can only have a primary siren in the photon code. But in game you can have two? This doesnt make sense. This needs to be added. Maybe have a Siren = 1 and a Siren2 = 4

Use Case

It would imrpove the siren feature. This would also make it to where you can add two sirens in the photon code

D&R Intimidator has no Airhorn anymore

Expected Behaviour

Sound

Actual Behaviour

No sound

Error Messages (if any)

Steps to Reproduce

Details

  • Source (Workshop / Github):
  • Garry's Mod Beta/Branch (if not standard):

D&R RDS 17 Siren

Hi, I am just wondering if someone could please add in the D&R rds 17 siren?
It has what you call an Intersection clear tone ( Inter-Clear) along with the standard tones.
Inter-clear is a combination of Yelp, Stinger (Priority on most sirens) and a hyper stinger, that no other siren has.
It uses the same exact sound files as the D&R Intimidator, accept without the HI-Low and is replaced with the Inter-clear tone before Wail.
The Inter-Clear tone can be heard from 0:13-0:24 on the video below.
https://www.youtube.com/watch?v=HSHe-cTWORM&t=44s
I have also included a link to the product itself with a picture: http://www.dandrelectronics.com/emergency/product/rds17s.html
Hope to hear your thoughts on the siren and I hope you consider adding it.

Thanks for reading!

64x bit selections broken

Expected Behaviour

Set selections from user selections.

Actual Behaviour

Error

Error Messages (if any)

[ERROR] addons/photon/lua/autorun/photon/cl_emv_net.lua:156: attempt to call field 'gfind' (a nil value)
  1. ApplyAutoSkin - addons/photon/lua/autorun/photon/cl_emv_net.lua:156
   2. Photon_ApplyEquipmentConfiguration - addons/photon/lua/autorun/photon/cl_emv_meta.lua:907
    3. DoClick - addons/photon/lua/autorun/photon/cl_photon_context.lua:302
     4. OnMouseReleased - lua/vgui/dlabel.lua:234
      5. unknown - lua/vgui/dmenuoption.lua:77

Steps to Reproduce

  1. Run 64 bit.
  2. Make user selection.
  3. Select selection.

Details

  • Source (Workshop / Github): Github
  • Garry's Mod Beta/Branch (if not standard): x64

Photon GUI

I was using photon for awhile then all of a sudden my screen to help me see when I can change my lightbar to a different code, when I can change my siren to a different sound, I been trying to look how I can get it back but there is nothing on it so I hope you know what I am talking about and I hope you can help me.

[PreRelease Beta] Several photon functions are not working

Problem 1

Hud disappears as soon as you press T, B or X.

Problem 2

If you leave a vehicle when the lights are active the current pattern freezes / current section stays on.

Problem 3

If you reproduce "Problem 2" and despawn the vehicle, the props of the vehicle won't despawn.

Details

  • Source (Workshop / Github): Github
  • Garry's Mod Beta/Branch (if not standard): 64bit Beta

I also think that the hud is more bold in the beta.

Configurations not working

Expected Behaviour

To be able to see configs and make new configs.

Actual Behaviour

Cannot see any configs nor make new ones or see the pre-made ones (I tested on Explorer and Charger)

Error Messages (if any)

Steps to Reproduce

  1. Spawn a police vehicle
  2. Check for configs in C menu

Details

  • Source (Workshop / Github):
  • Garry's Mod Beta/Branch (if not standard): x64

HUD Opacity is on/off, doesn't fade.

Expected Behaviour

HUD opacity 150 is semi visible.

Actual Behaviour

It only turns on or off

Error Messages (if any)

Steps to Reproduce

  1. set hud opacity to 150
  2. set hud opacity to 0
  3. set hud opacity to 255

Details

  • Source (Workshop / Github): Workshop
  • Garry's Mod Beta/Branch (if not standard): stable

Controller outside of the vehicle.

Feature

Have a feature to where you can access the emergency lighting outside your vehicle.

Use Case

If you had this you can get out of your vehicle and get close to the lightbar or other component you are trying to build.

Alternatives

Not sure.

Context

None

Photon Panel Hiding

Feature

Ability to hide the bottom-right Photon panel.

Use Case

Hide the panel when making videos to improve video's looks.
Hide panel when using siren panel components/props to use instead of panel.

PI lighting in auto-components.

Feature

Add regular lighting states to auto-components.

Use Case

Adding running lights / secondary break lights to rear bars (as seen on some tow trucks and fire engines).

PI lighting delayed

Expected Behavior

When breaking in a vehicle they should appear almost instantly

Actual Behavior

Brake PI lighting takes a good 3-5 seconds to appear, same for reverse lights.

Example : https://youtu.be/ONHlow-e-04

Error Messages (if any)

N/A

Steps to Reproduce

  1. Download a vehicle with PI lighting, press spacebar a few times

Details

  • Source (Workshop / Github): V72 release
  • Garry's Mod Beta/Branch (if not standard): None

Setting Presets Outside of a Vehicle

I think it'd be much better to allow players or code to set presets while outside of a vehicle. I am trying to make a menu that allows players to do it in a non sandbox gamemode and it is rather restricting to force them to be in a vehicle.
I could also be doing something terribly wrong, I am not sure.

Names Over head

Photon messes up the DarkRP name over head feature. Removing it fixes it.

Help

Does this module have computer configuration requirements?
When I entered the map, the vehicle that used this module for the first time did not have a jam. When I placed the second police car, it became very stuck and unbearable.

Ablity to go backwards with the Sirens.

Feature

Like, we have the button to move the siren forward; having an option to go backwards.

Use Case

Saying if you switch to a Phaser and want to go back to a Yelp (the one before), you'd have to manually go back to the Wail (or hit 1), and then switch to the Yelp. - I know 1,2,3,4 are bound to the siren change; however, if you have VCmod installed, it isn't possible to do it that way, because you end up changing seats.
Example Met Siren

Alternatives

I'm not sure you could make an Alternative tbh

Context

N/A

Photon messed up

Expected Behaviour

To be able to see lighting on other peoples car.

Actual Behaviour

Cant see lighting on others car (It isnt just that it isnt lighting up, it is that I cant even see the lights on the car

Error Messages (if any)

[ERROR] addons/photon/lua/autorun/photon/sh_emv_helper.lua:204: attempt to index a nil value

  1. GetIllumSequence - addons/photon/lua/autorun/photon/sh_emv_helper.lua:204
  2. Photon_IllumLights - addons/photon/lua/autorun/photon/cl_emv_meta.lua:126
    3. Photon_RenderIllum - addons/photon/lua/autorun/photon/cl_emv_meta.lua:504
    4. DrawEMVLights - addons/photon/lua/autorun/photon/cl_emv_init.lua:49
    5. v - addons/photon/lua/autorun/photon/cl_emv_init.lua:92
    6. unknown - lua/includes/modules/hook.lua:84

(Unsure if thisis related)

Steps to Reproduce

  1. look at someones lights

Details

  • Source (Workshop / Github):
  • Garry's Mod Beta/Branch (if not standard): tried on 32 and 64

Components with COMPONENT.Positions angles at anything other than (0,0,0) can have issues when being rotated

Expected Behaviour

Components with COMPONENT.Positions set at something other than (0,0,0) should be able to be rotated via EMV.Auto without issue.

Actual Behaviour

If a component has a Position set as something else ,ie: (0,-90,0), it will rotate at odd angles. In the case of (0,-90,0) it will bug out when X is changed: Ang = Angle( X, 0, 0 )

Error Messages (if any)

N/A

Steps to Reproduce

  1. Spawn a vehicle with a Whelen 600 component
  2. Attempt to rotate the component via X: Angle( X, 0, 0 )
  3. Profit

Details

  • Source (Workshop / Github): Both
    "it's an issue with the translation algorithm i used" - schmal

lua seems not working

Expected Behaviour

Actual Behaviour

Error Messages (if any)

[Photon LE (Version 70)] lua/autorun/photon/sh_emv_helper.lua:367: attempt to index local 'autoData' (a nil value)

  1. GetProps - lua/autorun/photon/sh_emv_helper.lua:367
  2. Photon_SetupEMVProps - lua/autorun/photon/cl_emv_meta.lua:586
  3. Photon_RemoveEMVProps - lua/autorun/photon/cl_emv_meta.lua:661
  4. Photon_ScanEMVProps - lua/autorun/photon/cl_emv_meta.lua:670
  5. DrawCarLights - lua/autorun/photon/cl_emv_init.lua:59
  6. v - lua/autorun/photon/cl_emv_init.lua:71
  7. unknown - lua/includes/modules/hook.lua:84

Steps to Reproduce

Details

  • Source (Workshop / Github):
  • Garry's Mod Beta/Branch (if not standard):

Photon_Stick - Admin button that enables it globally for every car/person.

Feature

A button under the Photon options that allows admins to enable/disable the "Photon_Stick" effect on every single Photon vehicle and for every player with ease. Without having to open the console and type it in every time.

Use Case

Realism...

Alternatives

Just make it turned on 24/7 with no option to turn it off ๐Ÿ˜‚

Context

Bitch.

Simplified / Automatic Lighting Generation

Feature

Be able to automatically generate simple patterns (side/side, alternating, incrementing, decrementing) for a set of colours and positions.

Use Case

Simple components / legacy lights.

Prop Glitch

Expected Behaviour

The prop will appear and it will work like normal.

Actual Behaviour

The prop doesnt appear but it stills works.

Error Messages (if any)

None

Steps to Reproduce

  1. Have something like a hideaway or wig-wags.
  2. Put a component that has a prop below that.
  3. And then the prop wont appear.

Details

  • Source (Workshop / Github):
  • Garry's Mod Beta/Branch (if not standard):

Ion V Improper Code

Expected Behaviour

N/A?

Actual Behaviour

M1/2/3 stages are set to use "auto_ion_v" and ALERT to use "auto_ion."
Both Sections and Patterns are missing these, only having "auto_whelen_linz6" listed.

Error Messages (if any)

Steps to Reproduce

  1. View lua code for the Whelen Ion V

Details

  • Source - Github
  • Garry's Mod - Standard

Auxiliary lights don't turn on if they are not used in the modes

Expected Behaviour

Auxiliary lights don't turn on if they are not used in the modes. You have to define an off pattern.

Actual Behaviour

Lights turn on.

Error Messages (if any)

none

Steps to Reproduce

  1. Create auxiliary lights
  2. Don't put them into the regular modes
  3. Turn on the auxiliary lights

Details

  • Source (Workshop / Github): Both
  • Garry's Mod Beta/Branch (if not standard): none

Show a semi-transparent ball in debug mode

Feature

Show a semi-transparent ball at the source of illuminatiln with a arrow that points into the direction of the illumination area

Use Case

When using debug-mode ingame

Alternatives

Just a arrow, no ball.

Context

/

Customizable turn signal hotkeys

Feature

Add turn signals to the hotkey list in the settings menu

Use Case

Allow users to bind their turn signals to more convenient locations, preventing the odd lurching that happens when activating a turn signal while driving

Park Kill

Feature

When exiting a vehicle, components with Park Kill enter that mode automatically (overrides S1/2/3, doesn't override TA)

Use Case

CA Style lighting which switches to static when the vehicle is parked.

Whelen Cenator

Feature

Whelen Cenator lightbar

Use Case

Whelen Cenator component/model

Alternatives

N/A

Context

N/A

Base Photon Components Give Errors

Expected Behaviour

Vehicle spawns with the component

Actual Behaviour

Vehicle spawns without the component. The rest of the vehicle's lights works, an error message is given in the console, but the yellow error popup does not appear.

Error Messages (if any)

"[Photon] Auto component: Whelen Ion Split was not found in the library. Requested in: NVFD Duty 21."
"[Photon] Auto component: Federal Signal Viper Dual was not found in the library. Requested in: NVFD Duty 21."
-- Most of the components from Schmal's Ford Police Interceptor Utility 2016 have this issue, I used this vehicle to test that it wasn't my vehicle's lua creating the issue.

Steps to Reproduce

  1. Forgot to add "AddCSLuaFile()" to a custom component
  2. Recieved same error

Details

  • Source (Workshop / Github): Workshop
  • Garry's Mod Beta/Branch (if not standard): Standard

Photon Included AirEL like Licence Plate

Feature

A clear and concise description of what you want to happen.

  • A licence plate prop/component that works the like the AirEL,
    allowing players to set the UNIT-ID and showing it on the plate

Use Case

This would be used on front or backs of vehicles working like the AirEL showing the UNIT-ID

Context

Add any other context or screenshots about the feature request here.

Big error and many photon's vehicles don't work

Some error :

[Photon LE (Version 70)] lua/autorun/photon/sh_emv_helper.lua:367: attempt to index local 'autoData' (a nil value)
  1. GetProps - lua/autorun/photon/sh_emv_helper.lua:367
   2. Photon_SetupEMVProps - lua/autorun/photon/cl_emv_meta.lua:586
    3. Photon_RemoveEMVProps - lua/autorun/photon/cl_emv_meta.lua:661
     4. Photon_ScanEMVProps - lua/autorun/photon/cl_emv_meta.lua:670
      5. DrawCarLights - lua/autorun/photon/cl_emv_init.lua:59
       6. fn - lua/autorun/photon/cl_emv_init.lua:71
        7. unknown - addons/ulib/lua/ulib/shared/hook.lua:109

Many people has it on differents photon's vehicles by differents skin makers.

Component bodygroups not changing

Expected Behaviour

Bodygroups of lightbars being able to change the glass colour.

Actual Behaviour

Bodygroups not changing the lightbars glass colour, appearing as clear.

Error Messages (if any)

None.

Steps to Reproduce

  1. Download or use a component that has a colored glass variant and set it to one of the colours
  2. Add the lightbar to the vehicles code
  3. Spawn the vehicle

Details

  • Source (Workshop / Github): Github
  • Garry's Mod Beta/Branch (if not standard): Standard public build.

Configuration saving doesn't refresh the configuration menu.

Expected Behaviour

list of configurations updates

Actual Behaviour

no update takes place

Error Messages (if any)

0

Steps to Reproduce

  1. spawn vehicle
  2. setup equipment
  3. save configuration
  4. nothing else

Details

  • Source (Workshop / Github): github development branch
  • Garry's Mod Beta/Branch (if not standard): x64 beta

Manual and Horn icons override.

Expected Behaviour

When pressing horn and manual siren keys, both HUD icons show.

Actual Behaviour

Only one shows.

Error Messages (if any)

Details

  • Source (Workshop / Github): GitHub - DTVar Fix.
  • Garry's Mod Beta/Branch (if not standard): x64

Whelen Century Lightbar

Hello, I was wondering if the new Whelen Cenator Series lightbar could please be added to Photon? the RCMP is switching there cruisers with the new bar and I wanted to add it to my vehicle.
ce4rrbb-34

Default colors to takedown lights

Feature

Add default colors to takedown

Use Case

So the player could do Color3 = "COLOR" or any other default color and it would affect takedown lights

Alternatives

Not sure.

Context

No.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.