Problem with Dockscreen (OnInit?)

Freeform discussion about anything related to modding Transcendence.
Post Reply
User avatar
alterecco
Fleet Officer
Fleet Officer
Posts: 1658
Joined: Wed Jan 14, 2009 3:08 am
Location: Previously enslaved by the Iocrym

I suppose the fact that

Code: Select all

If the player has never encountered the ship before, then take her
                to see the captain
not being commented out is not the error?
User avatar
Prophet
Militia Captain
Militia Captain
Posts: 826
Joined: Tue Nov 18, 2008 6:09 pm

I think the problem is that you're trying to redirect to different panes.

Code: Select all

If the player has never encountered the ship before, then take her 
                to see the captain 
               (not (objGetData gPlayerShip "pirate")) 
                   
This should redirect to a new screen rather than a pane, like

Code: Select all

(scrShowScreen gScreen "&chIntroduction;")
then you can remove:

Code: Select all

(scrShowScreen gScreen "Default")
then returning Nil in your <OnInit> switch will just dump you into the default pane.
Coming soon: The Syrtian War adventure mod!
A Turret defense genre mod exploring the worst era in Earth's history.
Can you defend the Earth from the Syrtian invaders?
Stay tuned for updates!
User avatar
alterecco
Fleet Officer
Fleet Officer
Posts: 1658
Joined: Wed Jan 14, 2009 3:08 am
Location: Previously enslaved by the Iocrym

Hi 12Ghost12

Prophet and I just talked on irc, and agreed that we didn't actually solve the problem.

The fact is that

Code: Select all

(scrShowScreen gScreen "Introduction")
will fail, since there is no dockscreen called "Introduction" (it's a pane)

instead try this when you are redirecting to panes

Code: Select all

(scrShowScreen gScreen "&dsCharonPirateOutpost;" "Introduction")
That should hopefully take care of the crashing.

Also, you must still remember to comment out your comments, or weird behaviour may ensue :)
User avatar
dvlenk6
Militia Captain
Militia Captain
Posts: 519
Joined: Sun Mar 05, 2006 6:56 am
Location: Sanctuary and beyond
Contact:

Maybe try this format instead?

Code: Select all

(scrShowPane gScreen "Introduction")
"War is hell."
-William Tecumseh Sherman
http://dvlenk6.blackraven3d.com/transgals.html
Post Reply