FREE JAVA TURN BASED STRATEGY GAME

Hi everyone,

Im making a free turn based strategy game. Its my 4th hobby games but the first in Java.

I'd like to invite everyone to give a try and if you are kind, give me some suggestions and advises. But no lame jokes or flame here.

Download at:

http://users.tpg.com.au/hmhoang/continent.html

Screenshot at:

http://users.tpg.com.au/hmhoang/images/screenshot01.gif

Install:

Installer and uninstaller provided

Features:

Random map generation: If you played Master of Magic, you know how interesting it is to get a new map every time you play so you can explore. This game generate a complete random map each time but still follow the main theme and story.

City management: Each city in game will occupy 9 squares of the map where your worker can havest some raw food and resources. In addition, you will be able to build factories, barracks, etc inside the city and assign some of your citizens to work at to produce military units, refined resources, etc.

Play the game: The list of features are long but you can find all features in a normal strategy game like combat, upgrade, research, trade, etc. The game is still being developed so check back for a while to get new versions

Sinceres,

hhminh

[1291 byte] By [hhminha] at [2007-9-29 1:35:53]
# 1
Also, If you know how to submit the game to website like downloads.com and the like, let me know.Thanks alot
hhminha at 2007-7-13 3:57:29 > top of Java-index,Other Topics,Java Game Development...
# 2
heh, the screenshot looks a lot like civ 3. I'll try the game when i get home...
pop_n_fresha at 2007-7-13 3:57:29 > top of Java-index,Other Topics,Java Game Development...
# 3
Hi friend,Its not civ3, if you read the readme file, im a big fan of colonization and i try to bring some of its concepts in the game.Thanks
hhminha at 2007-7-13 3:57:29 > top of Java-index,Other Topics,Java Game Development...
# 4

If anyone know how i can submit the game for internet people to try through search engines or gamearchives, etc can you help with some details.

There is some duke dollars here. I just want to get feedback since i have moved so much from the release and i want to validate which is bad which is good.

Thanks

hhminha at 2007-7-13 3:57:29 > top of Java-index,Other Topics,Java Game Development...
# 5
http://upload.com.com/?tag=subnavway to submit to download.com
JDunlopa at 2007-7-13 3:57:29 > top of Java-index,Other Topics,Java Game Development...
# 6

> Hi friend,

>

> Its not civ3, if you read the readme file, im a big

> fan of colonization and i try to bring some of its

> concepts in the game.

>

> Thanks

civ, col, all Sid Meier :D

IMO Colonization has superior game mechanics to civ3.

What do we want!

Colonization 2!

When do we want it!

NOW!

p.s. im downloading your game now :)

Abusea at 2007-7-13 3:57:29 > top of Java-index,Other Topics,Java Game Development...
# 7
hmm, odd.All installs fine, go to run it, get the 'Click To Continue' window.Then nothing :SWin98, JDK 1.4.1_02ok, I just tried to open the mhgame.jar in Winzip, and it says it isn't a valid zip file <_<
Abusea at 2007-7-13 3:57:29 > top of Java-index,Other Topics,Java Game Development...
# 8
Neat! :) For the record, I had no problems installing on Win2K.
Parmeniona at 2007-7-13 3:57:29 > top of Java-index,Other Topics,Java Game Development...
# 9

> hmm, odd.

>

> All installs fine, go to run it, get the 'Click To

> Continue' window.

>

> Then nothing :S

>

> Win98, JDK 1.4.1_02

>

> ok, I just tried to open the mhgame.jar in Winzip, and

> it says it isn't a valid zip file <_<

Sounds like you have a corrupt download. Try grabbing it again, and if that doesn't work try an upgraded version of winzip.

JDunlopa at 2007-7-13 3:57:29 > top of Java-index,Other Topics,Java Game Development...
# 10

i've tried downloading it again, still no change.

im using Winzip8.1, and have never had problems reading a jar file before <_< (the JarLoader.jar for instance works fine)

Logically i'd say the installer program does not work correctly under win98, and is mangling part of the main jar file.

Has any1 tried it under win98?

Abusea at 2007-7-13 3:57:29 > top of Java-index,Other Topics,Java Game Development...
# 11

> i've tried downloading it again, still no change.

>

> im using Winzip8.1, and have never had problems

> reading a jar file before <_< (the JarLoader.jar for

> instance works fine)

>

> Logically i'd say the installer program does not work

> correctly under win98, and is mangling part of the

> main jar file.

>

> Has any1 tried it under win98?

problem solved...

upgrade to xp :)

JDunlopa at 2007-7-13 3:57:29 > top of Java-index,Other Topics,Java Game Development...
# 12
I'll try it!UP
showcodea at 2007-7-13 3:57:29 > top of Java-index,Other Topics,Java Game Development...
# 13

Hi guys,

There is a new update, I have tested with both 1.4 and 1.4.1 JDK, its working fine. If you click on it and nothing happen, try again, the second time should work.

Im finding out why sometimes it doesnt work the first time you click on it.

Also if anyone interested in development let me know.

http://www.geocities.com/vb_user (newer version with bug fixes)

Cheers

hhminha at 2007-7-13 3:57:29 > top of Java-index,Other Topics,Java Game Development...
# 14

Hi there,

ABOUT THE ZIP FILE. DO NOT OPEN THE JAR WITH WINZIP, I use some of my own packaging techniques to reduce further the size. Run the game through the bat file or through the intro.exe (from start menu)

Also Im preparing a Linux rpm (reading the rpm manual now).

Now the game can be found on fileplanet and altavista, google too.

hhminha at 2007-7-13 3:57:29 > top of Java-index,Other Topics,Java Game Development...
# 15
Some new features added:Each player (or country, nations, whatever the design is) can have any number of unique units and techs.Techs provides 3 things: new buildings, new units, upgrade equipments.As of 17/06/2003Minh
hhminha at 2007-7-19 3:00:15 > top of Java-index,Other Topics,Java Game Development...
# 16

The website states "A freeware turn based strategy written entirely in Java and run in any system supported by Java and has a GUI interface." Now, while this is technically true, it is a somewhat empty statement given that the only downloads are Windows executables. The OSes I use most are OS X and RH7.2, so while I'd love to try your game, I can't.

YATArchivista at 2007-7-19 3:00:15 > top of Java-index,Other Topics,Java Game Development...
# 17

Well,

Im building some kind of installer for Linux and other type but Im not very familiar. There is nothing can stop you from trying it, if you have a window machine, simply install it there and then copy the 2 jar files, file.pid, run.bat place them on your environment in one directory and then run run.bat.

Ofcourse you need to make run.bat executable on your environment, it contains only one javaw ..... command.

If you know how to make an installer in your environment, let me know. I have Linux, Mac at work but I make the game at home with just windows so Im not very familiar with them.

Thanks

hhminha at 2007-7-19 3:00:15 > top of Java-index,Other Topics,Java Game Development...
# 18
Here is the new download location that has a zip file for people not using windows. http://www.geocities.com/vb_userThanks for the suggestion above.
hhminha at 2007-7-19 3:00:15 > top of Java-index,Other Topics,Java Game Development...
# 19

I have a problem i cant seem to solve eventhough its trivial:

If you download and play the game you can see that some of the dialog doesnt have the application icon (JDialog). This is weird because all dialogs inherit the parent JFrame which has an icon from the beginning.

I cant seem to find out why just some dialogs cant have the icons while others work fine.

Does anyone has any suggestion?

Thanks in advance

hhminha at 2007-7-19 3:00:15 > top of Java-index,Other Topics,Java Game Development...
# 20
I have the same problem.
dao681a at 2007-7-19 3:00:15 > top of Java-index,Other Topics,Java Game Development...
# 21
I mean the same problem like JDUNLOP :)))
dao681a at 2007-7-19 3:00:15 > top of Java-index,Other Topics,Java Game Development...
# 22
Hi,What is JDUNLOP?
hhminha at 2007-7-19 3:00:15 > top of Java-index,Other Topics,Java Game Development...
# 23
I must say i am very impressed! Well done! You make me feel ashamed... i never seem to finish any game that i start.One suggestion is that i really feel that there should be keyboard control of units and shortcuts.
klana001a at 2007-7-19 3:00:15 > top of Java-index,Other Topics,Java Game Development...
# 24

May i also suggest that you add options random map generator.

such as:

- ratio of land to water

- a sliding scale from continents to archipelago

- errosion factor, i.e. the higher the number the more plains while lower the number the more mountians and hills.

- moisture level, higher = more rivers/lakes/ more fertile land.

I started a similar game back in 1995 when i was in my 8th year at school programming using qbasic.

I did not finish the game, however i did make a very reasonable world creation tool which had all those options.

Since i was only 14 at the time i did not have the math skills to create a perfect model to create a world map but what i did worked well. You may want to use the same algorithm.

Basically a large map 320x200

and a temporay 2D array of 25x25.

the algorthim i used to make the land and water map:

set the cell at [13+cos(r)*radii][13+sin(r)*radii].

while r<360

r=r+random number between 0-30.

radii=random number between 0-13.

set the cells that fall in the line from the last cell to the cell at [13+cos(r)*radii][13+sin(r)*radii].

loop.

set the cells that fall in the line from the last cell to the first cell.

set all the cells that the polygon encloses.

depending on the value of the continents/archipelago i then map this 25x25 array on to a random point on the main map. If there is a high continent factor i then create another 25x25 map and map it randomly close to the 1st point. Else just pick another random point on the map for the new 25x25 map.

If you are interested i can code up the algorthim in to Java.

klana001a at 2007-7-19 3:00:15 > top of Java-index,Other Topics,Java Game Development...
# 25

Thanks

I will take all the suggestions and work on it tonite when i get back from work.

I have several options for the map, i release the game for testing as you know it is not fully stable. I will try to put all the options out in new releases.

Anyone is interesting in such gaming concepts or development? Im going to release the game on sourceforge when i reach 1.0 (at least)

Minh

hhminha at 2007-7-19 3:00:15 > top of Java-index,Other Topics,Java Game Development...
# 26

I used this algo to create map:

I use "seeds" and calculate a random number of cells to fill around each seed.

the seeds then can be used to put other layers of terrain (i have 4: water, land, hill/mount, object) so they wont fall out (like you have animal on top of water, etc)

What do you think about that?

Minh

hhminha at 2007-7-19 3:00:15 > top of Java-index,Other Topics,Java Game Development...
# 27

That works as well, however you need to group seeds together to make continents.

Digging around and firing up my old pentium 90 i found my qbasic program. Here is a screen capture of the kind of maps that program can make:

archepeligo:

http://www.geocities.com/klana0011/archepeligo.JPG.txt

Continents:

http://www.geocities.com/klana0011/medium.JPG.txt

http://www.geocities.com/klana0011/medium2.JPG.txt

Gondwana Land:

http://www.geocities.com/klana0011/big_contient.JPG.txt

The different pixels represent different terrain types. there were 15 different terrain types.

and here are a couple of screen shots of the tile based engine that used the generated maps:

http://www.geocities.com/klana0011/game1.JPG.txt

http://www.geocities.com/klana0011/game2.JPG.txt

It took a while to run on the pentium :/ i could not get Qbasic to run under win 2000.

klana001a at 2007-7-19 3:00:15 > top of Java-index,Other Topics,Java Game Development...
# 28
Ha,This is very good. Can you send me something about the QBasic program. I once did something like running an algorithm that bring close seeds together to make continents in VB and C++ but not as good as yours.Minh
hhminha at 2007-7-19 3:00:15 > top of Java-index,Other Topics,Java Game Development...
# 29
no problem. I can send you the qbasic source very quickly tomorrow however it will be longer if i am to convert it to java.
klana001a at 2007-7-19 3:00:15 > top of Java-index,Other Topics,Java Game Development...
# 30
email: budgetanime<REMOVE THIS>@hotmail.com to give me your email address to i can send you the source.*you need to get rid of the '<REMOVE THIS>' part of the email address. To stop email address grabbers.*
klana001a at 2007-7-19 3:00:20 > top of Java-index,Other Topics,Java Game Development...
# 31
I have sent you an email but not sure about the <REMOVE THIS> part.Thanks
hhminha at 2007-7-19 3:00:20 > top of Java-index,Other Topics,Java Game Development...
# 32

Hi all,

Thanks for your feedbacks, i have incoporated changes and make a new map generation class which improve alot. Now the game create continents, archipelago, etc.

The new update is at:

http://www.geocities.com/vb_user

I also fixed the sound problem. However, i have another problem, the map generation is still not perfect yet and i dont know how to the AI to build boat when the AI want to settle on a different continent or islands.

Although you can find out whether there is a change in terrain ahead of a path, doing so will be very slow. Is there any suggestions? At the moments, when the AI want to conquer a city that is on another islands, all its armies will sit as ducks around the coast line :)

If you have free time, give it a try.

Thanks

hhminha at 2007-7-19 3:00:20 > top of Java-index,Other Topics,Java Game Development...
# 33

Maps are looking better! still needs a little more work however.

I have found a bug:

When you make a new game with a large map and then start a new game with a smaller map, the World map view displays the original large map with the new smaler map superimposed ontop of it.

A suggestion for AI moving armies across the sea:

let each boat created by a city be owned by that city so that when the AI decides to go attack, it recalls the boat the city and then tells the armies to goto that city as well. Once they are all there load up the armies and set sail to the other island.

klana001a at 2007-7-19 3:00:20 > top of Java-index,Other Topics,Java Game Development...
# 34
Thanks for the advice,The bug is nice too and the idea about the boat is great, i never thought of that. I will try around that. At the moment, because the AI lacks this ability, they are pretty dumb, lots of army but if they are cut off by sea, they wont harm you at
hhminha at 2007-7-19 3:00:20 > top of Java-index,Other Topics,Java Game Development...
# 35

Hi guys,

I have fixed most bugs above, now AI can use boat as they always build boats before going out. The game is very challenging, give it a try.

Its near completion (version 1), i need to work it more on bugs, story, linux build, etc and then when its finished, you may see it soon on sourceforge so if you are interested in such things, let me know.

Has anyone ever tried submitting free software to downloads.com? I tried but they charge some money, i dont want to pay if my game is completely free. Any suggestions?

There is now a guest book on my website under <Suggestion> so you can tell me directly your opinions and advices.

Thanks heaps,

http://www.geocities.com/vb_user (Download it there)

hhminha at 2007-7-19 3:00:20 > top of Java-index,Other Topics,Java Game Development...