Skip to content

Instantly share code, notes, and snippets.

Player: abcdefg30 (Windows Microsoft Windows NT 6.2.9200.0 .NET CLR 4.0.30319.34209)
Game ID: (Mod: Red Alert at Version {DEV_VERSION})
Sync for net frame 4 -------------
SharedRandom: 1186340797 (#48)
Synced Traits:
1 player Neutral PlayerResources (5000)
Cash: 5000
Resources: 0
ResourceCapacity: 0
1 player Neutral ClassicProductionQueue (1)
Player: abcdefg30 (Windows Microsoft Windows NT 6.2.9200.0 .NET CLR 4.0.30319.34209)
Game ID: (Mod: Red Alert at Version git-e3194ed)
Sync for net frame 6 -------------
SharedRandom: 627519218 (#46)
Synced Traits:
1 player Neutral PlayerResources (5000)
Cash: 5000
Resources: 0
ResourceCapacity: 0
1 player Neutral ClassicProductionQueue (1)
#region Copyright & License Information
/*
* Copyright 2007-2015 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
@Mailaender
Mailaender / dupFinder.xsl
Created June 8, 2015 18:21 — forked from dmimat/dupFinder.xsl
fix total size of duplicated fragments
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="html" indent="yes" />
<xsl:template match="/">
<html>
<body>
<h1>Statistics</h1>
<p>Total codebase size: <xsl:value-of select="//CodebaseCost"/></p>
<p>Code to analyze: <xsl:value-of select="//TotalDuplicatesCost"/></p>
<p>Total size of duplicated fragments: <xsl:value-of select="//TotalFragmentsCost" /></p>
@Mailaender
Mailaender / Traits.md
Created May 20, 2015 15:21
OpenRA bleed-20150520
@Mailaender
Mailaender / spread-damage-warhead-whole
Created September 28, 2014 19:37
OpenRA.Mods.RA.dll decompiled with ikdasm
.class public auto ansi beforefieldinit OpenRA.Mods.RA.SpreadDamageWarhead
extends [OpenRA.Game]OpenRA.GameRules.DamageWarhead
{
.field public initonly valuetype [OpenRA.Game]OpenRA.WRange Spread
.custom instance void [OpenRA.Game]OpenRA.DescAttribute::.ctor(string[]) = ( 01 00 01 00 00 00 1C 52 61 6E 67 65 20 62 65 74 // .......Range bet
77 65 65 6E 20 66 61 6C 6C 6F 66 66 20 73 74 65 // ween falloff ste
70 73 2E 00 00 ) // ps...
.field public valuetype [OpenRA.Game]OpenRA.WRange[] Range
.custom instance void [OpenRA.Game]OpenRA.DescAttribute::.ctor(string[]) = ( 01 00 01 00 00 00 3F 52 61 6E 67 65 73 20 61 74 // ......?Ranges at
20 77 68 69 63 68 20 65 61 63 68 20 46 61 6C 6C // which each Fall
@Mailaender
Mailaender / spread-damage-warhead
Created September 28, 2014 19:34
OpenRA.Mods.RA.dll decompiled with ikdasm
.class public auto ansi beforefieldinit OpenRA.Mods.RA.SpreadDamageWarhead
extends [OpenRA.Game]OpenRA.GameRules.DamageWarhead
{
.field public initonly valuetype [OpenRA.Game]OpenRA.WRange Spread
.custom instance void [OpenRA.Game]OpenRA.DescAttribute::.ctor(string[]) = ( 01 00 01 00 00 00 1C 52 61 6E 67 65 20 62 65 74 // .......Range bet
77 65 65 6E 20 66 61 6C 6C 6F 66 66 20 73 74 65 // ween falloff ste
70 73 2E 00 00 ) // ps...
.field public valuetype [OpenRA.Game]OpenRA.WRange[] Range
.custom instance void [OpenRA.Game]OpenRA.DescAttribute::.ctor(string[]) = ( 01 00 01 00 00 00 3F 52 61 6E 67 65 73 20 61 74 // ......?Ranges at
20 77 68 69 63 68 20 65 61 63 68 20 46 61 6C 6C // which each Fall
======================
Dune 2 SHP file format
======================
Sourced from Red Horizon Utilities by Emanuel Rabina
http://www.ultraq.net.nz/redhorizon/
The Dune 2 SHP file, is a multiple image filetype, where each image can have
it's own set of dimensions. The file is structured as follows:
File header:
@Mailaender
Mailaender / cnc-rules.ini
Created July 7, 2014 06:57
Tiberian Dawn RULES.INI extracted from the binaries by @Nyerguds
; Command & Conquer RULES.INI
; If placed in game directory, it will not override built in values. Values to be used as
; multipliers or percentages can be specified as either a simple floating point number (embed ".")
; or as a conventional percentage number (append "%"). Values used as cell distances or time delays
; are specified as simple floating point number. Distance values are expressed in cells. Time
; values are expressed in minutes.
; This is not the real file because there is none - the C&C rules were hard-coded into the game.dat
; file (C&C95.exe in Win95 Edition). This is what the file could have been like, based on what
; editors/testing tells us, as well as what the values were in Red Alert, which is VERY similar to
# check if DRI is available, show an error and exit if it isn't
function checkDriOK ()
{
if [ `glxinfo | grep "direct rendering: " | head -n 1 | cut -d " " -f 3` != Yes ]; then
zenity --error --text="Your system currently is not capable of hardware \
accelerated 3D. Therefore $1 cannot run.
Usually the cause of this error is that there are no Free Software drivers \
for your graphics card, please contact your graphics card manufacturer and \
kindly ask them to provide Free Software support for your card."