Page 2 of 2

Re: [HL2:DM] Let bodies drop something

Posted: Sat Mar 11, 2017 5:36 pm
by L'In20Cible
Painkiller wrote:The model is always pink and black.

That's normal. Into item_equipment.vmt, you can see the path of the vtf:

Code: Select all

models/items/item_equipment

So you need to place the file item_equipment.vmt and item_equipment.vtf file into the ../materials/models/items/* directory.

Re: [HL2:DM] Let bodies drop something

Posted: Sat Mar 11, 2017 5:55 pm
by Painkiller
Yes is my mistake.

Thus now also the 2 error solved.

Thanks to all who helped

Re: [HL2:DM] Let bodies drop something

Posted: Tue Mar 14, 2017 6:48 pm
by Painkiller
Ok I unfortunately found,
The model is half-baked in the ground.

can fix this ?

Re: [HL2:DM] Let bodies drop something

Posted: Wed Mar 22, 2017 7:24 pm
by Painkiller
Can nobody held with this?

Re: [HL2:DM] Let bodies drop something

Posted: Sun Jun 25, 2017 6:37 pm
by Painkiller
For some time the backpack has disappeared, half in the ground.

I have nothing changed except SP update.

Re: [HL2:DM] Let bodies drop something

Posted: Sat Jul 01, 2017 8:36 am
by Painkiller
Could someone help me with this problem?

Re: [HL2:DM] Let bodies drop something

Posted: Sat Oct 07, 2017 9:22 am
by Painkiller
Hi i find a problem.

Code: Select all

e with "grenade_frag"

[SP] Caught an Exception:
Traceback (most recent call last):
  File "../addons/source-python/packages/source-python/events/listener.py", line 92, in fire_game_event
    callback(game_event)
  File "../addons/source-python/plugins/weapon_drop/weapon_drop.py", line 77, in _drop_pack
    primary_ammo = weapon.ammo
  File "../addons/source-python/packages/source-python/weapons/_base.py", line 72, in get_ammo
    player = self._validate_ammo()
  File "../addons/source-python/packages/source-python/weapons/_base.py", line 57, in _validate_ammo
    ) or self.ammoprop == -1:
  File "../addons/source-python/packages/source-python/entities/_base.py", line 113, in __getattr__
    return getattr(make_object(server_class, self.pointer), attr)
  File "../addons/source-python/packages/source-python/entities/classes.py", line 552, in fget
    value = getattr(ptr, 'get_' + type_name)(offset)

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte


and another problem you can picup infinite smg1_grenades

Re: [HL2:DM] Let bodies drop something

Posted: Tue Jun 04, 2019 6:57 am
by Painkiller
Hello, now I found this error in the logs.

Code: Select all

[SP] Caught an Exception:
Traceback (most recent call last):
  File "../addons/source-python/packages/source-python/events/listener.py", line 92, in fire_game_event
    callback(game_event)
  File "../addons/source-python/plugins/weapon_drop/weapon_drop.py", line 78, in _drop_pack
    primary_ammo = weapon.ammo
  File "../addons/source-python/packages/source-python/weapons/_base.py", line 73, in get_ammo
    player = self._validate_ammo()
  File "../addons/source-python/packages/source-python/weapons/_base.py", line 61, in _validate_ammo
    weapon=self.classname

ValueError: Unable to get ammoprop for weapon_slam

Re: [HL2:DM] Let bodies drop something

Posted: Fri Sep 13, 2019 5:36 pm
by Painkiller
I'd like to insert a pickup sound.
Would that serve as an example?

Syntax: Select all

Sound('/ambient/machines/thumper_startup1.wav').play(player.index)


Or do I still need this?

Syntax: Select all

from players.helpers import index_from_userid

Re: [HL2:DM] Let bodies drop something

Posted: Wed Sep 18, 2019 11:32 am
by Painkiller
Nobody can help ?

Re: [HL2:DM] Let bodies drop something

Posted: Mon Oct 14, 2019 7:14 pm
by Sam
Painkiller wrote:I'd like to insert a pickup sound.
Would that serve as an example?

Syntax: Select all

Sound('/ambient/machines/thumper_startup1.wav').play(player.index)


Or do I still need this?

Syntax: Select all

from players.helpers import index_from_userid

Why use a separate function when the first method works more conveniently?

Re: [HL2:DM] Let bodies drop something

Posted: Mon Oct 14, 2019 7:18 pm
by Sam
Painkiller wrote:For some time the backpack has disappeared, half in the ground.

I have nothing changed except SP update.

Code: Select all

vec[ z ] += 90 # Need to fix the coordinates. And etc.

Re: [HL2:DM] Let bodies drop something

Posted: Mon Oct 14, 2019 7:20 pm
by Sam
Painkiller wrote:Hi i find a problem.

Code: Select all

e with "grenade_frag"

[SP] Caught an Exception:
Traceback (most recent call last):
  File "../addons/source-python/packages/source-python/events/listener.py", line 92, in fire_game_event
    callback(game_event)
  File "../addons/source-python/plugins/weapon_drop/weapon_drop.py", line 77, in _drop_pack
    primary_ammo = weapon.ammo
  File "../addons/source-python/packages/source-python/weapons/_base.py", line 72, in get_ammo
    player = self._validate_ammo()
  File "../addons/source-python/packages/source-python/weapons/_base.py", line 57, in _validate_ammo
    ) or self.ammoprop == -1:
  File "../addons/source-python/packages/source-python/entities/_base.py", line 113, in __getattr__
    return getattr(make_object(server_class, self.pointer), attr)
  File "../addons/source-python/packages/source-python/entities/classes.py", line 552, in fget
    value = getattr(ptr, 'get_' + type_name)(offset)

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte


and another problem you can picup infinite smg1_grenades

Code: Select all

# UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte


Maybe ASCII, UTF-16-LE, UTF-16-BE? :tongue:

Re: [HL2:DM] Let bodies drop something

Posted: Mon Oct 14, 2019 7:23 pm
by Sam
Painkiller wrote:Hello, now I found this error in the logs.

Code: Select all

[SP] Caught an Exception:
Traceback (most recent call last):
  File "../addons/source-python/packages/source-python/events/listener.py", line 92, in fire_game_event
    callback(game_event)
  File "../addons/source-python/plugins/weapon_drop/weapon_drop.py", line 78, in _drop_pack
    primary_ammo = weapon.ammo
  File "../addons/source-python/packages/source-python/weapons/_base.py", line 73, in get_ammo
    player = self._validate_ammo()
  File "../addons/source-python/packages/source-python/weapons/_base.py", line 61, in _validate_ammo
    weapon=self.classname

ValueError: Unable to get ammoprop for weapon_slam

Code: Select all

# ValueError: Unable to get ammoprop for weapon_slam

Not my environment but it is written that for this weapon there is no prop for ammo.