Need Help with Themes
Fri, 2020-09-25 00:48
I've put together a theme and most of it is working, but none of my objects have been spawning. I want to make sure I'm doing this right.
We have 1 rectangle it tries to put in the ground, and 1 it tries to not collide with anything, right?
Here's my config.cfg, the objects are 128x128 images:
object = Tree1, 2, 53, 123, 65, 120, 1, 51, 113, 69, 78
object = Tree2, 2, 58, 119, 79, 125, 1, 56, 57, 72, 115
object = Bush1, 4, 56, 124, 68, 124, 1, 40, 98, 86, 117
object = Bush2, 4, 56, 121, 71, 127, 1, 42, 100, 86, 112
sky = 164, 242, 255
water-top = 5, 47, 162
water-bottom = 75, 129, 238
The syntax looks correct, but those don't appear to be valid rectangles. Please note that rectangle should be specified as "left, top, width, height", not "left, top, right, bottom" (https://hedgewars.org/kb/ThemeCfg#object)
So you probably want "53, 123, 12, 3" instead of "2, 53, 123, 65" etc.
You can try using my theme editor: https://www.hedgewars.org/node/6995
It's easier than editing theme files manually.
My themes / Theme Editor / Code contributions /
Dank
I was able to get the theme to work, thanks for that!
KoBeWi, I actually tried Theme Editor 3 a couple times. I checked that the paths were correct but it does not show any themes...