Ulysses Stuff > Releases

URL Playsound Addon :) [2.28v]

<< < (12/29) > >>

Bite That Apple:
Mmhhhh, I have a fix for that. Just give this post about five minutes, and I'll edit it this post with the updated music.lua

Bite That Apple:
Okay, so I completely change the init setup from before.

Now in the init.lua, find:

--- Code: ---AddCSLuaFile("karma.lua")

--- End code ---
Which can be found in this row of includes:

--- Code: ---include("karma.lua")
include("entity.lua")
include("scoring_shd.lua")
include("radar.lua")
include("admin.lua")
include("traitor_state.lua")
include("propspec.lua")
include("weaponry.lua")
include("gamemsg.lua")
include("ent_replace.lua")
include("scoring.lua")
include("corpse.lua")
include("player_ext_shd.lua")
include("player_ext.lua")
include("player.lua")
include("tags.lua")

--- End code ---
In that file, add this above the include("karma.lua"):

--- Code: ---include("music.lua")
--- End code ---

Also, add:

--- Code: ---AddCSLuaFile("music.lua")
--- End code ---
under

--- Code: ---AddCSLuaFile("vgui/sb_info.lua")
--- End code ---

So now it should look something like this like this:

--- Code: ---AddCSLuaFile("vgui/sb_main.lua")
AddCSLuaFile("vgui/sb_row.lua")
AddCSLuaFile("vgui/sb_team.lua")
AddCSLuaFile("vgui/sb_info.lua")
AddCSLuaFile("music.lua")

include("resources.lua")
include("shared.lua")

include("music.lua")
include("karma.lua")
include("entity.lua")
include("scoring_shd.lua")
include("radar.lua")
include("admin.lua")
include("traitor_state.lua")
include("propspec.lua")
include("weaponry.lua")
include("gamemsg.lua")
include("ent_replace.lua")
include("scoring.lua")
include("corpse.lua")
include("player_ext_shd.lua")
include("player_ext.lua")
include("player.lua")
include("tags.lua")
--- End code ---



-----


Now goto the cl_init.lua file and find:

--- Code: ---include("cl_radio.lua")
--- End code ---
which can be found in:

--- Code: ---include("cl_radio.lua")
include("cl_disguise.lua")
include("cl_transfer.lua")
include("cl_targetid.lua")
include("cl_search.lua")
include("cl_radar.lua")
include("cl_tbuttons.lua")
include("cl_scoreboard.lua")
include("cl_tips.lua")
include("cl_help.lua")
include("cl_hud.lua")
include("cl_msgstack.lua")
include("cl_hudpickup.lua")
include("cl_keys.lua")
include("cl_wepswitch.lua")
include("cl_scoring.lua")
include("cl_scoring_events.lua")
include("cl_popups.lua")
include("cl_equip.lua")
include("cl_voice.lua")
--- End code ---


Above the this code:

--- Code: ---include("cl_radio.lua")
--- End code ---
add this code:

--- Code: ---include("music.lua")
--- End code ---

So now it should look like this:

--- Code: ---include("music.lua")
include("cl_radio.lua")
include("cl_disguise.lua")
include("cl_transfer.lua")
include("cl_targetid.lua")
include("cl_search.lua")
include("cl_radar.lua")
include("cl_tbuttons.lua")
include("cl_scoreboard.lua")
include("cl_tips.lua")
include("cl_help.lua")
include("cl_hud.lua")
include("cl_msgstack.lua")
include("cl_hudpickup.lua")
include("cl_keys.lua")
include("cl_wepswitch.lua")
include("cl_scoring.lua")
include("cl_scoring_events.lua")
include("cl_popups.lua")
include("cl_equip.lua")
include("cl_voice.lua")
--- End code ---



---




Lastly, download the new music.lua and replace it with the old one I gave you. So if it was done correctly, your init.lua file should look something like this



and your cl_init.lua should look like:

morten7000:

--- Quote from: chaos13125 on August 18, 2013, 04:57:50 AM ---**A Awesome support guide :D**
Just to long to reply on :)

--- End quote ---

Thanks for the great guide you gave :D I did everythink you said about init and cl_init
And that should be okay now...
But im still getting lua errors?


--- Code: ---[ERROR] gamemodes/terrortown/gamemode/music.lua:32: 'end' expected (to close 'if
' at line 19) near '<eof>'
  1. unknown - gamemodes/terrortown/gamemode/music.lua:0
--- End code ---
I dont know if it's just a "end" i need somewere?

But again thanks for the great and awesome support :) very helpfull and is much apreciated :)

Bite That Apple:

--- Quote from: morten7000 on August 18, 2013, 07:15:47 AM ---Thanks for the great guide you gave :D I did everythink you said about init and cl_init
And that should be okay now...
But im still getting lua errors?


--- Code: ---[ERROR] gamemodes/terrortown/gamemode/music.lua:32: 'end' expected (to close 'if
' at line 19) near '<eof>'
  1. unknown - gamemodes/terrortown/gamemode/music.lua:0
--- End code ---
I dont know if it's just a "end" i need somewere?

But again thanks for the great and awesome support :) very helpfull and is much apreciated :)

--- End quote ---

at the bottom of the file it most likely says

--- Code: ---end
hook.Add("TTTEndRound", "EndRoundMusic", EndMusic)
end
--- End code ---

just add another "end" at the bottom so it says

--- Code: ---end
hook.Add("TTTEndRound", "EndRoundMusic", EndMusic)
end
end
--- End code ---

morten7000:

--- Quote from: chaos13125 on August 18, 2013, 07:19:21 AM ---at the bottom of the file it most likely says

--- Code: ---end
hook.Add("TTTEndRound", "EndRoundMusic", EndMusic)
end
--- End code ---

just add another "end" at the bottom so it says

--- Code: ---end
hook.Add("TTTEndRound", "EndRoundMusic", EndMusic)
end
end
--- End code ---
[/quote

I think it works now... hmm.. Its not giving me any lua-error :D... I will return with more info later :)

But you chaos needs a big "thanks you so freaking much!" like 1000 times :)
I love your work so keep it up :)
--- End quote ---

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version