- Fixed Etb saving custom tags to global tagfile (Shaderman/namespace)

- Fixed postbuild step for brushexport, shaderplug and sunplug (Shaderman)
- Added installersupport for new files and plugins (Shaderman)


git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@108 8a3a26a2-13c4-0310-b231-cf6edde360e5
This commit is contained in:
namespace 2006-10-01 14:12:11 +00:00
parent c11d5da7a3
commit 8cb19ddd5c
11 changed files with 53 additions and 25 deletions

View file

@ -1,6 +1,12 @@
This is the changelog for developers, != changelog for the end user This is the changelog for developers, != changelog for the end user
that we distribute with the binaries. (see changelog) that we distribute with the binaries. (see changelog)
30/09/2006
namespace
- Fixed Etb saving custom tags to global tagfile (Shaderman/namespace)
- Fixed postbuild step for brushexport, shaderplug and sunplug (Shaderman)
- Added installersupport for new files and plugins (Shaderman)
30/09/2006 30/09/2006
namespace namespace
- Added LocalLcPath to plugin interface - Added LocalLcPath to plugin interface

View file

@ -54,7 +54,8 @@
Name="VCMIDLTool"/> Name="VCMIDLTool"/>
<Tool <Tool
Name="VCPostBuildEventTool" Name="VCPostBuildEventTool"
CommandLine="copy &quot;$(TargetPath)&quot; &quot;$(SolutionDir)install\plugins&quot;"/> CommandLine="copy &quot;$(TargetPath)&quot; &quot;$(SolutionDir)install\plugins&quot;
copy &quot;$(TargetDir)$(TargetName).pdb&quot; &quot;$(SolutionDir)install\plugins&quot;"/>
<Tool <Tool
Name="VCPreBuildEventTool"/> Name="VCPreBuildEventTool"/>
<Tool <Tool
@ -121,7 +122,8 @@
Name="VCMIDLTool"/> Name="VCMIDLTool"/>
<Tool <Tool
Name="VCPostBuildEventTool" Name="VCPostBuildEventTool"
CommandLine="copy &quot;$(TargetPath)&quot; &quot;$(SolutionDir)install\plugins&quot;"/> CommandLine="copy &quot;$(TargetPath)&quot; &quot;$(SolutionDir)install\plugins&quot;
copy &quot;$(TargetDir)$(TargetName).pdb&quot; &quot;$(SolutionDir)install\plugins&quot;"/>
<Tool <Tool
Name="VCPreBuildEventTool"/> Name="VCPreBuildEventTool"/>
<Tool <Tool

View file

@ -54,7 +54,8 @@
Name="VCMIDLTool"/> Name="VCMIDLTool"/>
<Tool <Tool
Name="VCPostBuildEventTool" Name="VCPostBuildEventTool"
CommandLine="copy &quot;$(TargetPath)&quot; &quot;$(SolutionDir)install\plugins&quot;"/> CommandLine="copy &quot;$(TargetPath)&quot; &quot;$(SolutionDir)install\plugins&quot;
copy &quot;$(TargetDir)$(TargetName).pdb&quot; &quot;$(SolutionDir)install\plugins&quot;"/>
<Tool <Tool
Name="VCPreBuildEventTool"/> Name="VCPreBuildEventTool"/>
<Tool <Tool
@ -121,7 +122,8 @@
Name="VCMIDLTool"/> Name="VCMIDLTool"/>
<Tool <Tool
Name="VCPostBuildEventTool" Name="VCPostBuildEventTool"
CommandLine="copy &quot;$(TargetPath)&quot; &quot;$(SolutionDir)install\plugins&quot;"/> CommandLine="copy &quot;$(TargetPath)&quot; &quot;$(SolutionDir)install\plugins&quot;
copy &quot;$(TargetDir)$(TargetName).pdb&quot; &quot;$(SolutionDir)install\plugins&quot;"/>
<Tool <Tool
Name="VCPreBuildEventTool"/> Name="VCPreBuildEventTool"/>
<Tool <Tool

View file

@ -50,7 +50,8 @@
Name="VCMIDLTool"/> Name="VCMIDLTool"/>
<Tool <Tool
Name="VCPostBuildEventTool" Name="VCPostBuildEventTool"
CommandLine="copy &quot;$(TargetPath)&quot; &quot;$(SolutionDir)install\plugins&quot;"/> CommandLine="copy &quot;$(TargetPath)&quot; &quot;$(SolutionDir)install\plugins&quot;
copy &quot;$(TargetDir)$(TargetName).pdb&quot; &quot;$(SolutionDir)install\plugins&quot;"/>
<Tool <Tool
Name="VCPreBuildEventTool"/> Name="VCPreBuildEventTool"/>
<Tool <Tool
@ -110,7 +111,8 @@
Name="VCMIDLTool"/> Name="VCMIDLTool"/>
<Tool <Tool
Name="VCPostBuildEventTool" Name="VCPostBuildEventTool"
CommandLine="copy &quot;$(TargetPath)&quot; &quot;$(SolutionDir)install\plugins&quot;"/> CommandLine="copy &quot;$(TargetPath)&quot; &quot;$(SolutionDir)install\plugins&quot;
copy &quot;$(TargetDir)$(TargetName).pdb&quot; &quot;$(SolutionDir)install\plugins&quot;"/>
<Tool <Tool
Name="VCPreBuildEventTool"/> Name="VCPreBuildEventTool"/>
<Tool <Tool

View file

@ -77,14 +77,18 @@ bool XmlTagBuilder::CreateXmlDocument()
} }
} }
bool XmlTagBuilder::OpenXmlDoc(const char* file) bool XmlTagBuilder::OpenXmlDoc(const char* file, const char* savefile)
{ {
/* Reads a XML document from a file /* Reads a XML document from a file
returns TRUE if the document was read successfully or FALSE when failed returns TRUE if the document was read successfully or FALSE when failed
*/ */
filename = file; if(savefile)
m_savefilename = savefile;
else
m_savefilename = file;
doc = xmlParseFile(file); // TODO error checking! doc = xmlParseFile(file); // TODO error checking!
if(!doc) if(!doc)
@ -98,7 +102,7 @@ bool XmlTagBuilder::OpenXmlDoc(const char* file)
bool XmlTagBuilder::SaveXmlDoc(void) bool XmlTagBuilder::SaveXmlDoc(void)
{ {
return SaveXmlDoc(filename.c_str()); return SaveXmlDoc(m_savefilename.c_str());
} }
bool XmlTagBuilder::SaveXmlDoc(const char* file) bool XmlTagBuilder::SaveXmlDoc(const char* file)

View file

@ -52,7 +52,7 @@ enum TextureType
class XmlTagBuilder class XmlTagBuilder
{ {
private: private:
CopiedString filename; CopiedString m_savefilename;
xmlDocPtr doc; xmlDocPtr doc;
xmlXPathContextPtr context; xmlXPathContextPtr context;
xmlNodeSetPtr nodePtr; xmlNodeSetPtr nodePtr;
@ -86,7 +86,7 @@ public:
~XmlTagBuilder(); ~XmlTagBuilder();
bool CreateXmlDocument(); bool CreateXmlDocument();
bool OpenXmlDoc(const char* file); bool OpenXmlDoc(const char* file, const char* savefile = 0);
bool SaveXmlDoc(const char* file); bool SaveXmlDoc(const char* file);
bool SaveXmlDoc(void); bool SaveXmlDoc(void);
bool AddShaderNode(const char* shader, TextureType textureType, NodeShaderType nodeShaderType); bool AddShaderNode(const char* shader, TextureType textureType, NodeShaderType nodeShaderType);

View file

@ -606,7 +606,7 @@ bool build_commands_parse(const char* filename)
return true; return true;
} }
globalErrorStream() << "failed to parse build menu: " << makeQuoted(filename); globalErrorStream() << "failed to parse build menu: " << makeQuoted(filename) << "\n";
} }
return false; return false;
} }

View file

@ -1847,44 +1847,42 @@ GtkWidget* TextureBrowser_constructTagToolbar()
void TextureBrowser_checkTagFile() void TextureBrowser_checkTagFile()
{ {
const char SHADERTAG_FILE[] = "shadertags.xml"; const char SHADERTAG_FILE[] = "shadertags.xml";
CopiedString filename; CopiedString default_filename, rc_filename;
StringOutputStream stream(256); StringOutputStream stream(256);
stream << LocalRcPath_get(); stream << LocalRcPath_get();
stream << SHADERTAG_FILE; stream << SHADERTAG_FILE;
filename = stream.c_str(); rc_filename = stream.c_str();
if(file_exists(filename.c_str())) if(file_exists(rc_filename.c_str()))
{ {
g_TextureBrowser.m_tags = TagBuilder.OpenXmlDoc(filename.c_str()); g_TextureBrowser.m_tags = TagBuilder.OpenXmlDoc(rc_filename.c_str());
if(g_TextureBrowser.m_tags) if(g_TextureBrowser.m_tags)
{ {
globalOutputStream() << "Loading tag file " << filename.c_str() << ".\n"; globalOutputStream() << "Loading tag file " << rc_filename.c_str() << ".\n";
} }
} }
else else
{ {
// default tagfile laden // load default tagfile
stream.clear(); stream.clear();
stream << g_pGameDescription->mGameToolsPath.c_str(); stream << g_pGameDescription->mGameToolsPath.c_str();
stream << SHADERTAG_FILE; stream << SHADERTAG_FILE;
filename = stream.c_str(); default_filename = stream.c_str();
globalErrorStream() << filename.c_str() << "\n"; if(file_exists(default_filename.c_str()))
if(file_exists(filename.c_str()))
{ {
g_TextureBrowser.m_tags = TagBuilder.OpenXmlDoc(filename.c_str()); g_TextureBrowser.m_tags = TagBuilder.OpenXmlDoc(default_filename.c_str(), rc_filename.c_str());
if(g_TextureBrowser.m_tags) if(g_TextureBrowser.m_tags)
{ {
globalOutputStream() << "Loading default tag file " << filename.c_str() << ".\n"; globalOutputStream() << "Loading default tag file " << default_filename.c_str() << ".\n";
} }
} }
else else
{ {
globalErrorStream() << "Unable to find default tag file " << filename.c_str() << ". No tag support.\n"; globalErrorStream() << "Unable to find default tag file " << default_filename.c_str() << ". No tag support.\n";
} }
} }
} }

View file

@ -6,6 +6,7 @@
<dir name="et.game"> <dir name="et.game">
<file name="game.xlink"/> <file name="game.xlink"/>
<file name="default_build_menu.xml"/> <file name="default_build_menu.xml"/>
<file name="shadertags.xml"/>
<dir name="bitmaps"> <dir name="bitmaps">
<file name="splash.bmp"/> <file name="splash.bmp"/>
</dir> </dir>

View file

@ -13,13 +13,16 @@
<file name="cap_ibevel.bmp"/> <file name="cap_ibevel.bmp"/>
<file name="cap_iendcap.bmp"/> <file name="cap_iendcap.bmp"/>
<file name="cap_cylinder.bmp"/> <file name="cap_cylinder.bmp"/>
<file name="console.bmp"/>
<file name="curve_cap.bmp"/> <file name="curve_cap.bmp"/>
<file name="dontselectcurve.bmp"/> <file name="dontselectcurve.bmp"/>
<file name="dontselectmodel.bmp"/> <file name="dontselectmodel.bmp"/>
<file name="ellipsis.bmp"/> <file name="ellipsis.bmp"/>
<file name="entities.bmp"/>
<file name="file_open.bmp"/> <file name="file_open.bmp"/>
<file name="file_save.bmp"/> <file name="file_save.bmp"/>
<file name="icon.bmp"/> <file name="icon.bmp"/>
<file name="lightinspector.bmp"/>
<file name="logo.bmp"/> <file name="logo.bmp"/>
<file name="modify_edges.bmp"/> <file name="modify_edges.bmp"/>
<file name="modify_faces.bmp"/> <file name="modify_faces.bmp"/>
@ -47,6 +50,7 @@
<file name="select_mouseresize.bmp"/> <file name="select_mouseresize.bmp"/>
<file name="show_entities.bmp"/> <file name="show_entities.bmp"/>
<file name="splash.bmp"/> <file name="splash.bmp"/>
<file name="texture_browser.bmp"/>
<file name="texture_lock.bmp"/> <file name="texture_lock.bmp"/>
<file name="textures_popup.bmp"/> <file name="textures_popup.bmp"/>
<file name="view_cameratoggle.bmp"/> <file name="view_cameratoggle.bmp"/>

View file

@ -42,6 +42,15 @@
<feature name="PrtView Plugin" desc="Geoffrey Dewan's Portal Viewer"> <feature name="PrtView Plugin" desc="Geoffrey Dewan's Portal Viewer">
<component name=".\components\prtview.xml" root="..\..\install"/> <component name=".\components\prtview.xml" root="..\..\install"/>
</feature> </feature>
<feature name="Brush Export Plugin" desc="namespace's Wavefront Brush Export">
<component name=".\components\brushexport.xml" root="..\..\install"/>
</feature>
<feature name="Sunplug Plugin" desc="Topsun's Sunplug for Enemy Territory">
<component name=".\components\sunplug.xml" root="..\..\install"/>
</feature>
<feature name="Shaderplug Plugin" desc="Shaderman's plugin for creating shader tag files">
<component name=".\components\shaderplug.xml" root="..\..\install"/>
</feature>
<feature name="GtkRadiant Editor Manual" desc="Documentation for GtkRadiant users."> <feature name="GtkRadiant Editor Manual" desc="Documentation for GtkRadiant users.">
<component name=".\components\radiant_manual.xml" root="..\..\docs\manual"/> <component name=".\components\radiant_manual.xml" root="..\..\docs\manual"/>
</feature> </feature>