ID:1838095
 
(See the best response by Bebi Tuf.)
Problem description: Just as the question says up there, is there a demo that puts in code in a .dm file for icons that you put in your game file? For example, I took a large amount of sprites and put them into a lot of .dmi files (to make them icons file to be used in my game of course).

Is there a demo that can generate the code for all .dmi files in a specified folder (like my icon folder) into a .dm file? To generate code like:

turf
grass1
icon = 'turf1.dmi'
icon_state = 'darkgrass'
To be easier to help, here's a screenshot of sort of what I mean. Basically a demo/tool that will generate code for all the states in a .dmi file anything similar to this:
http://gyazo.com/4aef43dc051dda8c98461976f88ae05c
Hmm, i don't believe there is, but here thats an interesting question you pose... i think creating something like that wouldn't be a bad idea perhaps, hmm.

At least.. for those who might not quickly change their development habits to make things easier for themselves, or who simply don't spend time on the forums gleaming tips about doing this kind of thing better from guides/tutorials and such.

Edit: Oh but if you're referring to turfs specifically though i'd advise you to not use that approach to mapping for your game. Using the instance feature with the map editor you might find is much less hassle in the long run and the better idea. Check out this post.
Wow, thanks Turbo. I know there are some very helpful snippets, posts, demo's, etc on the forum and I certainly haven't seen them all but the post you provided is really helpful so far. Thanks man.
Oop, sorry. I have one last question about the post about instances you gave me. I get that I make a new instance to make that box pop up, but how do I actually get icons and icon_states of those icons to appear in the OBject subbox? Do I have to physically write out each icon and icon_state in the "icon" and "icon_state" var in the New Instance window?

http://i.gyazo.com/39ade3fb6f7ba39010145c4ac1abcf1c.png
Ah, sorry for the late response, but yeah that was the one bit i was thinking you might find somewhat tedious having to enter each icon state newly the first time you made and used the instance, but yeah pretty much what you said is what you'll have to do.

Assuming you followed the rest of the advice in that post correctly though, and that all your icons reside within one dmi file -going off the first screenshot you provided- you should only need to specify the icon_state each time: you can have the icon path defined in code for all turfs, if you're not doing so already.

turf
icon = 'turf1.dmi'


It's all good. Thanks for the information. Using the instance feature seems like the better option.
Best response
Oleic maybe this is what your looking for http://www.byond.com/developer/Rockinawsome/AutoCoder
Wow Bebi... That's exactly what I needed. I just tested it and it generated the icon_states for one of my icon files for me: http://i.gyazo.com/7685eb6b8eb66c9c5c4941ba430cfb4b.png

Big thanks to Shadowdarke and Rockinawsome. I'll provide my mapper with both the New Instancing guide Turbo introduced to me and this Autocoder you introduced. Big thanks guys.
Oh wow, so an coding tool already exists eh? :o interesting.
In response to Oleic
Oleic wrote:
http://i.gyazo.com/7685eb6b8eb66c9c5c4941ba430cfb4b.png

Dream Maker won't allow the shop1-1, by the way.