Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Console Error When Turning on TKDN Lights in Custom Car #220

Open
isaiahwiesner opened this issue Aug 27, 2023 · 1 comment
Open

Console Error When Turning on TKDN Lights in Custom Car #220

isaiahwiesner opened this issue Aug 27, 2023 · 1 comment
Labels
bug Something's broken that shouldn't be.

Comments

@isaiahwiesner
Copy link

isaiahwiesner commented Aug 27, 2023

Expected Behaviour

No errors from photon when TKDN illumination is enabled

Actual Behaviour

Error

Error Messages (if any)

[Photon Lighting Engine] lua/autorun/photon/sv_emv_meta.lua:130: bad argument #1 to 'pairs' (table expected, got nil)
  1. pairs - [C]:-1
   2. ELS_IllumOn - lua/autorun/photon/sv_emv_meta.lua:130
    3. Illumination - lua/autorun/photon/sv_emv_net.lua:75
     4. func - lua/autorun/photon/sv_emv_net.lua:85
      5. unknown - lua/includes/extensions/net.lua:38

Steps to Reproduce

  1. Add TKDN to illumination in vehicle LUA file:
EMV.Sequences = {
  Illumination = {
      { Name = "TKDN", Stage = "T", Components = {}, Disconnect = {} } 
  }
}
  1. Toggle by pressing X

Details

  • Source (Workshop / Github):
  • Garry's Mod Beta/Branch (if not standard): x86-64 - Chromium + 64-bit binaries
@isaiahwiesner isaiahwiesner added the bug Something's broken that shouldn't be. label Aug 27, 2023
@isaiahwiesner isaiahwiesner changed the title Console Error When Turning on TKDN Lights in Custom Console Error When Turning on TKDN Lights in Custom Car Aug 27, 2023
@ATLAS-ENTERTAINMENT
Copy link

There needs to be an additional variable called 'Lights'. Therefore, it should read something like this:

EMV.Sequences = {
    Illumination = {
        { 
            Name = "TKDN",
            -> Lights = {},
            Stage = "T",
            Components = {},
            Disconnect = {}
        }
    }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something's broken that shouldn't be.
Projects
None yet
Development

No branches or pull requests

2 participants