Harmonics TD [Download link up]

You mean, the one that accumulates every stage right? The problem is that I don't know the cause of it. Well, maybe for Wave III (too many big objects), but not in general. My initial theory was that a certain thing, such as a projectile, is not deleting and keeps checking for collisions, but I tested this and the List<Projectile> (or creeps, for that matter) never went beyond normal levels. I also spawned thousands of creeps and projectiles at a time, and it wasn't the cause either.

I've read something somewhere that mentioned swapping textures. Maybe that drawing a noise pellet, then the big wave thingy, then going back to the pellets causes the C/GPU to keep changing texture in memory or something. Then again, it would be a little odd, because in my playing style I never place many towers, yet the lag also piles up (although not to a critical level). Anyway, it's something under the hood or whatever, so I'll try to find the exact cause. May be difficult to fix though, as the code is really messy.

So when does it start lagging, in your case?
Zekallinos wrote:
So when does it start lagging, in your case?


The first time it started lagging for me was in the rock category, when a bunch of notes spawned at the same time, and I had a bunch of the wave objects out.

Edit: All right. So I left the game up on the screen and walked away from the computer. When I came back, I found the game paused like this. Apparently, my brother decided to have some fun. When I asked him about it, he said that the one that got by did so at the very beginning of the stage. Anyway, take a gander at this:

Content Hidden Spoiler
Image
...
:shock:

Great to know other strategies can be used but err...no wonder it lags. 10 Wave III! That can easily create 150 wave animations that checks for collision with every other creep on the screen many many times a second. Next time I'll find a less ressource-hungry alternative :blank: .
Zekallinos wrote:
...
:shock:

Great to know other strategies can be used but err...no wonder it lags. 10 Wave III! That can easily create 150 wave animations that checks for collision with every other creep on the screen many many times a second. Next time I'll find a less ressource-hungry alternative :blank: .


Actually, I never did that kind of thing, to be honest. But yeah, that was quite laggy.
I played and beat the first stage, loved it, but now the game crashes whenever I try to run it. I'm running WinXP, by the way.
Okay...

I've realized I've been a little last-minute. I just used Visual Studio's publish to make an "installer", saw that it worked, and left it at that. That's creates some odd "Application Reference" files to open the game. Anyway.

Does it crash during startup? The only thing that happens then is that it loads your current progress from the file "State.sav". That file is probably hidden by Windows though, so if you can it'd be great if you can find it. Try searching for "Harmonics" in your C: Drive. I'm not sure where it is exactly in Windows XP but it maybe by something like C:\My Documents (wherever your user account's folders are)\AppData (hidden folder, probably)\Local\Apps\2.0\FD236 (or some weird code)\harm...tion_12001a0 (or something like that).

You should find the following if you open State.sav with notepad Spoiler
<?xml version="1.0"?>
<int>1</int>


I realize that these aren't very...clear directly. I don't even know myself what exactly my app (the installer) is thinking :blush:
Running the setup doesn't work for me. D:
The error message suggests that I don't have the specs the game requires, but for something like this I sort of doubt it. What it says;

No suitable graphics card found.
Direct3D hardware acceleration is not available or has been disabled. Verify that a Direct3D graphics device is installed and check the Display properties to make sure hardware acceleration is set to Full.
This program requires pixel shader 1 and vertex shader 1.1.

So, um . . . :blank:
I'd like to be able to play this, but I don't have a very comprehensive idea of the issue; if my hardware really is just insufficient, I can move on, but if it's something I can fix, is it possible to explain more comprehensively than the error message how to fix it, or anything like that? I'd appreciate this, I'm interested in this game. :o
It may be that your graphic card doesn't have it installed. If that's the case, I don't think it can be fixed.
Okay, so I did some research and that's apparently the case. :crazy:
I might look into getting a better graphics card when I have more time and money; thanks for the help anyway, though.
Just played through the first stage. Gotta say man, this was a great concept (who knew music plus tower defense could go together? brilliant, creative synergy!) and very nicely done too (fun and challenging): definitely deserving of 1st prize! :thumb:

Here's a few comments, if you'd like to polish it further. For a first stage, I actually thought it was pretty hard, though it was mainly the beginning. It seems like strategizing the start is the most difficult part, esp. since you start out with so little money. Later on, however, it gets extremely easy, as $$ piles up from creeps, and the pedal interest bonus. Of course, I've only gone through the 1st level (it could be better, harder later on), but it seems imbalanced that the beginning is so rough and the end so easy. I would suggest lowering the $$ amount from later critters (if they do give different amounts) or slowing down the beginning just a tad.

Anyway.. on to the next stage. I'll leave more c&c as soon as I'm done rockin' out!
I felt like the middle few stages were actually a little easier than the first (though that might just be getting used to a good strategy). But for every stage I felt like I ended up with a huge sum of money. Maybe make the pedal interest bonus less (25%) or have the bonuses cost some money?

Also, just an idea I had, maybe add medals for how well you did (i.e. gold for keeping all 30 lives, silver for 20+, and bronze for 10+). That would up the replay level a bit.
Yeah, balancing was quite an issue this time, but I took myself a little late for that. The reason why money piles up near the end is that you already have an "infrastructure" set, so you only need very little money. In fact, the money you get is the root (2.5 or so) of the tenth of the creep's power, but the real problem was that the power didn't get exponentially fast enough and I've realized this a bit too late.

Eventually I'll redo this game and release it in a proper way (using a real installer). I'll need to (in addition to your suggestions) :
  • Reprogram it entirely (shouldn't take that long), so I have a clean and efficient code that does not cause large lag.
  • Add various little features, such as a high score table, medals, etc.
  • Give more money at the beginning.
  • Make the ending exponentially hard.
  • Remove/reduce resistances where they don't belong (like crotchets).
  • Increase the overall price of the towers so that it takes more time to get the biggest one.
  • Find a way to make Wave III not consume so much ressources.
  • Make a proper installer.
  • Make instructions less boring.
  • Unlockables. At least for the music, since they are not found in MP3 format in the content folder.

Those were all valid points Redi, thanks a lot!

Original thread: https://www.hbgames.org/forums/viewtopic.php?t=67988