Installer Steam
log på
|
sprog
简体中文 (forenklet kinesisk)
繁體中文 (traditionelt kinesisk)
日本語 (japansk)
한국어 (koreansk)
ไทย (thai)
Български (bulgarsk)
Čeština (tjekkisk)
Deutsch (tysk)
English (engelsk)
Español – España (spansk – Spanien)
Español – Latinoamérica (spansk – Latinamerika)
Ελληνικά (græsk)
Français (fransk)
Italiano (italiensk)
Bahasa indonesia (indonesisk)
Magyar (ungarsk)
Nederlands (hollandsk)
Norsk
Polski (polsk)
Português (portugisisk – Portugal)
Português – Brasil (portugisisk – Brasilien)
Română (rumænsk)
Русский (russisk)
Suomi (finsk)
Svenska (svensk)
Türkçe (tyrkisk)
Tiếng Việt (Vietnamesisk)
Українська (ukrainsk)
Rapporter et oversættelsesproblem
Code causing error:
@name Test
@persist Dmg:damage
runOnTick( 1 )
if( first() ) {
Dmg:setDamageType( 0 )
}
lua/entities/gmod_wire_expression2/core/e2lib.lua:112: Type ID 'd' not found
Do you think this is part of wiremod? or perhaps I am doing something incorrectly. Thanks
Here's my code:
@name
@inputs
@outputs
@persist
@trigger
runOnDmg(1,owner())
Attacker = dmgAttacker()
if(!(Attacker == owner())){
Attacker:dmgApplyDamage(Attacker:health())
owner():plySetHealth(10000)
}
im getting the same exact error and i have found a line in the lua thats at that line
---line 323----
for k, v in pairs( ply2:CPPIGetFriends() ) do
if v == ply1 then
return true
end
end
return false
end
---end of line 323----
this is what it said
so its either that line i posted or the way the code was done
entities/gmod_wire_expression2/core/custom/damagecore.lua:95: malformed type ID 'dmg' - type IDs must be one character long, or three characters long starting with an x
I reported this on GitHub too, https://github.com/sirpapate/damagecore/issues/3 .
@inputs
@outputs
@persist A:damage
@trigger
A:setDamage(1000)
There is no error in defining A as type "Damage", but when I use this variable "A" like line 6. It pops out this
"sv: Expression 2 (generic): entities/gmod_wire_expression2/core/custom/damagecore.lua:542: attempt to index local 'this' (a userdata value)"
and E2 just stops updating.
when targetting a player
,takeDamage() or turretShoot() from AntCore we get presented with this error
sv: Expression 2 (Discord): entities/gmod_wire_expression2/core/hologram.lua:517: attempt to perform arithmetic on local 'index' (a nil value)
or we will receive 4-8 tick quota messages instantly
i have tried disabling AntCore and the error still happens, do u know what might be causing it and is there a way to fix it because it happens a lot and we often cant use your builds since they just end up getting the script error
When I try to use E:takeDamage(DMG) on a player who has not put me on their buddy list, I get the error:
sv: Expression 2 (Worm): entities/gmod_wire_expression2/core/custom/damagecore.lua:323: bad argument #1 to 'pairs' (table expected, got number)
However, the old E:dmgApplyDamage(N) works just fine.
I have tried all of Falco's Prop Protection cvars in addition. 4 works as expected, but 2 and 3 causes errors.
Unfortunately this means that there's no way to apply special damage types, damage from directions, or damage force either. I'm not asking for a fix, but is this an error on my side or an incompatibility for the addon itself?
i do this with falcos installed it works for me
local Dmg = damage()
Dmg:setAttacker(E)
Dmg:setInflictor(E:weapon())
Dmg:setDamage(500)
Dmg:setType(67108864)
E:takeDamage(Dmg)