I will have more and more simple questions so I'll use this post for my questions instead of having to make 10+ posts.
Questions:
1) Where does garrymod look for an image when you use "DImage.SetImage"? Like where do you place it when you enter something like, "blabla.jpg"?
It dosent look for a JPEG it looks for a .vtf and its base folder is materials.
You have to convert your picture to a vtf file (Valve texture file) I use VTFEdit for that. [url]http://developer.valvesoftware.com/wiki/VTFEdit[/url]
there are good tutorials about how to use it on gamebanana.com
[url]http://www.gamebanana.com/tools/2891[/url]
[url]http://www.gamebanana.com/tuts/6392[/url]
Make the jpg to a vtf using what Christian said above. YOu also need a vmt
Put the vtf and vmt in the materials folder (if this is a gamemode thats content/materials) then you load it thats way
ie. if your on a gamemode the path might be
content/materials/WaterRatj/blabla.vtf
content/materials/WaterRatj/blabla.vmt
then use
DImage:SetImage("WaterRatj/blabla")
[QUOTE=faceguydb;29445873]Make the jpg to a vtf using what Christian said above. YOu also need a vmt
Put the vtf and vmt in the materials folder (if this is a gamemode thats content/materials) then you load it thats way
ie. if your on a gamemode the path might be
content/materials/WaterRatj/blabla.vtf
content/materials/WaterRatj/blabla.vmt
then use
DImage:SetImage("WaterRatj/blabla")[/QUOTE]
All your posts seem to be you waiting for someone to post advice then you just reword it trying to make your self look smarter.
Wow, it's a long time ago i visited gamebanana.
[QUOTE=King Flawless;29445902]All your posts seem to be you waiting for someone to post advice then you just reword it trying to make your self look smarter.[/QUOTE]
[QUOTE]Like where do you place it[/QUOTE]
I told him how top structure it after he made the vtf. I was answering his question.
How ever you post brought absolutely no gain to the conversation. You make your self look more immature by following me around raging.
Thanks all.
Glad to see the community is still handing help to newbies like me :D
Sorry, you need to Log In to post a reply to this thread.