Random Spawn Points (with LOVER$BOY)

General Stuff about Armagetron, That doesn't belong anywhere else...
User avatar
sinewav
Graphic Artist
Posts: 6472
Joined: Wed Jan 23, 2008 3:37 am
Contact:

Random Spawn Points (with LOVER$BOY)

Post by sinewav »

I have an idea for a server, but I'm looking for some original settings (if not original, perhaps some old settings that are good, but have fallen out of use).

I'll take anything you have as a starting point because I'm sure some changes/tweaks will need to be made.

8) Thanks.
Last edited by sinewav on Sat Feb 23, 2013 3:19 pm, edited 1 time in total.
User avatar
LOVER$BOY
Match Winner
Posts: 731
Joined: Thu Jan 24, 2008 12:46 pm

Re: Have any unused settings lying around?

Post by LOVER$BOY »

Wouldn't the default settings from settings.cfg count as one?
Image
User avatar
sinewav
Graphic Artist
Posts: 6472
Joined: Wed Jan 23, 2008 3:37 am
Contact:

Re: Have any unused settings lying around?

Post by sinewav »

LOVER$BOY wrote:Wouldn't the default settings from settings.cfg count as one?
You know, I thought about that. The only thing that makes me not want to is because Fortress/Sumo are essentially the default settings, just more rubber and finite trails. I was hoping for something fresh. Let me tell you a little about what I have planned...

I've played a greater variety of lightcycle games than anyone I know of (and still not played them all!). Each approaches the spawn points differently, from always the same (default Arma map) to totally random (Cycles3D -- I think, it has been a while since I played it). As I write this post I'm taking a break from making maps inspired by these other great games: glTron, FLTron, Light Cycle 3D (different than Cycles3D) -- and some maybe others if I feel like it. I'm going to put them on a 4-player server and rotate through the maps. Why? Because the different spawn points create a greater variety of "opening moves," something I think is needed in LMS servers.

But, I don't want to just slap my favorite settings on the server. I feel like collaborating.
Word
Reverse Adjust Outside Corner Grinder
Posts: 4310
Joined: Wed Jan 07, 2009 6:13 pm

Re: Have any unused settings lying around?

Post by Word »

Electric Fishing, Crosseyed and Painless, Ramble Tamble, AlarconCTF, Armagetron Entrance, if these are of any help. :P

(They're all on the forums)
http://forums3.armagetronad.net/viewtop ... =2&t=22073
http://forums3.armagetronad.net/viewtop ... =2&t=20957
http://forums3.armagetronad.net/viewtop ... =2&t=20171
http://forums3.armagetronad.net/viewtop ... =2&t=20030
forums3.armagetronad.net/viewtopic.php?f=1&t=19985

Not sure where to get the maps though (maybe AI knows). I think you'd create better ones yourself anyway.


another two threads, not started by me:

forums3.armagetronad.net/viewtopic.php?f=2&t=20355
forums3.armagetronad.net/viewtopic.php?f=2&t=20343


(and I remember Agility making a server with the help of Phytotron)


server idea (bombdabase):
http://forums3.armagetronad.net/viewtop ... =2&t=21624
Last edited by Word on Thu Jan 29, 2015 7:06 am, edited 2 times in total.
Concord
Reverse Outside Corner Grinder
Posts: 1661
Joined: Sun Oct 21, 2007 5:24 pm

Re: Have any unused settings lying around?

Post by Concord »

this was my attempt at lms settings. Nothing earth shattering going on.

Code: Select all

CYCLE_SPEED 10
CYCLE_START_SPEED 30
CYCLE_SPEED_MIN 1.4
CYCLE_RUBBER 3
CYCLE_RUBBER_TIME 1.5
CYCLE_RUBBER_MINADJUST 0
CYCLE_RUBBER_DELAY 0.3
CYCLE_RUBBER_DELAY_BONUS 0.3
CYCLE_ACCEL 30
CYCLE_WALL_NEAR 10
CYCLE_ACCEL_TUNNEL 0.5
CYCLE_ACCEL_SLINGSHOT 0.5
CYCLE_SPEED_MAX 4
CYCLE_SPEED_DECAY_BELOW 0.2
SP_SIZE_FACTOR -5
SIZE_FACTOR -5
WALLS_LENGTH 600
SP_WALLS_LENGTH 600
also have some settings lying around for a tag game, where the object is kill yourself by hitting someone else's tail, but tails are very very short.
User avatar
delinquent
Match Winner
Posts: 773
Joined: Sat Jul 07, 2012 3:07 am

Re: Have any unused settings lying around?

Post by delinquent »

Will you see what you can do about random spawn points? I really want that.
User avatar
Light
Reverse Outside Corner Grinder
Posts: 1667
Joined: Thu Oct 20, 2011 2:11 pm

Re: Have any unused settings lying around?

Post by Light »

delinquent wrote:Will you see what you can do about random spawn points? I really want that.
Would be quite easy. Disable respawn, set game type to 0, and then use a script to respawn with random x & y values.

Untested, but something like this should work.

Code: Select all

#!/usr/bin/php
<?php

$arena = array(500, 500);

while (!feof(STDIN))
{
	$input = rtrim(fgets(STDIN, 4096));
	$param = explode(" ", $input);
	
	if (in_array($param[0], array('DEATH_FRAG', 'DEATH_SUICIDE', 'PLAYER_KILLED', 'DEATH_SHOT_FRAG', 'DEATH_DEATHZONE', 'DEATH_SHOT_SUICIDE', 'DEATH_TEAMKILL', 'DEATH_SHOT_TEAMKILL')))
	{
		$tmp = array(-1, 1);
		shuffle($tmp);
		
		$x = rand(1, $arena[0] - 1);
		$y = rand(1, $arena[1] - 1);
		
		if (rand(0, 1) == 1)
		{
			$xdir = rand(-1, 1);
			$ydir = $xdir == 0 ? $tmp[0] : 0;
		}
		else
		{
			$ydir = rand(-1, 1);
			$xdir = $ydir == 0 ? $tmp[0] : 0;
		}
		
		print("RESPAWN_PLAYER {$x} {$y} {$xdir} {$ydir}" . "\n");
	}
}

?>
User avatar
sinewav
Graphic Artist
Posts: 6472
Joined: Wed Jan 23, 2008 3:37 am
Contact:

Re: Have any unused settings lying around?

Post by sinewav »

Light wrote:Would be quite easy. Disable respawn, set game type to 0, and then use a script to respawn with random x & y values.
Since we are on the subject, for a few years now I've wanted glTron spawn behavior. There a defined spawn points, but the x/y direction is random. It's what is driving the latest project of mine.
User avatar
Light
Reverse Outside Corner Grinder
Posts: 1667
Joined: Thu Oct 20, 2011 2:11 pm

Re: Have any unused settings lying around?

Post by Light »

sinewav wrote:Since we are on the subject, for a few years now I've wanted glTron spawn behavior. There a defined spawn points, but the x/y direction is random. It's what is driving the latest project of mine.
You're talking about the direction you face when spawned with predefined locations, right? And you need a script for it, or just talkin' about it? I couldn't tell.

If you do need it in a script, you'll have to do it much the same way as the one I just posted, because if you use the map's spawn points, you're going to have to use the predefined directions. I can write it up fast if you need. Lmk
User avatar
Light
Reverse Outside Corner Grinder
Posts: 1667
Joined: Thu Oct 20, 2011 2:11 pm

Re: Have any unused settings lying around?

Post by Light »

This should do it ..

Code: Select all

#!/usr/bin/php
<?php

$spawn = array(
	array(250, 10),
	array(490, 250),
	array(250, 490),
	array(10, 250)
);

while (!feof(STDIN))
{
	$input = rtrim(fgets(STDIN, 4096));
	$param = explode(" ", $input);

	if (in_array($param[0], array('DEATH_FRAG', 'DEATH_SUICIDE', 'PLAYER_KILLED', 'DEATH_SHOT_FRAG', 'DEATH_DEATHZONE', 'DEATH_SHOT_SUICIDE', 'DEATH_TEAMKILL', 'DEATH_SHOT_TEAMKILL')))
	{
		$tmp = array(-1, 1);
		shuffle($tmp);
		
		$loc  = $spawn[rand(0, count($spawn) - 1)];
		$xdir = rand(0, 1) == 1 ? $tmp[0] : 0;
		$ydir = $xdir == 0 ? $tmp[0] : 0;

		print("RESPAWN_PLAYER {$loc[0]} {$loc[1]} {$xdir} {$ydir}" . "\n");
	}
}

?>
User avatar
sinewav
Graphic Artist
Posts: 6472
Joined: Wed Jan 23, 2008 3:37 am
Contact:

Re: Have any unused settings lying around?

Post by sinewav »

Light wrote:And you need a script for it, or just talkin' about it? I couldn't tell.
:wink: Just talking about it, but thanks for the script! It's probably not a real practical feature for Armagetron, but I would be happy if there was an option like that. Having some degree of randomness in the spawn points would liven things up a bit.

I've flushed out my idea a little more and now have a server with 7 maps featuring spawn configurations from the best Lightcycle games. I think this could be the future of LMS/Dogfight. The server isn't finished yet (Concord's settings are so great I haven't tried any others), but it will be called "Adventures of TRON >> UNIVERSE <<." So, keep an eye out for it.
Attachments
universe.gif
User avatar
LOVER$BOY
Match Winner
Posts: 731
Joined: Thu Jan 24, 2008 12:46 pm

Re: Have any unused settings lying around?

Post by LOVER$BOY »

Hey.

I'm not sure if this will be useful for anyone but I've put together scripts that work together to get random spawning working. It's more coding and more files used but I made it so that the whole thing works just like the code in the game.

Feel free to use it if you like but if do, please do reference to me... I don't get much credit for what I do...

Cheers :)
Attachments
random_spawning_script.zip
Random Spawning Scripts
(4.16 KiB) Downloaded 133 times
Image
User avatar
sinewav
Graphic Artist
Posts: 6472
Joined: Wed Jan 23, 2008 3:37 am
Contact:

Re: Have any unused settings lying around?

Post by sinewav »

Mmm, yes... good stuff here. I'm going to rename this thread to highlight all the valuable posts.
User avatar
LOVER$BOY
Match Winner
Posts: 731
Joined: Thu Jan 24, 2008 12:46 pm

Re: Random Spawn Points (with LOVER$BOY)

Post by LOVER$BOY »

Wow! Cool sine.

I'm glad now that the scripts would be useful somewhere now :)

Now I wonder if I should start making php framework for the php scripts to use in servers...
Image
User avatar
compguygene
Adjust Outside Corner Grinder
Posts: 2346
Joined: Thu Aug 21, 2008 12:09 pm
Location: Cleveland, Ohio
Contact:

Re: Random Spawn Points (with LOVER$BOY)

Post by compguygene »

LOVER$BOY wrote:Wow! Cool sine.

I'm glad now that the scripts would be useful somewhere now :)

Now I wonder if I should start making php framework for the php scripts to use in servers...
Please do! For those of us (I am thinking me here) who are NOT php coders, but can hack it a little to customize it, that would allow for so much more variety and fun. I have suggested this to a few others who seemed headed that direction in the past, but nobody has done it. Another big plus in your case is that you already are using Launchpad, so you could do this in a way that would be around, even if you disappear! Yes, this is my begging!
Armagetron: It's a video game that people should just play and enjoy :)
https://bit.ly/2KBGYjvCheck out the simple site about TheServerPharm
Post Reply