Skip to content

Instantly share code, notes, and snippets.

@Mailaender
Mailaender / Project.csproj
Created September 10, 2017 18:27
OpenRA.Mods.Common vs OpenRA.StyleCheck
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{5FEAB6DC-4E81-4B63-958B-22FC3534C606}</ProjectGuid>
<OutputType>Exe</OutputType>
<RootNamespace>OpenRA.StyleCheck</RootNamespace>
<AssemblyName>OpenRA.StyleCheck</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
#region Copyright & License Information
/*
* Copyright 2007-2017 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
@Mailaender
Mailaender / Actor.cs
Last active August 28, 2017 12:41
DetermineBounds vs. DetermineScreenMapBounds
Rectangle DetermineScreenMapBounds()
{
var size = TraitsImplementing<IScreenMapSize>().Select(x => x.ScreenMapSize(this)).FirstOrDefault();
var offset = -size / 2;
return new Rectangle(offset.X, offset.Y, size.X, size.Y);
}
@Mailaender
Mailaender / rename.sh
Created August 26, 2017 14:12
Used to convert OpenRA *.yaml files to *.oraml
#!/bin/bash
pushd mods/cnc/maps/
7z x '*.oramap' -o'*'
find . -name "*.oramap" -type f -delete
popd
pushd mods/ra/maps/
7z x '*.oramap' -o'*'
find . -name "*.oramap" -type f -delete
@Mailaender
Mailaender / Map.cs
Created October 9, 2016 17:52
includes an .ini trigger to Lua converter
#region Copyright & License Information
/*
* Copyright 2007-2014 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. For more information,
* see COPYING.
*/
#endregion
#region Copyright & License Information
/*
* Copyright 2007-2016 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
@Mailaender
Mailaender / openra.lua
Created July 22, 2016 16:47
ZeroBrane Studio package for OpenRA support with indentions fixed and updated to the latest development release
local interpreter = {
name = "OpenRA",
description = "OpenRA map scripting Lua API",
api = {"baselib", "openra"},
hasdebugger = false,
skipcompile = true,
}
-- This is an automatically generated Lua API definition generated for snapshot-20160722 of OpenRA.
-- https://github.com/OpenRA/OpenRA/wiki/Utility was used with the --zbstudio-lua-api parameter.
@Mailaender
Mailaender / data1.yaml
Last active June 18, 2016 09:01
File offsets from The First Decade data1.hdr
]:
Offset: 453884
Length: 0
StringTable-0009-English.ips:
Offset: 453927
Length: 116876
_IsRes.dll:
Offset: 455113
Length: 116926
_IsRes.dll:
-------------------------------------------------------------------
Sun Nov 24 16:27:36 UTC 2013 - [email protected]
- Adjusted repo to new official GitHub organisation
- replace expensive git fetch with https://en.opensuse.org/SourceUrls
- Added desurium-cef-5-nss-3.15.patch to fix the build on 13.1
-------------------------------------------------------------------
Sun Apr 28 08:06:16 UTC 2013 - [email protected]
-------------------------------------------------------------------
Wed Jul 9 13:53:02 UTC 2014 - [email protected]
- Fixed 64-bit cross-compile BNC#805424
-------------------------------------------------------------------
Sun Nov 24 16:27:36 UTC 2013 - [email protected]
- Update the MIME database on install
- Added desurium-v8-3.19.18.patch to fix build with latest V8