Opening and editing .yaml files?
Opening and editing .yaml files?
I'd like to start modding, cuz I did a lot of RULES modding on RA, but I need to know how to open and edit a .yaml file to do that. Anybody got any good programs or methods on how to do this?
Any help is appreciated.
Any help is appreciated.
It depends on how you have structured the mod.
If you are following our "official" method, creating a mod that overrides one of the base mods, there is a bug which means that mods are loaded in the reverse order from what you'd expect.
In your shortcut, you need to specify `Game.Mods=mymod,ra` instead of `ra,mymod'.
If you copied and renamed one of the base mods (which is fine for playing with things, but will cause a lot of problems if you want to keep the changes when you upgrade the game), then it should simply work, provided you edited the right mod.
Edit: If you followed the copy/rename route, you will need to edit mod.yaml to point at your new copy, otherwise it will simply load the rules from the original mod. This is the most likely reason for it not working.
If you are following our "official" method, creating a mod that overrides one of the base mods, there is a bug which means that mods are loaded in the reverse order from what you'd expect.
In your shortcut, you need to specify `Game.Mods=mymod,ra` instead of `ra,mymod'.
If you copied and renamed one of the base mods (which is fine for playing with things, but will cause a lot of problems if you want to keep the changes when you upgrade the game), then it should simply work, provided you edited the right mod.
Edit: If you followed the copy/rename route, you will need to edit mod.yaml to point at your new copy, otherwise it will simply load the rules from the original mod. This is the most likely reason for it not working.
First of all, thanks for your patience Sleipner. Anyway, I replaced all the filepaths like you said, but it still crashes. I checked the logs, and t came up with this:
System.InvalidOperationException: Cannot locate type: raLoadScreen
at OpenRA.ObjectCreator.<ObjectCreator>m__19(String s)
at OpenRA.ObjectCreator.CreateObject[T](String classname)
at OpenRA.ModData..ctor(String[] mods)
at OpenRA.Game.Initialize(Arguments args)
at OpenRA.Program.Run(String[] args)
at OpenRA.Program.Main(String[] args)
System.InvalidOperationException: Cannot locate type: raLoadScreen
at OpenRA.ObjectCreator.<ObjectCreator>m__19(String s)
at OpenRA.ObjectCreator.CreateObject[T](String classname)
at OpenRA.ModData..ctor(String[] mods)
at OpenRA.Game.Initialize(Arguments args)
at OpenRA.Program.Run(String[] args)
at OpenRA.Program.Main(String[] args)
Near the bottom of mod.yaml you should have (note the capitalization, it matters!)
Code: Select all
LoadScreen: RALoadScreen
System.IO.FileNotFoundException: File not found: mods\wow\chrome.xml
File name: 'mods\wow\chrome.xml'
at OpenRA.FileFormats.FileSystem.Open(String filename)
at OpenRA.Graphics.ChromeProvider.LoadChromeSource(String filename)
at OpenRA.Graphics.ChromeProvider.Initialize(String[] chromeFiles)
at OpenRA.ModData..ctor(String[] mods)
at OpenRA.Game.Initialize(Arguments args)
at OpenRA.Program.Run(String[] args)
at OpenRA.Program.Main(String[] args)
...when the chrome.xml is right there in the directory?
File name: 'mods\wow\chrome.xml'
at OpenRA.FileFormats.FileSystem.Open(String filename)
at OpenRA.Graphics.ChromeProvider.LoadChromeSource(String filename)
at OpenRA.Graphics.ChromeProvider.Initialize(String[] chromeFiles)
at OpenRA.ModData..ctor(String[] mods)
at OpenRA.Game.Initialize(Arguments args)
at OpenRA.Program.Run(String[] args)
at OpenRA.Program.Main(String[] args)
...when the chrome.xml is right there in the directory?
Yeah, sure.
Code: Select all
# Classic Red Alert Mod -- Package Manifest
Folders:
mods/wow
mods/wow/bits
mods/wow/uibits
mods/wow/packages
Packages:
~main.mix
redalert.mix
conquer.mix
hires.mix
local.mix
sounds.mix
speech.mix
allies.mix
russian.mix
temperat.mix
snow.mix
interior.mix
~scores.mix
~movies1.mix
~movies2.mix
Rules:
mods/wow/rules/defaults.yaml
mods/wow/rules/system.yaml
mods/wow/rules/vehicles.yaml
mods/wow/rules/structures.yaml
mods/wow/rules/infantry.yaml
mods/wow/rules/civilian.yaml
mods/wow/rules/trees.yaml
Sequences:
mods/wow/sequences.yaml
Cursors:
mods/wow/cursors.xml
Chrome:
mods/wow/chrome.xml
Assemblies:
mods/wow/Openra.Mods.ra.dll
ChromeLayout:
mods/wow/chrome/ingame.yaml
mods/wow/chrome/mainmenu.yaml
mods/wow/chrome/videoplayer.yaml
mods/wow/chrome/settings.yaml
mods/wow/chrome/gamelobby.yaml
mods/wow/chrome/serverbrowser.yaml
Weapons:
mods/wow/weapons.yaml
Voices:
mods/wow/voices.yaml
TileSets:
mods/wow/tilesets/snow.yaml
mods/wow/tilesets/interior.yaml
mods/wow/tilesets/temperat.yaml
Music:
mods/wow/music.yaml
Movies:
mods/wow/movies1.yaml
mods/wow/movies2.yaml
LoadScreen: RALoadScreen
ShellmapUid:5065fbcb8e5b1b6cea2a003c64f9b48fcaa33e06