where is Base.LoadBaseInterface defined?

This is the location for all mods to collaborate. Anyone making or planning their own mod should post help requests, screen shots and news here.

Moderators: Omega, tillias, Mod Contributor

where is Base.LoadBaseInterface defined?

Postby legine » Wed Feb 04, 2009 1:12 pm

Hello,

What does this thing do? where is it defined? I checked base.h But couldnt find anything with the name. I dont understand. Would be great if someone can help me to understand this. :)
legine
Bounty Hunter
Bounty Hunter
 
Posts: 139
Topics: 19
Joined: Mon Sep 27, 2004 1:40 am
Location: Germany

Share On:

Share on Facebook Facebook Share on Twitter Twitter Share on Digg Digg

Re: where is Base.LoadBaseInterface defined?

Postby RedAdder » Wed Feb 04, 2009 1:49 pm

check base_util.cpp
User avatar
RedAdder
Bounty Hunter
Bounty Hunter
 
Posts: 149
Topics: 10
Joined: Sat Jan 03, 2009 1:11 pm
Location: Germany, Munich

Re: where is Base.LoadBaseInterface defined?

Postby ace123 » Wed Feb 04, 2009 6:59 pm

That is the magic function that allows you to create a GUI at any point in the game, which interrupts flight. It's used in mission/main_menu.mission in order to load the main menu screen at startup.

Similar functionality can be accomplished by docking you to a planet or unit, but it gives you less flexibility with what python code gets run, and you have to load an additional unit for it to work.

All the "Base.*" functions are defined in base_util.cpp. The difference between the 'Base' and 'VS' modules is that no functions in Base will work on a multiplayer server.

(I don't think you should worry about multiplayer yet, but custom.py has some functions to allow sending custom messages between the client and the server--look at bases/weapons_lib.py in PrivGold for some examples--and they work in single-player mode as well)
ace123
Lead Network Developer
Lead Network Developer
 
Posts: 2560
Topics: 32
Joined: Sun Jan 12, 2003 2:13 am
Location: Palo Alto CA

Re: where is Base.LoadBaseInterface defined?

Postby legine » Thu Feb 05, 2009 1:27 am

thanks that helps :-)
legine
Bounty Hunter
Bounty Hunter
 
Posts: 139
Topics: 19
Joined: Mon Sep 27, 2004 1:40 am
Location: Germany


Return to General Modding

Who is online

Users browsing this forum: No registered users and 0 guests