Thread: Jazz2 BOTS?
View Single Post
Matrix

JCF Member

Joined: Apr 2001

Posts: 76

Matrix is doing well so far

Sep 3, 2002, 05:15 AM
Matrix is offline
Reply With Quote
Make a map

Couldn't you just create a mask of the entire level and save it as your own format?. The program could then read the file into an array and then the bot could place things like to cur pos of each player in the array to so it can then find a path.

for example:

1 = Filled in
0 = Empty
P = Player
B = Bot

111111111111111111111111111
1110000000000000000000000B1
111001111111111111111111111
1110000000000000P0000000001
111111111111111111111111001
111000000000000000000000001
..etc.

It could then find the path to the other player and shoot them.

Or for treasure hunt:
1 = Filled in
0 = Empty
P = Player
B = Bot
G = Gem

111111111111111111111111111
11100GGG00000000000000000B1
111001111111111111111111111
111000G00G000000P0000000001
111111111111111111111111001
111000000000000000000000001
..etc.

The user would have to do this them selves but with a simple editor could create a file with the level in its masked format. You could then create a program that hosts the file on a different port than jazz and when a bot wants to connect, it d/ls the file and connectes to the JJ2 server.

Now the hoster would have to create the file but standard levels could be created?

Just a thought...

Matirix
__________________
iMac: MacOS X 10.2.6. 256MB RAM. 266MHz PPC G3
iBook: MacOS X 10.2.4. 640MB RAM. 800MHz PPC G3
Jazz: 1.2.8 OSX