• Addon Is Not Working?
    5 replies, posted
Hi, I just made my first addon with my first model. I made my info file and everything and I added my model to spawn list by making a txt file called "foo" Which is my addon. I put it in "settings/spawnlist/" The code I used was: [CODE] "SpawnMenu" { "Information" { "version" "1" "name" "foo" } "Entries" { "1" "models/foo/foo.mdl" } [/CODE] There is only 1 model. The problem is, Is when I go in game I see in the prop list that foo is in there but when I click it and there is no prop icon or anything? When I hover my mouse over the empty prop slot it says: "Missing Model". I have made sure the path is right and it is! My addon is like this: [CODE] addons/foo/materials/models/foo/foo_texture.vmt addons/foo/materials/models/foo/foo_texture.vtf addons/foo/models/foo/foo.dx80.vtx addons/foo/models/foo/foo.dx90.vtx addons/foo/models/foo/foo.mdl addons/foo/models/foo/foo.phy addons/foo/models/foo/foo.sw.vtx addons/foo/models/foo/foo.vvd addons/foo/models/foo/foo.xbox.vtx addons/foo/info.txt [/CODE] I do not no what is wrong? Can anyone help me with this situation? EDIT: Some reason my model works when I go into the Q menu and I go to File Explorer and find foo and there is my model? It works and everything?
You're missing a bracket and the spawnlist syntax isn't correct. [lua] "0" --I still don't know the purpose of this. { "Information" { "version" "1" -- Probably only here for backwards compatibility "name" "foo" -- Name that appears in the q menu } "Entries" -- List all of the entries { "1" -- Describe the first entry below: { "model" "models/foo/foo.mdl" -- Set entry #1's 'model' value } } } [/lua]
[QUOTE=smallfry;16880484]You're missing a bracket and the spawnlist syntax isn't correct. [lua] "0" --I still don't know the purpose of this. { "Information" { "version" "1" -- Probably only here for backwards compatibility "name" "foo" -- Name that appears in the q menu } "Entries" -- List all of the entries { "1" -- Describe the first entry below: { "model" "models/foo/foo.mdl" -- Set entry #1's 'model' value } } } [/lua][/QUOTE] Oh Thanks Man! Thanks! I would of never new :p It works good :P
[QUOTE=smallfry;16880484]You're missing a bracket and the spawnlist syntax isn't correct. [lua] "0" --I still don't know the purpose of this. { "Information" { "version" "1" -- Probably only here for backwards compatibility "name" "foo" -- Name that appears in the q menu } "Entries" -- List all of the entries { "1" -- Describe the first entry below: { "model" "models/foo/foo.mdl" -- Set entry #1's 'model' value } } } [/lua][/QUOTE] Im sorry for the double post but, Is this how you set up another model? [lua] "0" { "Information" { "version" "1" "name" "foo" } "Entries" { "1" { "model" "models/foo/foo.mdl" } { "model" "models/test/test.mdl" } } } [/lua]
no, take a look at the spawnlists in the Settings/spawnlist folder.
Make sure you open spawnlists with a text editor such as Notepad++ or Wordpad; the normal Notepad doesn't display line breaks properly which makes some spawnlists unintelligible.
Sorry, you need to Log In to post a reply to this thread.