TTT-2 / ttt2-octagonal-hud

a TTT2 HUD inspired by Octagonal HUD
3 stars 5 forks source link

Error in the console after added in the server #7

Closed Shaknunic closed 4 years ago

Shaknunic commented 4 years ago

Not sure why this is happening, but here we goes:

[ERROR] addons/[ttt]_ttt2/lua/autorun/octagonal_hud_ttt2.lua:2: attempt to index field 'cl_hud' (a nil value)
  1. fn - addons/[ttt]_ttt2/lua/autorun/octagonal_hud_ttt2.lua:2
   2. Run - addons/ulx+ulib-beta+ttt2/lua/ulib/shared/hook.lua:109
    3. unknown - addons/[ttt]_ttt2/gamemodes/terrortown/gamemode/shared/sh_include.lua:112
     4. include - [C]:-1
      5. unknown - addons/[ttt]_ttt2/gamemodes/terrortown/gamemode/init.lua:3

[ERROR] addons/[ttt]_ttt2/gamemodes/terrortown/gamemode/init.lua:5: attempt to call global 'ttt_include' (a nil value)
  1. unknown - addons/[ttt]_ttt2/gamemodes/terrortown/gamemode/init.lua:5

Couldn't Load Init Script: 'terrortown/gamemode/init.lua'

And some lines below this is shown in the consoles as well:

[ERROR] gamemodes/terrortown/entities/weapons/weapon_ttt_phammer.lua:49: attempt to call global 'AccessorFuncDT' (a nil value)
  1. unknown - gamemodes/terrortown/entities/weapons/weapon_ttt_phammer.lua:49

[ERROR] gamemodes/terrortown/entities/weapons/weapon_ttt_push.lua:49: attempt to call global 'AccessorFuncDT' (a nil value)
  1. unknown - gamemodes/terrortown/entities/weapons/weapon_ttt_push.lua:49

[ERROR] addons/[ttt]_ttt2/gamemodes/terrortown/entities/weapons/weapon_ttt_wtester.lua:66: attempt to call global 'AccessorFuncDT' (a nil value)
  1. unknown - addons/[ttt]_ttt2/gamemodes/terrortown/entities/weapons/weapon_ttt_wtester.lua:66

[ERROR] addons/[ttt]_ttt2/gamemodes/terrortown/entities/entities/ttt_c4/shared.lua:108: attempt to call global 'AccessorFuncDT' (a nil value)
  1. unknown - addons/[ttt]_ttt2/gamemodes/terrortown/entities/entities/ttt_c4/shared.lua:108

[ERROR] gamemodes/terrortown/entities/entities/ttt_flame.lua:13: attempt to call global 'AccessorFuncDT' (a nil value)
  1. unknown - gamemodes/terrortown/entities/entities/ttt_flame.lua:13

[ERROR] gamemodes/terrortown/entities/entities/ttt_hat_deerstalker.lua:11: attempt to call global 'AccessorFuncDT' (a nil value)
  1. unknown - gamemodes/terrortown/entities/entities/ttt_hat_deerstalker.lua:11

[ERROR] addons/[ttt]_ttt2/gamemodes/terrortown/entities/entities/ttt_health_station.lua:24: attempt to call global 'AccessorFuncDT' (a nil value)
  1. unknown - addons/[ttt]_ttt2/gamemodes/terrortown/entities/entities/ttt_health_station.lua:24
TimGoll commented 4 years ago

Which versions are you using of TTT2 and octagonal are you using? Both from the workshop?

Shaknunic commented 4 years ago

TTT2 was the lastest version from Github, from 3 days ago and Octagonal was the lastest version on Github as well

saibotk commented 4 years ago

@Shaknunic 3 days is a long time, as this is the main development branch things may break. You should try updating everything to the newest version. Also in the future it would be really helpful, if you could include the details of the version that is used, when opening up the issue. So we can help you much faster. Please respond back with your results after updating. Thanks :+1:

TimGoll commented 4 years ago

In the last few days nothing changed though. Since I'm using the github version as well, are you sure that octagonal is causing the problem? Is there maybe another error somewhere earlier in the console?

TimGoll commented 4 years ago

Okay, I looked into this error again. Are you sure you are using our addon? Because the file lua/autorun/octagonal_hud_ttt2.lua does not exist and has never existed.

TimGoll commented 4 years ago

I will close this for now. Please reopen if you have still problems.