Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cant launch the RA2 mod #31

Closed
yaaaaa opened this issue Jan 12, 2016 · 5 comments · Fixed by #28
Closed

Cant launch the RA2 mod #31

yaaaaa opened this issue Jan 12, 2016 · 5 comments · Fixed by #28
Labels

Comments

@yaaaaa
Copy link

yaaaaa commented Jan 12, 2016

it crash when trying to switch to RA2 mod

exception.log

Operating System: Windows (Microsoft Windows NT 6.2.9200.0)
Runtime Version: .NET CLR 4.0.30319.42000
Exception of type `System.IO.FileNotFoundException`: Не удалось загрузить файл или сборку "file:///D:\Games\OpenRA-bleed\mods\ra2\OpenRA.Mods.RA2.dll" либо одну из их зависимостей. Не удается найти указанный файл.
   в System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   в System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   в System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   в System.Reflection.RuntimeAssembly.InternalLoadFrom(String assemblyFile, Evidence securityEvidence, Byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm, Boolean forIntrospection, Boolean suppressSecurityChecks, StackCrawlMark& stackMark)
   в System.Reflection.Assembly.LoadFrom(String assemblyFile)
   в OpenRA.ModData.<.ctor>b__0(String path) в d:\Games\OpenRA-bleed\OpenRA.Game\ModData.cs:строка 48
   в System.Linq.Enumerable.WhereSelectArrayIterator`2.MoveNext()
   в System.Linq.Enumerable.<ConcatIterator>d__58`1.MoveNext()
   в System.Linq.Enumerable.<SelectManyIterator>d__16`2.MoveNext()
   в System.Linq.Buffer`1..ctor(IEnumerable`1 source)
   в System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
   в OpenRA.ObjectCreator..ctor(IEnumerable`1 sourceAssemblies) в d:\Games\OpenRA-bleed\OpenRA.Game\ObjectCreator.cs:строка 29
   в OpenRA.ModData..ctor(String mod, Boolean useLoadScreen) в d:\Games\OpenRA-bleed\OpenRA.Game\ModData.cs:строка 49
   в OpenRA.Game.InitializeMod(String mod, Arguments args) в d:\Games\OpenRA-bleed\OpenRA.Game\Game.cs:строка 305
   в OpenRA.Mods.Common.Widgets.Logic.ModBrowserLogic.<>c__DisplayClass28.<LoadMod>b__26()
   в OpenRA.Primitives.ActionQueue.PerformActions(Int32 currentTime) в d:\Games\OpenRA-bleed\OpenRA.Game\Primitives\ActionQueue.cs:строка 52
   в OpenRA.Game.LogicTick() в d:\Games\OpenRA-bleed\OpenRA.Game\Game.cs:строка 537
   в OpenRA.Game.Loop() в d:\Games\OpenRA-bleed\OpenRA.Game\Game.cs:строка 672
   в OpenRA.Game.Run() в d:\Games\OpenRA-bleed\OpenRA.Game\Game.cs:строка 712
   в OpenRA.Program.Run(String[] args) в d:\Games\OpenRA-bleed\OpenRA.Game\Support\Program.cs:строка 117
   в OpenRA.Program.Main(String[] args) в d:\Games\OpenRA-bleed\OpenRA.Game\Support\Program.cs:строка 39

sound.log
LoadSound, file does not exist: button.aud
Attempt to Play2D a null ISoundSource
Attempt to Play2D a null ISoundSource

And after copy OpenRA.Mods.RA2.dll from https://github.com/Phrohdoh/OpenRA (after make.cmd-> all) to RA2 mod folder it make another crash:

exception.log

Red Alert 2 Mod at Version {DEV_VERSION}
Operating System: Windows (Microsoft Windows NT 6.2.9200.0)
Runtime Version: .NET CLR 4.0.30319.42000
Exception of type `System.InvalidOperationException`: Cannot locate type: WithActiveAnimationInfo
   в OpenRA.ObjectCreator.<.cctor>b__13(String s) в d:\Games\OpenRA-bleed\OpenRA.Game\ObjectCreator.cs:строка 33
   в OpenRA.ObjectCreator.CreateObject[T](String className, Dictionary`2 args) в d:\Games\OpenRA-bleed\OpenRA.Game\ObjectCreator.cs:строка 45
   в OpenRA.ObjectCreator.CreateObject[T](String className) в d:\Games\OpenRA-bleed\OpenRA.Game\ObjectCreator.cs:строка 37
   в OpenRA.ActorInfo.LoadTraitInfo(ObjectCreator creator, String traitName, MiniYaml my) в d:\Games\OpenRA-bleed\OpenRA.Game\GameRules\ActorInfo.cs:строка 107
   в OpenRA.ActorInfo..ctor(ObjectCreator creator, String name, MiniYaml node, Dictionary`2 allUnits) в d:\Games\OpenRA-bleed\OpenRA.Game\GameRules\ActorInfo.cs:строка 51
   в OpenRA.RulesetCache.<Load>b__0(MiniYamlNode k, Dictionary`2 y) в d:\Games\OpenRA-bleed\OpenRA.Game\GameRules\RulesetCache.cs:строка 64
   в OpenRA.RulesetCache.<>c__DisplayClass15`1.<LoadYamlRules>b__10(MiniYamlNode wkv, Dictionary`2 wyy) в d:\Games\OpenRA-bleed\OpenRA.Game\GameRules\RulesetCache.cs:строка 113
   в OpenRA.RulesetCache.<>c__DisplayClass15`1.<LoadYamlRules>b__14(MiniYamlNode kv) в d:\Games\OpenRA-bleed\OpenRA.Game\GameRules\RulesetCache.cs:строка 121
   в OpenRA.Exts.ToDictionaryWithConflictLog[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, String debugName, Func`2 logKey, Func`2 logValue) в d:\Games\OpenRA-bleed\OpenRA.Game\Exts.cs:строка 366
   в OpenRA.RulesetCache.LoadYamlRules[T](Dictionary`2 itemCache, String[] files, List`1 nodes, Func`3 f) в d:\Games\OpenRA-bleed\OpenRA.Game\GameRules\RulesetCache.cs:строка 121
   в OpenRA.RulesetCache.Load(Map map) в d:\Games\OpenRA-bleed\OpenRA.Game\GameRules\RulesetCache.cs:строка 62
   в OpenRA.ModData.<.ctor>b__3() в d:\Games\OpenRA-bleed\OpenRA.Game\ModData.cs:строка 76
   в System.Lazy`1.CreateValue()
   в System.Lazy`1.LazyInitValue()
   в System.Lazy`1.get_Value()
   в OpenRA.ModData.get_DefaultRules() в d:\Games\OpenRA-bleed\OpenRA.Game\ModData.cs:строка 38
   в OpenRA.Map.<PostInit>b__f() в d:\Games\OpenRA-bleed\OpenRA.Game\Map\Map.cs:строка 460
   в System.Lazy`1.CreateValue()
   в System.Lazy`1.LazyInitValue()
   в System.Lazy`1.get_Value()
   в OpenRA.Map.PreloadRules() в d:\Games\OpenRA-bleed\OpenRA.Game\Map\Map.cs:строка 583
   в OpenRA.ModData.PrepareMap(String uid) в d:\Games\OpenRA-bleed\OpenRA.Game\ModData.cs:строка 183
   в OpenRA.Game.StartGame(String mapUID, WorldType type) в d:\Games\OpenRA-bleed\OpenRA.Game\Game.cs:строка 154
   в OpenRA.Game.LoadShellMap() в d:\Games\OpenRA-bleed\OpenRA.Game\Game.cs:строка 406
   в OpenRA.Mods.Common.LoadScreens.BlankLoadScreen.StartGame(Arguments args)
   в OpenRA.Game.InitializeMod(String mod, Arguments args) в d:\Games\OpenRA-bleed\OpenRA.Game\Game.cs:строка 362
   в OpenRA.Mods.Common.Widgets.Logic.ModBrowserLogic.<>c__DisplayClass28.<LoadMod>b__26()
   в OpenRA.Primitives.ActionQueue.PerformActions(Int32 currentTime) в d:\Games\OpenRA-bleed\OpenRA.Game\Primitives\ActionQueue.cs:строка 52
   в OpenRA.Game.LogicTick() в d:\Games\OpenRA-bleed\OpenRA.Game\Game.cs:строка 537
   в OpenRA.Game.Loop() в d:\Games\OpenRA-bleed\OpenRA.Game\Game.cs:строка 672
   в OpenRA.Game.Run() в d:\Games\OpenRA-bleed\OpenRA.Game\Game.cs:строка 712
   в OpenRA.Program.Run(String[] args) в d:\Games\OpenRA-bleed\OpenRA.Game\Support\Program.cs:строка 117
   в OpenRA.Program.Main(String[] args) в d:\Games\OpenRA-bleed\OpenRA.Game\Support\Program.cs:строка 39

Remake make.cmd operations with (https://github.com/OpenRA/OpenRA+https://github.com/OpenRA/RA2) makes same crashes and not build OpenRA.Mods.RA2.dll file at all.

@abcdefg30
Copy link
Member

The first crash is because of the missing dll, yes. The make.cmd shipped with OpenRA doesn't compile the RA2 dll and I/we didn't add an own makefile (yet), thanks for reminding me.

The second crash is already known and will be resolved by an update proposed in #28. Unfortunately I can't merge that PR right now as the latest version of OpenRA can't parse the RA2 sound files anymore and thus crashes.

@abcdefg30
Copy link
Member

At the moment you should be able to run the RA2 mod with the workaround mentioned in #13 (comment):

I noticed that crash too and started to look into the issue. Until that is solved use this commit OpenRA/OpenRA@ e5cb7e0 as your OpenRA version.

@abcdefg30
Copy link
Member

Note: Until upstream OpenRA fixed their issues this will still crash unless you use OpenRA/OpenRA#10482 as OpenRA version. I'll write here again when the mentioned fix is in.

@abcdefg30
Copy link
Member

By the way, I also made an attempt to add a make.cmd file to this repository: #35.

@abcdefg30
Copy link
Member

OpenRA/OpenRA#10482 was just merged, so you should be able to run this with current bleed of OpenRA again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants