ID:180213
 
When I want to make big building for my gaem I hav to to make more then one .dmi file for it. Is there a way to creat one Incon File and put I'll my sections for that one building in it and piece them together in the map editor.
Heres an example incase i wasn't clear enough. I have a build thats bigger than 32x32, so i creat a Icon File called, o...lets say Gym. So i go a click on Gym.dmi and I paste sections of the building all into that on fill istead of creating gym.dmi,gym2.dmi,gym3.dmi...etc...

Thanks for the help I hope that wasn't to hard to understand
use icon_state for that. for instance, create a dmi file. call it gym.dmi. then create one of the 32x32 sections. now right double click under the image until a diloag box pops up. it shoudl allow you to give that image a state name. create all your images for the gym, and keep em all in gym.dmi and name what you need. then, do the normal thing of creating the turf. set its icon(you can even set a default icon_state if you wish). ex:


turf/gym
[tab] icon='gym.dmi'
[tab] icon_state="gym_part1" //heres the default icon


next, goto your map editor. click on the gym turf, and place it some where on the map. theres your start. next, place the EXACT same image above it. then right click on the NEW image, and goto edit. change the name to represent the icon(possibly the icon tate name woudl be a good choice) then go down to where it says 'icon_state' change it to the proper icon state in gym.dmi that will fit with the piece below it. once that is done, you cna also edit the density(floors?) if you wish. once done, click okay. now heres the col part. right click on the new image again and then go down to the bottom where it displays the name fo the turf, ont he menu that follows click on 'make active object' it shoudl now create a seperate state in your icon selection area. you just do that with eachpeice, and once it is done you just gotta paste the pieces in. any questions? ask away. no worries, i know what i'm doing. =P
In response to XgavinX
actually, there is something even easier than that

Create a .dmi file, name it gym.dmi

Inside it, create a buntch of new icon states, each being a new 32 X 32 icon. All you have to do to make a new icon state is click on the paint tray near the top.

Once you have created all your icon states, under each one, name it something different from the rest of the icon states. then when your ready, you can do this

turf
gyms
part1
icon = 'gym.dmi'
icon_state = "1"
part2
icon = 'gym.dmi'
icon_state = "2"
part3
icon = 'gym.dmi'
icon_state = "3"
part4
icon = 'gym.dmi'
icon_state = "4"

notice i used numbers for the icon states, well you can to if you want. Those icon states should be the same things that you name each icon state.

Lets say for instance your first icon state is called base, then your second icon stat is called floor, then we would do this

turf
gyms
base
icon = 'gym.dmi'
icon_state = "base"
floor
icon = 'gym.dmi'
icon_state = "floor"

its pretty simple, you just created your very first turf tree, gyms being the tree name. When you go to the map editor, you will see a little grey box after you click turfs, it will be caled gyms, once you click that, behold, you will see the base and the floor, amazing huh?

FIREking
In response to FIREking
Thank u so much FIREking, that helped out a LOT.

Thanks for the help
In response to Tatakau
You are welcome as always

Im not sure what the other guy was trying to do, but using my method proves most benifitial out of the two, hehe =)

Later,
FIREking
In response to FIREking
Im not sure what the other guy was trying to do, but using my method proves most benifitial out of the two, hehe =)

Did you read his post? You explained the same thing in different (but more concise) words.