SUBSIM Radio Room Forums



SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997

Go Back   SUBSIM Radio Room Forums > Silent Hunter 3 - 4 - 5 > SH5 Mods Workshop
Forget password? Reset here

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 10-30-11, 05:06 AM   #11
oakdesign
A-ganger
 
Join Date: Sep 2007
Posts: 76
Downloads: 65
Uploads: 0
Default

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!
so inspecting DbgView output at saving the game there no function call on creating/updating the above mentioned file.

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)
From my readings of the last days, you're using DLL injection to invoke the function calls. So I'm using the Steam Version and that might be the case.

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
Should invoke a looped dead reckon fix every 5 minutes. But it is invoked every 10 minutes.
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.
oakdesign is offline   Reply With Quote
 

Tags
dbrn, favorite, new ui

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 03:59 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Copyright © 1995- 2026 Subsim®
"Subsim" is a registered trademark, all rights reserved.