Cycle code

Got something that makes Armagetron look shiny? Post it here.
Post Reply
User avatar
Code hunter
Average Program
Posts: 51
Joined: Sat Dec 23, 2006 3:15 am

Cycle code

Post by Code hunter »

I once had a code made by an old tron player that made the cycle change colour each round. Does anyone have that by any chance?

If so could you please e-mail it to fmod_2xist@hotmail.com

Thanks :)
Last edited by Code hunter on Mon Jul 23, 2007 2:49 am, edited 1 time in total.
User avatar
philippeqc
Long Poster - Project Developer - Sage
Posts: 1526
Joined: Mon Jul 12, 2004 8:55 am
Location: Stockholm
Contact:

Post by philippeqc »

Hi Code Hunter,

Sorry, no I do not have this code. It is actually the first time I even hear about it.

If somebody else has it, it is much more likely that they will post it on the forum rather than mail it to you. First, you came to the forum with your question as you recognize it is a source of knowledge of all things related Armagettron, but if we mail you the answer instead of posting it, then the question stays open for all the others. Second, it is a bit rude to come to a party, grab some food and dish out. Third, why would you rub us of your presence. Hang around the forum, let us gain from your own experiences, opinions and ideas!

Coming to think about it, such code should be fairly easy * to do. So the first step into helping you might be asking if you have the capacity to compile the game.

-ph

* When talking about code, everything is more complex than first expected. A 5 minute fix normally never takes under 1 hour. But I disgress.
Canis meus id comedit.
User avatar
Aang (avatar fan)
Round Winner
Posts: 210
Joined: Tue Apr 03, 2007 1:44 pm
Location: Far away, in a distant fantasy land, where there lives happly little elves. (I'm not one).
Contact:

Post by Aang (avatar fan) »

This has been done before...

http://forums.armagetronad.net/viewtopic.php?t=3406

:D hope thats what you mean.
User avatar
Code hunter
Average Program
Posts: 51
Joined: Sat Dec 23, 2006 3:15 am

Post by Code hunter »

no sorry thanks for trying though :P
User avatar
Z-Man
God & Project Admin
Posts: 11589
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Post by Z-Man »

That's the only such code I know of, too.
User avatar
Joe
Core Dumper
Posts: 161
Joined: Fri Aug 27, 2004 6:11 am
Location: C eh N eh D eh
Contact:

Post by Joe »

Is there a way of say tpying in a bunch of colour codes and have a random colour chosen each round for you out of the ones you have input. The random colour one is nice but I don't like most of the colours.
User avatar
Jonathan
A Brave Victim
Posts: 3391
Joined: Thu Feb 03, 2005 12:50 am
Location: Not really lurking anymore

Post by Jonathan »

Something like

Code: Select all

// ZERO TESTING
void ePlayerNetID::WriteSync(nMessage &m) {
	const static unsigned short colors[][3] = {
		{15, 10, 1},
		{0, 0, 13}
		//...
	}
	const static unsigned numcolors = sizeof colors / sizeof *colors;
	
	lastSync = tSysTimeFloat();
	nNetObject::WriteSync(m);
	
	const unsigned short *choice = colors[rand() % numcolors];
	for(int i=0; i<3; i++)
		m.Write(choice[i]);
}
ˌɑrməˈɡɛˌtrɑn
User avatar
Code hunter
Average Program
Posts: 51
Joined: Sat Dec 23, 2006 3:15 am

Post by Code hunter »

The code was found, if you are all wanting this download, please go to the highway 2 hell clan site.

http://highway2hell.ipbfree.com
User avatar
custang
Average Program
Posts: 91
Joined: Sat Dec 09, 2006 9:33 am
Location: Australia

Post by custang »

hey man, check the ddl forums and most of all the asu site thanks :P
btw is the code good? lolz 8)
bring back ddl!
Post Reply