Problem description: My map looks like this when I'm in the source, http://puu.sh/21xTj But when I'm not in the source and I compile and run, it have black squares as seen here: http://puu.sh/21y6y I even tried inserting the turf (pressing CTRL + CLICK) though I get those black squares. Hope you can help :L |
![]() Feb 12 2013, 2:48 pm
|
|
I'm pretty sure it has something to do with putting two turfs on one tile.
|
Make sure that any turfs you have set on the map which you intend to have be invisible either have their icon-state set to an existing blank state within their .dmi file, or that their icon is set to null.
That should, in theory, prevent whatever this is. Edit: Unless you are creating turfs at runtime, that could cause this, but I doubt you are. |
You tried making the edges an object or something? I'm fairly sure that's the issue, as I had this problem before. When I stopped putting multiple turfs on one spot, it stopped. (I was doing the same thing you are doing: placing edges and whatnot.)
|
When you stack two turfs in the map editor, the lower turf is actually added as an underlay to the top turf. Underlays and overlays have some special logic where if you don't set their icon_state, icon, or dir; they inherit them from their parent object. So, if your grass' icon_state is "", and your dirt's icon_state is "NORTH" or something, the grass will actually use the "NORTH" icon_state at runtime. Now, if your grass doesn't have a "NORTH" icon_state, then there's no problem, it'll just default to showing the "" state anyways. However, if your grass also has a "NORTH" state and it's the same size as the dirt's "NORTH" state, it'll be hidden under the dirt.
If that is the problem, the solution is to give your base grass state (and other terrain bases) a name. |
Huh... Interesting. For some reason I thought it was the turf on top that was made into an overlay for the turf on bottom. Having the lower one as an underlay makes a lot more sense, though.
I guess I just somehow always avoided this by accident because of the way I handle my turfs. Anyways. Good thing to learn, and thanks for clearing this up cause it had me baffled after my idea didn't fix the OP's problem. |