Computer Nodes error; Deadalus:GlobalNode

A refuge for those migrating from the fallen DXEditing.com and a place for general discussion relating to Deus Ex editing (coding, mapping, etc).
Post Reply
Darma
UNATCO
Posts: 151
Joined: Wed Apr 15, 2009 2:20 pm

Computer Nodes error; Deadalus:GlobalNode

Post by Darma »

Hello, I made some new nodes and I have a error:
Image


Does anyone know how to delete that?
Here is a copy of my package:

Code: Select all

//=============================================================================
// TDPComputers (From TNM computers)
//=============================================================================
class TDPComputers extends Computers;

//game stuff -Shacker
enum TNM2DGameType
{
TNM2D_None,
TNM2D_Pong,
TNM2D_Tetris,
TNM2D_Breakout,
TNM2D_LightsOut,
TNM2D_TextGame,
TNM2D_IRC,
TNM2D_TDPIRC,
TNM2D_DXIGame,
};
var() bool bHasGames;
var() TNM2DGameType games[5];
//end game stuff

var() name AttachedPrinter;

var() bool bBlackIce;
var() bool bNarcissus;
var() name NarcissusFlag;
var() bool bUsable;

var string terminalTypeStr;

struct sSpecialOptionflag
{
	var() name SpecialOptionFlag;
	var() bool bDesiredValue;
	var() bool bVisibleInactive;
};

struct sSpecialOptionlogout
{
	var() bool bLogout;
};

var(Computers) localized sSpecialOptionflag specialOptionflags[4];
var(Computers) sSpecialOptionlogout specialOptionLogout[4];

enum EComputerNodesTDP
{
CN_DL,
CN_PDXBank,
CN_PDXNet,
CN_DXO,
CN_MelkNett, 
CN_DXI, 
CN_SBI,
CN_Cafe,
CN_DXE, 
CN_BOS, 
CN_Llama
};

var() EComputerNodesTDP ComputerNodeTDP;

event PreBeginPlay()
{
	if(terminalTypeStr!="")
		terminalType=class<NetworkTerminal>(DynamicLoadObject(terminalTypeStr, class'Class'));
}

function printer GetPrinter()
{
	local printer p;
	if(AttachedPrinter=='')
		return None;
	foreach AllActors(class'printer', p , AttachedPrinter)
		break;
	return p;
}

// ----------------------------------------------------------------------
// GetNodeName()
// ----------------------------------------------------------------------

function String GetNodeName()
{
	return nodeInfo[Int(ComputerNodeTDP)].nodeName;
}

// ----------------------------------------------------------------------
// GetNodeDesc()
// ----------------------------------------------------------------------

function String GetNodeDesc()
{
	return nodeInfo[Int(ComputerNodeTDP)].nodeDesc;
}

// ----------------------------------------------------------------------
// GetNodeAddress()
// ----------------------------------------------------------------------

function String GetNodeAddress()
{
	return nodeInfo[Int(ComputerNodeTDP)].nodeAddress;
}

// ----------------------------------------------------------------------
// GetNodeTexture()
// ----------------------------------------------------------------------

function Texture GetNodeTexture()
{
	return nodeInfo[Int(ComputerNodeTDP)].nodeTexture;
}


// ----------------------------------------------------------------------
// ----------------------------------------------------------------------

function clean()
{
	if ((termwindow.winComputer.winStatus != None) && (termwindow.winComputer.compOwner.IsA('Computers')))
		termwindow.winComputer.winStatus.SetText(TDPComputers(termwindow.winComputer.compOwner).GetNodeAddress());
}

function Frob(Actor Frobber, Inventory frobWith)
{
	if(!bUsable)
	{
		Trestkon(Frobber).ClientMessage("This machine is being used by someone else.");
		return;
	}

	super.Frob(Frobber,frobWith);
}

defaultproperties
{
     specialOptionflags(0)=(bDesiredValue=True)
     specialOptionflags(1)=(bDesiredValue=True)
     specialOptionflags(2)=(bDesiredValue=True)
     specialOptionflags(3)=(bDesiredValue=True)
     TextPackage="TDPText"
     NodeInfo(0)=(nodeName="DLserver",nodeDesc="DLserver",nodeAddress="StarGate:LocalNode:TDP//DLServer//NODE.34@778/Login",nodeTexture=Texture'TDP.Nodes.TDPNodeDL')
     NodeInfo(1)=(nodeName="PDXBank",nodeDesc="PDX, Banking Departement",nodeAddress="ForumPlanet:GlobalNode:DL//PDXNET//NODE.65@435/Login",nodeTexture=Texture'TDP.Nodes.TDPNodePDXB')
     NodeInfo(2)=(nodeName="PDXNet",nodeDesc="PDXNet",nodeAddress="ForumPlanet:GlobalNode:DL//PDXNET//NODE.65@435/Login",nodeTexture=Texture'TDP.Nodes.TDPNodePDX')
     NodeInfo(3)=(nodeName="DeusEx.org",nodeDesc="DeusEx.org",nodeAddress="ForumPlanet:GlobalNode:DL//DXO//NODE.65@435/Login",nodeTexture=Texture'TDP.Nodes.TDPNodeDXO')
     NodeInfo(4)=(nodeName="MelkNett(TM)",nodeDesc="MelkNett(TM)",nodeAddress="ForumPlanet:GlobalNode:DL//MELKNET//NODE.78@793/Login",nodeTexture=Texture'TDP.Nodes.TDPNodemelknett')
     NodeInfo(5)=(nodeName="Deus Ex Incarnate",nodeDesc="Deus Ex Incarnate",nodeAddress="ForumPlanet:GlobalNode:DL//DXI//NODE.44@156/Login",nodeTexture=Texture'TDP.Nodes.TDPNodeDXI')
     NodeInfo(6)=(nodeName="SBI",nodeDesc="Sphere Business INC.",nodeAddress="ForumPlanet:GlobalNode:DL//SBI//NODE.22@756/Login",nodeTexture=Texture'TDP.Nodes.TDPNodeSBI')
     NodeInfo(7)=(nodeName="Cafe",nodeDesc="Local Café",nodeAddress="ForumPlanet:GlobalNode:DL//CAFE//NODE.89@274/Login",nodeTexture=Texture'TDP.Nodes.TDPNodeCafe')
     NodeInfo(8)=(nodeName="DXEditing",nodeDesc="DXEditing",nodeAddress="ForumPlanet:GlobalNode:DL//DXE//NODE.89@274/Login",nodeTexture=Texture'TDP.Nodes.TDPNodeDXE')
     NodeInfo(9)=(nodeName="BlueOS",nodeDesc="Local Machine (no network detected)",nodeAddress="LocalMachine//system/bluekernel/interface/Login",nodeTexture=Texture'TDP.Nodes.TDPNodeBOS')
     NodeInfo(10)=(nodeName="LlamaNet",nodeDesc="THE Llama!!",nodeAddress="ForumPlanet:GlobalNode:DL//LlamaNET//NODE.78@793/Login",nodeTexture=Texture'TDP.Nodes.TDPNodeLlama')
     bUsable=True
}
Please, don't copy anything since TDP isn't released :/
DDL
Traditional Evil Scientist
Traditional Evil Scientist
Posts: 3791
Joined: Mon Oct 17, 2005 10:03 am

Re: Computer Nodes error; Deadalus:GlobalNode

Post by DDL »

Code: Select all

class MyComputerScreenLogin expands ComputerScreenLogin;

// This function is overridden to call MyComputers so that custom
// logos and text can appear on the computer login window

// ----------------------------------------------------------------------
// SetCompOwner()
// ----------------------------------------------------------------------

function SetCompOwner(ElectronicDevices newCompOwner)
{

	//Super.SetCompOwner(newCompOwner);

	compOwner = newCompOwner;

	if ((winStatus != None) && (compOwner.IsA('Computers')))
		winStatus.SetText("YOUR TEXT HERE ROFL" $ Computers(compOwner).GetNodeAddress() $ "/" $ ComputerNodeFunctionLabel);

	// Update the title, texture and description
	winTitle.SetTitle(Sprintf(Title, MyComputers(compOwner).GetNodeName()));
	winLoginInfo.SetText(MyComputers(compOwner).GetNodeDesc());

	SetFocusWindow(editUserName);

	SetLogo(MyComputers(compOwner).GetNodeTexture());
}
Essentially, it's a single override in the login screen. Of course you then need to also make new computers, and new screens for all the other shit, since it's grotesquely inter-referential....but looks like you're getting the hang of that. :)
Darma
UNATCO
Posts: 151
Joined: Wed Apr 15, 2009 2:20 pm

Re: Computer Nodes error; Deadalus:GlobalNode

Post by Darma »

Thanks, I understood how to solve the problem :smile:
Post Reply