Need Help with Themes

3 replies [Last post]
Connorses
User offline. Last seen 1 year 40 weeks ago. Offline
Joined: 2020-07-18
Posts: 8

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

xiongmao
User offline. Last seen 3 years 18 weeks ago. Offline
Joined: 2018-11-03
Posts: 15

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.

KoBeWi
KoBeWi's picture
User offline. Last seen 3 days 10 hours ago. Offline
Joined: 2010-12-25
Posts: 564

You can try using my theme editor: https://www.hedgewars.org/node/6995
It's easier than editing theme files manually.

Connorses
User offline. Last seen 1 year 40 weeks ago. Offline
Joined: 2020-07-18
Posts: 8

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...

Copyright © 2004-2023 Hedgewars Project. All rights reserved. [ contact ]