Search found 200 matches
- Sun Nov 22, 2015 6:04 am
- Forum: General Discussion
- Topic: SP crashing server No global pointer found for "Server"
- Replies: 4
- Views: 4256
- Sat Nov 21, 2015 9:43 pm
- Forum: General Discussion
- Topic: SP crashing server No global pointer found for "Server"
- Replies: 4
- Views: 4256
SP crashing server No global pointer found for "Server"
The error sadly didn't log to any script files, and I'm running on Win 8.1 (CSGO) so I only have a picture. After this the server lists some more cvars and then crashed, all I did was update my SP install, it ran fine right before I did so. (When updating SP I delete everything in the addons folder ...
- Sat Nov 21, 2015 1:27 am
- Forum: News & Announcements
- Topic: Updated conversion functions
- Replies: 8
- Views: 27956
Alright, I have updated the conversion functions once again to raise an exception instead of returning None in case of a failed conversion. The main post has been updated as well. Thank you for your feedback! :) Awesome work, looking good! :) Thank you very much for all the effort! Agreed! Thanks f...
- Sat Nov 21, 2015 1:23 am
- Forum: Plugin Development Support
- Topic: Restart the round
- Replies: 30
- Views: 18950
What do you want exactly? You could try these console command: "mp_restartgame" = "0" game - If non-zero, game will restart in the specified number of seconds "mp_restartgame_immediate" = "0" game - If non-zero, game will restart immediately Or Mahi could beat me to it, still note the second command...
- Thu Nov 19, 2015 10:16 pm
- Forum: News & Announcements
- Topic: Updated conversion functions
- Replies: 8
- Views: 27956
I honestly really liked the try/except approach, this seems a bit less Pythonic, after all I would think that when I call a conversion function like this, I would expect to not encounter an error in the conversion process, making an exception more appropriate if an error still is encountered? I'm su...
- Thu Nov 19, 2015 4:50 am
- Forum: Code examples / Cookbook
- Topic: Creating and manually firing VMF-like output connections
- Replies: 11
- Views: 31802
- Tue Nov 17, 2015 7:14 am
- Forum: Plugin Requests
- Topic: Plugins converts from Eventscripts to Source Python
- Replies: 35
- Views: 26713
Hey, you already said you don't need iptocountry and esc, but I would actually like them ported to spe :p IP to Country? What do you want specifically? I could easily make a threaded library using some web service for this, but I'm guessing you need an actual plugin? Edit: Actually the old library ...
- Sat Nov 14, 2015 7:51 pm
- Forum: Plugin Development Support
- Topic: Getting a team's player count without iterating?
- Replies: 12
- Views: 8503
I guess the first solutions completes that fast for you, because I'm running the latest SP version and we have recently changed the iterators. While your iterator iterates over Edict objects and uses a different way for filtering, the new iterator iterates over Player objects and accesses dynamic a...
- Sat Nov 14, 2015 5:12 am
- Forum: General Discussion
- Topic: [SP SUGGESTION] Plugins Hot Reloading
- Replies: 2
- Views: 3231
I wouldn't like this unless I could disable it, sometimes I update/move files without immediately wanting them to be reloaded. Especially on a non-development server I don't suddenly want my threads interrupted which are communicating with my database, lose items in memory that the server needs to e...
- Sat Nov 14, 2015 5:01 am
- Forum: API Design
- Topic: Adding Entity/PlayerEntity/WeaponEntity attributes via data
- Replies: 4
- Views: 14665
Adding CTeam::GetNumPlayers(void) [property] team = m_iTeamNum team_name = m_szTeamname [virtual_function] # _ZN5CTeam13GetNumPlayersEv [[get_num_players]] offset_linux = 201 offset_windows = 200 Would be correct like this? (There were no CS specific classes in the table so I'd think this should go ...
- Sat Nov 14, 2015 4:51 am
- Forum: Plugin Development Support
- Topic: Getting a team's player count without iterating?
- Replies: 12
- Views: 8503
If you want, you can look into adding that virtual function into our data: http://forums.sourcepython.com/showthread.php?972 I haven't added the virtual/dynamic function section, but virtuals are listed inside the results files shown at the end of the OP. Sure, I'm fine with that, but I can't test ...
- Sat Nov 14, 2015 4:05 am
- Forum: Plugin Development Support
- Topic: Getting a team's player count without iterating?
- Replies: 12
- Views: 8503
This is what I ended up with: (Excuse all the unneeded/messy imports) Call get_team_player_count(team_num) unassigned seemed to return 0 no matter what, so I didn't include it. from memory import make_object from memory import DataType from memory.manager import manager from memory.manager import Cu...
- Sat Nov 14, 2015 3:06 am
- Forum: Plugin Development Support
- Topic: Getting a team's player count without iterating?
- Replies: 12
- Views: 8503
- Fri Nov 13, 2015 11:23 pm
- Forum: Plugin Development Support
- Topic: Getting a team's player count without iterating?
- Replies: 12
- Views: 8503
Since there's no performance issues yet, I would just go with the len(PlayerIter(team)) solution. Today's computers are way faster than you can even understand, the duration is probably in milliseconds. If you end up with performance issues, that's when you figure out the bottleneck and start impro...
- Fri Nov 13, 2015 11:09 pm
- Forum: Plugin Development Support
- Topic: Getting a team's player count without iterating?
- Replies: 12
- Views: 8503
I'd be using it in an active (as in will actively swap people to keep the teams balanced) teambalancer, and I'm ending up with quite a few calls to this, my test server is running fine, but I know I need to be watchful of performance issues when I'd deploy it on the main server. Isn't there some pla...
- Fri Nov 13, 2015 10:29 pm
- Forum: Plugin Development Support
- Topic: Getting a team's player count without iterating?
- Replies: 12
- Views: 8503
Getting a team's player count without iterating?
The best way I know of of getting a team's player count is len(PlayerIter(team)), Is there a more efficient way?
I know at least the scoreboard knows this at all times.
I know at least the scoreboard knows this at all times.
- Fri Sep 18, 2015 9:19 am
- Forum: General Discussion
- Topic: SourcePython not loading after CSS Update
- Replies: 7
- Views: 5865
Did you update your server or was there another update? There was no other update, both my local dev server and production server didn't update more than once. BTW, so far everything is running fine on my end. Seems they updated CSS to use SteamID3, which is a bummer as I have a lot of old code not...
- Thu Sep 17, 2015 10:02 pm
- Forum: General Discussion
- Topic: SourcePython not loading after CSS Update
- Replies: 7
- Views: 5865
- Thu Sep 17, 2015 9:12 am
- Forum: General Discussion
- Topic: SourcePython not loading after CSS Update
- Replies: 7
- Views: 5865
SourcePython not loading after CSS Update
SP fails to load and crashes srcds.
Console log:
I'm not sure if you guys are aware of this, so I thought I'd post it.
Console log:
Code: Select all
[Source.Python] Loading...
[Source.Python] Could not retrieve interface ServerGameDLL009
Failed to load plugin "addons/source-python"
I'm not sure if you guys are aware of this, so I thought I'd post it.
- Mon Sep 07, 2015 9:03 pm
- Forum: Whatever
- Topic: Any server?
- Replies: 1
- Views: 3886
Sourcemod is really popular right now. With few public plugins for SP, and SP's API constantly changing it's really hard if not impossible for regular server operators to maintain their server with only SourcePython plugins, you basically need a team of developers. I'm talking from expierience, I op...