Welcome to the new Diaspora forums, please let us know if you see anything broken! Notice: Some users may need to reupload their avatars due to an issue during forum setup!
E2 bugs: E:getShield()
Xell
Registered Posts: 11
Hi, how to report bugs? here?
If so there is report:
btw: Same with: getHullPercent() getHullMax() shield,armor
If so there is report:
@inputs A:entity B = A:getHull()gives Error:
i know where is problem, but its annoying when i have to check the target every time...sv: Expression 2 (generic): entities/gmod_wire_expression2/core/custom/ShipCore.lua:8: Tried to use a NULL ent
btw: Same with: getHullPercent() getHullMax() shield,armor
Comments
Lλmbdλ: donations for coding the space future of diaspora :>
Get your extra long EVE trial here!
EDIT: Just tried on server 2 and it doesnt work too!
Lλmbdλ: donations for coding the space future of diaspora :>
Get your extra long EVE trial here!
Edit: (like when you target the E2 chip) works well (returns "0")
A lot of things will crash an E2, but most of those are trying to do things to NULL values. What you wanna do here is check if A is not null before doing your check:
That's not a bug, that's just programming.
I know about and i found a solution almost instantly but by "while(perf()) test" with valid entity and second timer i got 15,000(the code below) tries per second from 45,000(the code without "if(C!=noentity())") And finally its hard to find line with "scrip error" in long code..
Edit: i got 17 000 tries per scond with :P
and each other programming language would scream at you: "ERROR AT LINE 500 YOU DUMBASS YOU CANNOT DIVIDE STRING BY VECTOR"
Command doesn't much like being given an input that isn't a ship core, I expect it hates NULL entities