Anyone had experience with building YY-CHR plugins (C#)?

Started by wandurboy, August 14, 2017, 09:15:08 PM

Previous topic - Next topic

wandurboy

First post here, Hi!,
I've been trying to make a plugin based on the example source,
the compiling part is no trouble,
just the coding itself, been trying so many different methods but can't get the results I'm hoping for,
Basically, I'm trying to read 1px lines at a time and wrap to whatever the current ADF setting is, if that makes sense, as there's some data that isn't in the usual tile mode, but instead just a continual linear stream of pixels. So if the ADF pattern is set to 3 tiles wide, it will arrange the pixels horizontally across all 3 tiles.
any tips? is this even possible?

example data:
FF FF FF 00 00 00 FF 00 FF FF 00 FF FF 8D 8D 00 00 77 88 77 FF FF 77 88 FF AD AD 00 00 51 AE 51 FF FF 51 AE FF AD AD 00 00 51 AE 51 FF FF 51 AE FF AD AD 00 00 57 A8 57 FF FF 56 A9 FF AD AD 00 00 54 AB 54 FF FF 51 AE FF 8D 8D 00 00 77 88 77 FF FF 77 88 FF FF FF 00 00 00 FF 00 FF FF 00 FF FF FF 00 00 00 FF FF 00 00 00 00 00 FF 8A 75 00 00 88 88 00 00 77 77 00 FF AA 55 00 00 AB AB 00 00 54 54 00 FF AA 55 00 00 AB AB 00 00 54 54 00 FF A8 57 00 00 A8 A8 00 00 57 57 00 FF AE 51 00 00 AE AE 00 00 55 55 00 FF 8E 71 00 00 88 88 00 00 77 77 00 FF FF 00 00 00 FF FF 00 00 00 00 00 FF 00 FF FF FF 00 00 00 00 FF 00 FF FF 00 FF 00 88 00 FF FF FF 77 77 00 00 88 77 88 FF 00 B1 00 AE 00 FF FF FF 55 55 00 00 AA 55 AA FF 00 B5 00 AE 00 FF FF FF 57 57 00 00 AA 55 AA FF 00 B5 00 AD 00 FF FF FF 57 57 00 00 A8 57 A8 FF 00 B5 00 AD 00 FF FF FF 55 55 00 00 AE 51 AE FF 00 B5 00 8D 00 FF FF FF 77 77 00 00 88 77 88 FF 00 B1 00 FF 00 FF FF FF 00 00 00 00 FF 00 FF FF 00 FF 00 00 FF 00 00 FF FF FF FF 00 FF FF FF FF FF 00 FF 24 DB 00 00 FF B1 FF B1 4E FF B1 B1 FF AB 00 FF 24 DB 00 00 FF BD FF BD 42 FF BD BD FF AB 00 FF 24 DB 00 00 FF BD FF BD 42 FF BD BD FF AB 00 FF 24 DB 00 00 FF B1 FF B1 4C FF B3 B3 FF A3 00 FF 24 DB 00 00 FF B7 FF B7 42 FF BD BD FF BB 00 FF 24 DB 00 00 FF B1 FF B1 4E FF B1 B1 FF BB 00 FF 00 FF 00 00 FF FF FF FF 00 FF FF FF FF FF 00 FF 00 00 00 FF 00 00 FF 00 00 FF FF 00 FF 00 00 00 4E 4E 4E B1 4E 00 B1 00 5E A1 A1 00 A1 5E 00 00 48 48 48 B7 48 00 B7 00 42 BD BD 00 AD 52 00 00 48 48 48 B7 48 00 B7 00 42 BD BD 00 AD 52 00 00 4E 4E 4E B1 4E 00 B1 00 44 BB BB 00 A1 5E 00 00 42 42 42 BD 4A 00 B5 00 48 B7 B7 00 AD 52 00 00 4E 4E 4E B1 4E 00 B1 00 48 B7 B7 00 A1 5E 00 00 00 00 00 FF 00 00 FF 00 00 FF FF 00 FF 00 00 00 FF FF FF 00 FF 00 00 FF 00 FF 00 FF A1 A1 A1 5E FF 77 00 FF 00 8D 72 8D AD AD AD 52 FF 15 00 FF 00 ED 12 ED AD AD AD 52 FF 15 00 FF 00 ED 12 ED A1 A1 A1 5E FF 75 00 FF 00 8D 72 8D BD BD BD 42 FF 45 00 FF 00 BD 42 BD A1 A1 A1 5E FF 77 00 FF 00 8D 72 8D FF FF FF 00 FF 00 00 FF 00 FF 00 FF