Custom terrain problems [SOLVED]

Discussion of all aspects of multiplayer development: unit balancing, map development, server development, and so forth.

Moderator: Forum Moderators

Post Reply
king_scrooge
Posts: 8
Joined: January 8th, 2011, 4:15 pm

Custom terrain problems [SOLVED]

Post by king_scrooge »

I got my custom terrain made and it looked as if it worked, until I applied it to the map. As you can see, all I get is a black void when I apply it. The .zip contains the _main.cfg and image/terrain folders. Any ideas on what could be wrong?

P.S. Sorry if this is in the wrong place, I wasn't really sure where to post asking this.
Attachments
Picture 7.png
Last edited by king_scrooge on January 13th, 2011, 11:30 pm, edited 2 times in total.
~KS
User avatar
zookeeper
WML Wizard
Posts: 9742
Joined: September 11th, 2004, 10:40 pm
Location: Finland

Re: Custom terrain problems

Post by zookeeper »

Well, you don't have any terrain graphics rules to tell the game how to draw it on the map. Adding {TERRAIN_BASE spc spidercastle} should make it show up. Look in the mainline data/core/terrain-graphics.cfg for further examples of how to use the common terrain graphics macros, if you need to.

Also, string= _ spc should be string=spc. The underscore marks the following string (which doesn't need to be in quotes) as translatable, and that certainly makes no sense for terrain strings.
king_scrooge
Posts: 8
Joined: January 8th, 2011, 4:15 pm

Re: Custom terrain problems

Post by king_scrooge »

zookeeper wrote:Well, you don't have any terrain graphics rules to tell the game how to draw it on the map. Adding {TERRAIN_BASE spc spidercastle} should make it show up. Look in the mainline data/core/terrain-graphics.cfg for further examples of how to use the common terrain graphics macros, if you need to.

Also, string= _ spc should be string=spc. The underscore marks the following string (which doesn't need to be in quotes) as translatable, and that certainly makes no sense for terrain strings.
Thanks zookeeper, this fixed the problem! I'll be sure to keep my under scores in the right place.
~KS
Post Reply