[ X ]
Airstrip Reinforcements?
Having an issue with production
Post new topic   Reply to topic Page 1 of 1
View previous topic :: View next topic  
Author Message
Darkstorm
Level: 27


Position: Registered User
Joined: 10 Jun 2012
Posts: 9
Kel: 12  [ Donate ]

Online Status: Offline
PostPosted: Sun Jun 10, 2012 6:12 pm    Post subject: Airstrip Reinforcements? Reply with quote

I'm making a small RA mod with a "resistance" faction but I've run into a snag. I wanted to bring over Nod style vehicle production, but whenever I start the game I get this error:

Code:

Description:
  Stopped working

Problem signature:
  Problem Event Name:   CLR20r3
  Problem Signature 01:   openra.game.exe
  Problem Signature 02:   1.0.0.0
  Problem Signature 03:   4fa2f03f
  Problem Signature 04:   OpenRA.Game
  Problem Signature 05:   1.0.0.0
  Problem Signature 06:   4fa2f03f
  Problem Signature 07:   15a
  Problem Signature 08:   19
  Problem Signature 09:   System.InvalidOperationException
  OS Version:   6.1.7601.2.1.0.768.3
  Locale ID:   1033


I don't really know if it'll help. I'm using almost a direct copy of the airstrip with a changed id. (It's AIRS not AFLD)

I've uploaded a copy of my mod. (I don't think there is anything that's not mine in it, but I can't remember)


Attachment:
 Filename:  Resistance Faction.zip
 Description:  Mod File
1.68 MB :: Downloaded 65 Time(s) :: [ Download ]

Back to top
View user's profile Find all posts by Darkstorm Send private message ICQ Number
Cmd. Matt
Level: 45



Position: Registered User
Joined: 01 May 2012
Posts: 519
Kel: 518  [ Donate ]

Online Status: Offline
PostPosted: Sun Jun 10, 2012 7:05 pm  Reply with quote

Have a look at your exception.log file. It can be found in My Documents/OpenRA/Logs
Back to top
View user's profile Find all posts by Cmd. Matt Send private message ICQ Number
Darkstorm
Level: 27


Position: Registered User
Joined: 10 Jun 2012
Posts: 9
Kel: 12  [ Donate ]

Online Status: Offline
PostPosted: Sun Jun 10, 2012 8:19 pm  Reply with quote

This?

Code:
System.InvalidOperationException: Cannot locate type: ProductionAirdropInfo
   at OpenRA.ObjectCreator.<MissingTypeAction>m__55(String s)
   at OpenRA.ObjectCreator.CreateObject[T](String className, Dictionary`2 args)
   at OpenRA.ActorInfo..ctor(String name, MiniYaml node, Dictionary`2 allUnits)
   at OpenRA.Rules.<LoadRules>m__34(MiniYamlNode k, Dictionary`2 y)
   at OpenRA.Rules.<LoadYamlRules>c__AnonStorey28`1.<>m__3D(MiniYamlNode kv)
   at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)
   at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector)
   at OpenRA.Rules.LoadYamlRules[T](String[] files, List`1 dict, Func`3 f)
   at OpenRA.Rules.LoadRules(Manifest m, Map map)
   at OpenRA.ModData.PrepareMap(String uid)
   at OpenRA.Game.StartGame(String mapUID, Boolean isShellmap)
   at OpenRA.Game.LoadShellMap()
   at OpenRA.Mods.RA.RALoadScreen.TestAndContinue()
   at OpenRA.Mods.RA.RALoadScreen.StartGame()
   at OpenRA.Game.InitializeWithMods(String[] mods)
   at OpenRA.Mods.RA.Widgets.Logic.ModBrowserLogic.<LoadMod>c__AnonStorey102.<>m__26A()
   at System.Action.Invoke()
   at OpenRA.FileFormats.ActionQueue.PerformActions()
   at OpenRA.Game.Tick(OrderManager orderManager, Viewport viewPort)
   at OpenRA.Game.Run()
   at OpenRA.Program.Run(String[] args)
   at OpenRA.Program.Main(String[] args)
Back to top
View user's profile Find all posts by Darkstorm Send private message ICQ Number
Cmd. Matt
Level: 45



Position: Registered User
Joined: 01 May 2012
Posts: 519
Kel: 518  [ Donate ]

Online Status: Offline
PostPosted: Sun Jun 10, 2012 8:42 pm  Reply with quote

ProductionAirdrop is part of OpenRA.Mods.Cnc so you need to reference that dll, too.
Back to top
View user's profile Find all posts by Cmd. Matt Send private message ICQ Number
Generalcamo
Level: 48


Position: Registered User
Joined: 26 Sep 2010
Posts: 49
Kel: 29  [ Donate ]

Online Status: Offline
PostPosted: Sun Jun 10, 2012 11:35 pm  Reply with quote

Let me test it, to see if that helps.

EDIT: Tested it. However, you will need to add a C17 SHP with sequences in order to get it to work. That SHP must be named C17. With a conversion tool, you can convert the CNC C17 to get it to work.

Make sure to add the sequences for the C17 as well.


Last edited by Generalcamo on Mon Jun 11, 2012 12:35 am; edited 2 times in total
Back to top
View user's profile Find all posts by Generalcamo Send private message ICQ Number
Darkstorm
Level: 27


Position: Registered User
Joined: 10 Jun 2012
Posts: 9
Kel: 12  [ Donate ]

Online Status: Offline
PostPosted: Mon Jun 11, 2012 12:29 am  Reply with quote

Well that cnc dll thing solved that issue but I got this when I built a unit (mind you I pretty much copied the c17 to my mod's aircraft file and just changed its render image).

Code:
System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
   at System.ThrowHelper.ThrowKeyNotFoundException()
   at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
   at OpenRA.Mods.Cnc.ProductionAirdrop.<Produce>c__AnonStorey11.<>m__1C(World w)
   at OpenRA.World.Tick()
   at OpenRA.Game.Tick(OrderManager orderManager)
   at OpenRA.Game.Tick(OrderManager orderManager, Viewport viewPort)
   at OpenRA.Game.Run()
   at OpenRA.Program.Run(String[] args)
   at OpenRA.Program.Main(String[] args)
Back to top
View user's profile Find all posts by Darkstorm Send private message ICQ Number
Generalcamo
Level: 48


Position: Registered User
Joined: 26 Sep 2010
Posts: 49
Kel: 29  [ Donate ]

Online Status: Offline
PostPosted: Mon Jun 11, 2012 12:34 am  Reply with quote

See my edit for the fix.
Back to top
View user's profile Find all posts by Generalcamo Send private message ICQ Number
Darkstorm
Level: 27


Position: Registered User
Joined: 10 Jun 2012
Posts: 9
Kel: 12  [ Donate ]

Online Status: Offline
PostPosted: Mon Jun 11, 2012 12:42 am  Reply with quote

Fail me forgot the sequence.
Back to top
View user's profile Find all posts by Darkstorm Send private message ICQ Number
chrisf
Level: 52


Position: Moderator
Joined: 06 Sep 2010
Posts: 243
Kel: 256  [ Donate ]

Online Status: Offline
PostPosted: Mon Jun 11, 2012 2:10 am  Reply with quote

See https://github.com/OpenRA/OpenRA/issues/2208 for that bit of hardcoded sillyness
Back to top
View user's profile Find all posts by chrisf Send private message Send e-mail ICQ Number
Darkstorm
Level: 27


Position: Registered User
Joined: 10 Jun 2012
Posts: 9
Kel: 12  [ Donate ]

Online Status: Offline
PostPosted: Mon Jun 11, 2012 5:21 am  Reply with quote

Yeah, it should really be configurable along with the paradrop plane (if it isn't already).

Oh and thanks to all that helped me with this, by the way, I got it to work fine.
Back to top
View user's profile Find all posts by Darkstorm Send private message ICQ Number
Generalcamo
Level: 48


Position: Registered User
Joined: 26 Sep 2010
Posts: 49
Kel: 29  [ Donate ]

Online Status: Offline
PostPosted: Mon Jun 11, 2012 2:15 pm  Reply with quote

Have you considered joining our IRC network at freenode? We can gladly help you with any problems you might have.
Back to top
View user's profile Find all posts by Generalcamo Send private message ICQ Number
Darkstorm
Level: 27


Position: Registered User
Joined: 10 Jun 2012
Posts: 9
Kel: 12  [ Donate ]

Online Status: Offline
PostPosted: Wed Jun 13, 2012 7:30 am  Reply with quote

I should probably do that.
Back to top
View user's profile Find all posts by Darkstorm Send private message ICQ Number
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1