{"action":"created","issue":{"url":"https://api.github.com/repos/OpenRA/OpenRA/issues/8604","labels_url":"https://api.github.com/repos/OpenRA/OpenRA/issues/8604/labels{/name}","comments_url":"https://api.github.com/repos/OpenRA/OpenRA/issues/8604/comments","events_url":"https://api.github.com/repos/OpenRA/OpenRA/issues/8604/events","html_url":"https://github.com/OpenRA/OpenRA/issues/8604","id":91943234,"number":8604,"title":"Attempting to modify an infantry sprite for RA","user":{"login":"sajwang","id":12248434,"avatar_url":"https://avatars.githubusercontent.com/u/12248434?v=3","gravatar_id":"","url":"https://api.github.com/users/sajwang","html_url":"https://github.com/sajwang","followers_url":"https://api.github.com/users/sajwang/followers","following_url":"https://api.github.com/users/sajwang/following{/other_user}","gists_url":"https://api.github.com/users/sajwang/gists{/gist_id}","starred_url":"https://api.github.com/users/sajwang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sajwang/subscriptions","organizations_url":"https://api.github.com/users/sajwang/orgs","repos_url":"https://api.github.com/users/sajwang/repos","events_url":"https://api.github.com/users/sajwang/events{/privacy}","received_events_url":"https://api.github.com/users/sajwang/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-06-30T00:37:54Z","updated_at":"2015-06-30T07:28:52Z","closed_at":"2015-06-30T03:21:07Z","body":"Hello,\r\n\r\nA few days ago I asked about SHP builder.\r\n\r\nI actually have a slightly different issue now.\r\n\r\nSo I am turning a mechanic into a multipurpose unit (i.e. giving him both the medic heal weapon and mechanic repair weapon).\r\n\r\nTo distinguish him from the mechanic I swapped two colors within the sprite from a brown and red-orange color (229 and 231 in what I believe is the pallete, specifically out of the colors I'm permitted to swap in the SHP builder) to shades of blue (197 and 199).\r\n\r\nI get this error from exceptions.log:\r\n\"\r\nRed Alert- Globalization Mod at Version mod 1.0\r\nOperating System: Windows (Microsoft Windows NT 6.2.9200.0)\r\nRuntime Version: .NET CLR 4.0.30319.34014\r\nException of type `System.IndexOutOfRangeException`: Index was outside the bounds of the array.\r\n   at OpenRA.FileFormats.Format80.DecodeInto(Byte[] src, Byte[] dest, Int32 srcOffset, Boolean reverse)\r\n   at OpenRA.Mods.Common.SpriteLoaders.ShpTDSprite.Decompress(ImageHeader h)\r\n   at OpenRA.Mods.Common.SpriteLoaders.ShpTDSprite..ctor(Stream stream)\r\n   at OpenRA.Mods.Common.SpriteLoaders.ShpTDLoader.TryParseSprite(Stream s, ISpriteFrame[]& frames)\r\n   at OpenRA.Graphics.SpriteLoader.GetFrames(String filename, ISpriteLoader[] loaders)\r\n   at OpenRA.Graphics.SpriteLoader.GetSprites(String filename, ISpriteLoader[] loaders, SheetBuilder sheetBuilder)\r\n   at OpenRA.Graphics.SpriteCache.<>c__DisplayClass2.<.ctor>b__0(String filename)\r\n   at OpenRA.Primitives.Cache`2.get_Item(T key)\r\n   at OpenRA.Graphics.SpriteCache.get_Item(String filename)\r\n   at OpenRA.Mods.Common.Graphics.DefaultSpriteSequence..ctor(ModData modData, TileSet tileSet, SpriteCache cache, ISpriteSequenceLoader loader, String sequence, String animation, MiniYaml info)\r\n   at OpenRA.Mods.Common.Graphics.TilesetSpecificSpriteSequence..ctor(ModData modData, TileSet tileSet, SpriteCache cache, ISpriteSequenceLoader loader, String sequence, String animation, MiniYaml info)\r\n   at OpenRA.Mods.Common.Graphics.TilesetSpecificSpriteSequenceLoader.CreateSequence(ModData modData, TileSet tileSet, SpriteCache cache, String sequence, String animation, MiniYaml info)\r\n   at OpenRA.Mods.Common.Graphics.DefaultSpriteSequenceLoader.ParseSequences(ModData modData, TileSet tileSet, SpriteCache cache, MiniYamlNode node)\r\n   at OpenRA.Graphics.SequenceCache.<>c__DisplayClass8.<Load>b__5()\r\n   at System.Lazy`1.CreateValue()\r\n   at System.Lazy`1.LazyInitValue()\r\n   at System.Lazy`1.get_Value()\r\n   at OpenRA.Graphics.SequenceProvider.Preload()\r\n   at OpenRA.ModData.PrepareMap(String uid)\r\n   at OpenRA.Game.StartGame(String mapUID, WorldType type)\r\n   at OpenRA.Game.LoadShellMap()\r\n   at OpenRA.Mods.Common.LoadScreens.BlankLoadScreen.StartGame(Arguments args)\r\n   at OpenRA.Game.InitializeMod(String mod, Arguments args)\r\n   at OpenRA.Game.Initialize(Arguments args)\r\n   at OpenRA.Program.Run(String[] args)\r\n   at OpenRA.Program.Main(String[] args)\r\n\"\r\n\r\nI brute forced it later (converted the image to a GIF, processed it in another image program, and copy pasted frames from scratch), same result.\r\n\r\nIf it helps I tend to use the temperat.pal files for RA.\r\n\r\nThanks again!"},"comment":{"url":"https://api.github.com/repos/OpenRA/OpenRA/issues/comments/117036597","html_url":"https://github.com/OpenRA/OpenRA/issues/8604#issuecomment-117036597","issue_url":"https://api.github.com/repos/OpenRA/OpenRA/issues/8604","id":117036597,"user":{"login":"GraionDilach","id":1136302,"avatar_url":"https://avatars.githubusercontent.com/u/1136302?v=3","gravatar_id":"","url":"https://api.github.com/users/GraionDilach","html_url":"https://github.com/GraionDilach","followers_url":"https://api.github.com/users/GraionDilach/followers","following_url":"https://api.github.com/users/GraionDilach/following{/other_user}","gists_url":"https://api.github.com/users/GraionDilach/gists{/gist_id}","starred_url":"https://api.github.com/users/GraionDilach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GraionDilach/subscriptions","organizations_url":"https://api.github.com/users/GraionDilach/orgs","repos_url":"https://api.github.com/users/GraionDilach/repos","events_url":"https://api.github.com/users/GraionDilach/events{/privacy}","received_events_url":"https://api.github.com/users/GraionDilach/received_events","type":"User","site_admin":false},"created_at":"2015-06-30T07:28:52Z","updated_at":"2015-06-30T07:28:52Z","body":"Still keep XCC Mixer for converting, it's better than OpenRA.Utility for now. And it can extract the palettes from an indexed image too, so that can help as well.\r\n\r\nI'm not sure, but saving in PCX in GIMP might not mess up the palette actually, I haven't used GIMP for ages now, though, and my memory faded."}}