• Fixing old gamemode, gets this error.
    7 replies, posted
I don't get what's wrong.. [lua][ERROR] lua/vgui/dimage.lua:146: attempt to index local 'Mat' (a nil value) 1. FixVertexLitMaterial - lua/vgui/dimage.lua:146 2. SetImage - lua/vgui/dimage.lua:124 3. Setup - lua/vgui/dpropertysheet.lua:42 4. AddSheet - lua/vgui/dpropertysheet.lua:190 5. Populate - gamemodes/sandbox/gamemode/spawnmenu/creationmenu.lua:33 6. Init - gamemodes/sandbox/gamemode/spawnmenu/creationmenu.lua:11 7. Create - lua/includes/extensions/client/panel/scriptedpanels.lua:153 8. Init - gamemodes/sandbox/gamemode/spawnmenu/spawnmenu.lua:19 9. Create - lua/includes/extensions/client/panel/scriptedpanels.lua:153 10. fn - gamemodes/sandbox/gamemode/spawnmenu/spawnmenu.lua:213 11. unknown - addons/ulib/lua/ulib/shared/hook.lua:183 [/lua]
my my, errors! let me use my magic to fix it. no really, we need the full code
Well it appears the problem here is that you're attempting to index a local variable 'Mat', which is a nil value. EDIT: Seriously though, looking through the source for dimage.lua, it looks like you're trying to 'SetImage' on a texture that doesn't exist.
Sorry for not posting the code.. and I have a reason WHY I don't.. NONE of these files are in my gamemode -.- and why should I post dimage.lua when I haven't edited that?
Just post whatever you made that created this error. You are being very vague about your errors. It's like saying "Problem with my headlights is they don't work, i'm not telling you what car or what headlight or even letting you take a look at my car in general, but fix it!". None can help you until you give atleast a peek at what you are trying to do...
[QUOTE=0oRichard;39429404]Just post whatever you made that created this error. You are being very vague about your errors. It's like saying "Problem with my headlights is they don't work, i'm not telling you what car or what headlight or even letting you take a look at my car in general, but fix it!". None can help you until you give atleast a peek at what you are trying to do...[/QUOTE] I didn't edit this file, I didn't edit any file that have Mat in it :s
Your gamemode is creating a DImage panel with incorrect values.
[QUOTE=Agent766;39493596]Your gamemode is creating a DImage panel with incorrect values.[/QUOTE] Thank you.
Sorry, you need to Log In to post a reply to this thread.