I need help with Debug Mode
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?
-
- 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


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.
Get on Discord for mod help and general chat


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.
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.
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.
-
- 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


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.
Get on Discord for mod help and general chat


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.
- alterecco
- Fleet Officer
- Posts: 1658
- Joined: Wed Jan 14, 2009 3:08 am
- Location: Previously enslaved by the Iocrym
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) .JDMatson wrote:Everything results in mismatched parentheses.
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.
You may be right, but that would keep the station from spawning at all, wouldn't it?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) .
I'll keep that in mind if I ever get the parens problem fixed.RPC wrote: Try (ObjGetPos gSource) or (Objgetpos gplayership) instead of gplayership. It should return a vector.
-
- 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


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.
Get on Discord for mod help and general chat


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.
-
- Militia Captain
- Posts: 779
- Joined: Wed Nov 18, 2009 1:01 am
- Location: Still looking for the csc Antarctica
- Contact:
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;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.
at least thats what i remember form when i got that error in the debug console, sorry




"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"