Garry's Mod

Garry's Mod

Custom Animated Flags
 This topic has been pinned, so it's probably important
niumikus  [developer] 3 Feb, 2024 @ 9:14am
Issues 2024
Please Post issues that appear after 03.02.2024 (or still appear) in this Discussion!
< >
Showing 1-9 of 9 comments
cozmoknot 20 Feb, 2024 @ 8:40pm 
I keep getting this error, turns out that a few files had "." in the name but i fixed it. All files are pngs, none of them have special characters, the only ones being letters and spaces.
This is the error i keep getting:

[Custom Animated Flags] lua/autorun/client/caf_client.lua:49: bad argument #1 to 'CRC' (string expected, got no value)
1. CRC - [C]:-1
2. UpdateCAFMaterialsDirec - lua/autorun/client/caf_client.lua:49
3. LoadCAFMaterials - lua/autorun/client/caf_client.lua:166
4. UpdateCAFMaterialsCached - lua/autorun/client/caf_client.lua:121
5. func - lua/entities/defaultflag_caf/cl_init.lua:28
6. unknown - lua/includes/extensions/net.lua:38

I am absolutely illiterate when it comes to code, so could you help me out?

Edit: I also get another error, less frequently however, it is this:

[Custom Animated Flags] lua/weapons/gmod_tool/stools/caf_flagloader.lua:44: bad argument #1 to 'CRC' (string expected, got nil)
1. CRC - [C]:-1
2. OnSelect - lua/weapons/gmod_tool/stools/caf_flagloader.lua:44
3. OnRowSelected - lua/vgui/dfilebrowser.lua:186
4. OnClickLine - lua/vgui/dlistview.lua:447
5. unknown - lua/vgui/dlistview_line.lua:81

I should also mention that I am able to use some of my custom image flags and most others I can't, when i try to use the flag loader it gives me the first error
Last edited by cozmoknot; 20 Feb, 2024 @ 9:27pm
niumikus  [developer] 21 Feb, 2024 @ 5:08am 
I Added some readable error messages to cover these, you will no longer get "The Addon [...] is creating errors" in the top left
i also changed the description, files may not contain ".", or any special characters, this includes whitespaces
cozmoknot 26 Feb, 2024 @ 6:09pm 
Oohhhhhh, spaces.. ok thank you so much
STEPANE 6 Apr, 2024 @ 11:38pm 
On multiplayer flags have a tendency to change back to default, when players get through map brushes. No lua errors appear.
Bartekxa 26 May, 2024 @ 4:07am 
[Custom Animated Flags] lua/autorun/client/caf_client.lua:113: bad argument #1 to 'Decompress' (string expected, got no value)
1. Decompress - [C]:-1
2. LoadCAFMaterialCache - lua/autorun/client/caf_client.lua:113
3. unknown - lua/autorun/client/caf_client.lua:191
pepitos 19 Jul, 2024 @ 8:09pm 
idk if it's just me but "tw.png" and "gb-eng.png" just show the german flag instead
Sednuś 25 Jul, 2024 @ 12:27pm 
i cant find the caf_flags folder, hlep:steamsad:
Originally posted by Mozambik:
i cant find the caf_flags folder, hlep:steamsad:
You gotta create the folder yourself
Nightmare 20 Aug, 2024 @ 11:52pm 
When I noclip out of the map my flags revert back. (im in multiplayer)
< >
Showing 1-9 of 9 comments
Per page: 1530 50