Need help trying to make custom unit sprites work

Wargus is a Warcraft 2 mod that allows you to play Warcraft 2 with the Stratagus engine.
Post Reply
Erenussocrates
Posts: 7
Joined: Sun Aug 14, 2016 7:19 pm

Need help trying to make custom unit sprites work

Post by Erenussocrates »

Hey, I dug around desperately enough to find some cool stuff in this forums, and I've stumbled on some sprites.

The dragon rider and spearman in the attachment of this post are the two of them. I've even modified their number of panels to be the same as gryphon rider and axethrower, respectively, so that I won't have too much problem getting the animations work if I copy and paste their animation code. Even though I did copy the respective codes in anim.lua and changed the names accordingly, whenever I try to create a new unit and assign the animation and the sprite png to it, it fails. The game crashes whenever I attempt to start a campaign mission. I really need help with working it.

I tried to open stderr to see the cause of the crash, but stderr doesn't say anything.
Attachments
dragon_rider.png
dragon_rider.png (139.48 KiB) Viewed 4836 times
spearman.png
spearman.png (46.9 KiB) Viewed 4836 times
Post Reply