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

Add an example of a PNG8 setup #120

Closed
ghost opened this issue Sep 10, 2019 · 4 comments
Closed

Add an example of a PNG8 setup #120

ghost opened this issue Sep 10, 2019 · 4 comments

Comments

@ghost
Copy link

ghost commented Sep 10, 2019

Continues #119.

The modSDK is a good place to maintain examples and the more we add, the easier it becomes for people to get started. Incorporating these examples somewhere in the engine just for the sake of including them will make development more complicated and maintenance harder. And a working example as part of the modSDK helps newcomers more than an outcommented one in the source code.

@yaaaaa
Copy link

yaaaaa commented Sep 10, 2019

OpenRA engine version release-20190314
Red Alert 2 Yuri's Revenge mod version playtest-20190825
Date: 2019-09-10 13:34:18Z
Operating System: Windows (Microsoft Windows NT 6.2.9200.0)
Runtime Version: .NET CLR 4.0.30319.42000
Exception of type System.ArgumentException: Длина исходного массива недостаточна. Проверьте значения srcIndex и длины, а также нижние границы массива.
в System.Array.Copy(Array sourceArray, Int32 sourceIndex, Array destinationArray, Int32 destinationIndex, Int32 length, Boolean reliable)
в System.Array.Copy(Array sourceArray, Int32 sourceIndex, Array destinationArray, Int32 destinationIndex, Int32 length)
в OpenRA.Mods.Common.SpriteLoaders.PngSheetLoader.TryParseSprite(Stream s, ISpriteFrame[]& frames, TypeDictionary& metadata) в c:\games\RTS\04.10.19\Yuris-Revenge-master\engine\OpenRA.Mods.Common\SpriteLoaders\PngSheetLoader.cs:строка 79
в OpenRA.Graphics.FrameLoader.GetFrames(Stream stream, ISpriteLoader[] loaders, TypeDictionary& metadata) в c:\games\RTS\04.10.19\Yuris-Revenge-master\engine\OpenRA.Game\Graphics\SpriteLoader.cs:строка 168
в OpenRA.Graphics.FrameLoader.GetFrames(IReadOnlyFileSystem fileSystem, String filename, ISpriteLoader[] loaders, TypeDictionary& metadata) в c:\games\RTS\04.10.19\Yuris-Revenge-master\engine\OpenRA.Game\Graphics\SpriteLoader.cs:строка 154
в OpenRA.Graphics.SpriteCache.get_Item(String filename, Func2 getUsedFrames) в c:\games\RTS\04.10.19\Yuris-Revenge-master\engine\OpenRA.Game\Graphics\SpriteLoader.cs:строка 85 в OpenRA.Mods.Common.Graphics.DefaultSpriteSequence..ctor(ModData modData, TileSet tileSet, SpriteCache cache, ISpriteSequenceLoader loader, String sequence, String animation, MiniYaml info) в c:\games\RTS\04.10.19\Yuris-Revenge-master\engine\OpenRA.Mods.Common\Graphics\DefaultSpriteSequence.cs:строка 281 в OpenRA.Mods.Common.Graphics.TilesetSpecificSpriteSequence..ctor(ModData modData, TileSet tileSet, SpriteCache cache, ISpriteSequenceLoader loader, String sequence, String animation, MiniYaml info) в c:\games\RTS\04.10.19\Yuris-Revenge-master\engine\OpenRA.Mods.Common\Graphics\TilesetSpecificSpriteSequence.cs:строка 47 в OpenRA.Mods.Common.Graphics.TilesetSpecificSpriteSequenceLoader.CreateSequence(ModData modData, TileSet tileSet, SpriteCache cache, String sequence, String animation, MiniYaml info) в c:\games\RTS\04.10.19\Yuris-Revenge-master\engine\OpenRA.Mods.Common\Graphics\TilesetSpecificSpriteSequence.cs:строка 41 в OpenRA.Mods.Common.Graphics.DefaultSpriteSequenceLoader.ParseSequences(ModData modData, TileSet tileSet, SpriteCache cache, MiniYamlNode node) в c:\games\RTS\04.10.19\Yuris-Revenge-master\engine\OpenRA.Mods.Common\Graphics\DefaultSpriteSequence.cs:строка 80 в OpenRA.Graphics.SequenceProvider.<>c__DisplayClass8.<Load>b__6() в c:\games\RTS\04.10.19\Yuris-Revenge-master\engine\OpenRA.Game\Graphics\SequenceProvider.cs:строка 122 в System.Lazy1.CreateValue()
в System.Lazy1.LazyInitValue() в System.Lazy1.get_Value()
в OpenRA.Graphics.SequenceProvider.Preload() в c:\games\RTS\04.10.19\Yuris-Revenge-master\engine\OpenRA.Game\Graphics\SequenceProvider.cs:строка 135
в OpenRA.Map.PostInit() в c:\games\RTS\04.10.19\Yuris-Revenge-master\engine\OpenRA.Game\Map\Map.cs:строка 412
в OpenRA.Map..ctor(ModData modData, IReadOnlyPackage package) в c:\games\RTS\04.10.19\Yuris-Revenge-master\engine\OpenRA.Game\Map\Map.cs:строка 392

@yaaaaa
Copy link

yaaaaa commented Sep 10, 2019

i try to use png file with this settings:

FrameSize: 36,34
FrameAmount: 384

@nicemanman
Copy link

I'd like to take this. Something else i need to know?:)

@abcdefg30
Copy link
Member

Closing as #119 was resolved via OpenRA/OpenRA#17471.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants