Search found 375 matches

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

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: 7
Views: 1291

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: 3
Views: 3168

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: 1924

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: 15038

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: 1924

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: 2787

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: 3
Views: 3168

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: 14841

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: 14841

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: 14841

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: 14841

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: 14841

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: 21491

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: 12578

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: 12578

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: 2
Views: 11348

Re: Hook Player Spray

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

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: 18948

Re: Development status update (August 2019)

Yaaay for python 3.8 +1
by decompile
Sat Mar 02, 2019 2:47 pm
Forum: General Discussion
Topic: [CS:GO] How to add API in gameserver
Replies: 5
Views: 1662

Re: [CS:GO] How to add API in gameserver

You can, for example, make your server run sockets and requests as to your wish. (Use the unendless world of python packages)

Only downside is, that your server has to be running for this. In case its down, and you kind of want to restart it via an API, it wont work.

Go to advanced search