Search found 383 matches

by decompile
Fri Mar 05, 2021 3:04 pm
Forum: Plugin Development Support
Topic: Character limit for 255 bytes
Replies: 6
Views: 2522

Re: Character limit for 255 bytes

Thank you.

I will try to play around with it. I was trying to find how SayText2 gets the string out of a TranslationStrings class instance but didn't had a success, but looks like its just TranslationStrings.message to return the string.
by decompile
Wed Mar 03, 2021 6:27 pm
Forum: Plugin Development Support
Topic: Character limit for 255 bytes
Replies: 6
Views: 2522

Re: Character limit for 255 bytes

Sorry to bump an older thread of mine. But how can I apply these to a TranslationStrings instance? It throws me an: AttributeError: 'TranslationStrings' object has no attribute 'encode' I'm using TranslationStrings to tokenize player names and other stuff, so its very dynamic in length. The best wou...
by decompile
Tue Mar 02, 2021 12:29 pm
Forum: Plugin Development Support
Topic: Streaming audio to clients
Replies: 4
Views: 220

Re: Streaming audio to clients

What about making a custom page which basically autoplays in the background when you open the url?
by decompile
Sat Feb 13, 2021 12:28 pm
Forum: Plugin Development Support
Topic: Threaded Menu crash
Replies: 7
Views: 370

Re: Threaded Menu crash

Hi, sorry for the late response, I haven't found the time to reply yet. My crashing issue has been resolved, after Ayuto checking out the functions I was using. The reason for the crash was, that I was building the menu in a seperate thread, which allowed the main thread & seperate thread to col...
by decompile
Sun Feb 07, 2021 7:08 am
Forum: Plugin Development Support
Topic: Threaded Menu crash
Replies: 7
Views: 370

Re: Threaded Menu crash

As stated in the second line, I have no way to reproduce this code. I cant explain why it happens.
by decompile
Sun Feb 07, 2021 5:24 am
Forum: Plugin Development Support
Topic: Threaded Menu crash
Replies: 7
Views: 370

Threaded Menu crash

Hey, I'm currently having a random server crash on sending a threaded menu which I cant replicate. It just happens randomly, mostly it works and then suddenly it crashes. loading_state = itertools.cycle([' ', '. ', '.. ', '...']) def build_loading_menu(men...
by decompile
Sat Feb 06, 2021 5:11 pm
Forum: Plugin Development Support
Topic: Overlap menu's
Replies: 2
Views: 156

Re: Overlap menu's

Thank you Ayuto!

Definitely useful to know. I will try to play with it.

Is there actually a limit how many items a menu can take for example in: PagedMenu
by decompile
Fri Feb 05, 2021 3:00 am
Forum: Plugin Development Support
Topic: Overlap menu's
Replies: 2
Views: 156

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

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

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

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

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

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

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

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

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

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

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

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

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...

Go to advanced search