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

Added two new difficulties to allies-05a #8359

Merged
merged 2 commits into from
Jul 1, 2015

Conversation

abcdefg30
Copy link
Member

Also fixed #8353.

@Mailaender
Copy link
Member

I suggest to only git cherry-pick e1b5b3f into prep-1505.

@abcdefg30
Copy link
Member Author

Updated with suggestions from @Snurre86.
Also added some speech notifications.

@abcdefg30
Copy link
Member Author

@obrakmann
Copy link
Contributor

I've just cherry-picked the first commit into prep.

Trigger.OnRemovedFromWorld(Tanya, function()
ExtractUnits(ExtractionHeli, exitPos, function()

Media.PlaySpeechNotification("TanyaRescued")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fatal Lua Error: [string "BindingSupport.lua"]:30: Unable to convert parameter 0 to Player

You'll notice a pattern here ;)

@abcdefg30
Copy link
Member Author

Derp, fixed.

IdleHunt(unit)
end)
local units = { }
if SendWaterTransports and Utils.RandomInteger(0,1) == 1 then
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will never happen, because Utils.RandomInteger never returns the high value. Yes, it's annoying, but it's too late to change now.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

@obrakmann
Copy link
Contributor

Looks otherwise good to me. Didn't try the hardest skill in earnest, but "Hard" was doable. 👍

@Mailaender
Copy link
Member

Crashes when exploding the last SAM site on "Real tough guy":

Fatal Lua Error: [string "BindingSupport.lua"]:30: Uncaught CLR exception at Lua->CLR boundary: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidOperationException: Actor has multiple traits of type `OpenRA.Mods.Common.Traits.RenderSprites`
  at OpenRA.TraitDictionary+TraitContainer`1[OpenRA.Mods.Common.Traits.RenderSprites].GetOrDefault (UInt32 actor) [0x000b4] in /home/matthias/Entwicklung/OpenRA/OpenRA.Game/TraitDictionary.cs:161 
  at OpenRA.TraitDictionary+TraitContainer`1[OpenRA.Mods.Common.Traits.RenderSprites].Get (UInt32 actor) [0x00003] in /home/matthias/Entwicklung/OpenRA/OpenRA.Game/TraitDictionary.cs:146 
  at OpenRA.TraitDictionary.Get[RenderSprites] (OpenRA.Actor actor) [0x00013] in /home/matthias/Entwicklung/OpenRA/OpenRA.Game/TraitDictionary.cs:96 
  at OpenRA.Actor.Trait[RenderSprites] () [0x0000d] in /home/matthias/Entwicklung/OpenRA/OpenRA.Game/Actor.cs:212 
  at OpenRA.Mods.Common.Traits.WithSpriteBody..ctor (OpenRA.ActorInitializer init, OpenRA.Mods.Common.Traits.WithSpriteBodyInfo info, System.Func`1 baseFacing) [0x00027] in /home/matthias/Entwicklung/OpenRA/OpenRA.Mods.Common/Traits/Render/WithSpriteBody.cs:55 
  at OpenRA.Mods.Common.Traits.WithFacingSpriteBody..ctor (OpenRA.ActorInitializer init, OpenRA.Mods.Common.Traits.WithFacingSpriteBodyInfo info) [0x00009] in /home/matthias/Entwicklung/OpenRA/OpenRA.Mods.Common/Traits/Render/WithFacingSpriteBody.cs:44 
  at OpenRA.Mods.Common.Traits.WithFacingSpriteBodyInfo.Create (OpenRA.ActorInitializer init) [0x00003] in /home/matthias/Entwicklung/OpenRA/OpenRA.Mods.Common/Traits/Render/WithFacingSpriteBody.cs:21 
  at OpenRA.Actor..ctor (OpenRA.World world, System.String name, OpenRA.Primitives.TypeDictionary initDict) [0x000c8] in /home/matthias/Entwicklung/OpenRA/OpenRA.Game/Actor.cs:95 
  at OpenRA.World.CreateActor (Boolean addToWorld, System.String name, OpenRA.Primitives.TypeDictionary initDict) [0x00004] in /home/matthias/Entwicklung/OpenRA/OpenRA.Game/World.cs:241 
  at OpenRA.Mods.Common.Scripting.ReinforcementsGlobal.CreateActor (OpenRA.Player owner, System.String actorType, Boolean addToWorld, Nullable`1 entryLocation, Nullable`1 nextLocation) [0x00131] in /home/matthias/Entwicklung/OpenRA/OpenRA.Mods.Common/Scripting/Global/ReinforcementsGlobal.cs:50 
  at OpenRA.Mods.Common.Scripting.ReinforcementsGlobal.ReinforceWithTransport (OpenRA.Player owner, System.String actorType, System.String[] cargoTypes, OpenRA.CPos[] entryPath, OpenRA.CPos[] exitPath, Eluant.LuaFunction actionFunc, Eluant.LuaFunction exitFunc) [0x0004f] in /home/matthias/Entwicklung/OpenRA/OpenRA.Mods.Common/Scripting/Global/ReinforcementsGlobal.cs:112 
  at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00054] in /home/abuild/rpmbuild/BUILD/mono-4.0.2/mcs/class/corlib/System.Reflection/MonoMethod.cs:230 
  --- End of inner exception stack trace ---
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00069] in /home/abuild/rpmbuild/BUILD/mono-4.0.2/mcs/class/corlib/System.Reflection/MonoMethod.cs:238 
  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in /home/abuild/rpmbuild/BUILD/mono-4.0.2/mcs/class/corlib/System.Reflection/MethodBase.cs:114 
  at OpenRA.Scripting.ScriptMemberWrapper.Invoke (Eluant.LuaVararg args) [0x00101] in /home/matthias/Entwicklung/OpenRA/OpenRA.Game/Scripting/ScriptMemberWrapper.cs:70 
  at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00054] in /home/abuild/rpmbuild/BUILD/mono-4.0.2/mcs/class/corlib/System.Reflection/MonoMethod.cs:230 
  --- End of inner exception stack trace ---
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00069] in /home/abuild/rpmbuild/BUILD/mono-4.0.2/mcs/class/corlib/System.Reflection/MonoMethod.cs:238 
  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in /home/abuild/rpmbuild/BUILD/mono-4.0.2/mcs/class/corlib/System.Reflection/MethodBase.cs:114 
  at Eluant.LuaRuntime+MethodWrapper.Invoke (System.Object[] parms) [0x00000] in <filename unknown>:0 
  at Eluant.LuaRuntime.MakeManagedCall (IntPtr state, Eluant.MethodWrapper wrapper) [0x00000] in <filename unknown>:0 
   at OpenRA.Scripting.ScriptContext.FatalError(System.String message)
   at OpenRA.Mods.Common.Scripting.TriggerGlobal+<OnAllKilled>c__AnonStorey1.<>m__0(OpenRA.Actor m)
   at OpenRA.Mods.Common.Scripting.ScriptTriggers.Killed(OpenRA.Actor self, OpenRA.Traits.AttackInfo e)
   at OpenRA.Traits.Health.InflictDamage(OpenRA.Actor self, OpenRA.Actor attacker, Int32 damage, OpenRA.GameRules.DamageWarhead warhead, Boolean ignoreModifiers)
   at OpenRA.Actor.Kill(OpenRA.Actor attacker)
   at OpenRA.Mods.Common.Traits.Demolishable.Demolish(OpenRA.Actor self, OpenRA.Actor saboteur)
   at OpenRA.Mods.Common.Activities.Demolish+<OnInside>c__AnonStorey2+<OnInside>c__AnonStorey1.<>m__3(IDemolishable d)
   at OpenRA.Exts.Do(IEnumerable`1 e, System.Action`1 fn)
   at OpenRA.Mods.Common.Activities.Demolish+<OnInside>c__AnonStorey2+<OnInside>c__AnonStorey1.<>m__1()
   at OpenRA.Effects.DelayedAction.<Tick>m__0(OpenRA.World w)
   at OpenRA.World.Tick()
   at OpenRA.Game.InnerLogicTick(OpenRA.Network.OrderManager orderManager)
   at OpenRA.Game.LogicTick()
   at OpenRA.Game.Loop()
   at OpenRA.Game.Run()
   at OpenRA.Program.Run(System.String[] args)
   at OpenRA.Program.Main(System.String[] args)

@abcdefg30
Copy link
Member Author

Should be fixed now.

@Mailaender
Copy link
Member

Otherwise works as promised. ✅

@abcdefg30
Copy link
Member Author

Updated.

@Mailaender
Copy link
Member

Needs a rebase due to #8416.

@abcdefg30
Copy link
Member Author

Rebased.

@Mailaender
Copy link
Member

Most creative super hard difficulty yet!

image

Works as promised. ✅

Mailaender added a commit that referenced this pull request Jul 1, 2015
Added two new difficulties to allies-05a
@Mailaender Mailaender merged commit 79d00b2 into OpenRA:bleed Jul 1, 2015
@abcdefg30 abcdefg30 deleted the difficulty branch July 1, 2015 20:09
@Mailaender
Copy link
Member

Changelog

@Mailaender Mailaender mentioned this pull request Jul 1, 2015
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allies 05a soviet command center doesn't count.
4 participants