
Maps [for the lack of a better word]
- Tank Program
- Forum & Project Admin, PhD
- Posts: 6712
- Joined: Thu Dec 18, 2003 7:03 pm
- klax
- Project Developer
- Posts: 481
- Joined: Tue Jun 08, 2004 3:51 pm
- Location: Barcelona, Spain
- Contact:
All of thisTank Program wrote:I haven't tried it yet, but I think it should work. ExamineYou should be able to replace R with another eCoord it will just have to be multiplied by the sizeMultiplier too is all.Code: Select all
R=awesome empowering grid->DrawLine(R, eCoord(300,100) * sizeMultiplier, tNEW(gWallRim) (awesome empowering grid),0);

Last edited by klax on Wed Jul 21, 2004 1:42 pm, edited 1 time in total.
- Tank Program
- Forum & Project Admin, PhD
- Posts: 6712
- Joined: Thu Dec 18, 2003 7:03 pm
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.
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.

- klax
- Project Developer
- Posts: 481
- Joined: Tue Jun 08, 2004 3:51 pm
- Location: Barcelona, Spain
- Contact:
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
With this basic.aar:
you'll get this teaser 

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

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

- Attachments
-
- gArena.cpp.gz
- gArena.cpp wip
- (2.02 KiB) Downloaded 259 times
- Tank Program
- Forum & Project Admin, PhD
- Posts: 6712
- Joined: Thu Dec 18, 2003 7:03 pm
- Tank Program
- Forum & Project Admin, PhD
- Posts: 6712
- Joined: Thu Dec 18, 2003 7:03 pm
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.
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.

- klax
- Project Developer
- Posts: 481
- Joined: Tue Jun 08, 2004 3:51 pm
- Location: Barcelona, Spain
- Contact:
I've been thinking about this...It should be made so that if the client does not have the aar it downloads it from the server.
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...
- Tank Program
- Forum & Project Admin, PhD
- Posts: 6712
- Joined: Thu Dec 18, 2003 7:03 pm
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.

- Lackadaisical
- Shutout Match Winner
- Posts: 823
- Joined: Sun Dec 21, 2003 4:58 pm
- Location: Amsterdam, Netherlands
- Contact:
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?
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?
Official Officiant of the Official Armagetron Clan Registration Office
Back (in the sig) by popular demand: Lack draws
Back (in the sig) by popular demand: Lack draws
- klax
- Project Developer
- Posts: 481
- Joined: Tue Jun 08, 2004 3:51 pm
- Location: Barcelona, Spain
- Contact:
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).f it is possible in the game to get two cycles crash frontally into eachother
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.
- philippeqc
- Long Poster - Project Developer - Sage
- Posts: 1526
- Joined: Mon Jul 12, 2004 8:55 am
- Location: Stockholm
- Contact:
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.
That crashed instantly if my memory serve me right.
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.
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:Hehe, I think doing shaped arenas will be easier to do than I thought![]()
tryklax 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);
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);
Canis meus id comedit.