I am making a custom resource pack for myself with some HD and SD textures from some of my favorite packs (I checked the legal stuff, it's ok so long as I don't distribute). I put it in the resourcepacks folder, and in minecraft I can load it just fine with no flaws, but the next time I start up minecraft, it just closes after the Mojang screen. I am using Magic Launcher with Optifine 1.6.2 A4 and Forge 220.127.116.114. The only way I am able to get it back is to go into the options file and change the resourcepack setting to default. I have custom textures, music, sounds, and language. I am also having a possibly related problem. I cannot select a certain other HD pack at all. Instead, it just reverts to default.
EDIT: I have tested this with MCPatcher instead of optifine and Magic, and it worked, but I really need the compatibility of forge and optifine's ingame video options. Please help!