Grey83
не пишу плагины с весны 2022
-
#2
ну и где сам скрипт?
или хотя бы ссыль на карту, частью которой он является
-
#3
ну и где сам скрипт?
или хотя бы ссыль на карту, частью которой он является
Да дело в том, что фиг его знает, что это за скрипт и откуда он взялся.
Напарник говорит, что это появилось после установки AutoDemo от Крузи. Но не факт, что из-за него. Где он вообще может лежать этот скрипт?
Карта стандарт de_mirage
Последнее редактирование: 30 Янв 2022
Grey83
не пишу плагины с весны 2022
-
#4
@fenix28rn, в мираже нет встроенных скриптов.
Так что скорее всего какой-то из папки …/csgo/scripts/vscripts/
Сообщения автоматически склеены: 30 Янв 2022
М/б валидацию файлов стоит произвести?
-
#5
@fenix28rn, в мираже нет встроенных скриптов.
Так что скорее всего какой-то из папки …/csgo/scripts/vscripts/Сообщения автоматически склеены: 30 Янв 2022
М/б валидацию файлов стоит произвести?
Вроде помогло. БлагоДарю!
//-------------------------------------------------------------------------------------------------- // Use an entity's script instance to add an entity IO event (used for firing events on unnamed entities from vscript) //-------------------------------------------------------------------------------------------------- static void DoEntFireByInstanceHandle( HSCRIPT hTarget, const char *pszAction, const char *pszValue, float delay, HSCRIPT hActivator, HSCRIPT hCaller ) { const char *action = "Use"; variant_t value; if ( *pszAction ) { action = STRING( AllocPooledString( pszAction ) ); } if ( *pszValue ) { value.SetString( AllocPooledString( pszValue ) ); } if ( delay < 0 ) { delay = 0; } CBaseEntity* pTarget = ToEnt(hTarget); if ( !pTarget ) { Warning( "VScript error: DoEntFire was passed an invalid entity instance.n" ); return; } g_EventQueue.AddEvent( pTarget, action, value, delay, ToEnt(hActivator), ToEnt(hCaller) ); }
static void DoEntFire( const char *pszTarget, const char *pszAction, const char *pszValue, float delay, HSCRIPT hActivator, HSCRIPT hCaller ) { const char *target = "", *action = "Use"; variant_t value; target = STRING( AllocPooledString( pszTarget ) ); // Don't allow them to run anything on a point_servercommand unless they're the host player. Otherwise they can ent_fire // and run any command on the server. Admittedly, they can only do the ent_fire if sv_cheats is on, but // people complained about users resetting the rcon password if the server briefly turned on cheats like this: // give point_servercommand // ent_fire point_servercommand command "rcon_password mynewpassword" if ( gpGlobals->maxClients > 1 && V_stricmp( target, "point_servercommand" ) == 0 ) { return; } if ( *pszAction ) { action = STRING( AllocPooledString( pszAction ) ); } if ( *pszValue ) { value.SetString( AllocPooledString( pszValue ) ); } if ( delay < 0 ) { delay = 0; } g_EventQueue.AddEvent( target, action, value, delay, ToEnt(hActivator), ToEnt(hCaller) ); }
//----------------------------------------------------------------------------- // Purpose: Spawn an instance of the entity //----------------------------------------------------------------------------- void CEnvEntityMaker::SpawnEntityAtEntityOriginFromScript( HSCRIPT hEntity ) { CBaseEntity *pTargetEntity = ToEnt( hEntity ); if ( pTargetEntity ) { SpawnEntity( pTargetEntity->GetAbsOrigin(), pTargetEntity->GetAbsAngles() ); } }
static float ScriptTraceLine( const Vector &vecStart, const Vector &vecEnd, HSCRIPT entIgnore ) { // UTIL_TraceLine( vecAbsStart, vecAbsEnd, MASK_BLOCKLOS, pLooker, COLLISION_GROUP_NONE, ptr ); trace_t tr; CBaseEntity *pLooker = ToEnt(entIgnore); UTIL_TraceLine( vecStart, vecEnd, MASK_NPCWORLDSTATIC, pLooker, COLLISION_GROUP_NONE, &tr); if (tr.fractionleftsolid && tr.startsolid) { return 1.0 - tr.fractionleftsolid; } else { return tr.fraction; } }
HSCRIPT FindByClassnameWithin( HSCRIPT hStartEntity , const char *szName, const Vector &vecSrc, float flRadius ) { return ToHScript( gEntList.FindEntityByClassnameWithin( ToEnt( hStartEntity ), szName, vecSrc, flRadius ) ); }
HSCRIPT FindByModel( HSCRIPT hStartEntity, const char *szModelName ) { return ToHScript( gEntList.FindEntityByModel( ToEnt( hStartEntity ), szModelName ) ); }
HSCRIPT FindByTarget( HSCRIPT hStartEntity, const char *szName ) { return ToHScript( gEntList.FindEntityByTarget( ToEnt( hStartEntity ), szName ) ); }
HSCRIPT FindInSphere( HSCRIPT hStartEntity, const Vector &vecCenter, float flRadius ) { return ToHScript( gEntList.FindEntityInSphere( ToEnt( hStartEntity ), vecCenter, flRadius ) ); }
HSCRIPT Next( HSCRIPT hStartEntity ) { return ToHScript( gEntList.NextEnt( ToEnt( hStartEntity ) ) ); }
I have a base template (which has never been sysprep’d) from which I create linked clones. After the linked clone comes up, I run the following command:
c:windowssystem32sysprepsysprep.exe /generalize /oobe /reboot /unattend:c:windowspantherunattend.xml
This works fine for the first few linked clones, but after about 3-4 linked clones are running, I start to hit «A fatal error occurred while trying to sysprep the machine.»
****c:windowspanthersetuperr.log****
2013-03-29 16:40:07, Error [0x0f0073] SYSPRP RunExternalDlls:Not running DLLs; either the machine is in an invalid state or we couldn’t update the recorded state, dwRet = 32[gle=0x00000020]
2013-03-29 16:40:07, Error [0x0f00a8] SYSPRP WinMain:Hit failure while processing sysprep cleanup providers; hr = 0x80070020[gle=0x00000020]
****c:windowspantherunattend.xml****
<?xml version=’1.0′ encoding=’utf-8′?>
<unattend xmlns=»urn:schemas-microsoft-com:unattend»>
<settings pass=»oobeSystem»>
<component name=»Microsoft-Windows-International-Core» processorArchitecture=»amd64″ publicKeyToken=»31bf3856ad364e35″ language=»neutral» versionScope=»nonSxS» xmlns:wcm=»http://schemas.microsoft.com/WMIConfig/2002/State»
xmlns:xsi=»http://www.w3.org/2001/XMLSchema-instance»>
<InputLocale>en-US</InputLocale>
<SystemLocale>en-US</SystemLocale>
<UILanguage>en-US</UILanguage>
<UILanguageFallback>en-US</UILanguageFallback>
<UserLocale>en-US</UserLocale>
</component>
<component name=»Microsoft-Windows-Shell-Setup» processorArchitecture=»amd64″ publicKeyToken=»31bf3856ad364e35″ language=»neutral» versionScope=»nonSxS» xmlns:wcm=»http://schemas.microsoft.com/WMIConfig/2002/State»
xmlns:xsi=»http://www.w3.org/2001/XMLSchema-instance»>
<AutoLogon>
<Enabled>true</Enabled>
<Username>Administrator</Username>
<Password>
<Value>ca$hc0w</Value>
<PlainText>true</PlainText>
</Password>
</AutoLogon>
<OOBE>
<HideEULAPage>true</HideEULAPage>
<NetworkLocation>Work</NetworkLocation>
<ProtectYourPC>3</ProtectYourPC>
</OOBE>
<UserAccounts>
<AdministratorPassword>
<Value>ca$hc0w</Value>
<PlainText>true</PlainText>
</AdministratorPassword>
</UserAccounts>
<TimeZone>Pacific Standard Time</TimeZone>
</component>
</settings>
<settings pass=»specialize»>
<component name=»Microsoft-Windows-Shell-Setup» processorArchitecture=»amd64″ publicKeyToken=»31bf3856ad364e35″ language=»neutral» versionScope=»nonSxS» xmlns:wcm=»http://schemas.microsoft.com/WMIConfig/2002/State»
xmlns:xsi=»http://www.w3.org/2001/XMLSchema-instance»>
<ProductKey>7M67G-PC374-GR742-YH8V4-TCBY3</ProductKey>
<ComputerName>*</ComputerName>
</component>
</settings>
</unattend>
****c:windowspanthersetupact.log****
2013-03-29 16:40:07, Info [0x0f004d] SYSPRP The time is now 2013-03-29 16:40:07
2013-03-29 16:40:07, Info [0x0f004e] SYSPRP Initialized SysPrep log at c:windowssystem32sysprepPanther
2013-03-29 16:40:07, Info [0x0f0054] SYSPRP ValidateUser:User has required privileges to sysprep machine
2013-03-29 16:40:07, Info [0x0f0056] SYSPRP ValidateVersion:OS version is okay
2013-03-29 16:40:07, Info [0x0f005e] SYSPRP ScreenSaver:Screen saver was already disabled, no need to disable it for sysprep
2013-03-29 16:40:07, Info [0x0f007e] SYSPRP FCreateTagFile:Tag file c:windowssystem32sysprepSysprep_succeeded.tag does not already exist, no need to delete anything
2013-03-29 16:40:07, Info [0x0f005f] SYSPRP ParseCommands:Found supported command line option ‘GENERALIZE’
2013-03-29 16:40:07, Info [0x0f005f] SYSPRP ParseCommands:Found supported command line option ‘OOBE’
2013-03-29 16:40:07, Info [0x0f005f] SYSPRP ParseCommands:Found supported command line option ‘REBOOT’
2013-03-29 16:40:07, Info [0x0f005f] SYSPRP ParseCommands:Found supported command line option ‘UNATTEND’
2013-03-29 16:40:07, Info [0x0f004a] SYSPRP WaitThread:Entering spawned waiting thread
2013-03-29 16:40:07, Info [sysprep.exe] UnattendFindAnswerFile: Looking at explicitly provided unattend file [c:windowspantherunattend.xml]…
2013-03-29 16:40:07, Info [sysprep.exe] UnattendFindAnswerFile: [c:windowspantherunattend.xml] meets criteria
for an explicitly provided unattend file.
2013-03-29 16:40:07, Info SYSPRP SysprepSearchForUnattend: Using unattend file at [c:windowspantherunattend.xml].
2013-03-29 16:40:07, Info SYSPRP SysprepSearchForUnattend: [generalize] pass in unattend file [c:windowspantherunattend.xml] either doesn’t exist or passed
validation
2013-03-29 16:40:07, Info SYSPRP WinMain:Found unattend file at [c:windowspantherunattend.xml]; caching…
2013-03-29 16:40:07, Info SYSPRP WinMain:Processing unattend file’s ‘generalize’ pass…
2013-03-29 16:40:07, Info SYSPRP Sysprep is running a generalize pass with the following unattend file: [%windir%pantherunattend.xml]
2013-03-29 16:40:07, Info SYSPRP RunUnattendGeneralizePass: Sysprep unattend generalize pass exits; hr = 0x0, hrResult = 0x0, bRebootRequired = 0x0
2013-03-29 16:40:07, Info [0x0f003f] SYSPRP WinMain:Processing ‘cleanup’ request.
2013-03-29 16:40:07, Error [0x0f0073] SYSPRP RunExternalDlls:Not running DLLs; either the machine is in an invalid state or we couldn’t update the recorded state, dwRet = 32[gle=0x00000020]
2013-03-29 16:40:07, Error [0x0f00a8] SYSPRP WinMain:Hit failure while processing sysprep cleanup providers; hr = 0x80070020[gle=0x00000020]
2013-03-29 16:48:52, Info [0x0f004c] SYSPRP WaitThread:Exiting spawned waiting thread
2013-03-29 16:48:52, Info [0x0f0059] SYSPRP ScreenSaver:Screen saver was originally disabled, leaving it disabled
2013-03-29 16:48:52, Info [0x0f0052] SYSPRP Shutting down SysPrep log
2013-03-29 16:48:52, Info [0x0f004d] SYSPRP The time is now 2013-03-29 16:48:52
-
Moved by
Monday, April 1, 2013 3:29 AM
Moved from Server General forum to more appropriate one