Editing YAML?

Discussion about the game and its default mods.
Post Reply
robn86
Posts: 12
Joined: Thu Jul 12, 2012 2:43 pm

Editing YAML?

Post by robn86 »

So I'm new to Open RA and YAML editing so maybe I dont understand this fully. I'm trying to edit the yaml files in notepad++ but all the text is red when I open them and that cant be normal. What program does everyone else use to edit?

Matt
Posts: 1144
Joined: Tue May 01, 2012 12:21 pm
Location: Germany

Post by Matt »

I don't use Windows, but I just googled your question and found a possible answer
This is default behavior for Notepad++. You can add .yaml extension via Settings>Style Configurator>YAML>User ext.; add ".yaml" there.
at http://stackoverflow.com/questions/2235 ... dows-users

robn86
Posts: 12
Joined: Thu Jul 12, 2012 2:43 pm

Post by robn86 »

Unfortunately that posting doesent really help. I had already switched the tab to space like it said and nothing. Could it be because the files are .yaml and not. Yml? I did add .yaml recognition in notepad++ though. Can someone just tell me step by step what theu do to open and edit yaml? This sbouldent be that difficult.

Matt
Posts: 1144
Joined: Tue May 01, 2012 12:21 pm
Location: Germany

Post by Matt »

Switching tab to space will break OpenRA as Chrisf already told you. It seems that the original YAML specification uses spaces, OpenRA uses tabs so Notepad++ thinks it is invalid YAML which it is not (for OpenRA). Have a look at http://sourceforge.net/apps/mediawiki/n ... tion_Files to customize your syntax highlighting.

I use http://kate-editor.org/ which works great after I configured it to use real tabs instead of multiple spaces for YAML files when I press TAB.

robn86
Posts: 12
Joined: Thu Jul 12, 2012 2:43 pm

Post by robn86 »

that helped a lot. thanks. im starting to figure this out. i need to find ojt how to syntaxhighlight for yaml now

robn86
Posts: 12
Joined: Thu Jul 12, 2012 2:43 pm

Post by robn86 »

i changed the language to yaml so its not in all red anymore. now its all black. is this normal? i o.ly ask cause i see pasted code elswhere thats multiple colors. i think i need to research syntx customizing.

robn86
Posts: 12
Joined: Thu Jul 12, 2012 2:43 pm

Post by robn86 »

i think notepad++ kinda sucks if its this difficult to open and edit a text file. im not a programmer just a ra player. so this is mostly foreign to me. can anyone at all tell me exactly what program and procedure you use to open and edit a yaml?

User avatar
zypres1
Posts: 276
Joined: Mon Oct 24, 2011 8:22 pm

wiki

Post by zypres1 »

Some info here, slighly outdated: https://github.com/OpenRA/OpenRA/wiki/Mapping
Also come to IRC for more help...
Download other maps from resources/forum to learn more...

Post Reply