Garry's Mod

Garry's Mod

Nombat - Ambient/Combat Music
MY FIRST NOMBAT EXTENSION WENT ALL BROKEN!!!
Guys, I received this annoying error evar:
[NOMBAT ERROR] It seems you have not installed one of the music packs The steam browser will open shortly you can choose a music pack from there!

Here's my .lua files I done:
if SERVER then resource.AddWorkshop("804960035") --place you workshop addon number here ( I told you to copy it remember ;) ) end if CLIENT then function Nombat_Cl_Init( ) local pl = LocalPlayer() -- (DONT EDIT) if IsValid(pl) then if pl then pl.NOMBAT_Level = 1 -- (DONT EDIT) pl.NOMBAT_PostLevel = 1 -- (DONT EDIT) local Ambient_Time = {356,334,318,284,369,243,357} --song time (in seconds) pl.NOMBAT_Amb_Delay = CurTime() -- (DONT EDIT) local Combat_Time = {355,294,374,357,292,280,408} --song time (in seconds) pl.NOMBAT_Com_Delay = CurTime() -- (DONT EDIT) pl.NOMBAT_Com_Cool = CurTime() -- (DONT EDIT) local packName = "sonicunleashed" --MAKE SURE THIS IS THE SAME AS THE FOLDER NAME HOLDING THE SOUNDS packName = packName.."/" -- (DONT EDIT) local subTable = { packName, Ambient_Time, Combat_Time } -- (DONT EDIT) if !pl.NOMBAT_PackTable then -- (DONT EDIT) pl.NOMBAT_PackTable = {subTable} -- (DONT EDIT) else table.insert( pl.NOMBAT_PackTable, subTable ) -- (DONT EDIT) end pl.NOMBAT_SVol = 0 -- (DONT EDIT) end end end hook.Add( "InitPostEntity", "Nombat_Cl_Init_sonicunleashed", Nombat_Cl_Init ) -- change the "Nombat_Cl_Init_GAMENAME" to "Nombat_Cl_Init_" and your game name. end

Please test this addon before commenting, thank you.
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=804960035
Last edited by Pluck the Dragon; 23 Nov, 2016 @ 2:59pm
< >
Showing 1-1 of 1 comments
<SLAUGH7ER>  [developer] 24 Nov, 2016 @ 3:30am 
[Nombat - Sonic Unleashed] lua/autorun/nombat_ext_sonicunleashed.lua:20: attempt to index global 'a1' (a nil value)
1. v - lua/autorun/nombat_ext_sonicunleashed.lua:20
2. unknown - lua/includes/modules/hook.lua:84

it seems like you havnt uploaded your updated version to the steam workshop, all info below including the line that needed fixing.

---[YOUR CODE]--
local Ambient_Time = {a1.mp3,a2.mp3,a3.mp3,a4.mp3,a5.mp3,a6.mp3,a7.mp3} --song time (in seconds)
--[FIX]---
local Ambient_Time = {356,334,318,284,369,243,357} --song time (in seconds)


---[YOUR CODE]---
local Combat_Time = {c1.mp3,c2.mp3,c3.mp3,c4.mp3,num,num,num} --song time (in seconds)
---[FIX]---
local Combat_Time = {355,294,374,357,292,280,408} --song time (in seconds)


Last edited by <SLAUGH7ER>; 24 Nov, 2016 @ 3:35am
< >
Showing 1-1 of 1 comments
Per page: 1530 50