PDA

View Full Version : Angelscript error


rb25deturbo
06-05-2008, 04:23 PM
I have installed the release candidate for Raildriver but after calibrating my Raildriver and then clicking the MWII i keep getting an Angelscript error??"The script file has been corrupted" Please help me ,i am probably doing something wrong:confused: Incidently nothing works in RS now??
Edit: I have reverted to the Beta version and everything is fine again.Has anyone else had problems with the Release candidate??

tsfinmja
06-09-2008, 07:10 AM
I had same problem with release candidate on Windows Vista. I was able to get rid off this error by starting MWII as administrator (right click -> Run as Administrator). Now release candidate works better than beta ever did on my computer.

RailDriver_Rocco
06-10-2008, 02:37 PM
This can be caused if Rail Simulator is not installed in the default location. You can change this by going to Local Disk:\Program Files\PI Engineering\RailDriver MWII\XKeyDevices\Vid05F3Pid00D2 and open the ReportConfig.txt file. Edit the path at the bottom of the file to where your RailDriver.dll is located (pictured below).

We will be adding this to our install procedure.

http://img366.imageshack.us/img366/2553/screenshotnm4.jpg

rb25deturbo
06-14-2008, 01:55 PM
Thats worked a treat, thankyou.:)

rb25deturbo
06-16-2008, 12:22 PM
I thought i would add this observation: I was running an activity using the class 66 on the S and D and realised half way through that my F5 Hud display was not on,(nor was F3) but all the controls etc were working fine??? I was under the impression that Rail Driver required this to be showing in order for it to work?:)

RailDriver_Dan
06-18-2008, 10:14 AM
rb25deturbo,

The HUD is only required in MSTS. Since MSTS offered no means of feedback, our software has to read the screen and use Optical Character Recognition (OCR) to figure out the values for speed, notch position, brake pressure, etc.

In Rail Simulator these values come back to us in a more conventional fashion and the HUD is not required. The same is true for Trainz and will be true for MSTS2.

Glad to hear everything is working for you.

rb25deturbo
06-18-2008, 11:32 AM
Hee Hee, silly me!:confused: Thanks for replying :)

Fodda
06-21-2008, 03:20 PM
OK... I've tried the above path fix but my system still gives the angelscript error twice every time I try to start MWII. Raildriver doesn't respond at all in KRS.

raildriver.dll (dated 4th Feb 2008) is held in: C:\Program Files (x86)\Rail Simulator\plugins

ReportConfig.txt editted to:

-------------------------------------------

constant 0

uid_and_ps 14 -

module \Program Files (x86)\Rail Simulator\plugins\RailDriver.dll
module plugins\RailDriver.dll
moduleFunction void SetRailDriverConnected(const bool)
moduleFunction bool GetRailSimLocoChanged()
moduleFunction float GetRailSimValue(int, int)
moduleFunction bool GetRailSimCombinedThrottleBrake()
moduleFunction void SetRailSimValue(int, float)

--------------------------------------------------

Running a dual core 6600 (no trouble running KS from keyboard) with 2 GB RAM and an 8800GTX graphics card.

Any help appreciated please.

Oooops... Editted to add, running Vista Home Premium 64 bit.

arthur55
06-21-2008, 05:43 PM
OK... I've tried the above path fix but my system still gives the angelscript error twice every time I try to start MWII. Raildriver doesn't respond at all in KRS.

raildriver.dll (dated 4th Feb 2008) is held in: C:\Program Files (x86)\Rail Simulator\plugins

ReportConfig.txt editted to:

-------------------------------------------

constant 0

uid_and_ps 14 -

module \Program Files (x86)\Rail Simulator\plugins\RailDriver.dll
module plugins\RailDriver.dll
moduleFunction void SetRailDriverConnected(const bool)
moduleFunction bool GetRailSimLocoChanged()
moduleFunction float GetRailSimValue(int, int)
moduleFunction bool GetRailSimCombinedThrottleBrake()
moduleFunction void SetRailSimValue(int, float)

--------------------------------------------------

Running a dual core 6600 (no trouble running KS from keyboard) with 2 GB RAM and an 8800GTX graphics card.

Any help appreciated please.

Oooops... Editted to add, running Vista Home Premium 64 bit.

Have you nhad a look here for vista probs
http://forums.uktrainsim.com/viewtopic.php?f=215&t=84512

Fodda
06-21-2008, 06:41 PM
Thanks for the link, but a guy called Mark has posted the exact same problem as me, and no reply to his yet either. Thought I'd try here as it's the RailDriver forum. I'll keep an eye on both threads.

johnan
06-23-2008, 07:32 AM
I noticed when I removed the RC version of raildriver and replaced it with the "final release", I still got the angelscript error even after modifying the location of RS, as suggested, as I had done to get the RC version working.

The reason for the error was that the line of the file to be modified starts with "#" and I was modifying the line but leaving the "#" in place which meant the instruction was being ignored and my modification was not being read.
If you remove the "#" and modify the line all should be well, and delete any other instance of the same line,or do what I did below.
In mine, it now looks like this:

uid_and_ps 14 -

#module G:\Rail Simulator\plugins\RailDriver.dll [this line does nothing]
module G:\Rail Simulator\plugins\RailDriver.dll
moduleFunction void SetRailDriverConnected(const bool)

Fodda
06-23-2008, 02:11 PM
OK... Other than having no throttle response (Dynamic brake part works, no response from Thottle Idle through throttle Full, but I'll try and recalibrate) I've got it going.

Strange really, nobody saw it, including me.

Here's my ReportConfig.txt file as shown earlier:


-------------------------------------------

constant 0

uid_and_ps 14 -

module \Program Files (x86)\Rail Simulator\plugins\RailDriver.dll
module plugins\RailDriver.dll
moduleFunction void SetRailDriverConnected(const bool)
moduleFunction bool GetRailSimLocoChanged()
moduleFunction float GetRailSimValue(int, int)
moduleFunction bool GetRailSimCombinedThrottleBrake()
moduleFunction void SetRailSimValue(int, float)

--------------------------------------------------

When this file is geneated by the install it leaves out the (x86) bit and precedes that line with a # so it is commented. I edited the line to remove the comment #, and make the reference correct. What I'd not noticed is the line immediately below... Once I'd removed the second reference to raildriver.dll (module plugins\RailDriver.dll), all worked.

Fodda
06-23-2008, 04:58 PM
Final report:

After a recalibration, it all works very nicely now.

johnan
06-24-2008, 07:12 AM
Glad it solved your problem.
Looks like the RD "final" release still requires a bit of tuning, for those with a non default install.
How the "#" crept into the equation, without being removed later before release, beats me!