The location of the pain might have been helpful. If the pain is located in the upper abdomen, center, or left, then it is possible that you might be experiencing chronic inflammation of the stomach.
Since you tried many treatments for the stomach and the food you take affects the pain, you might want to check for presence of Helicobacter pylori. Helicobacter pylori is a type of bacteria that is normally found in the stomach, but in certain conditions it multiplies to the level where it can cause inflammation of the stomach. If Helicobacter pylori is found then adequate antibiotic therapy would be recommended.