Hi, sorry I didnt notice the errors. I checked my bugreport log and apparently this was reported to me 8 days ago, so I checked into it. I think I fixed it on my server now, it had to do with 9 occurances of "SetAngles(Vector(" and 1 occurance of "SetAngles( Vector(" (and some other that isnt as easy to find using np++ find in files).
I heard a recent gmod update made setangles not accept vectors, altough I havent found any real confirmation on that.
Not sure if SetAngles(Vector()) used to result in Vector():Angle() or Angle(Vector()). Due to some tests with stuff I remember in which way they worked, I think it was Angle(Vector()).
The errors pop up in other addons aswell, but it isnt to hard to fix them ;).
For other people who got this error, simply change Vector( to Angle( and you should be fine. There is however some other occurances that is not like that, hope I found all:
All those are the same lua code:
[@gamemodes/WarMelonsRTS/entities/weapons/gmod_tool/stools/lap_spawnpoints.lua:117] bad argument #1 to 'SetAngles' (Angle expected, got Vector)
[@gamemodes/WarMelonsRTS/entities/weapons/gmod_tool/stools/lap_outposts.lua:74] bad argument #1 to 'SetAngles' (Angle expected, got Vector)
[@gamemodes/WarMelonsRTS/entities/weapons/gmod_tool/stools/lap_resnodes.lua:25] bad argument #1 to 'SetAngles' (Angle expected, got Vector)
[@gamemodes/WarMelonsRTS/entities/weapons/gmod_tool/stools/lap_uplinks.lua:24] bad argument #1 to 'SetAngles' (Angle expected, got Vector)
[@gamemodes/WarMelonsRTS/entities/weapons/gmod_tool/stools/lap_cappoints.lua:23] bad argument #1 to 'SetAngles' (Angle expected, got Vector)
melon:SetAngles (trace.HitNormal) -> melon:SetAngles (Angle(0,0,0))
I do not remember ever seeing those getting spawned in odd angles (The reason I think SetAngles(Vector()) used to do Angle(Vector())). Thus I make it always spawn with Angle(0,0,0).
All those are the same lua code:
[@gamemodes/WarMelonsRTS/entities/weapons/gmod_tool/stools/fightars.lua:54] bad argument #1 to 'SetAngles' (Angle expected, got Vector)
[@gamemodes/WarMelonsRTS/entities/weapons/gmod_tool/stools/lap_strikers.lua:42] bad argument #1 to 'SetAngles' (Angle expected, got Vector)
melon:SetAngles (Ang); -> melon:SetAngles (Ang:Angle());
Here it use a variable named Ang, which on line 22 in first file and 23 in second: local Ang = trace.HitNormal.
All those are the same lua code:
[@gamemodes/WarMelonsRTS/entities/weapons/gmod_tool/stools/lap_cannons.lua:43] bad argument #1 to 'SetAngles' (Angle expected, got Vector)
[@gamemodes/WarMelonsRTS/entities/weapons/gmod_tool/stools/lap_harvesters.lua:44] bad argument #1 to 'SetAngles' (Angle expected, got Vector)
[@gamemodes/WarMelonsRTS/entities/weapons/gmod_tool/stools/l_fightars.lua:52] bad argument #1 to 'SetAngles' (Angle expected, got Vector)
[@gamemodes/WarMelonsRTS/entities/weapons/gmod_tool/stools/lap_mgs.lua:43] bad argument #1 to 'SetAngles' (Angle expected, got Vector)
[@gamemodes/WarMelonsRTS/entities/weapons/gmod_tool/stools/ordermelons.lua:55] bad argument #1 to 'SetAngles' (Angle expected, got Vector)
[@gamemodes/WarMelonsRTS/entities/weapons/gmod_tool/stools/pcannons.lua:41] bad argument #1 to 'SetAngles' (Angle expected, got Vector)
[@gamemodes/WarMelonsRTS/entities/weapons/gmod_tool/stools/lap_snipers.lua:42] bad argument #1 to 'SetAngles' (Angle expected, got Vector)
[@gamemodes/WarMelonsRTS/entities/weapons/gmod_tool/stools/medics.lua:45] bad argument #1 to 'SetAngles' (Angle expected, got Vector)
[@gamemodes/WarMelonsRTS/entities/weapons/gmod_tool/stools/lap_superweapons.lua:56] bad argument #1 to 'SetAngles' (Angle expected, got Vector)
melon:SetAngles (trace.HitNormal); -> melon:SetAngles (trace.HitNormal:Angle());
This will make it have a better angle relative the surface you weld it to.
[@gamemodes/WarMelonsRTS/entities/entities/lap_mortar/init.lua:64] bad argument #1 to 'SetAngles' (Angle expected, got Vector)
expl:SetAngles(angle); -> expl:SetAngles(angle:Angle());
This error gets spammed clientside:
[@weapons\gmod_tool\stools\nobuildareas.lua:88] bad argument #1 to 'SetAngles' (Angle expected, got Vector)
ent:SetAngles( trace.HitNormal ) -> ent:SetAngles( trace.HitNormal:Angle() )
This error spams clientside, probably because of a ghost. shouldnt matter what angle it has if its a ghost, so maybe just convert vector to angle?
Remember the tool is admin only.
Hope this helped, and I am sorry for taking such long time before reading my bugreport.txt :S.
can u plz type where to change it? I mean wich folder? and wich file?
EDIT:
Can you pack the lua files to a .rar file and send them to me somehow? that could help me alot. Please help me!?