On Sat, Dec 09, 2006 at 06:31:11AM -0500, Matthew Mondor wrote: > On Wed, 06 Dec 2006 10:54:55 -0500 > akb+lists.netrek-dev at mirror.to (Andrew K. Bressen) wrote: > > > One other question: if your server is a bot server, would it make sense > > to have it also be a base-practice server? IE, could you drop the minimum > > rank for a base to Ensign, and cut down the base recycle time? > > As for the recycle time I didn't see a keyword for it in the > configuration file, and would have to check the code to find out if > there's one. [...] Added to the current code, either try this patch or pull from my repo. -- James Cameron mailto:quozl at us.netrek.org http://quozl.netrek.org/ -------------- next part -------------- diff -rN -u old-netrek-server/Vanilla/docs/sample_sysdef.in new-netrek-server/Vanilla/docs/sample_sysdef.in --- old-netrek-server/Vanilla/docs/sample_sysdef.in 2006-12-11 13:53:40.000000000 +1100 +++ new-netrek-server/Vanilla/docs/sample_sysdef.in 2006-12-11 13:53:43.000000000 +1100 @@ -101,6 +101,9 @@ # (0 = no, 1 = yes) SAFE_IDLE=1 # +# Rebuild time of starbase, in minutes +STARBASE_REBUILD_TIME=30 +# # Which ship types are allowed SHIPS=SC,DD,CA,BB,AS,SB # diff -rN -u old-netrek-server/Vanilla/include/data.h new-netrek-server/Vanilla/include/data.h --- old-netrek-server/Vanilla/include/data.h 2006-12-11 13:53:41.000000000 +1100 +++ new-netrek-server/Vanilla/include/data.h 2006-12-11 13:53:43.000000000 +1100 @@ -386,5 +386,6 @@ extern double baseupgradecost[]; extern double adderupgradecost[]; #endif +extern int starbase_rebuild_time; #endif /* _h_data */ diff -rN -u old-netrek-server/Vanilla/include/defs.h new-netrek-server/Vanilla/include/defs.h --- old-netrek-server/Vanilla/include/defs.h 2006-12-11 13:53:41.000000000 +1100 +++ new-netrek-server/Vanilla/include/defs.h 2006-12-11 13:53:43.000000000 +1100 @@ -189,7 +189,6 @@ #define WARNTIME 30 /* Number of updates to have a warning on the screen */ #define MESSTIME 30 /* Number of updates to have a message on the screen */ -#define BUILD_SB_TIME 30 /* Minutes to rebuild an SB 4/15/92 TC */ #define MIN_COUP_TIME 30 /* Min/max minutes before a geno'ed race */ #define MAX_COUP_TIME 60 /* can reenter and coup (random) 4/15/92 TC */ diff -rN -u old-netrek-server/Vanilla/include/sysdefaults.h new-netrek-server/Vanilla/include/sysdefaults.h --- old-netrek-server/Vanilla/include/sysdefaults.h 2006-12-11 13:53:41.000000000 +1100 +++ new-netrek-server/Vanilla/include/sysdefaults.h 2006-12-11 13:53:43.000000000 +1100 @@ -246,6 +246,8 @@ { "STURGEON_LITE", SYSDEF_INT, &sturgeon_lite, "Only lose most expensive upgrade on death." }, #endif + { "STARBASE_REBUILD_TIME", SYSDEF_INT, &starbase_rebuild_time, + "Rebuild time of starbase, in minutes." }, { "", SYSDEF_END, NULL } }; @@ -261,6 +263,7 @@ - use glade (http://glade.pn.org/) to add to gum/gum.xml and regenerate code - leave a comment below if your defaults have not been added to gum +STARBASE_REBUILD_TIME STURGEON* EJECT_VOTE_* BAN_VOTE_* diff -rN -u old-netrek-server/Vanilla/ntserv/blog.c new-netrek-server/Vanilla/ntserv/blog.c --- old-netrek-server/Vanilla/ntserv/blog.c 2006-12-11 13:53:41.000000000 +1100 +++ new-netrek-server/Vanilla/ntserv/blog.c 2006-12-11 13:53:44.000000000 +1100 @@ -94,6 +94,11 @@ void blog_base_loss(struct player *j) { blog_printf("racial", - "%s lost their starbase\n\nStarbase with %d armies, piloted by %s, reported destroyed in valiant battle with enemy forces. Reconstruction is underway. Long live the %s.\n", - team_name(j->p_team), j->p_armies, j->p_name, team_name(j->p_team)); + "%s lost their starbase\n\n" + "Starbase with %d armies, piloted by %s, " + "reported destroyed in valiant battle with enemy forces. " + "Reconstruction is underway, due in %d minutes. " + "Long live the %s.\n", + team_name(j->p_team), j->p_armies, j->p_name, + starbase_rebuild_time, team_name(j->p_team)); } diff -rN -u old-netrek-server/Vanilla/ntserv/daemonII.c new-netrek-server/Vanilla/ntserv/daemonII.c --- old-netrek-server/Vanilla/ntserv/daemonII.c 2006-12-11 13:53:41.000000000 +1100 +++ new-netrek-server/Vanilla/ntserv/daemonII.c 2006-12-11 13:53:44.000000000 +1100 @@ -1006,7 +1006,7 @@ (j->p_whydead == KPLASMA) || (j->p_whydead == KPLANET) || (j->p_whydead == KGENOCIDE)) && (status->tourn)) { - teams[j->p_team].s_turns = BUILD_SB_TIME; + teams[j->p_team].s_turns = starbase_rebuild_time; if (j->p_status == PDEAD) blog_base_loss(j); } } diff -rN -u old-netrek-server/Vanilla/ntserv/data.c new-netrek-server/Vanilla/ntserv/data.c --- old-netrek-server/Vanilla/ntserv/data.c 2006-12-11 13:53:41.000000000 +1100 +++ new-netrek-server/Vanilla/ntserv/data.c 2006-12-11 13:53:44.000000000 +1100 @@ -444,3 +444,6 @@ double adderupgradecost[]= { 0.0, 0.2, 0.5, 0.1, 1.5, 1.0, 0.1, 0.1, 0.5, 1.5, 3.0, 0.5, 1.5, 1.0, 0.5, 1.5, 1.0, 0.0, 0.0, 0.0 }; #endif + +/* starbase rebuild time first implemented by TC in 1992-04-15 */ +int starbase_rebuild_time = 30; -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Digital signature Url : http://mailman.us.netrek.org/pipermail/netrek-dev/attachments/20061211/bc4dd042/attachment.pgp