Search found 416 matches

by decompile
Fri Feb 05, 2021 3:00 am
Forum: Plugin Development Support
Topic: Overlap menu's
Replies: 2
Views: 2255

Overlap menu's

Hello,

is the Menu Class defined to not overlap an active menu when a new menu gets sent to a player?

Would it be possible to change this behaviour, by making new menus overlap the active ones? (Or as an alternative close active when a new menu gets sent?)


Thanks
by decompile
Wed Jun 17, 2020 8:23 pm
Forum: Whatever
Topic: Linking Origin to Steam
Replies: 1
Views: 2900

Re: Linking Origin to Steam

If you bought a UBISOFT game, you started the game on steam, it opened the uPlay launcher where you had to login and link.

Probably the same with EA games and origin.
by decompile
Wed Jun 17, 2020 8:21 pm
Forum: Plugin Releases
Topic: [CSGO] Curving Flash
Replies: 14
Views: 12617

Re: [CSGO] Curving Flash

This is awesome. I love the video :D

5 stars, if this was a review
by decompile
Mon May 11, 2020 8:55 pm
Forum: General Discussion
Topic: libffi6 on ubuntu 20.04
Replies: 4
Views: 10911

Re: libffi6 on ubuntu 20.04

Method 2 worked, thank you!
by decompile
Thu Apr 30, 2020 3:25 pm
Forum: Plugin Development Support
Topic: Write File in Bytes
Replies: 5
Views: 5063

Re: Write File in Bytes

@VinciT Thanks, I totally forgot about it. @DeaD_EyE Thanks for the help so far. I Will write in chunks then. Do you maybe know how to save the data in binary code aswell? (Also decoding it for loading it) I saw many sourcemod user use https://sm.alliedmods.net/new-api/files/File/Write which automat...
by decompile
Thu Apr 30, 2020 3:34 am
Forum: Plugin Releases
Topic: ProjectileTrails v1.0.0
Replies: 14
Views: 24067

Re: ProjectileTrails v1.0.0

As satoon said, your error isn't related to the plugin itself, instead to the TranslationStrings file you must have edited.
by decompile
Thu Apr 30, 2020 3:31 am
Forum: Plugin Development Support
Topic: Write File in Bytes
Replies: 5
Views: 5063

Write File in Bytes

Hello, I'm currently trying to write data to a file and I heard you can save alot in file size by saving it in bytes. (Also to reduce lag on saving the file) I'm currently using this for testing: from time import time from paths import GAME_PATH file_path = GAME_PATH / 'test.txt' timestamp =...
by decompile
Tue Apr 28, 2020 4:49 pm
Forum: General Discussion
Topic: Stopping workshop maps from overriding cvars
Replies: 8
Views: 8046

Re: Stopping workshop maps from overriding cvars

I think using server_cvar event should get manual cvar changing via console. from events import Event from cvars import ConVar from listeners import OnConVarChanged from listeners.tick import Delay convars = { 'mp_roundtime': '0', 'mp_maxrounds': '0', 'mp_timelimi...
by decompile
Tue Apr 28, 2020 3:33 am
Forum: General Discussion
Topic: libffi6 on ubuntu 20.04
Replies: 4
Views: 10911

libffi6 on ubuntu 20.04

Hello, So I'm running Ubuntu 20.04 LTS, and on server start, I get following: ImportError: libffi.so.6: cannot open shared object file: No such file or directory [Source.Python] Could not initialize python. Checking requirements in wiki, I found I have to execute following: sudo apt-get install zlib...
by decompile
Thu Apr 09, 2020 7:41 pm
Forum: Plugin Development Support
Topic: global declaration
Replies: 8
Views: 18933

Re: global declaration

Works now, thank you.

I actually didnt know it only copies the value, instead of getting the "reloaded" one.
by decompile
Thu Apr 09, 2020 7:06 pm
Forum: Plugin Development Support
Topic: global declaration
Replies: 8
Views: 18933

Re: global declaration

If I do the above check in globals.py, it prints the updated value.
by decompile
Thu Apr 09, 2020 7:04 pm
Forum: Plugin Development Support
Topic: global declaration
Replies: 8
Views: 18933

Re: global declaration

in test.py

Syntax: Select all

from events import Event
from .globals import test_variable

@Event('round_start')
def round_start(GameEvent):
print(test_variable)
by decompile
Thu Apr 09, 2020 6:56 pm
Forum: Plugin Development Support
Topic: global declaration
Replies: 8
Views: 18933

Re: global declaration

You could please post the original test code of your test.py? The posted one cannot work, because set_test_variable is not defined in that scope (it should be globals.set_test_variable and that should work fine). My guess is that you did a from globals import * previously? Oh my bad, I just wrote i...
by decompile
Thu Apr 09, 2020 6:06 pm
Forum: Plugin Development Support
Topic: global declaration
Replies: 8
Views: 18933

global declaration

Hey, Im having a problem with declaring a global variable across modules. Example: globals.py test_variable = None def set_test_variable(value): global test_variable test_variable = value test.py from listeners import OnLevelInit from .globals import set_test_variable @OnLevelInit def on_lev...
by decompile
Thu Apr 09, 2020 3:44 am
Forum: Code examples / Cookbook
Topic: [ANY] Make entities bounce (or hop)
Replies: 4
Views: 34136

Re: [ANY] Make entities bounce (or hop)

Funny idea. :D Good job
by decompile
Thu Apr 09, 2020 3:43 am
Forum: Plugin Development Support
Topic: Strip Color Codes (HEX) from TranslationStrings
Replies: 4
Views: 15058

Re: Strip Color Codes (HEX) from TranslationStrings

Using different strings is a possibility, another would be to inherit the message class: import re from messages import TextMsg from messages import HudDestination RE_STRIP_COLORS = re.compile(r'\x07[a-fA-F0-9]{6}|\x08[a-fA-F0-9]{8}') class MyTextMsg(TextMsg): def protobuf&#...
by decompile
Tue Apr 07, 2020 6:39 pm
Forum: Plugin Development Support
Topic: Strip Color Codes (HEX) from TranslationStrings
Replies: 4
Views: 15058

Strip Color Codes (HEX) from TranslationStrings

How can I strip color codes from TranslationStrings? I tried: RE_STRIP_COLORS = re.compile(r'\x07[a-fA-F0-9]{6}|\x08[a-fA-F0-9]{8}') def strip_colors(message): print(type(message)) return RE_STRIP_COLORS.sub('', message) def tell_console(in...
by decompile
Thu Apr 02, 2020 10:42 pm
Forum: Plugin Development Support
Topic: Hook Player Spray
Replies: 4
Views: 14482

Re: Hook Player Spray

Thank you :)
by decompile
Thu Apr 02, 2020 9:59 pm
Forum: Plugin Development Support
Topic: Hook Player Spray
Replies: 4
Views: 14482

Hook Player Spray

Hello,

could you tell me how I can hook player sprays in CS:S?

I just need the information which index used the spray.

Thanks
by decompile
Wed Nov 27, 2019 5:23 pm
Forum: Development Status Updates
Topic: Development status update (August 2019)
Replies: 9
Views: 27242

Re: Development status update (August 2019)

Yaaay for python 3.8 +1

Go to advanced search