Search found 1411 matches

by Ayuto
Sat Sep 13, 2014 7:41 am
Forum: Whatever
Topic: Resource manager
Replies: 2
Views: 4659

As for Source.Python the name would be SPAM! :D
by Ayuto
Fri Sep 12, 2014 8:41 pm
Forum: Plugin Releases
Topic: Hitmarker + Damage Stats
Replies: 4
Views: 6609

Well done! Though, I have a few suggestions. 1. You don't need to care about making materials downloadable. SP will take care of it, if you just do this. dl = Downloadables() dl.add("materials/overlays/hitmarker/hitmarkerv2.vmt") dl.add("materials/overlays/hitmarke...
by Ayuto
Thu Sep 11, 2014 10:09 am
Forum: Plugin Development Support
Topic: mathlib's is_within_box()
Replies: 7
Views: 5308

I just had a look at the implementation of Vector::WithinAABox(). bool Vector::WithinAABox( Vector const &boxmin, Vector const &boxmax) { return ( ( x >= boxmin.x ) && ( x <= boxmax.x) && ( y >= boxmin.y ) && ( y <= boxmax.y)...
by Ayuto
Wed Sep 10, 2014 4:11 pm
Forum: Plugin Development Support
Topic: mathlib's is_within_box()
Replies: 7
Views: 5308

Please show me your test code. I need something to reproduce the behaviour you explained in your first post. There is no useful information in the code you just posted.
by Ayuto
Wed Sep 10, 2014 3:45 pm
Forum: Plugin Development Support
Topic: mathlib's is_within_box()
Replies: 7
Views: 5308

Works fine for me. from mathlib import Vector point0 = Vector() point1 = Vector(100, 100, 100) # Prints True print(Vector(5, 5, 5).is_within_box(point0, point1)) # Prints False print(Vector(5, 5, 101).is_within_box(point0, point1)) What...
by Ayuto
Tue Sep 09, 2014 6:11 pm
Forum: Plugin Development Support
Topic: Am I doing something wrong, or is there something wrong with the mathlib vector?
Replies: 2
Views: 3359

Yes, this can happen if you convert a pointer to a Python class. The pointer was probably deallocated later. To solve the issue just create a copy of it. def pre_spray_decal(arguments): vector = Vector(*tuple(make_object(Vector, arguments[3]))) player = PlayerEntity&#...
by Ayuto
Sun Sep 07, 2014 2:07 pm
Forum: Plugin Development Support
Topic: [SOLVED] Can't load the plugin...
Replies: 39
Views: 22195

Great! Do you want to upload the files?
by Ayuto
Sun Sep 07, 2014 6:06 am
Forum: Plugin Development Support
Topic: [SOLVED] Can't load the plugin...
Replies: 39
Views: 22195

Have you checked if that is really the path where the new version is installed?

Edit: I think you still misunderstand me. 4 CPUs are unnecessary. It will only use one core unless you add -j4 to the make statement.
by Ayuto
Sat Sep 06, 2014 1:51 pm
Forum: Plugin Development Support
Topic: SayText() not working in CS:GO?
Replies: 25
Views: 18423

It's not our fault that we cannot use hex colors. It's the engine that doesn't allow this. There is nothing we can do.
by Ayuto
Sat Sep 06, 2014 12:33 pm
Forum: Plugin Development Support
Topic: SayText() not working in CS:GO?
Replies: 25
Views: 18423

Works fine for me.

Syntax: Select all

from messages import SayText2
from events import Event

@Event
def player_jump(event):
SayText2(message='\x01a\x02a\x03a\x04a\x05a\x06a\x06a\x07a\x08a').send()
The attachment de_dust20000.jpg is no longer available
by Ayuto
Sat Sep 06, 2014 12:09 pm
Forum: Plugin Development Support
Topic: Respawn player (csgo)
Replies: 30
Views: 18234

by Ayuto
Fri Sep 05, 2014 7:20 pm
Forum: Plugin Development Support
Topic: SayText() not working in CS:GO?
Replies: 25
Views: 18423

If I remember correctly there are 8 colors in CS:GO: \x01 - \x08

The square could be caused by our "fix" we implemented earlier to properly show colors. Maybe Valve has fixed that bug. I will test that tomorrow.
by Ayuto
Fri Sep 05, 2014 7:14 pm
Forum: Whatever
Topic: How about a Facebook group/page?
Replies: 5
Views: 6386

I think the EventScripts and SourceMod forums would be a better place.
by Ayuto
Thu Sep 04, 2014 9:05 pm
Forum: Plugin Development Support
Topic: [SOLVED] Can't load the plugin...
Replies: 39
Views: 22195

Yes, it's 3.4.1. But somehow I'm not able to build all python libraries. I will need to take a look at it at the weekend (if you weren't faster :p ).
by Ayuto
Thu Sep 04, 2014 6:36 pm
Forum: Whatever
Topic: Server crash on SP loading
Replies: 16
Views: 15270

Yes, the only difference is that the code outside is executed at first. After that the load() function is executed.
by Ayuto
Thu Sep 04, 2014 6:13 pm
Forum: Plugin Development Support
Topic: Blinding players and changing models
Replies: 22
Views: 15393

Currently there are no events created by Source.Python. The equivalent for es_map_start is the LevelInit decorator or level_init_listener_manager object. https://github.com/Source-Python-Dev-Team/Source.Python/blob/master/addons/source-python/packages/source-python/listeners/__init__.py#L51 Yes, you...
by Ayuto
Thu Sep 04, 2014 6:09 pm
Forum: Whatever
Topic: Server crash on SP loading
Replies: 16
Views: 15270

Actually that's not true. The whole script is reloaded!

It's just the complement for the unload() function.
by Ayuto
Wed Sep 03, 2014 8:57 pm
Forum: Plugin Development Support
Topic: [SOLVED] Can't load the plugin...
Replies: 39
Views: 22195

Okay, I just recompiled the Python libraries and it seems to fix the issue. Another option would be to statically link GLIBC. Since my internet connection isn't the best one, I will just upload source-python.so and core.so here. http://www.file-upload.net/download-9476915/css.zip.html
by Ayuto
Wed Sep 03, 2014 4:07 pm
Forum: Plugin Development Support
Topic: [SOLVED] Can't load the plugin...
Replies: 39
Views: 22195

I was trying to compile it on a virtual machine, I'll see how much RAM the machine has, it's probably lower than 2GB lol. I'll try with 5GB and 4 CPUs as soon as I'm home, that should be enough. PS: Oh my God, I should've read the error better... it says what it needs lol. For me it was ok with 4Gb...

Go to advanced search