Dockscreen out of nowhere (not a bug)

Freeform discussion about anything related to modding Transcendence.
Post Reply
F50
Fleet Officer
Fleet Officer
Posts: 1004
Joined: Sat Mar 11, 2006 5:25 pm

I found a neat use for (scrShowScreen). Provided that gScreen is defined in-system (the player has docked in the system), you can simply use (scrShowScreen) on a station to display one of the stations dockscreens. Useful for plot elements.

Making this truely work would require saving a valid gScreen on the playership.
User avatar
Periculi
Fleet Officer
Fleet Officer
Posts: 1282
Joined: Sat Oct 13, 2007 7:48 pm
Location: Necroposting in a forum near you

Couldn't you just set gScreen when entering a system?
F50
Fleet Officer
Fleet Officer
Posts: 1004
Joined: Sat Mar 11, 2006 5:25 pm

yes, but I have no idea of what to set it to.
User avatar
Periculi
Fleet Officer
Fleet Officer
Posts: 1282
Joined: Sat Oct 13, 2007 7:48 pm
Location: Necroposting in a forum near you

Me neither, and I just tried a bunch of things and couldn't seem to get it to accept a valid gScreen to get started from.

Seems like once it gets set by a dockscreen it works for the rest of the time- calling various screens up by code and events worked after an initial screen was opened in the usual way- even after moving to a new system. So gScreen is a global, but how can it get set without actually entering a dockscreen to do it?

I wonder how to set gScreen immediately on entering the game so that plot interrupts could be added right when entering a game- open you directly into a dockscreen that presented some extra plot lines or configuration options from script rather than counting on docking with something.
F50
Fleet Officer
Fleet Officer
Posts: 1004
Joined: Sat Mar 11, 2006 5:25 pm

gScreen, when it is set properly always seems to be 12531884 for me. Yet when I (setq gScreen 12531884) the game crashes. Very odd.

George, what is gScreen and is there a way we can give it a meaningful value?
Post Reply