Search found 1772 matches
- Tue Mar 21, 2023 5:56 pm
- Forum: Plugin Development Support
- Topic: [Cs:s] SpawnPoints
- Replies: 7
- Views: 196
Re: [Cs:s] SpawnPoints
Your ini file above used tx not just x.
- Mon Mar 20, 2023 5:31 pm
- Forum: Plugin Development Support
- Topic: [Cs:s] SpawnPoints
- Replies: 7
- Views: 196
Re: [Cs:s] SpawnPoints
First, map is a built-in function in Python, so I would avoid using it as a variable name. The issue is that you are looping through all of the keys in maps_path , which from your example is just "maps", and then trying to get maps_path['maps'][ i] where [ i] is "maps". So litera...
- Mon Dec 05, 2022 5:56 pm
- Forum: Plugin Development Support
- Topic: [CS:S] how to set team score properly?
- Replies: 3
- Views: 573
Re: [CS:S] how to set team score properly?
Yes, those properties are for retrieving and setting data. What I did with GG-Scoreboard was stored the values in a dictionary and set the team scores on both round_start and round_end. https://github.com/satoon101/GunGame-Scoreboard/blob/master/addons/source-python/plugins/gungame/plugins/custom/gg...
- Mon Sep 12, 2022 11:42 pm
- Forum: General Discussion
- Topic: Python 3.6 has reached it's EOL. Any plans to shift to any recent version?
- Replies: 6
- Views: 1118
Re: Python 3.6 has reached it's EOL. Any plans to shift to any recent version?
Python 3.11 is supposed to have a significant speed improvement, but I don't know how much that would affect SP.
- Tue Jun 14, 2022 4:03 pm
- Forum: Plugin Development Support
- Topic: [Cs:s] Insta Bomb Defuse
- Replies: 2
- Views: 1088
Re: [Cs:s] Insta Bomb Defuse
You might have to delay it 1 tick instead of doing it directly in the event: from events import Event from entities.entity import Entity from listeners.tick import Delay @Event('bomb_begindefuse') def bomb_begindefuse(game_event): Delay(0, defuse_bomb) def defuse_bomb...
- Tue Feb 22, 2022 9:12 pm
- Forum: API Design
- Topic: Where is the source code ?
- Replies: 6
- Views: 6186
Re: Where is the source code ?
https://github.com/Source-Python-Dev-Te ... aster/src/
You can also check out the wiki:
http://wiki.sourcepython.com/
You can also check out the wiki:
http://wiki.sourcepython.com/
- Fri Feb 18, 2022 11:56 pm
- Forum: Plugin Development Support
- Topic: [HL2:DM] Entity View
- Replies: 3
- Views: 1018
Re: [HL2:DM] Entity View
I'm not sure what to tell you. It works perfectly fine when I test it.
- Sat Feb 12, 2022 12:08 am
- Forum: Plugin Requests
- Topic: HL2:DM BotChat
- Replies: 3
- Views: 1157
Re: HL2:DM BotChat
Unless I am missing something, there are no sounds with this addon. Rewriting it in SP shouldn't be too difficult, though I would definitely reformat the replies db file, probably to json format. I am a little busy this weekend, but if no one else does this, I might give it a go next week.
- Mon Jan 24, 2022 11:02 pm
- Forum: Plugin Development Support
- Topic: configobj.ConfigObjError
- Replies: 21
- Views: 3940
Re: configobj.ConfigObjError
Ok, so the issue is in the ../addons/source-python/data/plugins/lms/database.ini file on the server. Specifically on line #9 in that file.
- Mon Jan 24, 2022 6:47 pm
- Forum: Plugin Development Support
- Topic: configobj.ConfigObjError
- Replies: 21
- Views: 3940
Re: configobj.ConfigObjError
No, the issue has nothing to do with the info.ini file. In the lms.py file, there is likely a line that starts with db_path =
Could you post that line here so we can see which file is causing this error.
Could you post that line here so we can see which file is causing this error.
- Sat Jan 22, 2022 1:23 pm
- Forum: Plugin Development Support
- Topic: configobj.ConfigObjError
- Replies: 21
- Views: 3940
Re: configobj.ConfigObjError
It wouldn't be line 9 of the config.py file. There is a .ini file somewhere that it's reading where line 9 isn't valid. In your lms.py file, what is db_path set to? That path is the location of the .ini file that is causing the error.
- Sat Dec 11, 2021 2:14 pm
- Forum: Plugin Development Support
- Topic: Creating a BeamRingPoint?
- Replies: 4
- Views: 1401
Re: Creating a BeamRingPoint?
I tested your code using my suggestion, but also just using player.origin instead of player.position , and both worked fine. I did have to use a different sprite, though (I used sprites/laser.vmt , since sprites/lghtning.vmt did not work on either of my tests). What game are you testing this on? I a...
- Sat Dec 11, 2021 1:58 pm
- Forum: Plugin Requests
- Topic: HL2:DM SNOW
- Replies: 7
- Views: 1520
Re: HL2:DM SNOW
I was going to take a look at that script and see if I could adapt it for SP, but it says I don't have access.
- Sat Dec 11, 2021 1:56 pm
- Forum: Plugin Development Support
- Topic: Creating a BeamRingPoint?
- Replies: 4
- Views: 1401
Re: Creating a BeamRingPoint?
What is player.position? I think I remember having to increment the z value of the player's origin with BeamRingPoint, otherwise the effect was in the ground.
Syntax: Select all
center = player.origin
center.z += 10
te.center = center
- Fri Dec 10, 2021 11:09 pm
- Forum: Plugin Requests
- Topic: HL2:DM SNOW
- Replies: 7
- Views: 1520
Re: HL2:DM SNOW
Not that this can't be done, but I am certain there was already a thread on here where it was tried previously and we ran into issues. Just search for "snow" and I'm sure you'll find it.
- Tue Nov 09, 2021 7:07 pm
- Forum: Plugin Requests
- Topic: HL2DM-scoreboard and stats
- Replies: 39
- Views: 39890
Re: HL2DM-scoreboard and stats
Change '%a, %m.%y. %H:%M:%S' to '%a, %m.%y. %I:%M:%S%p'
If you don't want the AM/PM, remove the %p at the end.
For reference: https://docs.python.org/3/library/time. ... e.strftime
If you don't want the AM/PM, remove the %p at the end.
For reference: https://docs.python.org/3/library/time. ... e.strftime
- Wed Oct 20, 2021 2:17 pm
- Forum: Plugin Releases
- Topic: Custom chat tag
- Replies: 10
- Views: 7079
Re: Custom chat tag
I have a couple tips for you, if you are interested. First, line 303 will error in CS:GO since the variable naco is only defined in the else clause (variable is named team_color , which does seem more appropriate anyway, for CS:GO): https://github.com/srpg/chat_tag/blob/main/addons/source-python/plu...
- Thu Oct 14, 2021 8:57 pm
- Forum: Plugin Development Support
- Topic: trace attack
- Replies: 6
- Views: 4036
Re: Detect knife attack
untested: from entities import TakeDamageInfo from entities.hooks import EntityCondition from entities.hooks import EntityPreHook from memory import make_object @EntityPreHook(EntityCondition.is_player, get_trace_attack_function) def pre_trace_attack(stack_data): victim = make_object...
- Thu Oct 14, 2021 8:40 pm
- Forum: Plugin Development Support
- Topic: trace attack
- Replies: 6
- Views: 4036
Re: Detect knife attack
That's because the second argument isn't a player:
Syntax: Select all
# this, CTakeDamageInfo, Vector, trace_t, CDmgAccumulator
- Fri Oct 08, 2021 11:18 pm
- Forum: General Discussion
- Topic: Windows 11
- Replies: 4
- Views: 2657
Re: Windows 11
Can you please post the actual output?