New options in game start file

New options in game start file

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Post Reply
SJ
Posts: 618
Joined: 13 Aug 2004, 17:13

New options in game start file

Post by SJ »

I added two new options to the game start file that lobby writers might want to support

Game/GameMode=x; // 0=commander continues (same as before), 1=commander ends (whole team dies when commander die)

Game/TeamX/AiDLL=file; Creates an ai for the team using the dll file specified. The teamleader field is used to determine which players computer will run the AI.
User avatar
Min3mat
Posts: 3455
Joined: 17 Nov 2004, 20:19

Post by Min3mat »

nice one SJ! :D
User avatar
Ace07
Posts: 348
Joined: 21 Apr 2005, 20:46

Post by Ace07 »

While you are at it, you should allow support for more than just 8 player colors. (I was thinking you should support 256^3 colors)

I really want to allow people to customize their colors in the new lobby....so this option would be pretty nice.

Thats the only thing I am worried about right now...that I will have to limit the number of colors people can choose for playing in-game.
10053r
Posts: 297
Joined: 28 Feb 2005, 19:19

Post by 10053r »

Ace07, if you are going to let people choose colors, make sure that colors are required to be a certain amount different from each other. Otherwise, player one will choose 000000 (black) and player 2 can choose 010101 (also black). I don't want to have to get out a color calibrator to tell who's tank that is.
User avatar
Ace07
Posts: 348
Joined: 21 Apr 2005, 20:46

Post by Ace07 »

10053r wrote:Ace07, if you are going to let people choose colors, make sure that colors are required to be a certain amount different from each other. Otherwise, player one will choose 000000 (black) and player 2 can choose 010101 (also black). I don't want to have to get out a color calibrator to tell who's tank that is.
Ya, I am going to impliment something like that, to make sure that colors are definitely different. Also, you won't be able to choose your color when you join a game. You have to choose it before you join in the options menu. That should make it so that people can't just change their color based on what someone else has chosen. =)
User avatar
Buggi
Posts: 875
Joined: 29 Apr 2005, 07:46

Post by Buggi »

Colors are currently limited to what the TA pallette allows...

-Buggi
SJ
Posts: 618
Joined: 13 Aug 2004, 17:13

Post by SJ »

Yes colors arent just colors they are entirely different textures so you would have to create something to fix textures on the fly also if you want that to work.
User avatar
Ace07
Posts: 348
Joined: 21 Apr 2005, 20:46

Post by Ace07 »

SJ wrote:Yes colors arent just colors they are entirely different textures so you would have to create something to fix textures on the fly also if you want that to work.
Are we talking about 1x1 textures here?

Its not hard to make those on the fly. Just make a bitmap in memory with 1 pixel of the value that you need. Only make the values that are needed and you are home free.

We shouldn't be confined to a texture palette in my opinion. It would be really cool to do Dawn of War like customization...but that is a lot more coding. All I want is simply upgrading the existing engine to create the textures on the fly. After I get done with the lobby, I will see if I can code this into the engine (if it hasn't been added yet). It wouldn't even require a lot of code hopefully. :?
Gnomre
Imperial Winter Developer
Posts: 1754
Joined: 06 Feb 2005, 13:42

Post by Gnomre »

No, we're talking about at least a dozen different textures ranging from 8x8 to 64x64, most are not solid colored, and many are the logo images (which only have the team color on the emblem itself)...
User avatar
Ace07
Posts: 348
Joined: 21 Apr 2005, 20:46

Post by Ace07 »

Gnome wrote:No, we're talking about at least a dozen different textures ranging from 8x8 to 64x64, most are not solid colored, and many are the logo images (which only have the team color on the emblem itself)...
That sucks.... :?

So the logos are built into the colors? That seems like a waste of resources or something....

Most games probably do it like that I suppose... :(
User avatar
Ace07
Posts: 348
Joined: 21 Apr 2005, 20:46

Post by Ace07 »

Well, in absence of the fact that we probably won't be able to get custom colors any time soon, is there a possibility we could add an additional 4 player colors to the game?

Spring should be able to host 12 player games easily. =)
User avatar
Min3mat
Posts: 3455
Joined: 17 Nov 2004, 20:19

Post by Min3mat »

12 Player games! :shock: my connection dislikes 6 players!!!! :lol: that would annihilate my PC if i tried to host :P
Torrasque
Posts: 1022
Joined: 05 Oct 2004, 23:55

Post by Torrasque »

Min3mat wrote:12 Player games! :shock: my connection dislikes 6 players!!!! :lol: that would annihilate my PC if i tried to host :P
There is lan game you know? And didn't Fnordia said that in Sweden they have 10/10mbit?
User avatar
Ace07
Posts: 348
Joined: 21 Apr 2005, 20:46

Post by Ace07 »

Plus, if the netcode is good enough, it should be able to handle 12. Possibly not over the internet, but at least over a lan. =)
Metaltrash
Posts: 35
Joined: 25 May 2005, 20:04

Post by Metaltrash »

You can already play 12 Player games,
just only with 8 Commanders ... (-> 8 colors)
Post Reply

Return to “Engine”