DAT Syntax February 14, 2009, 11:10:46 pm I want to make my own addons, and I have read the Wiki guide, but I don't think it gave enough detail as to the syntax of the file. Could anyone please explain the syntax of DAT files to me? Quote Selected
Re: DAT Syntax Reply #1 – February 14, 2009, 11:12:21 pm In fact, I don't think the article on DAT files is detailed enough. Is there a complete listing, or is that it? Quote Selected
Re: DAT Syntax Reply #2 – February 14, 2009, 11:23:56 pm german wikijapanese wikiin development online-dat.simutrans-germany.com Quote Selected
Re: DAT Syntax Reply #3 – February 14, 2009, 11:34:22 pm Who is in charge of development of that online-dat thing? Does this website replicate the functionality of TileCutter, or is it only for dat files?I only ask because I have for the past few months been developing a site that does much the same thing (essentially an online version of TileCutter). Quote Selected
Re: DAT Syntax Reply #4 – February 15, 2009, 12:18:51 am Those websites confused me, probably because Google Translator doesn't work very well. I'm most confused about how to create images for the PAKs. Can anyone direct me to an english guide? Quote Selected
Re: DAT Syntax Reply #5 – February 15, 2009, 12:25:07 am Dat files consist of a series of object definitions, these are split by a line of dash characters. Object definitions comprise two main parts, a list of key=value pairs defining attributes of the object and a set of links to images.Beyond this, you should be able to glean most of the information from the german wiki (there is a vaguely english-language version). I also strongly recommend inspecting the dat files of some existing objects for further elucidation. You can download the entire pak64 dat+image file source from here:http://simutrans.svn.sourceforge.net/viewvc/simutrans/pak64/Best way with Simutrans is to learn by example, and there are lots of those And I am happy to answer any specific questions you might have. Quote Selected
Re: DAT Syntax Reply #6 – February 15, 2009, 12:28:14 am Thanks a million! This is way better than all those german guides. Quote Selected
Re: DAT Syntax Reply #7 – February 15, 2009, 12:54:51 am Do you have any templates for creating the artwork? Quote Selected
Re: DAT Syntax Reply #8 – February 15, 2009, 10:25:00 am http://graphics.simutrans.com/ Quote Selected
Re: DAT Syntax Reply #9 – February 16, 2009, 09:21:41 am Quote from: Timothy – on February 14, 2009, 11:34:22 pmWho is in charge of development of that online-dat thing? Does this website replicate the functionality of TileCutter, or is it only for dat files?imho, Frank does maintain this site. Quote Selected
Re: DAT Syntax Reply #10 – February 16, 2009, 09:37:36 am The other useful thing is to look on sourceforge and take a look at the examples of dat files and images for pak64 and pak128.Britain on there (they are all open source):http://simutrans.svn.sourceforge.net/viewvc/simutrans/Look for the source file of something similar and start by copying it! Quote Selected
Re: DAT Syntax Reply #11 – February 25, 2009, 09:41:23 am Quote from: Timothy – on February 14, 2009, 11:34:22 pmWho is in charge of development of that online-dat thing? Does this website replicate the functionality of TileCutter, or is it only for dat files?...The online-dat-site is only for creating dat- and pak-files without fiddling with Makeobj. It is made to get a working pak-file quick without studying the dat-file syntax.There are only rudimentary checks for the graphics (size, alpha channel).Mandatory fields (like object name) are not checked. Cutting graphics will not be implemented. It is not planned to support all dat/makeobj features.It is made for those people who have difficulties running Makeobj (as a command-line oriented tool) or for those where Makeobj is not available for their computer system.Thanks Dwachs for help translating Quote Selected
Re: DAT Syntax Reply #12 – February 25, 2009, 10:10:46 am Oh! it was for that. I thought It was just an online dat repository. In that case, I suggest to change the name to another one much more indicative about what it is used for, like makeobj online, Simutrans online pakmaker (SOKKER), www makeobj, etc.....just to prevent missunderstandings Quote Selected