I realise that I might be making this thread somewhat like Lazarus, but I too attended St Andrews for two years and transferred out to Dundee. I had a much longer reply planned, but it was mostly rambling and irrelevant so I hosed it and started afresh.
In a nutshell, I started in St Andrews and had a pretty good first year. Not as riotous or as party-filled as some, but still enjoyable and I met some great people. I wasn't terribly outgoing so Freshers' Week was difficult and I found it hard to fit in initially, but once I settled down all was good. The work was taxing enough to be worthwhile, but not desperately difficult and the workload was bearable and fulfilling.
The town felt like home once I'd settled in; it was nice to be able to stroll along the beach whenever I fancied it, nice to walk along towards the Cathedral and St Rule's Tower, the peace and tranquility, along with the clean air, were really something else - being from Edinburgh, this was actually something quite new and I still think back fondly of such occasions. Yes, I know there were only three streets and The Scores really worth mentioning, but that's fine because everywhere beyond Kinnessburn Road (Sp.?) is absolutely horrible and typical of how horrendous Fife can get.
It eventually reached the stage where I didn't want to go home for the holidays anymore as I would be away from my friends (despite many of them being old school friends who I'd see at home anyway - St. A was a very popular University amongst my sixth year peers) and would just feel bored. I was never into golf, I should add.
Second year rolled round, I moved into a different and more socially active hall and life felt good; I was moving up in the world, had a whole new set of social opportunities and plenty of new people which even me, not too outgoing, found good. I still enjoyed doing everything I normally did and living life the usual way. However, the problems started when my second year modules were a whole world harder than the first year ones and apparently the difficulty had been ramped up that year, as the modules were restructured. Even the third years who had done the modules the previous year were shocked at the changes, as they had previously breezed through it effortlessly. I struggled badly and ended up failing the key module to get into Honours, which is where things got really messy.
The pastoral care was truly awful. I was passed from pillar to post to bollard and back again, fed four different interpretations of academic regulations, fed four sets of poor advice and was eventually thrown to the dogs as the academic staff washed their hands of me. Everything was too much trouble for them, no attempt was made to actually provide any kind of advice or guidance and they genuinely didn't care and made no attempt to hide it. The only people that were of any help whatsoever were Student Support, who actually allowed me to explain my situation and discuss my options instead of merely messing me around. Cutting a very long story short, I was able to either a) resit the same nails second year to get into Honours with zero guarantee of success or b) stick out another year and graduate with a BSc General Science degree, which is so pointless, useless and embarrassing to the point where you'd probably retain more pride and dignity by dropping out entirely.
I appreciate that me failing the course was my own responsibility and it was due to me struggling rather than extenuating circumstances, but I tried hard to get the help I needed and I worked very hard but was still kicked to the kerb as described above. The stress and uncertainty of this actually changed my personality and my friends started to desert me, as I was quite frankly turning into a truly horrible person to be around and I can't blame them. The whole experience left me with few people I felt I could trust, and I really felt like I couldn't hack the town or the people any longer. At this point, I went back to UCAS and transferred my 120 credits from first year and got direct entry to second year of my preferred course at Dundee.
I have just graduated from Dundee University, and I have zero regrets. Dundee is a great city (well, the centre and West End are nice bits - the rest, not so much but every city has its nasty areas), Dundee University has a near identical quality of teaching to St Andrews (although I will admit the courses are slightly easier, but not by much) but the facilities are second to none. We've got a whole new library for £20m which is absolutely top notch (I hear St Andrews were supposed to have £46m but now can't afford it), we have the best student union in Scotland (five floors, better than the tiny St Andrews union where I remember having to peel my feet off the floors as I walked around), excellent and affordable accommodation (my cousin tells me DRA is still absolutely deserted because nobody can afford it - the Dundee accommodation is essentially identical for a fraction of the price and a better set of locations) and we've got the best student gym in the UK. Also, contrary to popular belief, the students are normal everyday people from all walks of life and not a bunch of total brain dead chavs as some would have you believe, along with plenty of international students. I have personally lived with a Nigerian, a Frenchman, an Italian, an Irishman, Greek, Hong Kong and even a Kazakh (I lived in halls all the way through, you meet a load of different people on foreign exchange programmes)
I have absolutely no regrets about the move, and it really is the embodiment of that old adage "the grass is greener on the other side". Truth is, I had no idea how well things would work out before I moved and I seriously think the OP should consider a transfer - she quite clearly isn't happy and it'll probably make her feel a lot more positive if she moves into a better environment. Mind you, it's the summer holidays and she seems to be heading into third year which likely makes it too late.
I had some very sour grapes at the time I left St Andrews and felt angry, alone, confused and emotionally shattered, but I NEVER had an ingrained and undiluted hatred like the OP has. Yes, pubs shut early and there wasn't a proper nightclub (and The Bop at the Union was hopeless unless you're too drunk to stand) but you're a pretty shallow person if this is all that's important to you, likewise with the shopping. You're there to study and everything else has to play second fiddle, it's a simple fact of life. I study in Dundee, but do I spend all day every day in the Overgate Centre and all night every night in Fat Sam's or Liquid? Nope. Get your priorities in line and your life will improve accordingly. If you ask me, it appears the OP is blaming all of her faults on other people and the town itself - something I never did. At least I take full responsibility for what went wrong, despite the obstacles I encountered along the way, and it's really served as a reality check and I've definitely learned volumes from the experience.
Was I happy in St Andrews? Yes, until my problems started and my life fell apart.
Would I study there again? Possibly, if I knew then what I knew now I would likely have picked a different course and at least known what to expect.
Should I have gone to Dundee first time round, considering I had an unconditional? Absolutely. It would have saved so much hassle in the long run, but I would never have had the "magic" and temporary buzz of being in St Andrews.
Don't let the OP put you off, as most of her complaints are easily overlooked if you're not specifically looking. St Andrews is great for the right person and you really need to put the most in to get the most out and, for what it's worth, I don't think I put in as much as I could have done and could have made a better go of it. I know that it trades mostly on its reputation and the facilities are pretty poor but if you can look past this it's still a great place to go.
Thanks for reading. I hope it all makes sense and feel free to get your blowtorches out for a spot of flaming if you disagree, but I hope sharing my own personal experiences has helped people and cleaned up some of the mud slinging, as I have been on both sides of the fence.
To the OP, I genuinely hope your situation improves but the onus is entirely on you to make it happen.