Image not loading in menu

Every time i try to load the image i get this:

I cannot get the image to load for nothing.


    MainMenu = vgui.Create( "DFrame" )
    MainMenu:SetPos( 192, 100 ) 
    MainMenu:SetSize( 900, 600 )
    MainMenu:SetTitle( "TrenTek User Module" )
    MainMenu:SetBackgroundBlur( true )
    MainMenu:SetVisible( true )
    MainMenu:SetDraggable( true )
    MainMenu:ShowCloseButton( true )
    MainMenu:MakePopup()

    PropertySheet = vgui.Create( "DPropertySheet")
    PropertySheet:SetParent( MainMenu )
    PropertySheet:SetPos( 5, 30 )
    PropertySheet:SetSize( 890, 590 )

   

    local TabOne = vgui.Create( "DPanel" )
    TabOne:SetVisible( true )

    PropertySheet:AddSheet( "Rules", TabOne, "icon16/shield.png",
        false, false, "THe servers rules!" )


    DermaImage = vgui.Create( "DImage", TabOne )
    DermaImage:SetPos( 0, 0 )
    DermaImage:SetImage( "ruless/sdf.vtf" ) -- this is the problem i am having.
    DermaImage:SizeToContents() 

I have been trying for an hour but can’t get it to work. please help.

Location of files:

Delete the .vtf extension in your SetImage line.

I seriously doubt your GMod installation is in C:/GMOD/

[del]Have you tried setting the image to the vmt instead of the vtf?

Where you have [lua]DermaImage:SetImage( “ruless/sdf.vtf” ) – this is the problem i am having.[/lua] change it to vmt.[/del]

The wiki says you are right, I’m not sure…

What? Where?

It could be a server.

[editline]3rd July 2014[/editline]

Or pirated.

It still misses one folder up, unless the executable is on C:/ directly.

That doesn’t change anything.

It isn’t. That is where my server is.

Well it doesn’t explicitly say it, but the example here

Fixed, thanks.

Is the image on your client too?

Make sure you resource.AddFile it and that the file exists on FastDL if you use FastDL, etc.

what do you mean?

I did that. Nothing changed.

If you don’t have the image files in your client installation of Garry’s Mod (via hard copy, workshop, or fastdl), you won’t be able to see it, regardless if it actually is working. That is why he is asking if you have the files on your client.

They are there. He wasn’t specific enough just saying client.

There’s only one thing client can refer to; GMod only has servers and clients.

Can you post what the .vtf looks like?

i hope this is not the issue but here:

If you are sure that the image is in (downloads)/materials/ruless/ on both your client and server, and that you do not have .vtf in your SetImage line, and you have restarted the server since you made these changes, then I’m stumped.

Your vtf is not power of 2 texture, although it will be made power of 2 when you try to convert it to vtf, it may end up with worse quality then you expected.

Post image proof of your file being on your GMod CLIENT installation
Post console log after joining your server
Post serverside for resource.AddFile
Post clientside code for setImage


 
Skeleton Gamemode
Map: gm_construct
Players: 1 / 20
Build: 5627
Server Number: 2

TrenTek Server

trentek
gm_construct
20
76561198067602639
Requesting 1 lua files from the server
ConVarRef mad_bulletspeed doesn't point to an existing ConVar
ConVarRef mad_damagemul doesn't point to an existing ConVar
ConVarRef mad_recoilmul doesn't point to an existing ConVar
ConVarRef gmod_physiterations doesn't point to an existing ConVar
PREP OK
clientside lua startup!
Lua JIT is DISABLED!
You are running ULib version 2.51.
[ULIB] Loading SHARED module: ulx_init.lua
[ULX] Loading CLIENT module: motdmenu.lua
[ULX] Loading CLIENT module: uteam.lua
[ULX] Loading CLIENT module: xgui_client.lua
[ULX] Loading CLIENT module: xgui_helpers.lua
[ULX] Loading CLIENT module: xlib.lua
[ULX] Loading SHARED module: chat.lua
[ULX] Loading SHARED module: fun.lua
[ULX] Loading SHARED module: mapvote.lua
[ULX] Loading SHARED module: menus.lua
[ULX] Loading SHARED module: rcon.lua
[ULX] Loading SHARED module: teleport.lua
[ULX] Loading SHARED module: user.lua
[ULX] Loading SHARED module: userhelp.lua
[ULX] Loading SHARED module: util.lua
[ULX] Loading SHARED module: vote.lua
--- Missing Vgui material HUD/killicons/equalizer
Client "McLovin" spawned in server (192.168.0.2:27006)<STEAM_0:1:53668455>.
ULX version 3.61 loaded.
Welcome to TrenTek Server! We're playing gm_construct.
[UTime]Welcome back McLovin, you last played on this server 07/03/14 03:14:38

///////////////////////////////////////
//  ULX GUI -- Made by Stickly Man!  //
///////////////////////////////////////
// Loading GUI Modules...            //
//   bans.lua                        //
//   commands.lua                    //
//   groups.lua                      //
//   maps.lua                        //
//   settings.lua                    //
// Loading Setting Modules...        //
//   client.lua                      //
//   server.lua                      //
// Loading Gamemode Module(s)...     //
//   No module found!                //
// Modules Loaded!                   //
///////////////////////////////////////

Compact freed 417792 bytes
Redownloading all lightmaps
You're playing on TrenTek Server, enjoy your stay! 

you did mean this for console log right?

Please tell me I am doing something wrong.