I need help with Debug Mode

Freeform discussion about anything related to modding Transcendence.
Post Reply
JDMatson
Anarchist
Anarchist
Posts: 24
Joined: Sat Oct 22, 2011 6:08 pm

I'm trying to mod a station. I tried to use sysCreateStation to test it but I always get the error "mismatched open parenthesis". Is there a tutorial for debug mode somewhere? If not, can someone post a working example of exactly what to type?
RPC
Fleet Admiral
Fleet Admiral
Posts: 2876
Joined: Thu Feb 03, 2011 5:21 am
Location: Hmm... I'm confused. Anybody have a starmap to the Core?

Post what you've done here, it will help with debugging. As for mismatched opening parentheses, it means you're missing an opening or closing parentheses. Check to see that the number of opening and cloasing parentheses are the same.
Tutorial List on the Wiki and Installing Mods
Get on Discord for mod help and general chat
Image
Image
Der Tod ist der zeitlose Frieden und das leben ist der Krieg
Wir müssen wissen — wir werden wissen!
I don't want any sort of copyright on my Transcendence mods. Feel free to take/modify whatever you want.
JDMatson
Anarchist
Anarchist
Posts: 24
Joined: Sat Oct 22, 2011 6:08 pm

so far I've tried:
sysCreateStation
(sysCreateStation &stCorporateEnclave; gPlayerShip
(sysCreateStation &stCorporateEnclave; gPlayerShip)
(sysCreateStation &stCorporateEnclave; gPlayerShip))
and variants on the above.

(help 'sysCreateStation)
returns this
(sysCreateStation classID posVector) -> station
which looks like what I have above, but obviously isn't quite the same.

I read something that said that gPlayerShip wouldn't work with sysCreateStation, so I tried to substitute some functions in there, but it doesn't make a difference for me yet. Everything results in mismatched parentheses.
RPC
Fleet Admiral
Fleet Admiral
Posts: 2876
Joined: Thu Feb 03, 2011 5:21 am
Location: Hmm... I'm confused. Anybody have a starmap to the Core?

Try (ObjGetPos gSource) or (Objgetpos gplayership) instead of gplayership. It should return a vector.
Tutorial List on the Wiki and Installing Mods
Get on Discord for mod help and general chat
Image
Image
Der Tod ist der zeitlose Frieden und das leben ist der Krieg
Wir müssen wissen — wir werden wissen!
I don't want any sort of copyright on my Transcendence mods. Feel free to take/modify whatever you want.
User avatar
alterecco
Fleet Officer
Fleet Officer
Posts: 1658
Joined: Wed Jan 14, 2009 3:08 am
Location: Previously enslaved by the Iocrym

JDMatson wrote:Everything results in mismatched parentheses.
You probably have mismatched parens somewhere in the entire document. Go through the code painstakingly and make sure they all are matched (that is, every opened paren must be closed) .
Get your own Galactic Omni Device
Get it now. It's free!!
Image
JDMatson
Anarchist
Anarchist
Posts: 24
Joined: Sat Oct 22, 2011 6:08 pm

I think I wasn't clear on what my problem is. I shall elaborate. I've stripped down a copy of the corporate enclave prior to building it back up as a custom station. The custom station spawns and works, as does the stock corporate enclave. I've been using a modded ship with lots of fuel and map roms to hunt down spawned stations to test them. Twice now, though, I've made it to St. Kats without one of my stations spawning even though it's currently set to common for system levels 5 and under. So I decided to use Debug Mode instead, but I can't get sysCreateStation to work in the debug window. I've tried it with my station, the corporate enclave and the tinker gathering. No matter what I type in the window, I get a mismatch error.

alterecco wrote: You probably have mismatched parens somewhere in the entire document. Go through the code painstakingly and make sure they all are matched (that is, every opened paren must be closed) .
You may be right, but that would keep the station from spawning at all, wouldn't it?

RPC wrote: Try (ObjGetPos gSource) or (Objgetpos gplayership) instead of gplayership. It should return a vector.
I'll keep that in mind if I ever get the parens problem fixed.
RPC
Fleet Admiral
Fleet Admiral
Posts: 2876
Joined: Thu Feb 03, 2011 5:21 am
Location: Hmm... I'm confused. Anybody have a starmap to the Core?

Well, worst case scenario would be to pastebin and have us look at it ;)
Tutorial List on the Wiki and Installing Mods
Get on Discord for mod help and general chat
Image
Image
Der Tod ist der zeitlose Frieden und das leben ist der Krieg
Wir müssen wissen — wir werden wissen!
I don't want any sort of copyright on my Transcendence mods. Feel free to take/modify whatever you want.
sdw195
Militia Captain
Militia Captain
Posts: 779
Joined: Wed Nov 18, 2009 1:01 am
Location: Still looking for the csc Antarctica
Contact:

JDMatson wrote:so far I've tried:
sysCreateStation
(sysCreateStation &stCorporateEnclave; gPlayerShip
(sysCreateStation &stCorporateEnclave; gPlayerShip)
(sysCreateStation &stCorporateEnclave; gPlayerShip))
and variants on the above.

(help 'sysCreateStation)
returns this
(sysCreateStation classID posVector) -> station
which looks like what I have above, but obviously isn't quite the same.

I read something that said that gPlayerShip wouldn't work with sysCreateStation, so I tried to substitute some functions in there, but it doesn't make a difference for me yet. Everything results in mismatched parentheses.
the reason for the mismatch error is because of a bug in the debug console (sysCreateStation &stCorporateEnclave; gPlayerShip) would work fine but it thinks that the ; is a comment marker so all it is seeing is (sysCreateStation &stCorporateEnclave;

at least thats what i remember form when i got that error in the debug console, sorry
Image
Image
Image
Image
"Dash_Merc - George is a genius, in that he created this game engine that is infinitely extendable"
"<@sheepluva>Good night everybody, may the source be with you." <-- FOSG dev
"You only need THREE tools in life - WD-40 to make things go, Duct Tape to make things stop And C-4 to make things go away"
JDMatson
Anarchist
Anarchist
Posts: 24
Joined: Sat Oct 22, 2011 6:08 pm

That is exactly what I needed to know. Using the hex code for the station has got it working. Thanks so much. I'm sorry you guys had to spend the whole day helping me.
User avatar
alterecco
Fleet Officer
Fleet Officer
Posts: 1658
Joined: Wed Jan 14, 2009 3:08 am
Location: Previously enslaved by the Iocrym

Doh! That is so obvious! XD Nice catch sdw195!!
Get your own Galactic Omni Device
Get it now. It's free!!
Image
User avatar
digdug
Fleet Admiral
Fleet Admiral
Posts: 2620
Joined: Mon Oct 29, 2007 9:23 pm
Location: Decoding hieroglyphics on Tan-Ru-Dorem

Doh! That is so obvious! XD Nice catch sdw195!!
lol, yes :D
you can only use UNID numbers in the console 0xAAAABBBB
Post Reply