Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Source Python doesnt load with newest CS:GO Update #196

Closed
Frag1337 opened this issue May 3, 2017 · 8 comments
Closed

Source Python doesnt load with newest CS:GO Update #196

Frag1337 opened this issue May 3, 2017 · 8 comments
Labels

Comments

@Frag1337
Copy link
Contributor

Frag1337 commented May 3, 2017

Source Python (latest build) doesnt load with the latest CS:GO Update (http://blog.counter-strike.net/index.php/2017/05/18665/).

It just stucks at Loading..

Im using Windows 10.

@KirillMysnik
Copy link
Member

Can't confirm

[Source.Python] Loading...
d:\srcds\csgo\csgo\addons\source-python\packages\source-python\__init__.py:390: UserWarning: sys.stdout and/or sys.stderr is None. All data will be redirected through core.console_message() instead. If you receive this warning, please notify us and tell us your operating system, game and Source.Python version. The information can be posted here: https://github.com/Source-Python-Dev-Team/Source.Python/issues/175. Source.Python should continue working, but we would like to figure out in which situations sys.stdout is None to be able to fix this issue instead of applying a workaround.
  'sys.stdout and/or sys.stderr is None. All data will be redirected through '
[Source.Python] Loaded successfully.
sp info

Date          : 2017-05-04 06:05:48.777595
OS            : Windows-10-10.0.14393
Game          : csgo
SP version    : 573
Server plugins:
   00: Source.Python, (C) 2012-2016, Source.Python Team.
SP plugins:

I have SP installed exclusively.

@satoon101
Copy link
Member

I have this same issue on my local Windows 10. I have narrowed down the issue to this line:

return 50 - (self._level.get_int() * 10)

It seems to be an issue trying to get the ConVar object itself. I added a debug message to print out self._level and SP fails to load, then fails to unload, then the server crashes. Without that message, it just hangs at Loading main module...

@IedSupo
Copy link

IedSupo commented May 7, 2017

ive tried to create a build for sp to test if i can fix it. but when i compile with build.bat on windows i get this error:

C:\Users\tester\Documents\SP GITHUB\Source.Python\src\patches\csgo\lib\win32\release\vs2010\libprotobuf.lib
C:\Users\tester\Documents\SP GITHUB\Source.Python\src\patches\csgo\public\networkvar.h
2 Datei(en) kopiert
Der Befehl "cmake" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.

in english: cmake couldnt be found. i have visual studio etc installed on my system. is there a way to create a manual path in the bat to call cmake? or do i have to modify system variables? this should be the line within build.bat (maybe its messed up by me already, tried this a few days ago or so) :

:: Create the build files
cmake . -B%BUILDDIR% -G"Visual Studio 12" -DBRANCH=%branch%

is it possible to add a manual "cmake path" via console (or even automatic scan) to the bat script, if cmake couldnt be found?

or maybe im just totally off here with the error. maybe someone can help

@KirillMysnik
Copy link
Member

@satoon101 Invincible told me it's probably due to this update:
alliedmodders/hl2sdk@7ba42df
alliedmodders/hl2sdk@8f20c14

Because other than that, there were no significant changes in C++ side since our previous build.

@satoon101
Copy link
Member

satoon101 commented May 7, 2017

@IedSupo - the simplest way to fix your issue would be to simply reinstall cmake or add it to your PATH.

@KirillMysnik - Ok, when I get the chance, I will try to manually build after rolling back my local hl2sdk for csgo. I'll post my findings here when I am done.

@Ayuto
Copy link
Member

Ayuto commented May 7, 2017

@KirillMysnik - Ok, when I get the chance, I will try to manually build after rolling back my local hl2sdk for csgo. I'll post my findings here when I am done.

I already did some tests and with the old tier1.lib everything is working fine. I also recompiled the tier1.lib with the latest SDK changes and it's working fine as well. That's why I have commited the recompiled library:
c8d5bd9

Right now I'm waiting for the buildbot to come back (it's a bit overloaded currently). If that is working fine as well, I'm going to contact psychonic. Maybe something happened to the file during the upload or he accidentally uploaded the wrong files.

@Ayuto Ayuto added the bug label May 7, 2017
@satoon101
Copy link
Member

@Ayuto - I didn't see your commit before. I just tested building locally with that fix, and it works fine now, thank you! Hopefully the buildbot comes back up soon so we can verify with the official builds, as well.

@Frag1337
Copy link
Contributor Author

Frag1337 commented May 8, 2017

Latest official build works

Date          : 2017-05-08 00:23:57.387546
OS            : Windows-10-10.0.15063
Game          : csgo
SP version    : 576

Can confirm.

@Ayuto Ayuto closed this as completed May 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants