http://www.neurohack.com/public/forums/DebugCode.xml
Take the file above and put it in your Extensions folder (you'll need to right-click on the link and select "Save As...")
Start a game in debug mode (/debug) switch and bring up the command windows (F9)
Now type in (notice the ' in front of shpOrder):
(help 'shpOrder)
You will get back a list of all Transcendence functions that start with the string "shpOrder"
For now, this works with all built-in Transcendence functions. It does not work with functions defined in script. It currently does not work with the built-in primitives (such as (list) and (count))
----
The only other function in that Extensions file is also fun. Try:
(testShipClass 'phobos)
Enjoy!
Some debug help
-
- Developer
- Posts: 2997
- Joined: Thu Jul 24, 2003 9:53 pm
- Contact:
-
- Developer
- Posts: 2997
- Joined: Thu Jul 24, 2003 9:53 pm
- Contact:
Cool! I'm glad you liked it!Yugimotomanager wrote:Now that is just awesome!
Summoning a Phobos like that is just... awesome. Could be interesting to do so in Heretic.
Can we summon any other ships like that yet?
You can actually summon any ship in the game. Just enter the ship-class name instead of 'phobos.
-
- Miner
- Posts: 25
- Joined: Tue Jul 24, 2007 8:24 pm
I liked trying this:
I died quickly of course, but the net result was absolutely awesome!
Code: Select all
(for i 0 9 (testShipClass 'phobos))
I died quickly of course, but the net result was absolutely awesome!
-
- Commonwealth Pilot
- Posts: 78
- Joined: Mon Apr 23, 2007 4:41 am
- Location: Canton, MI/Redford, MI (Home/School)
Hmm...
Any way to tie the command to an item? Like using an item or docking? Or firing? Could get a noob in trouble. Godmod weapon, advertised as such, and every time it fires, a Phobos spawns. It would need a slow firing rate or you'd have godmodders PO'd that their comp locked up when about 100 Phobos started filling the screen. Ouch.
Teach them not to godmod.
Any way to tie the command to an item? Like using an item or docking? Or firing? Could get a noob in trouble. Godmod weapon, advertised as such, and every time it fires, a Phobos spawns. It would need a slow firing rate or you'd have godmodders PO'd that their comp locked up when about 100 Phobos started filling the screen. Ouch.
Teach them not to godmod.
I never said I was sane.
I said I was perfectly insane.
I said I was perfectly insane.
- Betelgeuse
- Fleet Officer
- Posts: 1920
- Joined: Sun Mar 05, 2006 6:31 am
nope it always had that feature 8)
Crying is not a proper retort!
- digdug
- Fleet Admiral
- Posts: 2620
- Joined: Mon Oct 29, 2007 9:23 pm
- Location: Decoding hieroglyphics on Tan-Ru-Dorem
If you want debug lines to show up in the console use dbgOutput.
If you want debug lines to show up the debug.log use dbgLog.
both of the functions accept a string after them so if you want to show up a variable, you have to convert it to a string.
To do that i normally use the function "cat" like this
(dbgLog (cat "My variable returns: " myVariable))
If you want more explanations please post in here:
http://www.neurohack.com/transcendence/ ... php?t=1811
This sticky topic is here to show the help extension made by George and not as a help to debug scripts.
If you want debug lines to show up the debug.log use dbgLog.
both of the functions accept a string after them so if you want to show up a variable, you have to convert it to a string.
To do that i normally use the function "cat" like this
(dbgLog (cat "My variable returns: " myVariable))
If you want more explanations please post in here:
http://www.neurohack.com/transcendence/ ... php?t=1811
This sticky topic is here to show the help extension made by George and not as a help to debug scripts.
- Betelgeuse
- Fleet Officer
- Posts: 1920
- Joined: Sun Mar 05, 2006 6:31 am
dbglog and dbgOutput are a bit different than that digdug
It takes any amount of arguments and outputs them to the log file or console. The arguments can be lists numbers or strings. (I think it was changed in .99 as lists used to not work)
It takes any amount of arguments and outputs them to the log file or console. The arguments can be lists numbers or strings. (I think it was changed in .99 as lists used to not work)
Crying is not a proper retort!