Maps [for the lack of a better word]

For developmental things relating to the graphics of the game.
User avatar
klax
Project Developer
Posts: 481
Joined: Tue Jun 08, 2004 3:51 pm
Location: Barcelona, Spain
Contact:

Post by klax »

I can't understand what you are saying tank... :(
User avatar
Tank Program
Forum & Project Admin, PhD
Posts: 6712
Joined: Thu Dec 18, 2003 7:03 pm

Post by Tank Program »

Don't worry about it. Or, can you paste in the part you didn't get?
Image
User avatar
klax
Project Developer
Posts: 481
Joined: Tue Jun 08, 2004 3:51 pm
Location: Barcelona, Spain
Contact:

Post by klax »

Tank Program wrote:I haven't tried it yet, but I think it should work. Examine

Code: Select all

R=awesome empowering grid->DrawLine(R, eCoord(300,100)  * sizeMultiplier,  tNEW(gWallRim) (awesome empowering grid),0);
You should be able to replace R with another eCoord it will just have to be multiplied by the sizeMultiplier too is all.
All of this :oops:
Last edited by klax on Wed Jul 21, 2004 1:42 pm, edited 1 time in total.
User avatar
Tank Program
Forum & Project Admin, PhD
Posts: 6712
Joined: Thu Dec 18, 2003 7:03 pm

Post by Tank Program »

Ah right, the damn word filter at work again...

A line of code to ad a wall is this:
R=grid->DrawLine(R, eCoord(300,100) * sizeMultiplier, tNEW(gWallRim) (grid),0);
How this works is it draws it from the previous point R to the new specified one. R is set by the line to the new cord, so that as you specify them it goes around in a circle. I think we can take out the R that is the first parameter of DrawLine and specify our own eCoord so that we can start a wall where everm in the middle of the grid for example.
Image
User avatar
klax
Project Developer
Posts: 481
Joined: Tue Jun 08, 2004 3:51 pm
Location: Barcelona, Spain
Contact:

Post by klax »

Ahhh!!! Now i see!!! I'm a bit short :oops:

Mmm, i'll try to do it too, maybe it works ;)
User avatar
klax
Project Developer
Posts: 481
Joined: Tue Jun 08, 2004 3:51 pm
Location: Barcelona, Spain
Contact:

Post by klax »

More progressing in parsing spawnpoints from basic.aar ;)
The code right now it's a bit messy (but it works ;))

But... not only we could play with the shape of the arena.
We could also play with direction of the bikes at the beginning :twisted:

With this basic.aar:

Code: Select all

BEGIN_RIM
(0,0)
(500,0)
(500,500)
(0,500)
END

BEGIN_SPAWNPOINTS
(250,240) (0,-1)
(250,260) (0,1)
(240,250) (-1,0)
(260,250) (1,0)
END
you'll get this teaser 8)
Attachments
gArena.cpp.gz
gArena.cpp wip
(2.02 KiB) Downloaded 259 times
Spawnpoints from inside to outside of the arena ;)
Spawnpoints from inside to outside of the arena ;)
User avatar
Tank Program
Forum & Project Admin, PhD
Posts: 6712
Joined: Thu Dec 18, 2003 7:03 pm

Post by Tank Program »

Hmmmm :). Intriqueing... How to just get server and client to work together on this one...
Image
User avatar
klax
Project Developer
Posts: 481
Joined: Tue Jun 08, 2004 3:51 pm
Location: Barcelona, Spain
Contact:

Post by klax »

Only needs server if you do square rim and only change spawnpoints ;)

I have one testing server: klax new spawnpoints server ;)
User avatar
Tank Program
Forum & Project Admin, PhD
Posts: 6712
Joined: Thu Dec 18, 2003 7:03 pm

Post by Tank Program »

After playing on klax's server I've come up with a list of things I think should be done.

It should be made so that if the client does not have the aar it downloads it from the server.

If the server is not using the standard aar it should not allow older clients to connect, if it is using the standard aar older clients should be allowed to connect.

You should be able to specify what map is used.

That's all I can think of before this would be release quality.
Image
User avatar
klax
Project Developer
Posts: 481
Joined: Tue Jun 08, 2004 3:51 pm
Location: Barcelona, Spain
Contact:

Post by klax »

It should be made so that if the client does not have the aar it downloads it from the server.
I've been thinking about this...
There is a field in server configs (URL) that I suppose it will be accessible to client. We could use that field to something like this:
'http://guru3.sytes.net/arenas/tank.aar'

I think doing a http connection will be easier than the server serving the aar files...
User avatar
Tank Program
Forum & Project Admin, PhD
Posts: 6712
Joined: Thu Dec 18, 2003 7:03 pm

Post by Tank Program »

Easier to create new config option like ARENAS_URL, create it in exactly the same place as URL with the exact same things... Or, just have http://guru3.sytes.net/arenas be hardcoded in.
Image
User avatar
klax
Project Developer
Posts: 481
Joined: Tue Jun 08, 2004 3:51 pm
Location: Barcelona, Spain
Contact:

Post by klax »

Better to create ARENAS_URL. I think the only hardcoded url must be the master server lol.
User avatar
Lackadaisical
Shutout Match Winner
Posts: 823
Joined: Sun Dec 21, 2003 4:58 pm
Location: Amsterdam, Netherlands
Contact:

Post by Lackadaisical »

wow, this is looking great.

I'm not sure if you have the time for this, but i've been wondering for a long time if it is possible in the game to get two cycles crash frontally into eachother.. And since you are able to get them placed exactly where you want i hoped if you could like.. um.. test it out?
User avatar
klax
Project Developer
Posts: 481
Joined: Tue Jun 08, 2004 3:51 pm
Location: Barcelona, Spain
Contact:

Post by klax »

f it is possible in the game to get two cycles crash frontally into eachother
I tested it in my test server. Locutus said me to place the bikes all in the center, facing the center, sharing one coordenate (x or y).

When starting the round just in front out you there was the opponent bike (the server was called INSTANT PANIK lol). But when you run the bikes didn't crashed. Maybe setting another rubber you can get them to crash.
User avatar
philippeqc
Long Poster - Project Developer - Sage
Posts: 1526
Joined: Mon Jul 12, 2004 8:55 am
Location: Stockholm
Contact:

Post by philippeqc »

First of all, I want to appologize for my silence. I've been in vacation, but before I could advertise that I would be unreacheble, my net acces died on me.

Second of all, out of my 1 week of vacation, still no net (long story), but I get a 2 week contract as a consultant. So, I may not be yet very accessible.

klax wrote:Hehe, I think doing shaped arenas will be easier to do than I thought :twisted:
Well, yes and no. Just plotting some points work some of the time. I did find that part of the code some time ago, but I was relunctant to advertise it as I want to do a more in depth modification. I will detail my ideas and plans in another message.
klax wrote: The arena is done in gArena.cpp:107. There you must define the points of the shape:

Code: Select all

  ePoint *R=ggrid->Insert(eCoord(0,0));
  R=ggrid->DrawLine(R, eCoord(500,0)  * sizeMultiplier,  tNEW(gWallRim) (ggrid),0);
  R=ggrid->DrawLine(R, eCoord(500,500) * sizeMultiplier,tNEW(gWallRim) (ggrid),0);
  R=ggrid->DrawLine(R, eCoord(0,500)   * sizeMultiplier,  tNEW(gWallRim) (ggrid),0);
  R=ggrid->DrawLine(R, eCoord(0,0)     * sizeMultiplier,    tNEW(gWallRim) (ggrid),0);
try

Code: Select all

  ePoint *R=ggrid->Insert(eCoord(0,0));
  R=ggrid->DrawLine(R, eCoord(500,0)  * sizeMultiplier,  tNEW(gWallRim) (ggrid),0);

  R=ggrid->DrawLine(R, eCoord(500,200)  * sizeMultiplier,  tNEW(gWallRim) (ggrid),0);
  R=ggrid->DrawLine(R, eCoord(500+100,200)  * sizeMultiplier,  tNEW(gWallRim) (ggrid),0);
  R=ggrid->DrawLine(R, eCoord(500+100,300)  * sizeMultiplier,  tNEW(gWallRim) (ggrid),0);
  R=ggrid->DrawLine(R, eCoord(500,300)  * sizeMultiplier,  tNEW(gWallRim) (ggrid),0);

  R=ggrid->DrawLine(R, eCoord(500,500) * sizeMultiplier,tNEW(gWallRim) (ggrid),0);
  R=ggrid->DrawLine(R, eCoord(0,500)   * sizeMultiplier,  tNEW(gWallRim) (ggrid),0);
  R=ggrid->DrawLine(R, eCoord(0,0)     * sizeMultiplier,    tNEW(gWallRim) (ggrid),0);
That crashed instantly if my memory serve me right.
Canis meus id comedit.
Post Reply