CitiesSkylinesMods / TMPE

Cities: Skylines Traffic Manager: President Edition
https://steamcommunity.com/sharedfiles/filedetails/?id=1637663252
MIT License
571 stars 85 forks source link

Reaport A bug #835

Closed FarelBangBang closed 4 years ago

FarelBangBang commented 4 years ago

Hello ther iam using mods form steam (TM:PE v11.3.1 LABS (Traffic Manager: President Edition)) When I enable the mod, an error message pops up

A Mod caused an error [System.Exception]

Details: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.UnauthorizedAccessException: Access to the path "C:\Program Files\Cities Skylines Sunset Harbor\Cities_Data\TMPE.log" is denied. at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) [0x00000] in :0 at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share) [0x00000] in :0 at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare) at System.IO.StreamWriter..ctor (System.String path, Boolean append, System.Text.Encoding encoding, Int32 bufferSize) [0x00000] in :0 at System.IO.StreamWriter..ctor (System.String path, Boolean append) [0x00000] in :0 at (wrapper remoting-invoke-with-check) System.IO.StreamWriter:.ctor (string,bool) at System.IO.File.AppendText (System.String path) [0x00000] in :0 at CSUtil.Commons.Log.LogToFile (System.String log, LogLevel level) [0x00000] in :0 at CSUtil.Commons.Log.InfoFormat (System.String format, System.Object[] args) [0x00000] in :0 at TrafficManager.TrafficManagerMod.OnEnabled () [0x00000] in :0 at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception

That's the message when enabling the mod

Are you can help me ?

krzychu124 commented 4 years ago

Hi, this should help you: https://github.com/CitiesSkylinesMods/TMPE/wiki/System.Reflection.TargetInvocationException-TMPE.log-is-denined

originalfoo commented 4 years ago

Interesting place to install the game: C:\Program Files\Cities Skylines Sunset Harbor\

That's not installed by any gaming portal I know of. Where did you purchase the game?

FarelBangBang commented 4 years ago

I got a new problem again, said Field '. PathUnit.m_vehicleTypes' not found. [System.MissingFieldException] Details: No details Even though I already bought the game

originalfoo commented 4 years ago

Field '. PathUnit.m_vehicleTypes' not found happens when you have old version of TMPE installed.

Which game portal are you using for Cities: Skylines?

FarelBangBang commented 4 years ago

II use the V11 TMPE version, do you mean the game portal ?, I use the latest version of cities skylines, as I recall version 1.12.2

originalfoo commented 4 years ago

That's why you're having errors, you are not on latest game version. I strongly suspect you are using pirated version of game, which we don't support.

originalfoo commented 4 years ago

Share the full output_log.txt so we can check exactly what game version you are on and that it is a non-pirated version of the game.

FarelBangBang commented 4 years ago

If TEMPE Mod doesn't support pirated games, I will update the game