BattletechModders / ModTek

Mod system for HBS's PC game BattleTech.
GNU Lesser General Public License v2.1
121 stars 34 forks source link

ModTekInjector no longer running with new update #152

Closed dualhammers closed 5 years ago

dualhammers commented 5 years ago

Yesterday the injector worked fine, but with the new update on 9/10 this is the error I get

(Hard to capture since the box auto-closes if it throws an error) 2019-09-10 13_13_42-ModTek](https://user-images.githubusercontent.com/7495830/64643437-9b5f9600-d3cd-11e9-9435-833e3773e8ac.png) )

LadyAlekto commented 5 years ago

Ofcourse it dies on a new patch

Modders are on it

CptMoore commented 5 years ago

Please try out the pre-release version

dualhammers commented 5 years ago

Works! Thanks for the fast update

theammomonkey commented 5 years ago

Getting this error when loading mods. Everything seems to load fine then getting the following. This is with the new patch and pre-release version.

Syncing Database... Loaded db cache.

Finishing Up

Uncaught ModTek exception! System.Reflection.ReflectionTypeLoadException: Exception of type 'System.Reflection.ReflectionTypeLoadException' was thrown. at (wrapper managed-to-native) System.Reflection.Assembly.GetTypes(System.Reflection.Assembly,bool) at System.Reflection.Assembly.GetTypes () [0x00000] in :0 at ModTek.Util.AssemblyUtil.FindMethods (System.Reflection.Assembly assembly, System.String methodName, System.String typeName) [0x00016] in <072cd34b844743c5a59def30bd657f36>:0 at ModTek.ModTek.CallFinishedLoadMethods () [0x00055] in <072cd34b844743c5a59def30bd657f36>:0 at ModTek.ModTek+d125.MoveNext () [0x000ba] in <072cd34b844743c5a59def30bd657f36>:0 at ModTek.UI.ProgressPanel+ProgressBarLoadingBehavior+d20.MoveNext () [0x0007f] in <072cd34b844743c5a59def30bd657f36>:0

CptMoore commented 5 years ago

Hmm strange, works for me

can you make sure to have no mods, maybe its a problem when ModTek tries to load a dotnet 3.5 mod

theammomonkey commented 5 years ago

It does work with no mods and I am using mods that have not been updated yet. However, the log doesn't show any issues loading them. Just during the final process, modtek fails. So your theory is most likely correct.

kmdavis commented 5 years ago

I got a different error (using the 1.7.0 pre-release version mentioned above)

Uncaught ModTek exception!
Mono.Data.Sqlite.SqliteException (0x80004005): SQLite error
table MDD_DB.ContractType has 12 columns but 3 values were supplied
  at Mono.Data.Sqlite.SQLite3.Prepare (Mono.Data.Sqlite.SqliteConnection cnn, System.String strSql, Mono.Data.Sqlite.SqliteStatement previous, System.UInt32 timeoutMS, System.String& strRemain) [0x0023b] in <99f7d8f9a65b4d91ae5b1d55c424866f>:0 
  at Mono.Data.Sqlite.SqliteCommand.BuildNextCommand () [0x000f0] in <99f7d8f9a65b4d91ae5b1d55c424866f>:0 
  at Mono.Data.Sqlite.SqliteCommand.GetStatement (System.Int32 index) [0x0000b] in <99f7d8f9a65b4d91ae5b1d55c424866f>:0 
  at (wrapper remoting-invoke-with-check) Mono.Data.Sqlite.SqliteCommand.GetStatement(int)
  at Mono.Data.Sqlite.SqliteDataReader.NextResult () [0x000cc] in <99f7d8f9a65b4d91ae5b1d55c424866f>:0 
  at (wrapper remoting-invoke-with-check) Mono.Data.Sqlite.SqliteDataReader.NextResult()
  at Mono.Data.Sqlite.SqliteDataReader..ctor (Mono.Data.Sqlite.SqliteCommand cmd, System.Data.CommandBehavior behave) [0x00051] in <99f7d8f9a65b4d91ae5b1d55c424866f>:0 
  at (wrapper remoting-invoke-with-check) Mono.Data.Sqlite.SqliteDataReader..ctor(Mono.Data.Sqlite.SqliteCommand,System.Data.CommandBehavior)
  at Mono.Data.Sqlite.SqliteCommand.ExecuteReader (System.Data.CommandBehavior behavior) [0x00006] in <99f7d8f9a65b4d91ae5b1d55c424866f>:0 
  at Mono.Data.Sqlite.SqliteCommand.ExecuteNonQuery () [0x00000] in <99f7d8f9a65b4d91ae5b1d55c424866f>:0 
  at BattleTech.Data.MetadataDatabase.WriteInMemoryDBToDisk (System.String filePath) [0x000d7] in <3e4ffd9472cf47c8b91847b34d1120c7>:0 
  at ModTek.ModTek+<AddToDBLoop>d__124.MoveNext () [0x0043e] in <072cd34b844743c5a59def30bd657f36>:0 
  at ModTek.UI.ProgressPanel+ProgressBarLoadingBehavior+<RunWorkList>d__20.MoveNext () [0x0007f] in <072cd34b844743c5a59def30bd657f36>:0 

12:30:20 PM - Done. Elapsed running time: 54.4087831 seconds

UPDATE: tried re-launching and it worked

CptMoore commented 5 years ago

It does work with no mods and I am using mods that have not been updated yet. However, the log doesn't show any issues loading them. Just during the final process, modtek fails. So your theory is most likely correct.

Ok, considering lots of dot35 mods do work, we might get this to work too.

Exaercase commented 5 years ago

Hello,

I've done install of the last version of this MOD manager done with the correct location et instalation but notihing happen when i launch the injector just a batch empty open and close no error message but neither the injetor say to me n game i active and the mod i use don't work

could you help me best regard eXa

CptMoore commented 5 years ago

try to install the latest .NET Framework (4.8 as of this writing) and try again https://dotnet.microsoft.com/download

if that doesn't work, maybe there are permission errors, but I have no experience with that

mpstark commented 5 years ago

@Exaercase Just to be clear, ModTek isn't a mod manager, it's a mod loader. There is a mod manager that floats around somewhere, but I don't think that it works particularly well anymore. Make sure that you've got .NET Framework installed like @CptMoore suggested.

Exaercase commented 5 years ago

With the Mod Manager it's fine that work perfectly :)

Thx for your job Best regard