![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
10-30-11, 05:06 AM
|
#11 |
|
A-ganger
![]() Join Date: Sep 2007
Posts: 76
Downloads: 65
Uploads: 0
|
Hi TDW
having 3 issues with Automatation here. First of all Patch1 is applied. First issue: Previous activated automation Scripts are not loaded with saved game. Having a look into DbgView output while loading a saved game Code:
[7560] Page Automation.StartPreviousActivatedScripts: c:\program files (x86)\steam\steamapps\common\silent hunter 5\ActiveAutomationScripts.TDW doesn't exist! Second issue: Calls on Report_position_celestial within a Script running at TC>128 raise an exception and stops script execution. No DbgView entry when execption is thrown. Below is the DebugScript output: Code:
--------------------------- Error invoking Raise_AnimationStopped function in class MenuPageWrapper: Ein Aufrufziel hat einen Ausnahmefehler verursacht. 'PointF' object has no attribute 'StartsWith' bei IronPython.Compiler.MethodBinder.MethodTarget.CallReflected(ICallerContext context, Object[] args) bei IronPython.Compiler.MethodBinder.MethodTarget.Call(ICallerContext context, Object[] args) bei IronPython.Compiler.MethodBinder.TargetSet.Call(ICallerContext context, CallType callType, Object[] args) bei IronPython.Compiler.MethodBinder.Call(ICallerContext context, CallType callType, Object[] args) bei IronPython.Compiler.MethodBinder.CallWithContextN(ICallerContext context, Object[] args) bei IronPython.Runtime.Calls.FastCallableWithContextAny.CallInstance(ICallerContext context, Object instance, Object[] args) bei IronPython.Runtime.Calls.FastCallable.CallInstance(ICallerContext context, Object arg0, Object arg1, Object arg2, Object arg3, Object arg4, Object arg5) bei IronPython.Runtime.Calls.BoundBuiltinFunction.Call(ICallerContext context, Object arg0, Object arg1, Object arg2, Object arg3, Object arg4) bei IronPython.Runtime.Operations.Ops.CallWithContext(ICallerContext context, Object func, Object arg0, Object arg1, Object arg2, Object arg3, Object arg4) bei AddTimer$f679##799(FunctionEnvironment32Dictionary , Object , Object , Object ) bei IronPython.Runtime.Calls.Function3.Call(ICallerContext context, Object arg0, Object arg1, Object arg2) bei IronPython.Runtime.Calls.PythonFunction.CallInstance(ICallerContext context, Object arg0, Object arg1, Object arg2) bei IronPython.Runtime.Calls.Method.Call(ICallerContext context, Object arg0, Object arg1) bei IronPython.Runtime.Operations.Ops.CallWithContext(ICallerContext context, Object func, Object arg0, Object arg1) bei Update$f676##796(FunctionEnvironment32Dictionary , Object , Object , Object ) bei IronPython.Runtime.Calls.Function3.Call(ICallerContext context, Object arg0, Object arg1, Object arg2) bei IronPython.Runtime.Calls.PythonFunction.CallInstance(ICallerContext context, Object arg0, Object arg1, Object arg2) bei IronPython.Runtime.Calls.Method.Call(ICallerContext context, Object arg0, Object arg1) bei IronPython.Runtime.Operations.Ops.CallWithContext(ICallerContext context, Object func, Object arg0, Object arg1) bei Update$f669##787(FunctionEnvironmentNDictionary , Object , Object ) bei IronPython.Runtime.Calls.Function2.Call(ICallerContext context, Object arg0, Object arg1) bei IronPython.Runtime.Calls.PythonFunction.CallInstance(ICallerContext context, Object arg0, Object arg1) bei IronPython.Runtime.Calls.Method.Call(ICallerContext context, Object arg0) bei IronPython.Runtime.Operations.Ops.CallWithContext(ICallerContext context, Object func, Object arg0) bei Pagelayout_GameTimerEvent$f1050##1552(ModuleScope , Object , Object , Object ) bei IronPython.Runtime.Calls.Function3.Call(ICallerContext context, Object arg0, Object arg1, Object arg2) bei IronPython.Runtime.Operations.Ops.Call(Object func, Object arg0, Object arg1, Object arg2) bei System.Void(Double, Double, Single)##1665(Object , Double , Double , Single ) bei TheDarkWraith.SilentHunter5.TDWHPT.Update() bei Update##2610(Object ) bei IronPython.Runtime.Calls.FastCallable1.CallInstance(ICallerContext context, Object arg0) bei IronPython.Runtime.Calls.BoundBuiltinFunction.Call(ICallerContext context) bei IronPython.Runtime.Operations.Ops.CallWithContext(ICallerContext context, Object func) bei Pagelayout_AnimationStopped$f1051##1553(ModuleScope , Object ) bei IronPython.Runtime.Calls.Function1.Call(ICallerContext context, Object arg0) bei IronPython.Runtime.Operations.Ops.Call(Object func, Object arg0) bei System.Void(INativeClassWrapper)##984(Object , INativeClassWrapper ) bei ScriptManagerWrappers.MenuItemWrapper.raise_AnimationStopped(INativeClassWrapper animation) bei ScriptManagerWrappers.MenuItemWrapper.Raise_AnimationStopped(MenuAnimationWrapper animation) Third issue the t time parameter value for waiting on the execution of the next automation call is doubled i.e Code:
Report_position_deadreckoning,0,0,0,0,0,0,300 Loop,-1,0,0,0,0,0,0 Ok update on the last issue, after having a closer look into the TheDarkWraithAutomation.py it's now clear how the loop command is handled and just adding a simple Wait,0,0,0,0,0,0,0 at the beginning of the commands list will clear the additional wait time that was taken over into the next Loop.
__________________
---------------------------------------------------------------- Seemann prüf dein Sackgewicht an Backbord kommt Laboe in Sicht ---------------------------------------------------------------- Last edited by oakdesign; 10-30-11 at 10:03 AM. |
|
|
| Tags |
| dbrn, favorite, new ui |
| Thread Tools | |
| Display Modes | |
|
|
