Svn

General discussion for off-topic subjects.
tnarocks
Member
Posts: 56
Joined: Fri Aug 03, 2012 1:35 am

Svn

Postby tnarocks » Tue Jan 15, 2013 5:00 am

Is there a svn that can download the different versions of source python? And if there is can you post the address and the port and what porgram need to use to download.
User avatar
satoon101
Project Leader
Posts: 2697
Joined: Sat Jul 07, 2012 1:59 am

Postby satoon101 » Tue Jan 15, 2013 5:39 am

Use the "Source Code" link at the top of the forums to navigate to the source code. Also, see this post on how to get the repository yourself:
http://www.sourcepython.com/showthread.php?26-I-can-t-seem-to-find-installation-files&p=129&viewfull=1#post129

We use Mercurial instead of SVN for this project, so TortoiseSVN will not work for it, but TortoiseHG is recommended.

Satoon
tnarocks
Member
Posts: 56
Joined: Fri Aug 03, 2012 1:35 am

Postby tnarocks » Thu Jan 24, 2013 2:06 am

I get this error when I try compile.

Code: Select all

1>------ Build started: Project: ZERO_CHECK, Configuration: Debug Win32 ------
1>  Checking Build System
1>  CMake does not need to re-run because C:/Users/Matt/Desktop/Source Python/src/CMakeFiles/generate.stamp is up-to-date.
2>------ Build started: Project: core, Configuration: Debug Win32 ------
3>------ Build started: Project: source-python, Configuration: Debug Win32 ------
2>  Building Custom Rule C:/Users/Matt/Desktop/Source Python/src/CMakeLists.txt
2>  CMake does not need to re-run because C:\Users\Matt\Desktop\Source Python\src\CMakeFiles\generate.stamp is up-to-date.
3>  Building Custom Rule C:/Users/Matt/Desktop/Source Python/src/CMakeLists.txt
3>  CMake does not need to re-run because C:\Users\Matt\Desktop\Source Python\src\CMakeFiles\generate.stamp is up-to-date.
3>  loader_main.cpp
2>  sp_python.cpp
3>tier1.lib(strtools.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in loader_main.obj
3>     Creating library C:/Users/Matt/Desktop/Source Python/src/Debug/source-python.lib and object C:/Users/Matt/Desktop/Source Python/src/Debug/source-python.exp
3>C:\Users\Matt\Desktop\Source Python\src\Debug\source-python.dll : fatal error LNK1319: 1 mismatches detected
2>  sp_main.cpp
2>  sp_gamedir.cpp
2>  sp_addon.cpp
2>  export_events.cpp
2>  export_main.cpp
2>  export_player.cpp
2>  export_shared.cpp
2>  engine_main.cpp
2>  engine_server.cpp
2>  engine_basehandle.cpp
2>  engine_misc.cpp
2>  engine_sound.cpp
2>  engine_trace.cpp
2>  cvar_concommandbase.cpp
2>  cvar_concommand.cpp
2>  cvar_convar.cpp
2>  cvar_flags.cpp
2>  cvar_icvar.cpp
2>  cvar_main.cpp
2>  Generating Code...
2>  Compiling...
2>  clientcmd_manager.cpp
2>  clientcmd_main.cpp
2>  misc_main.cpp
2>  misc_effects.cpp
2>  misc_stringtables.cpp
2>  entity_main.cpp
2>  entity_edict.cpp
2>  entity_generator.cpp
2>  entity_props.cpp
2>  entity_factory.cpp
2>  binutils_scanner.cpp
2>  binutils_main.cpp
2>  binutils_dyncall.cpp
2>  binutils_memtools.cpp
2>  netmessages.pb.cc
2>  cstrike15_usermessages.pb.cc
2>  bindings.cpp
2>  CCSUsrMsg_AchievementEvent.cpp
2>  CCSUsrMsg_AdjustMoney.cpp
2>  CCSUsrMsg_AmmoDenied.cpp
2>  Generating Code...
2>  Compiling...
2>  CCSUsrMsg_BarTime.cpp
2>  CCSUsrMsg_CallVoteFailed.cpp
2>  CCSUsrMsg_ClientInfo.cpp
2>  CCSUsrMsg_CloseCaption.cpp
2>  CCSUsrMsg_CloseCaptionDirect.cpp
2>  CCSUsrMsg_CurrentTimescale.cpp
2>  CCSUsrMsg_Damage.cpp
2>  CCSUsrMsg_DesiredTimescale.cpp
2>  CCSUsrMsg_DisconnectToLobby.cpp
2>  CCSUsrMsg_DisplayInventory.cpp
2>  CCSUsrMsg_Fade.cpp
2>  CCSUsrMsg_GameTitle.cpp
2>  CCSUsrMsg_Geiger.cpp
2>  CCSUsrMsg_HintText.cpp
2>  CCSUsrMsg_HudMsg.cpp
2>  CCSUsrMsg_HudText.cpp
2>  CCSUsrMsg_ItemDrop.cpp
2>  CCSUsrMsg_ItemPickup.cpp
2>  CCSUsrMsg_KeyHintText.cpp
2>  CCSUsrMsg_KillCam.cpp
2>  Generating Code...
2>  Compiling...
2>  CCSUsrMsg_MarkAchievement.cpp
2>  CCSUsrMsg_MatchEndConditions.cpp
2>  CCSUsrMsg_MatchStatsUpdate.cpp
2>  CCSUsrMsg_PlayerStatsUpdate.cpp
2>  CCSUsrMsg_PlayerStatsUpdate_Stat.cpp
2>  CCSUsrMsg_ProcessSpottedEntityUpdate.cpp
2>  CCSUsrMsg_ProcessSpottedEntityUpdate_SpottedEntityUpdate.cpp
2>  CCSUsrMsg_RadioText.cpp
2>  CCSUsrMsg_RawAudio.cpp
2>  CCSUsrMsg_ReloadEffect.cpp
2>  CCSUsrMsg_RequestEloBracketInfo.cpp
2>  CCSUsrMsg_RequestState.cpp
2>  CCSUsrMsg_ResetHud.cpp
2>  CCSUsrMsg_Rumble.cpp
2>  CCSUsrMsg_SayText.cpp
2>  CCSUsrMsg_SayText2.cpp
2>  CCSUsrMsg_SendAudio.cpp
2>  CCSUsrMsg_SendLastKillerDamageToClient.cpp
2>  CCSUsrMsg_ServerRankRevealAll.cpp
2>  CCSUsrMsg_ServerRankUpdate.cpp
2>  Generating Code...
2>  Compiling...
2>  CCSUsrMsg_ServerRankUpdate_RankUpdate.cpp
2>  CCSUsrMsg_SetEloBracketInfo.cpp
2>  CCSUsrMsg_SetPlayerEloDisplayBracket.cpp
2>  CCSUsrMsg_Shake.cpp
2>  CCSUsrMsg_ShowMenu.cpp
2>  CCSUsrMsg_StopSpectatorMode.cpp
2>  CCSUsrMsg_TextMsg.cpp
2>  CCSUsrMsg_Train.cpp
2>  CCSUsrMsg_VGUIMenu.cpp
2>  CCSUsrMsg_VGUIMenu_Subkey.cpp
2>  CCSUsrMsg_VoiceMask.cpp
2>  CCSUsrMsg_VoiceMask_PlayerMask.cpp
2>  CCSUsrMsg_VoteFailed.cpp
2>  CCSUsrMsg_VotePass.cpp
2>  CCSUsrMsg_VoteSetup.cpp
2>  CCSUsrMsg_VoteStart.cpp
2>  CCSUsrMsg_WarmupHasEnded.cpp
2>  CCSUsrMsg_XRankGet.cpp
2>  CCSUsrMsg_XRankUpd.cpp
2>  ECstrike15UserMessages.cpp
2>  Generating Code...
2>  Compiling...
2>  mrecipientfilter.cpp
2>  Generating Code...
2>tier1.lib(strtools.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in sp_python.obj
2>tier1.lib(KeyValues.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in sp_python.obj
2>tier1.lib(convar.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in sp_python.obj
2>tier1.lib(bitbuf.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in sp_python.obj
2>tier1.lib(utlbuffer.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in sp_python.obj
2>tier1.lib(newbitbuf.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in sp_python.obj
2>libprotobuf.lib(coded_stream.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in sp_python.obj
2>libprotobuf.lib(message_lite.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in sp_python.obj
2>libprotobuf.lib(message.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in sp_python.obj
2>libprotobuf.lib(unknown_field_set.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in sp_python.obj
2>libprotobuf.lib(once.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in sp_python.obj
2>libprotobuf.lib(wire_format.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in sp_python.obj
2>libprotobuf.lib(common.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in sp_python.obj
2>libprotobuf.lib(repeated_field.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in sp_python.obj
2>libprotobuf.lib(wire_format_lite.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in sp_python.obj
2>libprotobuf.lib(reflection_ops.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in sp_python.obj
2>libprotobuf.lib(descriptor.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in sp_python.obj
2>libprotobuf.lib(descriptor.pb.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in sp_python.obj
2>libprotobuf.lib(generated_message_reflection.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in sp_python.obj
2>libprotobuf.lib(text_format.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in sp_python.obj
2>libprotobuf.lib(zero_copy_stream_impl_lite.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in sp_python.obj
2>libprotobuf.lib(zero_copy_stream_impl.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in sp_python.obj
2>libprotobuf.lib(strutil.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in sp_python.obj
2>libprotobuf.lib(structurally_valid.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in sp_python.obj
2>libprotobuf.lib(substitute.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in sp_python.obj
2>libprotobuf.lib(descriptor_database.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in sp_python.obj
2>libprotobuf.lib(extension_set.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in sp_python.obj
2>libprotobuf.lib(extension_set_heavy.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in sp_python.obj
2>libprotobuf.lib(tokenizer.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in sp_python.obj
2>libprotobuf.lib(zero_copy_stream.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in sp_python.obj
2>     Creating library C:/Users/Matt/Desktop/Source Python/src/Debug/core.lib and object C:/Users/Matt/Desktop/Source Python/src/Debug/core.exp
2>LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library
2>C:\Users\Matt\Desktop\Source Python\src\Debug\core.dll : fatal error LNK1319: 30 mismatches detected
4>------ Skipped Build: Project: ALL_BUILD, Configuration: Debug Win32 ------
4>Project not selected to build for this solution configuration
========== Build: 1 succeeded, 2 failed, 0 up-to-date, 1 skipped ==========
tnarocks
Member
Posts: 56
Joined: Fri Aug 03, 2012 1:35 am

Postby tnarocks » Thu Jan 24, 2013 2:09 am

Ive tried it like 2 or 3 times. By deleting everything thinking it didn't download right from Hgtortoise and not sure what the prob is.
User avatar
satoon101
Project Leader
Posts: 2697
Joined: Sat Jul 07, 2012 1:59 am

Postby satoon101 » Thu Jan 24, 2013 2:11 am

I get that right now, as well. Just give us time to sort out these issues.

Satoon
tnarocks
Member
Posts: 56
Joined: Fri Aug 03, 2012 1:35 am

Postby tnarocks » Thu Jan 24, 2013 2:15 am

ok lol just thought it was me.
User avatar
satoon101
Project Leader
Posts: 2697
Joined: Sat Jul 07, 2012 1:59 am

Postby satoon101 » Thu Jan 24, 2013 2:20 am

Ok, it seems something is messed up in the Debug version, but Release builds fine. To build in release on Windows, go to View->Toolbars and make sure "Standard" is checked. Half way down the Standard toolbar, you will see "Debug" in a selection box. Change that to "Release" and build again. The files will now be in a "Release" folder instead of the "Debug" folder.

We will still need to sort out the Debug build, when we get the chance.

Satoon
tnarocks
Member
Posts: 56
Joined: Fri Aug 03, 2012 1:35 am

Postby tnarocks » Thu Jan 24, 2013 2:32 am

Thanks Satoon101 its working now. Didn't know if you guys knew it was messed up. Just giving a heads up.
tnarocks
Member
Posts: 56
Joined: Fri Aug 03, 2012 1:35 am

Postby tnarocks » Thu Jan 24, 2013 3:19 am

I did what you said to change it and that all worked. Then when I uploaded it to the server and checked the console.log to see if it loaded and I get this error.

[SP] caught an exception:
Traceback (most recent call last):
File '../addons/source-python/./sp.py', line 43, in <module>
from translations.manager import LanguageManager
File '../addons/source-python/_libs/translations/manager.py', line 61, in <module>
LanguageManager = _LanguageManager(DATA_PATH.joinpath('languages.ini'))
File '../addons/source-python//_engines/site-packages/configobj.py', line 1194, in __init__
self._load(infile, configspec)
File '../addons/source-python//_engines/site-packages/configobj.py', line 1252, in _load
infile = self._handle_bom(infile)
File '../addons/source-python//_engines/site-packages/configobj.py', line 1439, in _handle_bom
return self._decode(infile, self.encoding)
File '../addons/source-python//_engines/site-packages/configobj.py', line 1457, in _decode
return infile.decode(encoding).splitlines(True)

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe7 in position 267: invalid continuation byte


[SP] caught an exception:

AttributeError: 'NoneType' object has no attribute 'event_fire'


[SP] caught an exception:

AttributeError: 'NoneType' object has no attribute 'event_fire'
tnarocks
Member
Posts: 56
Joined: Fri Aug 03, 2012 1:35 am

Postby tnarocks » Thu Jan 24, 2013 3:20 am

And it keeps telling me all over the console.log [SP] caught an exception:

AttributeError: 'NoneType' object has no attribute 'event_fire'


[SP] caught an exception:

AttributeError: 'NoneType' object has no attribute 'event_fire'
User avatar
L'In20Cible
Project Leader
Posts: 1533
Joined: Sat Jul 14, 2012 9:29 pm
Location: Québec

Postby L'In20Cible » Thu Jan 24, 2013 3:48 am

Try to replace your _libs/_data/languages.ini file with: http://pastebin.com/0Mn4Sj6p

L'In20Cible
User avatar
satoon101
Project Leader
Posts: 2697
Joined: Sat Jul 07, 2012 1:59 am

Postby satoon101 » Thu Jan 24, 2013 3:59 am

Ooops, I'll commit the fix for that real quick. My test server still uses an older languages.ini file.

Satoon
freddukes
Developer
Posts: 29
Joined: Mon Nov 19, 2012 10:12 pm

Postby freddukes » Thu Jan 24, 2013 7:58 am

I think the object files for the tier1.lib got screwed up by allied modders when they changed the source. I'm assuming they didn't clean and build properly which probably left a couple of release objects in. When I get back tonight I'll try recompiling tier1 from the sdk to see if that makes a difference.

-freddukes
User avatar
psychonic
Junior Member
Posts: 1
Joined: Sun Jan 27, 2013 11:23 pm
Contact:

Postby psychonic » Sun Jan 27, 2013 11:36 pm

freddukes wrote:I think the object files for the tier1.lib got screwed up by allied modders when they changed the source. I'm assuming they didn't clean and build properly which probably left a couple of release objects in.


It was compiled correctly.

In MSVC 10 and later, depending on the compile-time value of _ITERATOR_DEBUG_LEVEL, there is extra debug code automatically added for certain standard structures. The value defaults to 2 for Debug builds and 0 (disabled) for Release builds. The debug levels are not binary compatible so it has to match in all of the libraries that you are compiling together. That, and the AM tier1 being compiled in release mode, are the cause of the error in post #3. To link it into a debug build, you'll need to add a define for _ITERATOR_DEBUG_LEVEL=0 in your debug configuration or recompile tier1 with the debug configuration.
freddukes
Developer
Posts: 29
Joined: Mon Nov 19, 2012 10:12 pm

Postby freddukes » Mon Jan 28, 2013 7:15 am

psychonic wrote:It was compiled correctly.

In MSVC 10 and later, depending on the compile-time value of _ITERATOR_DEBUG_LEVEL, there is extra debug code automatically added for certain standard structures. The value defaults to 2 for Debug builds and 0 (disabled) for Release builds. The debug levels are not binary compatible so it has to match in all of the libraries that you are compiling together. That, and the AM tier1 being compiled in release mode, are the cause of the error in post #3. To link it into a debug build, you'll need to add a define for _ITERATOR_DEBUG_LEVEL=0 in your debug configuration or recompile tier1 with the debug configuration.


Yeah, that makes sense. Cheers.

I'll probably just hack in the define like you said; I didn't want to do that as I feel we shouldn't be editing that define manually.

-freddukes

Return to “Whatever”

Who is online

Users browsing this forum: No registered users and 25 guests