[Gtkradiant] Diffs for added W:ET/RTCW pack support

Timothee Besset ttimo at idsoftware.com
Mon Jul 27 20:14:21 CDT 2009


Hey Christopher,

You need diff -u and attaching rather than pasting in before people can
try this and possibly check it in.

Cheers,
TTimo

Christopher wrote:
> Forgive me if this isn't the proper way of sending these, but there's
> no obvious directions.
> --
>
> The following changes let me use the W:ET and RTCW packs with Radiant,
> but require further changes to the pack layout.
>
> diff ZeroRadiant/radiant/preferences.cpp
> ZeroRadiant_Original/radiant/preferences.cpp
> 3301,3306d3300
> < 		case GAME_WOLF:
> < 		  gtk_combo_box_append_text( GTK_COMBO_BOX( combo ), _("Return to
> Castle Wolfenstein") );
> < 		  break;
> < 		case GAME_ET:
> < 		  gtk_combo_box_append_text( GTK_COMBO_BOX( combo ),
> _("Wolfenstein: Enemy Territory") );
> < 		  break;
> 3497,3521d3490
> < 	case GAME_WOLF: {
> < 		fprintf( fg, "  "TOOLS_ATTRIBUTE"=\"%sinstalls/WolfPack/game\"\n",
> g_strAppPath.GetBuffer() );
> < 		fprintf( fg, "  prefix=\".wolf\"\n" );
> < 		Str source = g_strAppPath.GetBuffer();
> < 		source += "installs/";
> < 		source += WOLF_PACK;
> < 		source += "/install/";
> < 		Str dest = m_strEngine.GetBuffer();
> < 		CopyTree( source.GetBuffer(), dest.GetBuffer() );
> < 		fprintf( fg, "  basegame=\"main\"\n" );
> < 		break;
> < 	}
> < 	case GAME_ET: {
> < 		fprintf( fg, "  "TOOLS_ATTRIBUTE"=\"%sinstalls/ETPack/game\"\n",
> g_strAppPath.GetBuffer() );
> < 		fprintf( fg, "  prefix=\".wolfet\"\n" );
> < 		Str source = g_strAppPath.GetBuffer();
> < 		source += "installs/";
> < 		source += ET_PACK;
> < 		source += "/install/";
> < 		Str dest = m_strEngine.GetBuffer();
> < 		CopyTree( source.GetBuffer(), dest.GetBuffer() );
> < 		fprintf( fg, "  basegame=\"etmain\"\n" );
> < 		break;
> < 	}
> <
> 3541d3509
> 3545c3513
> < 		else if ( stricmp( dirname, URT_PACK ) == 0 ) {
> ---
>   
>> 		if ( stricmp( dirname, URT_PACK ) == 0 ) {
>>     
> 3548c3516
> < 		else if ( stricmp( dirname, UFOAI_PACK ) == 0 ) {
> ---
>   
>> 		if ( stricmp( dirname, UFOAI_PACK ) == 0 ) {
>>     
> 3551c3519
> < 		else if ( stricmp( dirname, Q2W_PACK ) == 0 ) {
> ---
>   
>> 		if ( stricmp( dirname, Q2W_PACK ) == 0 ) {
>>     
> 3554c3522
> < 		else if ( stricmp( dirname, WARSOW_PACK ) == 0 ) {
> ---
>   
>> 		if ( stricmp( dirname, WARSOW_PACK ) == 0 ) {
>>     
> 3557c3525
> < 		else if ( stricmp( dirname, NEXUIZ_PACK ) == 0 ) {
> ---
>   
>> 		if ( stricmp( dirname, NEXUIZ_PACK ) == 0 ) {
>>     
> 3560c3528
> < 		else if ( stricmp( dirname, Q2_PACK ) == 0 ) {
> ---
>   
>> 		if ( stricmp( dirname, Q2_PACK ) == 0 ) {
>>     
> 3563c3531
> < 		else if ( stricmp( dirname, TREMULOUS_PACK ) == 0 ) {
> ---
>   
>> 		if ( stricmp( dirname, TREMULOUS_PACK ) == 0 ) {
>>     
> 3566c3534
> < 		else if ( stricmp( dirname, JA_PACK ) == 0 ) {
> ---
>   
>> 		if ( stricmp( dirname, JA_PACK ) == 0 ) {
>>     
> 3569,3574d3536
> < 		else if ( stricmp( dirname, WOLF_PACK ) == 0 ) {
> < 			m_availGames[ iGame++ ] = GAME_WOLF;
> < 		}
> < 		else if ( stricmp( dirname, ET_PACK ) == 0 ) {
> < 			m_availGames[ iGame++ ] = GAME_ET;
> < 		}
>
> diff ZeroRadiant/radiant/preferences.h
> ZeroRadiant_Original/radiant/preferences.h
> 212,213d211
> < #define WOLF_PACK "WolfPack"
> < #define ET_PACK "ETPack"
> 236,237d233
> < 		GAME_WOLF,
> < 		GAME_ET,
>
> Additionally, the pack layout changes for W:ET (Haven't worked on RTCW yet):
> Radiant\ETPack\
> ->game\
>   ->game.xlink
>   ->synapse.config
> ->install\
>   ->docs\
>   ->etmain\
>
> If you need any of those files, let me know. I think they're both in
> the pack, just in different directories.
>
> _______________________________________________
> Gtkradiant mailing list
> Gtkradiant at zerowing.idsoftware.com
> http://zerowing.idsoftware.com/cgi-bin/mailman/listinfo/gtkradiant
>   




More information about the Gtkradiant mailing list