I think you need another } after the big if statement.Hey, I'm trying to compile a texture pack based off of a tutorial by MiraiMai, but I get this error whenever I try to compile:
Here is the MBase.csTerraria 1.2.4.1, tAPI Builder r14a
========================================
Building mod CrimsonPack
Validating Jsons...
Compiling code...
MBase.cs (4,36)
} expected
}
^
Failed to build CrimsonPack.
========================================
Built 0 mods.
Code:using System; using System.IO; using System.Collections.Generic; using System.Text; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using TAPI; using Terraria; namespace CrimsonPack { public class MBase : TAPI.ModBase //MBase can be any name { public override void OnLoad(){ } //Called when the mod is first loaded. public override void OnUnload(){ } //Called when the mod is unloaded. public override void OnAllModsLoaded() //Called when all mods are loaded. { // Replace Corruption with Crimson textures if(!Main.dedServ) { Main.tileTexture[21] = textures["Images/Tiles_21"]; Main.tileTexture[82] = textures["Images/Tiles_82"]; Main.tileTexture[83] = textures["Images/Tiles_83"]; Main.tileTexture[84] = textures["Images/Tiles_84"]; Main.itemTexture[273] = textures["Image/Item_273"]; Main.itemTexture[274] = textures["Image/Item_274"]; Main.itemTexture[310] = textures["Image/Item_310"]; Main.itemTexture[316] = textures["Image/Item_316"]; Main.itemTexture[328] = textures["Image/Item_328"]; Main.itemTexture[329] = textures["Image/Item_329"]; Main.itemTexture[675] = textures["Image/Item_675"]; Main.npcTexture[47] = textures["Image/NPC_47"]; Main.npcTexture[79] = textures["Image/NPC_79"]; Main.npcTexture[85] = textures["Image/NPC_85"]; Main.npcTexture[140] = textures["Image/NPC_140"]; } public override void PreGameDraw(SpriteBatch sb) { } //Called before all game drawing. public override void PostGameDraw(SpriteBatch sb) { } //Called after all game drawing is finished. public override void ChooseTrack(ref string current) { } //Called when the music track updates. public override void OptionChanged(Option option) { } // Called when leaving the options page on all options for this mod with notify (ie recently changed) public override List<string> OptionList(Option option) // Called on Dynamic options for this mod to fill possibleValues. { if (option.name == "codedValue") { List<string> list = new List<string>(); list.AddRange(new string[] { "Derp", "> 9000", "much choice", "I don't even", "NOPE" }); return list; } return null; } public override object OnModCall(TAPI.ModBase mod, params object[] args) { return base.OnModCall(mod, args); } //Called when another mod calls this on your mod. (used for inter-mod communicating) } }