Raised This Month: $12 Target: $400
 3% 

Solved Weird plugin conflict, possibly a bug?


Post New Thread Reply   
 
Thread Tools Display Modes
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-08-2017 , 13:06   Re: Weird plugin conflict, possibly a bug?
Reply With Quote #11

Code:
amxx list
Currently loaded plugins:
       name                    version     author            file             status
 [  1] Power Admin Tool        1.0         Carnacior         random.amxx      running
 [  2] Furien: SFX             0.1         Carnacior         set_light.amxx   running
2 plugins, 2 running
Still nothing. Are you sure you don't have a weird metamod plugin?
__________________
Arkshine is offline
aron9forever
Veteran Member
Join Date: Feb 2013
Location: Rromania
Old 10-08-2017 , 13:13   Re: Weird plugin conflict, possibly a bug?
Reply With Quote #12

Quote:
Originally Posted by Arkshine View Post
Code:
amxx list
Currently loaded plugins:
       name                    version     author            file             status
 [  1] Power Admin Tool        1.0         Carnacior         random.amxx      running
 [  2] Furien: SFX             0.1         Carnacior         set_light.amxx   running
2 plugins, 2 running
Still nothing. Are you sure you don't have a weird metamod plugin?
I even typed meta list in the video in the OP
with 1.8.3 only amxmodx and Engine are loaded
with 1.8.2 for some reason more get loaded, 5 in total, even with no extra plugins

To be perfectly honest I have suffered problems with set_lights before on the production server as well, but over there it would only be for the first round after mapchange, then it would go to normal. For first round it would always be max bright, confirmed by other players so not a Linux client problem. I removed the usage from plugin_init and used "#OFF" instead of whatever I guessed the initial light was and the problem was fixed, so I didn't give it much thought, but this was a noticeable difference after updating to 1.8.3.

edit:: actually it would always be full bright for a player until a new round began. I had a hook on round_start where I set the lights to the same value as in plugin_init. I would change the light during the round and reset to normal when new round begins. You could reproduce it by simply reconnecting to the server.
__________________
Meanwhile, in 2050:
Quote:
Originally Posted by aron9forever
useless small optimizations
Quote:
Originally Posted by Black Rose View Post
On a map that is 512x512x128 units you end up with 3,355,443,200,000 different "positions". To store each one of those positions individually in the variable "user_or" you need 12 terabytes of memory.

Last edited by aron9forever; 10-08-2017 at 13:16.
aron9forever is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-08-2017 , 13:33   Re: Weird plugin conflict, possibly a bug?
Reply With Quote #13

I just tried under linux, and I still can't reproduce.

At this point, it may be useful to provide your addons/ zipped (minus all the unrelated stuff) where the bug occurs for you, so I can try as it is.
__________________
Arkshine is offline
aron9forever
Veteran Member
Join Date: Feb 2013
Location: Rromania
Old 10-08-2017 , 13:40   Re: Weird plugin conflict, possibly a bug?
Reply With Quote #14

Here you go, I removed most of the useless stuff and then ran again to make sure it still flickers.
Attached Files
File Type: zip addons.zip (3.66 MB, 39 views)
__________________
Meanwhile, in 2050:
Quote:
Originally Posted by aron9forever
useless small optimizations
Quote:
Originally Posted by Black Rose View Post
On a map that is 512x512x128 units you end up with 3,355,443,200,000 different "positions". To store each one of those positions individually in the variable "user_or" you need 12 terabytes of memory.
aron9forever is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-08-2017 , 14:10   Re: Weird plugin conflict, possibly a bug?
Reply With Quote #15

I tried your addon at it is, and I could see the issue.
I tried to copy your two .amxx in my installation, and I could see the issue as well.

How do you compile exactly your plugins?
Can you provide the exact .sma (attach them) of these two plugins?
__________________
Arkshine is offline
PRoSToTeM@
Veteran Member
Join Date: Jan 2010
Location: Russia, Ivanovo
Old 10-08-2017 , 14:13   Re: Weird plugin conflict, possibly a bug?
Reply With Quote #16

LightStyle engine function requires that passed string is valid until this light style is changed. Passed string is get_amxstring buffer that is changed by register_plugin function. This light style string is used when new player connects to the server.
But I still don't know why this can't be reproduced with 1.8.2.
__________________
PRoSToTeM@ is offline
Send a message via ICQ to PRoSToTeM@ Send a message via Skype™ to PRoSToTeM@
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-08-2017 , 14:15   Re: Weird plugin conflict, possibly a bug?
Reply With Quote #17

Nor I can reproduce on windows/linux with dev version, unless I'm using his .amxx.
__________________

Last edited by Arkshine; 10-08-2017 at 14:15.
Arkshine is offline
aron9forever
Veteran Member
Join Date: Feb 2013
Location: Rromania
Old 10-08-2017 , 14:26   Re: Weird plugin conflict, possibly a bug?
Reply With Quote #18

Quote:
Originally Posted by Arkshine View Post
Nor I can reproduce on windows/linux with dev version, unless I'm using his .amxx.
here you go
I was actually compiling poweradmin under 1.8.1, I think, or 1.8.2 (also shows 1.8.1 when compiling), but I tried again now under the same 1.8.3 compiler as SFX with the same result, so it's not affected.
Attached Files
File Type: zip scripting.zip (490.3 KB, 27 views)
__________________
Meanwhile, in 2050:
Quote:
Originally Posted by aron9forever
useless small optimizations
Quote:
Originally Posted by Black Rose View Post
On a map that is 512x512x128 units you end up with 3,355,443,200,000 different "positions". To store each one of those positions individually in the variable "user_or" you need 12 terabytes of memory.
aron9forever is offline
PRoSToTeM@
Veteran Member
Join Date: Jan 2010
Location: Russia, Ivanovo
Old 10-08-2017 , 14:34   Re: Weird plugin conflict, possibly a bug?
Reply With Quote #19

In 1.8.1 light style is changed every second (passed string is a global char array), I hope in 1.8.2 it is the same, that's why the bug here isn't reproducable. In 1.8.3 'task for every second' was changed to LightStyle hook, so light style is changed only once in most situations and engine uses a get_amxstring buffer.
__________________

Last edited by PRoSToTeM@; 10-08-2017 at 14:35.
PRoSToTeM@ is offline
Send a message via ICQ to PRoSToTeM@ Send a message via Skype™ to PRoSToTeM@
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-08-2017 , 14:42   Re: Weird plugin conflict, possibly a bug?
Reply With Quote #20

You misunderstand me or I don't understand you. I've tested always on 1.8.3-dev. The difference is things are fucked up with plugins compiled against 1.8.1 compiler and are not against 1.8.3 compiler. Don't know if there was a weird compiler bug which has been fixed.
__________________
Arkshine is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:27.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode