Page 1 of 1

Eventscript_Emulator

Posted: Mon Apr 09, 2018 4:51 pm
by ae2x
Hi!

I just installed Source.Python on my counter strike source server and also tryed this Eventscript Emulator but it wont load that script ..

This is erro when i try to load it



sp plugin load es_emulator
[SP] Loading plugin 'es_emulator'...
Adding "/game/cstrike/addons/source-python/plugins/es_emulator/eventscripts" to sys.path.
Adding "/game/cstrike/addons/source-python/plugins/es_emulator/eventscripts/_libs/python" to sys.path.
Initializing console variables...
Initializing console commands...

[SP] Caught an Exception:
Traceback (most recent call last):
File "../addons/source-python/packages/source-python/plugins/command.py", line 162, in load_plugin
plugin = self.manager.load(plugin_name)
File "../addons/source-python/packages/source-python/plugins/manager.py", line 193, in load
plugin._load()
File "../addons/source-python/packages/source-python/plugins/instance.py", line 76, in _load
self.module.load()
File "../addons/source-python/plugins/es_emulator/es_emulator.py", line 42, in load
from . import cmds
File "../addons/source-python/plugins/es_emulator/cmds.py", line 20, in <module>
from .logic import cfg_scripts
File "../addons/source-python/plugins/es_emulator/logic.py", line 61, in <module>
from .helpers import _is_dead
File "../addons/source-python/plugins/es_emulator/helpers.py", line 121, in <module>
raise ValueError('Unable to find C library.')

ValueError: Unable to find C library.


[SP] Plugin 'es_emulator' was unable to be loaded.


And when i try to unload it


sp plugin unload es_emulator:

sp plugin unload es_emulator
[SP] Unloading plugin 'es_emulator'...
[SP] Unable to unload plugin 'es_emulator' as it is not currently loaded.


Any help? :D

Im new with this source.python!-

Re: Eventscript_Emulator

Posted: Mon Apr 09, 2018 5:28 pm
by Ayuto
Which Linux distribution do you use?

Re: Eventscript_Emulator

Posted: Mon Apr 09, 2018 6:29 pm
by ae2x
Ayuto wrote:Which Linux distribution do you use?


Im not sure what provider use :( should i ask them if they even answer .. i just bought server.

Re: Eventscript_Emulator

Posted: Mon Apr 09, 2018 7:17 pm
by Ayuto
Well, you can try replacing the following line with two possible values (it's just a blind guess):
https://github.com/Ayuto/EventScripts-E ... rs.py#L119

#1

Syntax: Select all

clib_path = 'libc.so.6'


#2

Syntax: Select all

clib_path = 'libc.so'

Re: Eventscript_Emulator

Posted: Mon Apr 09, 2018 8:39 pm
by ae2x
Well that libc.so.6 worked but there is an error

[EventScripts] Loaded esc
[SP] Successfully loaded plugin 'es_emulator'.
ERROR: Could not load keygroup: addons/source-python/plugins/es_emulator/eventscripts/corelib/interfaces/AuthorizationService/es_AuthorizationService_db.txt!
[corelib/interfaces/register 232] es_foreachval: The key '_i_AuthorizationService/_constants' could not be found

Re: Eventscript_Emulator

Posted: Tue Apr 10, 2018 5:20 am
by Ayuto
You can ignore that for now.