Author Topic: Cheats for testing maps  (Read 7078 times)

phaedrus

  • Posts: 104
  • Turrets: +1/-1
Cheats for testing maps
« on: May 21, 2006, 03:18:39 am »
Hey all, I just saw this posted to the GtkRadiant sticky:
Quote from: "mIc"
For mapping it might be usefull to know cheat commands to evolve for example to tyrant to check room hights.
Are there anywhere cheat commands (of course for sv_allowcheats 1 and sv_pure 0 servers) ?


And I thought it would be more useful to put it as a new topic, so here it is.

I found these from digging in the console and looking around in the "Some Useful Binds" thread.

First, start Trem, pull down the console and load your map using the '\devmap' command:
Code: [Select]
\devmap <mapname>

To give yourself cash or evo points (as human or alien respectively):
Code: [Select]
\give funds <number>
The max for humans is 2000 and the max for aliens is 9.

To get to a later stage, use:
Code: [Select]

\g_alienStage {0|1|2}
\g_humanStage {0|1|2}

Where 0 is stage 1, 1 is stage 2 and 2 is stage 3 (they just started counting at 0, instead of 1 internally.  Silly programmers).  

Then, you can use the evolve and buy keys you normally do to get tyrants, &c.  

Also, the console supports something called "tab completion".  This means, you can type:

\g_a<TAB> and the console will add the string 'lien' to the end, and present you with the other options available.  You then type another character, say 'S', and hit tab again.  That should get you to \g_alienStage, and present you with further options (the settings for # of kills needed to read x stage also start with g_*Stage).

Anyone else have other useful commands for testing maps?  

Jeff
owered by Slackware.  Dare to Slack.

Catalyc

  • Posts: 214
  • Turrets: +2/-0
Cheats for testing maps
« Reply #1 on: May 21, 2006, 04:05:26 am »
ttp://tremmapping.pbwiki.com/

Vector_Matt

  • Posts: 732
  • Turrets: +2/-1
Re: Cheats for testing maps
« Reply #2 on: May 21, 2006, 12:51:42 pm »
Quote from: "phaedrus"
To get to a later stage, use:
Code: [Select]

\g_alienStage {0|1|2}
\g_humanStage {0|1|2}

Where 0 is stage 1, 1 is stage 2 and 2 is stage 3 (they just started counting at 0, instead of 1 internally.  Silly programmers).
That is not the fault of the programmers, all arrays start at 0, why, because stage[0] means the first thing in the stage variable (first one, 0 after the begining), stage[1] menas one after the begining (stage 2). That "oddity" is built into all computers, the way around it (have an array 0-3) uses more memory than is needed  and is bad programming.

gareth

  • Posts: 710
  • Turrets: +38/-89
Cheats for testing maps
« Reply #3 on: May 21, 2006, 08:46:49 pm »
the way around is just to decrement the index before using it. Its not a big deal either way really...

phaedrus

  • Posts: 104
  • Turrets: +1/-1
Re: Cheats for testing maps
« Reply #4 on: May 22, 2006, 07:26:00 pm »
Quote from: "Vector_Matt"
Quote from: "phaedrus"
To get to a later stage, use:
Code: [Select]

\g_alienStage {0|1|2}
\g_humanStage {0|1|2}

Where 0 is stage 1, 1 is stage 2 and 2 is stage 3 (they just started counting at 0, instead of 1 internally.  Silly programmers).
That is not the fault of the programmers, all arrays start at 0, why, because stage[0] means the first thing in the stage variable (first one, 0 after the begining), stage[1] menas one after the begining (stage 2). That "oddity" is built into all computers, the way around it (have an array 0-3) uses more memory than is needed  and is bad programming.


I know.  I know C/C++/Objective C and many other languages.  I've also programmed an MC68k in raw machine code.  

Jeff
owered by Slackware.  Dare to Slack.

Raumkraut

  • Posts: 17
  • Turrets: +0/-0
Cheats for testing maps
« Reply #5 on: May 23, 2006, 10:42:43 am »
One thing I've been unable to find is a way to switch teams - so you can build stuff as one team, and test assaulting it as the other. Can this be done?

Catalyc

  • Posts: 214
  • Turrets: +2/-0
Cheats for testing maps
« Reply #6 on: May 23, 2006, 12:21:18 pm »
/team aliens
/team humans


also doing /kill and clicking on the 'back' button in the spawn menu takes you to the team menu.
ttp://tremmapping.pbwiki.com/