BattleTanks II Beta Release

Community Forums/Showcase/BattleTanks II Beta Release

John J.(Posted 2006) [#1]
Note: BattleTanks II is no longer in Beta. Unfortunately, I can't edit the thread title.

BattleTanks II is a combination action/strategy tank combat game where you can battle against up to 3 other teams of computer-controlled tanks, in one of 5 unique battlefields. BattleTanks II features three tank types to choose from, each with their own strengths and weaknesses.

There are many ways to winning a war in BattleTanks II. If you like being the commander of your army, you can sit back away from the action, directing your army's actions strategically. However, if you prefer action, there's nothing stopping you from helping your tanks out and join the fight. You can make sneak attacks, massive assaults, try weakening your enemy with artillery, and much more. With BattleTanks II, the possibilities are endless.

Download BattleTanks II HERE (14.7 MB)

Note: Since the programming competition I am entering this game in requires that the game run on a GeForce 2, the default settings are set very low. If your computer is faster than this, you may want to turn all the settings up.






Suggestions/comments are welcome.


Grey Alien(Posted 2006) [#2]
WOW, you've really gone to town on this!


boomboommax(Posted 2006) [#3]
i like this quite alot


John J.(Posted 2006) [#4]
Grey: Yeah. I've really put alot of work into this, so hopefully I'll have a chance to win the competition. :)

Devious: I'm glad you like it. Please let me know if you find any bugs, or have any ideas for improvement.


Mustang(Posted 2006) [#5]
Cool....!


Red Ocktober(Posted 2006) [#6]
lots of action once the reinforcements come to town...

this is really decent... i had a lot of fun trying to kill something :) but those comrades of mine kept stealing my kills :0)

the action was smooth and fast... and i liked the options and the smooth menu transitions...

are you up for a suggestion or two (ya know it was comin :) )...

1- the commands to the group (real nice touch)... maybe a lil radio chatter when you give the command, and a second or two after, more chatter as the troops acknolwedge...

2- don't allow the tanks to go everywhere... try and have the enemy ai keep the tanks on a road, or along some path when they are in transit (that'll be a fun job)...


otherwise... great!!!

--Mike


John J.(Posted 2006) [#7]
Thanks for the comments / suggestions.

Red Ocktober: Today I just added some speech to BattleTanks II, so your team will reply "Roger" or "Affirmative" (or sometimes "Negative") after you give a command. Regarding suggestion #2, I don't think I'll have enough time to rewrite the pathfinding code, unfortunately (the competition is ending soon).


Mr. Write Errors Man(Posted 2006) [#8]
Looks cool, but I would expect real historical tanks if you use national symbols.


Banshee(Posted 2006) [#9]
This week I was shooting mostly Americans, Japanese, Russians and Germans...

Great fun :).


Banshee(Posted 2006) [#10]
After too much testing i've found the AI is easily defeated by using defeat in detail strategies.


John J.(Posted 2006) [#11]
but I would expect real historical tanks if you use national symbols.

They are actually (but I've only had enough time to do American tanks, so other countrys just use american tanks with different "paint". The light tank is the M4 Sherman, the medium tank is the M10 Wolverine, and the heavy tank is the M1 Abrams.

using defeat in detail strategies.

I don't think I understand. Are you saying that, by using strategy, the AI can be defeated too easily?

P.S. Have you tried "Veteran" AI mode, or is that also too easy?


John J.(Posted 2006) [#12]
Update: Shells and explosions now cause craters in the terrain:




mindstorms(Posted 2006) [#13]
this is great! How hard would it be to adapt to multiplayer, over gnet or lan? That would be neat!


Banshee(Posted 2006) [#14]
I don't think I understand. Are you saying that, by using strategy, the AI can be defeated too easily?

Yes, play any scenario and press follow me or hold position orders for the first few respawns until you've a nice size battlegroup, then get your tanks to follow you and your massed ranks can easily defeat the AI by weight of numbers, whatever the difficulty or scenario - sadly :/

Still lots of fun though :)


Zenith(Posted 2006) [#15]
John, it plays great!

Becky! I miss your tank game! Where is it! ;)


Doggie(Posted 2006) [#16]
Oh yeah. Add infantry, air support and multiplayer and I'll join ya online for some of this.


Banshee(Posted 2006) [#17]
Becky! I miss your tank game! Where is it! ;)

The last public release is here: http://www.bansheestudios.com/Paradise%20Island.html

/threadjack off :)


John J.(Posted 2006) [#18]
this is great! How hard would it be to adapt to multiplayer, over gnet or lan? That would be neat!

I've never made a multiplayer game before, so I would have to learn alot more about network coding first. I may make a multiplayer version later, but I'm not sure.

Yes, play any scenario and press follow me or hold position orders for the first few respawns until you've a nice size battlegroup, then get your tanks to follow you and your massed ranks can easily defeat the AI by weight of numbers, whatever the difficulty or scenario - sadly :/

Yeah. I've noticed that too. I'll try to think of a way to avoid this, maybe as an optional setting. One way currently to make it more fair is to go into the settings and lower the tank limit. You could also try the other reinforcement modes ("No Reinforcements", "When Clear", and "Periodic").

What I probably should do is add a scoring system so that you'll have to destroy tanks yourself to get any considerable score.


Banshee(Posted 2006) [#19]
How about an AI strategy feature that calculates the number of tanks in the vicinity of the player and ensures tries to ensure that they also have a group (on a nominal 'leader' tank) of at least 75% the size?

Another possibility would be to have player orders effect tanks within a certain range, this would also help with ...

...How about allowing players to group and squad, or at least give direct orders too, tanks so that there are other strategic options instead of moving around as 1 unit. It would be nice to be able to place groups of tanks in key control areas on the map. Including such a feature would then require some level of teamwork AI also, else it would become too easy.


John J.(Posted 2006) [#20]
Banshee: Yeah.. those are some really good ideas. Thanks!

Update:
* "Victory" music played when you win
* Better music added
* Misc. minor bugs fixed

The final release of BattleTanks II will be out by Tuesday or Wednesday, if all goes well.


Chevron(Posted 2006) [#21]
This is a good game, you have done blitz justice. My only points would be that the tank turret indicator graphic, to me, looks out of place and doesnt match the quality of the rest of the game.

Keep up the good work, look forward to the final version.


John J.(Posted 2006) [#22]
Chevron: I'm glad you like BattleTanks II. I've made the turret indicator slightly less intrusive, with .5 alpha now. I may improve the graphic in future versions, but it will have to do for now (the competition is ending soon).

Update: The final release of BattleTanks II is out!
To get it, simply re-download the link above, or click HERE


Mr. Write Errors Man(Posted 2006) [#23]
"They are actually (but I've only had enough time to do American tanks, so other countrys just use american tanks with different "paint"."

OK, I see. :) Good luck with this project. Looks very good so far.

-AF


Banshee(Posted 2006) [#24]
M4 Sherman, the medium tank is the M10 Wolverine, and the heavy tank is the M1 Abrams.

Surely the heavy American tank is/should be the Pershing not the Abrams? As the others are WW2 vehicles. I'm not sure what you'd do for the Japanese, I dont think they made any heavy armour 'though I could be wrong. The British also had some good WW2 tanks, you could even argue the late-war Comet was the top super tank of the time - "Wolverine" btw is the British designation of the US M10, i'm not sure what the Americans called it - maybe the same name.


John J.(Posted 2006) [#25]
You're right; the M26 Pershing would have been better suited than the M1 Abrams. The reason I used the Abrams is that I never really concidered this a WWII game. I probably should have done more research before deciding on the tanks.

I'm not sure about what the M10 was called in the US, if not the Wolverine. Proabably just the "Tank Destroyer" or "TD". Either way, it doesn't matter. I just call it the "Medium Tank" :)


Banshee(Posted 2006) [#26]
:)
Well if you do go down the WW2 route here's the tanks I would recommend looking into for their notoriety/fame/recogniseable distinctiveness etc. (I know far more about WW2 then is healthy for me).

German: Panzerkampfwagon III (light); Panzerkampfwagon IV (medium) and Panzerkampfwagon VI Ausf F Jaeger (heavy).

Russian: T70 (light); T34 (medium); JSII (IS-2) Iosef Stalin (heavy)

British: Sherman (light); Cromwell (medium); Comet (heavy)

Japanese: Type 94 Te Ke (light); Type 95 Ha Go (medium); Type 97 Chi Ha (heavy)


John J.(Posted 2006) [#27]
Thanks :). The tanks you listed seem perfect for the game. I'll probably add them in future versions.


Garion(Posted 2006) [#28]
What a Romp, drivin about shootin n scootin and splodin n crashin.

Great Stuff!

Is it alright to show the game to my friends as I am sure they would have a blast playing, seeing as how we are all old fogies and hanker for the old days daring do :)

Very well done.

Cheers
Garion


John J.(Posted 2006) [#29]
Garion: That would be fine - you can show it to anyone you want. I hope your friends enjoy it :)


Braincell(Posted 2006) [#30]
Great little game. Develop it further!

Hey, i changed the options, changed resolution, asked to restart, clicked yes, and it didnt close the current app and it opened a new one so i had two music tunes going at the same time, had to alttab to switch off the other one (i just clicked on taskbar and it went off).


John J.(Posted 2006) [#31]
Now that you mention it, I think I remember something like that happening to me, too. I'll try to fix this ASAP.


John J.(Posted 2006) [#32]
Ok, I've got it fixed now. It seems that a fullscreen blitz app freezes (which is why it couldn't exit the old instance) when another full-screen blitz window is open. I fixed it by changing the current game into a window before executing the game again, which allows it to exit nicely. Unfortunately, I can't upload the new version for a few days (I'm on dial-up now, which uploads at around 1 KB/sec)


jhocking(Posted 2006) [#33]
This looks great; I'll definitely try it when I get home tonight. I see that this is II, so did you do the code-only tanks game that was posted a little while ago? That was a hoot, so that same game but with better graphics should be awesome.


ralphy(Posted 2006) [#34]
wow looks cool - ill be trying it when i get home from work too!


John J.(Posted 2006) [#35]
jhocking: Yeah, the gameplay is similar to the first version, but with base capture (optional), better graphics, music, sounds, etc., etc. However, BattleTanks II does not include the scoring system and the AI tank's chat box. I wanted to get these in BattleTanks II, but I didn't have enough time to develop a 3D text system (the 2D text used in BattleTanks I really slowed it down).


jhocking(Posted 2006) [#36]
Okay, wow! Everyone who hasn't played this yet, do so.


jfk EO-11110(Posted 2006) [#37]
Fantastic work, huts off.


Zenman(Posted 2006) [#38]
VICTORY!

Nice:)


Stevie G(Posted 2006) [#39]
Very impressive. Great sound effects and music and alot of fun. Presentation is also very too.

One minor gripe ... It would be good to know your turret orientation on the map ... easier to know which direction "the others" are coming from :)


John J.(Posted 2006) [#40]
Update: Fixed slight problem where restarting after changing the resolution would leave 2 BattleTanks windows open, causing conflicting music.

Stevie G: I'm planning to change the map so it rotates as you rotate the turret.


wizzlefish(Posted 2006) [#41]
What a wonderful game. The menu has clean graphics, and the terrain and world is great. The whole presentation of the thing is amazing. One thing that would be quite interesting would be to add a little machine gun on the tanks, instead of just a cannon. Of course this might take some effort, especially integrating it into the AI tanks.

Good luck with it all.


John J.(Posted 2006) [#42]
A machine gun wouldn't be too hard to impliment, although there's no real reason in this game for them; there's not much a machine gun can do to a tank's armor. :)


t3K|Mac(Posted 2006) [#43]
online multiplayer would rock!!!


angel martinez(Posted 2006) [#44]
Good job,very professional look.
By the way, what program did you use to make the colormaps-lightmaps for the terrains ?


John J.(Posted 2006) [#45]
The heightmaps and color/lightmaps were all made with L3DT. It works really well with Blitz3D, because you can export the heightmap, colormap, lightmap, etc. in almost any format you want.


Steven Noyce(Posted 2006) [#46]
Great game!
I noticed that the tanks get darker when you go in the shade.
How did you do that?

Also, I am realy confused about shadows in general.
Would you mind helping me out a little?


John J.(Posted 2006) [#47]
I noticed that the tanks get darker when you go in the shade.
How did you do that?

There's an array which holds a low-res (256x256) grayscale image of the terrain colormap, which is filled in during loading time (an array is used because it is much faster than reading from textures or images). Then it basically reads the pixel the tank is on (with interpolation, for smooth shade transitions), and colors it accordingly.

Also, I am realy confused about shadows in general.

The tank shadows are simply a alpha-blended textures (basically just a blurry rectangle) which are applied to the terrain by a dynamically deformed mesh to conform to the terrain's contours perfectly.

I also added several optimizations, including culling and frame-skip optimization (with interpolation) to boost speed.

I might release my shadow system for free. It's really easy to set up for your objects (just call ShowShadow(mesh, shadowimage) or HideShadow(mesh) to enable/disable shadows, and call UpdateShadows() before each render)


Bankie(Posted 2006) [#48]
I don't think I can add anything to what's already been said, so I'll just say well done. Time flies out the window when you play this.


Liberator(Posted 2006) [#49]
The music makes me want to join the army. But then leave the army because I want nothing to do with it. Great game! Keep it up man!


Steven Noyce(Posted 2006) [#50]
Thanks for the help!
That would be great if you would be willing to release your shadow system!


stayne(Posted 2006) [#51]
very cool. my team seems to prefer hanging around the armor replinishment area and shoot the walls. they don't seem to be aware that it's in the way.

oh, and i made you some loops...

www.strafed.net/stuff/battle1.mp3
www.strafed.net/stuff/battle2.mp3


Grisu(Posted 2006) [#52]
Well done!

Some ideas (may have been posted already)
- Add "call" for a supply drop (crate that repairs nearby armor)
- Add "Arrows" to the outer circle of the mini map pointing to the next flag in that dir (red or blue)
- Change the gui from the keypad block in the lower middle to a more slick one (wider but narrow)
- Add a "message" like: Flag X has been taken / won
- Add more items to make the landscape more interesting.
- Add a level editor
- Add faster Jeeps = then you need the tank mg :)
- Limit ammo / bullets and add ammo crates near the flags.
- Make 1280x1024 resolution possible


John J.(Posted 2006) [#53]
blitznerd: Here you go:


When calling ShowShadow(), be sure to specify a shadow texture (which is applied to the terrain), because the current system can't render it for you yet.

CreateTerrainDecal(mesh, surface, x1#, z1#, x2#, z2#, pitch#, yaw#, roll#) is also useful for applying other decals to the terrain, like the shell craters.


Grisu: Thanks for the suggestions :) I hope to add some of those in the future. For now, you can download some nice mods others have made for BattleTanks II (add-on tanks and maps) here:
[a http://www.bundysoft.com/dokuwiki/doku.php?id=projects:johnj#battletanks_ii]BattleTanks II Expansion Packs[/a]
(scroll down to "Expansion Packs & Add-Ons")

If you want to create your own maps for BattleTanks II, read this:
[a http://www.bundysoft.com/dokuwiki/doku.php?id=projects:johnj:expanding_battletanks_ii]BattleTanks II Map-Making[/a]


Steven Noyce(Posted 2006) [#54]
Thaks a LOT!!!


John J.(Posted 2006) [#55]
Update: The competition results have been released!
Click Here To View

:D


TartanTangerine (was Indiepath)(Posted 2006) [#56]
Congratulations, Well Done!!!


Stevie G(Posted 2006) [#57]
Nice one John ... what was the prize?


big10p(Posted 2006) [#58]
Congratulations! :)


John J.(Posted 2006) [#59]
Stevie G: 1st prize was $500


kfprimm(Posted 2006) [#60]
John J.: Could you provide an example for your shadow system please? I can't seem to get it working.


John J.(Posted 2006) [#61]
Try this:
Texture = LoadTexture("Shadow.png", 1+2)
ShowShadow Entity, Texture
ShadowScale Tank\Mesh, 1.0
ShadowViewDistance Tank\Mesh, 100

And don't forget to add a
UpdateShadows Camera
inside your main loop or the shadows won't show up.

Here's the image I use:


Note: The shadows are only casted on terrains, not meshes.