Skip to content

Instantly share code, notes, and snippets.

View MustaphaTR's full-sized avatar

Mustafa Alperen Seki MustaphaTR

  • Kastamonu, Turkey
View GitHub Profile
#region Copyright & License Information
/*
* Copyright 2007-2020 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of
* the License, or (at your option) any later version. For more
* information, see COPYING.
*/
#endregion
--cameras = { CAMERA_NOD_CABAL, CAMERA_MUTANT_CABAL, CAMERA_SCRIN_GDI }
MutantBusGuys = { marauder, marauder, marauder, marauder, mutfiend }
GDIPatrol1 = { GDIPatrolA1.Location, GDIPatrolA2.Location }
GDIPatrol2 = { GDIPatrolB1.Location, GDIPatrolB2.Location }
GDIPatrol3 = { GDIPatrolC1.Location, GDIPatrolC2.Location }
NodPatrol1 = { NodPatrolA1.Location, NodPatrolA2.Location }
NodPatrol2 = { NodPatrolB1.Location, NodPatrolB2.Location }
NodPatrol3 = { NodPatrolC1.Location, NodPatrolC2.Location }
Fatal Lua Error: [string "BindingSupport.lua"]:30: Uncaught CLR exception at Lua->CLR boundary: System.Reflection.TargetInvocationException: Özel durum bir çağırma hedefi tarafından oluşturuldu. ---> System.Reflection.TargetInvocationException: Özel durum bir çağırma hedefi tarafından oluşturuldu. ---> Eluant.LuaException: C:\OpenRA\SoleSurvivor\engine\/lua/sandbox.lua:139: Quota exceeded: 1000000
konum: Eluant.LuaRuntime.Call(IList`1 args)
konum: Eluant.LuaRuntime.Call(LuaFunction fn, IList`1 args)
konum: Eluant.LuaFunction.Call(IList`1 args)
konum: OpenRA.Mods.Common.Scripting.UtilsGlobal.Where(LuaValue[] collection, LuaFunction func)
--- İç özel durum yığını izlemesinin sonu ---
konum: System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
konum: System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
konum: System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags
#region Copyright & License Information
/*
* Copyright 2007-2019 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of
* the License, or (at your option) any later version. For more
* information, see COPYING.
*/
#endregion
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.27703.2000
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "OpenRA.Mods.RA2", "OpenRA.Mods.RA2\OpenRA.Mods.RA2.csproj", "{7E1263D2-BA04-48D0-85DB-26C68B782608}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "OpenRA.Mods.AS", "engine\OpenRA.Mods.AS\OpenRA.Mods.AS.csproj", "{6DEEE499-98E5-4977-AAAE-CEAE165F17CF}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "OpenRA.Mods.Common", "engine\OpenRA.Mods.Common\OpenRA.Mods.Common.csproj", "{FE6C8CC0-2F07-442A-B29F-17617B3B7FC6}"
#region Copyright & License Information
/*
* Copyright 2015- OpenRA.Mods.AS Developers (see AUTHORS)
* This file is a part of a third-party plugin for OpenRA, which is
* free software. It is made available to you under the terms of the
* GNU General Public License as published by the Free Software
* Foundation. For more information, see COPYING.
*/
#endregion
OpenRA engine version 7d70aa1
Red Alert 2: Romanov's Vengeance mod version 7d70aa1
Date: 2019-04-01 16:57:46Z
Operating System: OSX (Unix 17.7.0.0)
Runtime Version: Mono 5.18.1.0 (2018-08/9cb3348c311) CLR 4.0.30319.42000
Exception of type `System.DllNotFoundException`: libfreetype.6.dylib
TypeName=``
at (wrapper managed-to-native) OpenRA.Platforms.Default.FreeType.FT_Init_FreeType(intptr&)
at OpenRA.Platforms.Default.FreeTypeFont..ctor (System.Byte[] data) [0x0001b] in <f0ccabffbb9c4b9f8202fcc1ad8bb536>:0
at OpenRA.Platforms.Default.DefaultPlatform.CreateFont (System.Byte[] data) [0x00001] in <f0ccabffbb9c4b9f8202fcc1ad8bb536>:0
@MustaphaTR
MustaphaTR / code
Last active January 29, 2019 11:31
Doesn't work:
// If all valid weapons have depleted their ammo and Rearmable trait exists, return to RearmActor
if (rearmable != null && attackAircraft.Armaments.All(x => x.IsTraitPaused || !x.Weapon.IsValidAgainst(target, self.World, self)))
return new ReturnToBase(self, aircraft.Info.AbortOnResupply);
Works:
// If all valid weapons have depleted their ammo and Rearmable trait exists, return to RearmActor to reload and then resume the activity
if (rearmable != null && attackAircraft.Armaments.All(x => x.IsTraitPaused || !x.Weapon.IsValidAgainst(target, self.World, self)))
{
self.QueueActivity(new ReturnToBase(self, aircraft.Info.AbortOnResupply));
^EngineerBuilding:
GrantConditionOnDeploy@REMOVE:
DeployedCondition: deployed
SkipMakeAnimation: true
DeploySound: cashturn.aud
PauseOnCondition: deployed
RequiresCondition: removeable
KillsSelf@REMOVE:
Delay: 50
RemoveInstead: true
OpenRA engine version 6150a86
Red Alert 2 mod version 6150a86
on map a26faf794e180a99d4a0bd3f606ab53f241ae676 (Spineral RM by Nitro Haven).
Date: 2018-12-05 11:32:02Z
Operating System: Windows (Microsoft Windows NT 6.2.9200.0)
Runtime Version: .NET CLR 4.0.30319.42000
Exception of type `System.NullReferenceException`: Nesne başvurusu bir nesnenin örneğine ayarlanmadı.
konum: OpenRA.Graphics.Animation.ScreenBounds(WorldRenderer wr, WPos pos, WVec offset, Single scale) c:\OpenRA\ra2-''secret''-ra2-mod\engine\OpenRA.Game\Graphics\Animation.cs içinde: satır 72
konum: OpenRA.Graphics.AnimationWithOffset.ScreenBounds(Actor self, WorldRenderer wr, Single scale) c:\OpenRA\ra2-''secret''-ra2-mod\engine\OpenRA.Game\Graphics\AnimationWithOffset.cs içinde: satır 52
konum: OpenRA.Mods.Common.Traits.Render.RenderSprites.<ScreenBounds>d__f.MoveNext() c:\OpenRA\ra2-''secret''-ra2-mod\engine\OpenRA.Mods.Common\Traits\Render\RenderSprites.cs içinde: satır 211