Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
What are you doing wrong? You haven't really stated the problem.
Does the model use the VALVe skeleton? Does it not compile?
Will it not show up in game?
What he said. No info = No answer.
So, I do all this, and supposedly set up the files so I can go and use the model. When I load a map, a message pops up saying "Something is causing script errors", which I know is the model because the message never popped up before adding the model. I open up the Player Model menu and it isn't there.
My theory is that I didn't write the path to the MDL file right, but it appears I've done everything right. So what's going on?
Paste this into your lua script to get the proper directory.
Your script should look something like this;
I put my models folder containing the MDL in the same folder as the hl2.exe, create the path with the LUA script, and get the model?
Sorry, I'm very new to Source modding.
Edit: Well, nope.
C:\Program Files (x86)\Steam\steamapps\common\GarrysMod\garrysmod\models
(Not the same folder as hl2.exe)
But I would forget about that and instead put the model in the folder of the addon itself.
Follow the steps below VVV
For your lua script, I would put it in a path like this;
C:\Program Files (x86)\Steam\steamapps\common\GarrysMod\garrysmod\addons\NameOfAddon\lua\autorun\nameofscript.lua
And your model should go in;
C:\Program Files (x86)\Steam\steamapps\common\GarrysMod\garrysmod\addons\NameOfAddon\models\extrapathshereifany\mymodel.mdl
(This way if you upload the addon to the workshop, the model will be included - Don't forget textures!)
(This includes the
.dx90.vtx
.dx80.vtx
.phy
.mdl
.vvd)
Sorry this may be a bit cluttered for you, I can try to go into more depth if you wish.
[ERROR] lua/autorun/doomguy.lua:1: invalid escape sequence near '"addons'
1. unknown - lua/autorun/doomguy.lua:0
It seems like the directory won't recognize the addon or the script.