nrlulz / ACF

Combat damage system for Garry's Mod
110 stars 117 forks source link

Expression Advanced 2 Functions not able to affect acf entities. #185

Open bladedpenguin opened 9 years ago

bladedpenguin commented 9 years ago

What it says on the tin. I am able to read engine state with acfRPM() or acfActive() or acfIsEngine(), but I can't set it with acfThrottle(100) or acfActive(true). It seems that this extends to default entity functions such as applyTorque(vec(0,0,100000)), which will spin a refrigerator into the sky but does nothing to my cannon. I was thinking this was some kind of balance issue, but apparently E2 functions work just fine. I think E2 has seen it's day, and i look forward to driving a tank with no wiremod at all.

Bubbus commented 8 years ago

Hi, see if c2a9ac435f5ea6c2d79ab99037e2a696a870e2f3 fixed it for you. Could be the case that some server settings were triggering a bug in the EA2 library.

bladedpenguin commented 8 years ago

You have my apologies for taking so long to get back to you. My laptop was destroyed by a cat and it took me a while to replace it. I am now using acf r569 and I can't seem to see any difference in the behavior of acf entities. Looks like I have the following error in the console

[Expression Advanced 2] lua/expadv/operators.lua:361: attempt to index upvalue 'Temp_HelperData' (a nil value)

  1. AddFunctionHelper - lua/expadv/operators.lua:361
    1. unknown - addons/acf/lua/expadv/components/custom/acf.lua:71