diff --git a/CMakeLists.txt b/CMakeLists.txt index bc4f6ec6b..0d37514f2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -113,7 +113,7 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin") set(CMAKE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin") # Set EXE names so the assets CMakeLists can refer to its target -set(SRB2_SDL2_EXE_NAME srb2kart CACHE STRING "Executable binary output name") +set(SRB2_SDL2_EXE_NAME ringracers CACHE STRING "Executable binary output name") include_directories(${CMAKE_CURRENT_BINARY_DIR}/src) @@ -146,7 +146,7 @@ if("${SRB2_CPACK_GENERATOR}" STREQUAL "") endif() set(CPACK_GENERATOR ${SRB2_CPACK_GENERATOR}) -set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Sonic Robo Blast 2 Kart" CACHE STRING "Program name for display purposes") +set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Dr. Robotnik's Ring Racers" CACHE STRING "Program name for display purposes") set(CPACK_PACKAGE_VENDOR "Kart Krew" CACHE STRING "Vendor name for display purposes") #set(CPACK_PACKAGE_DESCRIPTION_FILE ) set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/LICENSE") diff --git a/srb2.png b/srb2.png index fccde9c3f..dd84db0a0 100644 Binary files a/srb2.png and b/srb2.png differ diff --git a/srb2banner.png b/srb2banner.png index 9c13eae9a..ee4d3230e 100644 Binary files a/srb2banner.png and b/srb2banner.png differ diff --git a/src/Makefile b/src/Makefile index 9659a4994..904aa0bbe 100644 --- a/src/Makefile +++ b/src/Makefile @@ -235,7 +235,7 @@ bin:=../bin endif # default EXENAME (usually set by platform) -EXENAME?=srb2 +EXENAME?=ringracers DBGNAME?=$(EXENAME).debug exe:=$(bin)/$(EXENAME) diff --git a/src/Makefile.d/nix.mk b/src/Makefile.d/nix.mk index 98703e769..97bcf018e 100644 --- a/src/Makefile.d/nix.mk +++ b/src/Makefile.d/nix.mk @@ -2,8 +2,6 @@ # Makefile options for unices (linux, bsd...) # -EXENAME?=lsdl2srb2kart - opts+=-DUNIXCOMMON -DLUA_USE_POSIX libs+=-lm diff --git a/src/Makefile.d/win32.mk b/src/Makefile.d/win32.mk index 83edc3c45..3f93ddeaf 100644 --- a/src/Makefile.d/win32.mk +++ b/src/Makefile.d/win32.mk @@ -3,9 +3,9 @@ # ifndef MINGW64 -EXENAME?=srb2kart.exe +EXENAME?=ringracers.exe else -EXENAME?=srb2kart64.exe +EXENAME?=ringracers64.exe endif # disable dynamicbase if under msys2 diff --git a/src/console.c b/src/console.c index f92cce3c9..c0e5d1877 100644 --- a/src/console.c +++ b/src/console.c @@ -1576,7 +1576,7 @@ void CONS_Error(const char *msg) #if defined(RPC_NO_WINDOWS_H) && defined(_WINDOWS) if (!graphics_started) { - MessageBoxA(vid.WndParent, msg, "SRB2Kart Warning", MB_OK); + MessageBoxA(vid.WndParent, msg, "Dr. Robotnik's Ring Racers Warning", MB_OK); return; } #endif diff --git a/src/d_clisrv.c b/src/d_clisrv.c index d68ff8874..c08d4189f 100644 --- a/src/d_clisrv.c +++ b/src/d_clisrv.c @@ -1515,7 +1515,7 @@ static boolean CL_FinishedFileList(void) M_StartMessage(M_GetText( "You have too many WAD files loaded\n" "to add ones the server is using.\n" - "Please restart SRB2Kart before connecting.\n\n" + "Please restart Ring Racers before connecting.\n\n" "Press ESC\n" ), NULL, MM_NOTHING); return false; @@ -1529,7 +1529,7 @@ static boolean CL_FinishedFileList(void) "You have the wrong addons loaded.\n\n" "To play on this server, restart\n" "the game and don't load any addons.\n" - "SRB2Kart will automatically add\n" + "Ring Racers will automatically add\n" "everything you need when you join.\n\n" "Press ESC\n" ), NULL, MM_NOTHING); @@ -1923,7 +1923,6 @@ static boolean CL_ServerConnectionTicker(const char *tmpsave, tic_t *oldtic, tic { if (cl_mode != CL_DOWNLOADFILES && cl_mode != CL_DOWNLOADSAVEGAME) { - F_MenuPresTicker(true); // title sky F_TitleScreenTicker(true); F_TitleScreenDrawer(); } @@ -3065,7 +3064,7 @@ static void Joinable_OnChange(void) // called one time at init void D_ClientServerInit(void) { - DEBFILE(va("- - -== SRB2Kart v%d.%d "VERSIONSTRING" debugfile ==- - -\n", + DEBFILE(va("- - -== Ring Racers v%d.%d "VERSIONSTRING" debugfile ==- - -\n", VERSION, SUBVERSION)); #ifndef NONET @@ -3716,10 +3715,10 @@ static void HandleConnect(SINT8 node) SV_SendRefuse(node, "Incompatible packet formats."); else if (strncmp(netbuffer->u.clientcfg.application, SRB2APPLICATION, sizeof netbuffer->u.clientcfg.application)) - SV_SendRefuse(node, "Different SRB2 modifications\nare not compatible."); + SV_SendRefuse(node, "Different Ring Racers modifications\nare not compatible."); else if (netbuffer->u.clientcfg.version != VERSION || netbuffer->u.clientcfg.subversion != SUBVERSION) - SV_SendRefuse(node, va(M_GetText("Different SRB2Kart versions cannot\nplay a netgame!\n(server version %d.%d)"), VERSION, SUBVERSION)); + SV_SendRefuse(node, va(M_GetText("Different Ring Racers versions cannot\nplay a netgame!\n(server version %d.%d)"), VERSION, SUBVERSION)); else if (!cv_allownewplayer.value && node) SV_SendRefuse(node, M_GetText("The server is not accepting\njoins for the moment.")); else if (D_NumPlayers() >= maxplayers) diff --git a/src/d_main.c b/src/d_main.c index a78f857fb..6d6f0e2ce 100644 --- a/src/d_main.c +++ b/src/d_main.c @@ -1233,8 +1233,8 @@ void D_SRB2Main(void) // Print GPL notice for our console users (Linux) CONS_Printf( - "\n\nSonic Robo Blast 2 Kart\n" - "Copyright (C) 1998-2020 by Kart Krew & STJr\n\n" + "\n\nDr. Robotnik's Ring Racers\n" + "Copyright (C) 1998-2022 by Kart Krew & STJr\n\n" "This program comes with ABSOLUTELY NO WARRANTY.\n\n" "This is free software, and you are welcome to redistribute it\n" "and/or modify it under the terms of the GNU General Public License\n" diff --git a/src/d_netcmd.c b/src/d_netcmd.c index 855353d9f..8e32469ff 100644 --- a/src/d_netcmd.c +++ b/src/d_netcmd.c @@ -4318,9 +4318,9 @@ static void Command_ListDoomednums_f(void) static void Command_Version_f(void) { #ifdef DEVELOP - CONS_Printf("SRB2Kart %s-%s (%s %s)\n", compbranch, comprevision, compdate, comptime); + CONS_Printf("Ring Racers %s-%s (%s %s)\n", compbranch, comprevision, compdate, comptime); #else - CONS_Printf("SRB2Kart %s (%s %s %s %s) ", VERSIONSTRING, compdate, comptime, comprevision, compbranch); + CONS_Printf("Ring Racers %s (%s %s %s %s) ", VERSIONSTRING, compdate, comptime, comprevision, compbranch); #endif // Base library diff --git a/src/d_netfil.c b/src/d_netfil.c index 041c7c35f..e160536e3 100644 --- a/src/d_netfil.c +++ b/src/d_netfil.c @@ -1725,7 +1725,7 @@ void CURLPrepareFile(const char* url, int dfilenum) // Only allow HTTP and HTTPS curl_easy_setopt(http_handle, CURLOPT_PROTOCOLS, CURLPROTO_HTTP|CURLPROTO_HTTPS); - curl_easy_setopt(http_handle, CURLOPT_USERAGENT, va("SRB2Kart/v%d.%d", VERSION, SUBVERSION)); // Set user agent as some servers won't accept invalid user agents. + curl_easy_setopt(http_handle, CURLOPT_USERAGENT, va("Ring Racers/v%d.%d", VERSION, SUBVERSION)); // Set user agent as some servers won't accept invalid user agents. // Authenticate if the user so wishes login = CURLGetLogin(url, NULL); diff --git a/src/deh_soc.c b/src/deh_soc.c index aa55ca638..973daadf1 100644 --- a/src/deh_soc.c +++ b/src/deh_soc.c @@ -2292,7 +2292,9 @@ void readmenu(MYFILE *f, INT32 num) menupres[num].ttname[0] = 0; menupres[num].hidetitlepics = true; } - else // if (fastcmp(word2, "OLD") || fastcmp(word2, "SSNTAILS")) + else if (fastcmp(word2, "RINGRACERS")) + menupres[num].ttmode = TTMODE_RINGRACERS; + else if (fastcmp(word2, "OLD")) menupres[num].ttmode = TTMODE_OLD; titlechanged = true; } @@ -3385,7 +3387,9 @@ void readmaincfg(MYFILE *f) ttname[0] = 0; hidetitlepics = true; } - else // if (fastcmp(word2, "OLD") || fastcmp(word2, "SSNTAILS")) + else if (fastcmp(word2, "RINGRACERS")) + ttmode = TTMODE_RINGRACERS; + else if (fastcmp(word2, "OLD") || fastcmp(word2, "SSNTAILS")) ttmode = TTMODE_OLD; titlechanged = true; } diff --git a/src/dehacked.c b/src/dehacked.c index 5f0743a7e..7288ac374 100644 --- a/src/dehacked.c +++ b/src/dehacked.c @@ -576,7 +576,7 @@ static void DEH_LoadDehackedFile(MYFILE *f, boolean mainfile) readcupheader(f, cup); } - else if (fastcmp(word, "SRB2KART")) + else if (fastcmp(word, "RINGRACERS")) { if (isdigit(word2[0])) { @@ -584,7 +584,7 @@ static void DEH_LoadDehackedFile(MYFILE *f, boolean mainfile) if (i != PATCHVERSION) { deh_warning( - "Patch is for SRB2Kart version %d, " + "Patch is for Ring Racers version %d, " "only version %d is supported", i, PATCHVERSION @@ -594,12 +594,16 @@ static void DEH_LoadDehackedFile(MYFILE *f, boolean mainfile) else { deh_warning( - "SRB2Kart version definition has incorrect format, " - "use \"SRB2KART %d\"", + "Ring Racers version definition has incorrect format, " + "use \"RINGRACERS %d\"", PATCHVERSION ); } } + else if (fastcmp(word, "SRB2KART")) + { + deh_warning("Patch is only compatible with SRB2Kart."); + } else if (fastcmp(word, "SRB2")) { deh_warning("Patch is only compatible with base SRB2."); diff --git a/src/discord.c b/src/discord.c index 652303f65..7172eb45d 100644 --- a/src/discord.c +++ b/src/discord.c @@ -32,7 +32,7 @@ #include "doomdef.h" // Feel free to provide your own, if you care enough to create another Discord app for this :P -#define DISCORD_APPID "503531144395096085" +#define DISCORD_APPID "977470696852684833" // length of IP strings #define IP_SIZE 21 diff --git a/src/doomdef.h b/src/doomdef.h index 4d16e5547..0b7745be2 100644 --- a/src/doomdef.h +++ b/src/doomdef.h @@ -168,7 +168,7 @@ extern char logfilename[1024]; // The string used in the alert that pops up in the event of an update being available. // Please change to apply to your modification (we don't want everyone asking where your mod is on SRB2.org!). #define UPDATE_ALERT_STRING \ -"A new update is available for SRB2Kart.\n"\ +"A new update is available for Ring Racers.\n"\ "Please visit kartkrew.org to download it.\n"\ "\n"\ "You are using version: %s\n"\ @@ -443,9 +443,9 @@ enum { // Name of local directory for config files and savegames #if (((defined (__unix__) && !defined (MSDOS)) || defined (UNIXCOMMON)) && !defined (__CYGWIN__)) && !defined (__APPLE__) -#define DEFAULTDIR ".srb2kart" +#define DEFAULTDIR ".ringracers" #else -#define DEFAULTDIR "srb2kart" +#define DEFAULTDIR "ringracers" #endif #include "g_state.h" diff --git a/src/f_finale.c b/src/f_finale.c index 618bc1656..ed57b9e7a 100644 --- a/src/f_finale.c +++ b/src/f_finale.c @@ -44,7 +44,7 @@ // Stage of animation: // 0 = text, 1 = art screen INT32 finalecount; -INT32 titlescrollxspeed = 5; +INT32 titlescrollxspeed = 16; INT32 titlescrollyspeed = 0; UINT8 titlemapinaction = TITLEMAP_OFF; @@ -58,8 +58,6 @@ static tic_t stoptimer; static boolean keypressed = false; -static tic_t xscrolltimer; -static tic_t yscrolltimer; static INT32 menuanimtimer; // Title screen: background animation timing mobj_t *titlemapcameraref = NULL; @@ -81,7 +79,7 @@ static UINT32 demoIdleLeft; // customizable title screen graphics -ttmode_enum ttmode = TTMODE_OLD; +ttmode_enum ttmode = TTMODE_RINGRACERS; UINT8 ttscale = 1; // FRACUNIT / ttscale // ttmode user vars char ttname[9]; @@ -108,6 +106,13 @@ static patch_t *ttcheckers; // *vroom* KART static patch_t *ttkflash; // flash screen */ +static patch_t *kts_bumper; // DR ROBOTNIKS RING RACERS +static patch_t *kts_eggman; // dr. robotnik himself +static patch_t *kts_tails; // tails himself +static patch_t *kts_tails_tails; // tails' tails +static patch_t *kts_electricity[6]; // ring o' electricity +static patch_t *kts_copyright; // (C) SEGA + #define NOWAY #ifdef NOWAY @@ -521,7 +526,7 @@ boolean F_IntroResponder(event_t *event) // CREDITS // ========= static const char *credits[] = { - "\1SRB2Kart", + "\1Dr. Robotnik's Ring Racers", "\1Credits", "", "\1Game Design", @@ -1688,10 +1693,10 @@ void F_InitMenuPresValues(void) // Set defaults for presentation values strncpy(curbgname, "TITLESKY", 9); curfadevalue = 16; - curbgcolor = 31; - curbgxspeed = (gamestate == GS_TIMEATTACK) ? 0 : titlescrollxspeed; - curbgyspeed = (gamestate == GS_TIMEATTACK) ? 22 : titlescrollyspeed; - curbghide = (gamestate == GS_TIMEATTACK) ? false : true; + curbgcolor = -1; + curbgxspeed = titlescrollxspeed; + curbgyspeed = titlescrollyspeed; + curbghide = false; curhidepics = hidetitlepics; curttmode = ttmode; @@ -1721,24 +1726,26 @@ void F_SkyScroll(INT32 scrollxspeed, INT32 scrollyspeed, const char *patchname) INT32 pw, ph; // scaled by dupz patch_t *pat; INT32 i, j; + INT32 xscrolltimer, yscrolltimer; if (rendermode == render_none) return; + V_DrawFill(0, 0, vid.width, vid.height, 31); + if (!patchname || !patchname[0]) { - V_DrawFill(0, 0, vid.width, vid.height, 31); - return; - } - - if (!scrollxspeed && !scrollyspeed) - { - V_DrawPatchFill(W_CachePatchName(patchname, PU_PATCH_LOWPRIORITY)); return; } pat = W_CachePatchName(patchname, PU_PATCH_LOWPRIORITY); + if (scrollxspeed == 0 && scrollyspeed == 0) + { + V_DrawPatchFill(pat); + return; + } + patwidth = pat->width; patheight = pat->height; pw = patwidth * dupz; @@ -1768,8 +1775,6 @@ void F_SkyScroll(INT32 scrollxspeed, INT32 scrollyspeed, const char *patchname) V_NOSCALESTART, pat); } } - - W_UnlockCachedPatch(pat); } #define LOADTTGFX(arr, name, maxf) \ @@ -1800,15 +1805,30 @@ else \ static void F_CacheTitleScreen(void) { + UINT16 i; + switch(curttmode) { - case TTMODE_OLD: case TTMODE_NONE: break; + case TTMODE_OLD: + break; // idk do we still want this? + + case TTMODE_RINGRACERS: + kts_bumper = W_CachePatchName("KTSBUMPR1", PU_PATCH_LOWPRIORITY); + kts_eggman = W_CachePatchName("KTSEGG01", PU_PATCH_LOWPRIORITY); + kts_tails = W_CachePatchName("KTSTAL01", PU_PATCH_LOWPRIORITY); + kts_tails_tails = W_CachePatchName("KTSTAL02", PU_PATCH_LOWPRIORITY); + for (i = 0; i < 6; i++) + { + kts_electricity[i] = W_CachePatchName(va("KTSELCT%.1d", i+1), PU_PATCH_LOWPRIORITY); + } + kts_copyright = W_CachePatchName("KTSCR", PU_PATCH_LOWPRIORITY); + break; + case TTMODE_USER: { - UINT16 i; lumpnum_t lumpnum; char lumpname[9]; @@ -1932,8 +1952,46 @@ void F_TitleScreenDrawer(void) switch(curttmode) { - case TTMODE_OLD: case TTMODE_NONE: + break; + + case TTMODE_RINGRACERS: + { + const char *eggName = "eggman"; + INT32 eggSkin = R_SkinAvailable(eggName); + skincolornum_t eggColor = SKINCOLOR_RED; + UINT8 *eggColormap = NULL; + + const char *tailsName = "tails"; + INT32 tailsSkin = R_SkinAvailable(tailsName); + skincolornum_t tailsColor = SKINCOLOR_ORANGE; + UINT8 *tailsColormap = NULL; + + if (eggSkin != -1) + { + eggColor = skins[eggSkin].prefcolor; + } + eggColormap = R_GetTranslationColormap(TC_DEFAULT, eggColor, GTC_MENUCACHE); + + if (tailsSkin != -1) + { + tailsColor = skins[tailsSkin].prefcolor; + } + tailsColormap = R_GetTranslationColormap(TC_DEFAULT, tailsColor, GTC_MENUCACHE); + + V_DrawFixedPatch(0, 0, FRACUNIT, 0, kts_tails_tails, tailsColormap); + V_DrawFixedPatch(0, 0, FRACUNIT, V_ADD, kts_electricity[finalecount % 6], NULL); + + V_DrawFixedPatch(0, 0, FRACUNIT, 0, kts_eggman, eggColormap); + V_DrawFixedPatch(0, 0, FRACUNIT, 0, kts_tails, tailsColormap); + + V_DrawFixedPatch(0, 0, FRACUNIT, 0, kts_bumper, NULL); + + V_DrawFixedPatch(0, 0, FRACUNIT, 0, kts_copyright, NULL); + break; + } + + case TTMODE_OLD: /* if (finalecount < 50) { @@ -1974,7 +2032,7 @@ void F_TitleScreenDrawer(void) V_DrawSmallScaledPatch(84, 36, transval<filepath); + CONS_Alert(CONS_ERROR, M_GetText("%s is not a Ring Racers replay file.\n"), pdemo->filepath); pdemo->type = MD_INVALID; sprintf(pdemo->title, "INVALID REPLAY"); Z_Free(infobuffer); @@ -2774,7 +2774,7 @@ void G_DoPlayDemo(char *defdemoname) demo.playback = true; if (memcmp(demo_p, DEMOHEADER, 12)) { - snprintf(msg, 1024, M_GetText("%s is not a SRB2Kart replay file.\n"), pdemoname); + snprintf(msg, 1024, M_GetText("%s is not a Ring Racers replay file.\n"), pdemoname); CONS_Alert(CONS_ERROR, "%s", msg); M_StartMessage(msg, NULL, MM_NOTHING); Z_Free(pdemoname); diff --git a/src/g_game.c b/src/g_game.c index 411f85860..cf6e0ffa7 100644 --- a/src/g_game.c +++ b/src/g_game.c @@ -3983,7 +3983,7 @@ void G_LoadGameData(void) // Version check if (READUINT32(save_p) != 0xFCAFE211) { - const char *gdfolder = "the SRB2Kart folder"; + const char *gdfolder = "the Ring Racers folder"; if (strcmp(srb2home,".")) gdfolder = srb2home; @@ -4073,7 +4073,7 @@ void G_LoadGameData(void) // Landing point for corrupt gamedata datacorrupt: { - const char *gdfolder = "the SRB2Kart folder"; + const char *gdfolder = "the Ring Racers folder"; if (strcmp(srb2home,".")) gdfolder = srb2home; diff --git a/src/m_menu.c b/src/m_menu.c index c1c8c114d..bcbd62d11 100644 --- a/src/m_menu.c +++ b/src/m_menu.c @@ -3516,7 +3516,7 @@ void M_Init(void) quitmsg[QUIT3MSG1] = M_GetText("Come on, just ONE more netgame!\n\n(Press 'Y' to quit)"); quitmsg[QUIT3MSG2] = M_GetText("Press 'N' to unlock\nthe Golden Kart!\n\n(Press 'Y' to quit)"); quitmsg[QUIT3MSG3] = M_GetText("Couldn't handle\nthe banana meta?\n\n(Press 'Y' to quit)"); - quitmsg[QUIT3MSG4] = M_GetText("Every time you press 'Y', an\nSRB2Kart Developer cries...\n\n(Press 'Y' to quit)"); + quitmsg[QUIT3MSG4] = M_GetText("Every time you press 'Y', a\nRing Racers Developer cries...\n\n(Press 'Y' to quit)"); quitmsg[QUIT3MSG5] = M_GetText("You'll be back to play soon, though...\n...right?\n\n(Press 'Y' to quit)"); quitmsg[QUIT3MSG6] = M_GetText("Aww, is Eggman's Nightclub too\ndifficult for you?\n\n(Press 'Y' to quit)"); @@ -8804,7 +8804,7 @@ static void M_ConnectMenuModChecks(INT32 choice) if (modifiedgame) { - M_StartMessage(M_GetText("You have addons loaded.\nYou won't be able to join netgames!\n\nTo play online, restart the game\nand don't load any addons.\nSRB2Kart will automatically add\neverything you need when you join.\n\n(Press a key)\n"), FUNCPTRCAST(M_ConnectMenu), MM_EVENTHANDLER); + M_StartMessage(M_GetText("You have addons loaded.\nYou won't be able to join netgames!\n\nTo play online, restart the game\nand don't load any addons.\nRing Racers will automatically add\neverything you need when you join.\n\n(Press a key)\n"), FUNCPTRCAST(M_ConnectMenu), MM_EVENTHANDLER); return; } diff --git a/src/m_misc.c b/src/m_misc.c index 8146cceec..7962e0689 100644 --- a/src/m_misc.c +++ b/src/m_misc.c @@ -650,7 +650,7 @@ void M_SaveConfig(const char *filename) } // header message - fprintf(f, "// SRB2Kart configuration file.\n"); + fprintf(f, "// Dr. Robotnik's Ring Racers configuration file.\n"); // print execversion FIRST, because subsequent consvars need to be filtered // always print current EXECVERSION @@ -697,20 +697,20 @@ static void M_CreateScreenShotPalette(void) #if NUMSCREENS > 2 static const char *Newsnapshotfile(const char *pathname, const char *ext) { - static char freename[13] = "kartXXXX.ext"; + static char freename[19] = "ringracersXXXX.ext"; int i = 5000; // start in the middle: num screenshots divided by 2 int add = i; // how much to add or subtract if wrong; gets divided by 2 each time int result; // -1 = guess too high, 0 = correct, 1 = guess too low // find a file name to save it to - strcpy(freename+9,ext); + strcpy(freename+15,ext); for (;;) { - freename[4] = (char)('0' + (char)(i/1000)); - freename[5] = (char)('0' + (char)((i/100)%10)); - freename[6] = (char)('0' + (char)((i/10)%10)); - freename[7] = (char)('0' + (char)(i%10)); + freename[10] = (char)('0' + (char)(i/1000)); + freename[11] = (char)('0' + (char)((i/100)%10)); + freename[12] = (char)('0' + (char)((i/10)%10)); + freename[13] = (char)('0' + (char)(i%10)); if (FIL_WriteFileOK(va(pandf,pathname,freename))) // access succeeds result = 1; // too low @@ -719,10 +719,10 @@ static const char *Newsnapshotfile(const char *pathname, const char *ext) if (!i) break; // not too high, so it must be equal! YAY! - freename[4] = (char)('0' + (char)((i-1)/1000)); - freename[5] = (char)('0' + (char)(((i-1)/100)%10)); - freename[6] = (char)('0' + (char)(((i-1)/10)%10)); - freename[7] = (char)('0' + (char)((i-1)%10)); + freename[10] = (char)('0' + (char)((i-1)/1000)); + freename[11] = (char)('0' + (char)(((i-1)/100)%10)); + freename[12] = (char)('0' + (char)(((i-1)/10)%10)); + freename[13] = (char)('0' + (char)((i-1)%10)); if (!FIL_WriteFileOK(va(pandf,pathname,freename))) // access fails result = -1; // too high else @@ -740,10 +740,10 @@ static const char *Newsnapshotfile(const char *pathname, const char *ext) return NULL; } - freename[4] = (char)('0' + (char)(i/1000)); - freename[5] = (char)('0' + (char)((i/100)%10)); - freename[6] = (char)('0' + (char)((i/10)%10)); - freename[7] = (char)('0' + (char)(i%10)); + freename[10] = (char)('0' + (char)(i/1000)); + freename[11] = (char)('0' + (char)((i/100)%10)); + freename[12] = (char)('0' + (char)((i/10)%10)); + freename[13] = (char)('0' + (char)(i%10)); return freename; } @@ -803,10 +803,10 @@ static void M_PNGText(png_structp png_ptr, png_infop png_info_ptr, PNG_CONST png char keytxt[SRB2PNGTXT][12] = { "Title", "Description", "Playername", "Mapnum", "Mapname", "Location", "Interface", "Render Mode", "Revision", "Build Date", "Build Time"}; - char titletxt[] = "SRB2Kart " VERSIONSTRING; + char titletxt[] = "Dr. Robotnik's Ring Racers " VERSIONSTRING; png_charp playertxt = cv_playername[0].zstring; - char desctxt[] = "SRB2Kart Screenshot"; - char Movietxt[] = "SRB2Kart Movie"; + char desctxt[] = "Ring Racers Screenshot"; + char Movietxt[] = "Ring Racers Movie"; size_t i; char interfacetxt[] = #ifdef HAVE_SDL diff --git a/src/mserv.c b/src/mserv.c index 0c715e78f..37a5ea89c 100644 --- a/src/mserv.c +++ b/src/mserv.c @@ -71,7 +71,7 @@ static CV_PossibleValue_t masterserver_update_rate_cons_t[] = { consvar_t cv_masterserver = CVAR_INIT ("masterserver", "https://ms.kartkrew.org/ms/api", CV_SAVE|CV_CALL, NULL, MasterServer_OnChange); consvar_t cv_rendezvousserver = CVAR_INIT ("rendezvousserver", "relay.kartkrew.org", CV_SAVE|CV_CALL, NULL, RendezvousServer_OnChange); -consvar_t cv_servername = CVAR_INIT ("servername", "SRB2Kart server", CV_SAVE|CV_CALL|CV_NOINIT, NULL, Update_parameters); +consvar_t cv_servername = CVAR_INIT ("servername", "Ring Racers server", CV_SAVE|CV_CALL|CV_NOINIT, NULL, Update_parameters); consvar_t cv_server_contact = CVAR_INIT ("server_contact", "", CV_SAVE|CV_CALL|CV_NOINIT, NULL, Update_parameters); consvar_t cv_masterserver_update_rate = CVAR_INIT ("masterserver_update_rate", "15", CV_SAVE|CV_CALL|CV_NOINIT, masterserver_update_rate_cons_t, MasterClient_Ticker); diff --git a/src/sdl/SDL_icon.xpm b/src/sdl/SDL_icon.xpm index 0acac88ec..b0ae75d5b 100644 --- a/src/sdl/SDL_icon.xpm +++ b/src/sdl/SDL_icon.xpm @@ -1,100 +1,97 @@ /* XPM */ -static const char *SDL_icon_xpm[] = { -/* columns rows colors chars-per-pixel */ -"64 64 32 1", +static const char * SDL_icon_xpm[] = { +"64 64 30 1", " c None", -". c #E7E7E7", -"+ c #DFDFDF", -"@ c #AFAFAF", -"# c #979797", -"$ c #8F8F8F", -"% c #B7B7B7", -"& c #F7F7F7", -"* c #D7D7D7", -"= c #4F4F4F", -"- c #0F0F0F", -"; c #070707", -"> c #575757", -", c #C7C7C7", -"' c #676767", -") c #7F7F7F", -"! c #5F5F5F", -"~ c #777777", -"{ c #474747", -"] c #878787", -"^ c #6F6F6F", +". c #000000", +"+ c #FFFFFF", +"@ c #B37347", +"# c #E39767", +"$ c #FFCB97", +"% c #7F532F", +"& c #FFCFB3", +"* c #533F1F", +"= c #874307", +"- c #752900", +"; c #5F0000", +"> c #414183", +", c #9B5B13", +"' c #5252FF", +") c #21224E", +"! c #FF3F3F", +"~ c #AF0000", +"{ c #FF5F5F", +"] c #470000", +"^ c #FFB78B", "/ c #BFBFBF", -"( c #373737", -"_ c #1F1F1F", -": c #272727", -"< c #2F2F2F", -"[ c #3F3F3F", -"} c #EFEFEF", -"| c #A7A7A7", -"1 c #9F9F9F", -"2 c #171717", -"3 c #CFCFCF", -" ", -" .................... ", -" ...+@##$$$$###@%&....... ", -" ..*=-;;;-;;;;;;;;@........ ", -" ..+-;;;;--;;;;;;;>.......... ", -" ...,')!!'~>{!)$)>'....*]>^%&.. ", -" ../(__(>:{<)$![[[%&...^!!!!!~*. ", -" ..@;;;;;({=]:;;;;;~..*_;;;;;;;_.. ", -" .}>;;;;;^#=;;;;;;>...<;;;;;;;;;|.. ", -" ..*1)))))%]))))))%&..1])))))))))#}. ", -" ..%[;;;;;[2;;;;;;;:..#;;;2[[-;;;;;=.. ", -" .&:;[{;;;{;;;~={:;^.._;;'}...>;;;;;,. ", -" .}<;;:{;_:2!'-;;;]*.&(_].|{=@.~___[/.. ", -" ..*$))]@%//,111111}..|1*.@1111@.3111|&. ", -" .,:;;;;;'#^;;;;;;;]./;;+);;;;;;$*;;;;.. ", -" .^;;;;;;));;;;;;;;$.~;$*;;;;;;;-+^;;;#. ", -" ..$;;;;;;>;;;;;;;;>}.^-.!;;;;;;;;)*:;;|. ", -" .&@$|#)))|)))1||#]+..$/}]))))))))$.3))#.. ", -" .#;;;[{;->;-^[;;;;].~;@];;;;;;;;;;1#;;-}. ", -" .{;;;;{<[:(~-;;;;;$.(-.<;;;;;;;;;;{};;;3. ", -" ..);;;;;~~[!;;;;;;-/.>=.>;;;;;;;;;;2}^;:3. ", -" .&#)))))$}@)))))))@.}]3.*))))))))))).,)).. ", -" .3;;;;;;;);;;;;;;;2+|;%.';;;;;;;;;;;]1;;1. ", -" .1_(:;;;;{;;;[=[:;;.];}.);;;;;;;;;;;=,;;]. ", -" .%2-(!2;2{;_':;;;;).1;..+:;;;;;;;;;;_.;;1. ", -" .+))))@1$1#@))))))3.,@...1))))))))))].1#3. ", -" .{;;;;;^<>);;;;;;;-.[). .-;;;;;;;;;;;3{;#. ", -" ._;;;;;-~];;;;;;;;;};#. ._;;;;;;;;;;;/^;#. ", -" .$'!!!!!1]!!!!!!!!%}[,. .'[[[[[[[[[[[,|>}. ", -" ..'{::___!{___:(>___:[@...~[[[[[[[[[[[1#{,. ", -" .+;-<=(;;[:;;(=-;;;;;;;;;;;;;;;;;;;;;;;;;). ", -" .*;;;;[=;[_;{(;;;;;;;;;;;;;;;;;;;;;;;;;;-#. ", -" .&)!!!!)$]~)$!!!!!!!!!!!!!!!!!!!!!!!!!!!^+. ", -" .&(_____!$)!____________________________<3. ", -" .%;;;;;;;@|;;;;;;;;;;;;==))))))))))))))]*&. ", -" .*22;;;;;({;;;;;_-;;;;%.&.................. ", -" .&+~#]!!!~]!=[!^>[[[[{}... ", -" ../__:^^:(!_[$>[[[[[[{+. ", -" .<;;;;<^2{;'2;;;;;;;;]. ", -" .;;;;;;:~=>:;;;;;;;;;]. ", -" .@!!!!!!]3|!!!!!!!!!!*. ", -" .#_______#_____:<____~.. ", -" .^_{[_;;;=2;;;<<-;;;;;,.................. ", -" .@<;;{~2;_>;;((;;;;;;;3,-----------|.$-!. ", -" ..@))))|@)|)$|)))))))#}&/))))))))))}./)/. ", -" .&:;;;;;=>>;^;;;;;;;;;_.[;;;;;;;;;;^.{;|. ", -" ..2;;;;;;{#<[;;;;;;;;;;+';;;;;;;;;;~*;;.. ", -" .^;;;;;;;'%;;;;;;;;;;{&}#;;;;;;;;[+|;-.. ", -" .&3$1$))))%))))1]))))]+&}$))))))@&./)@. ", -" ..(;_<'{;;(-;;[2;;;;;;-@3;;;;;;;_}};;~. ", -" .=;;;;:~<-(;-[;;;;;;;;:.=;;;;;;>.!;;,. ", -" ./:;;;;;!!!;=-;;;;;;;;>.+$;;;;[.&_;=.. ", -" ..&|)))))$,|%)))))))))]1&.|]]@&.|]]}. ", -" .&;;;;;;;:@=;;;;;;;;;;;-/....3:;;;}. ", -" ..!;;;;;;;([;;;;_2;;;;;;;>)){;;;;^.. ", -" ..=2_:-;;;(;;;2<;;;;;;;;;;;;;;-).. ", -" ...%$#@%#)#))|))))))))))))))|}&. ", -" ..!;;;2!]{_-[;;;;;;;;;;;;;;;&.. ", -" ..^-;;;;^)(:;;;;;;;;;;;;;;'.. ", -" ..*'-;;;:]-;;;;;;;;;;;;-$.. ", -" ....}./1))))))))))))]/... ", -" ........}3||1#$$$]1... ", -" ................... ", -" "}; +"( c #E4E4E4", +"_ c #979797", +": c #7F0000", +"< c #C39B2F", +"[ c #DF0000", +"} c #EBDB57", +"| c #FFFF00", +"1 c #000000", +" ++++++++++++++++ ", +" ++++++++++++++++ ", +" ++++++++++++++++ ", +" ++++++++++++++++ ", +" ++++++++@@@@@@@@@@@@@@@@++++++++ ", +" ++++++++@@@@@@@@@@@@@@@@++++++++ ", +" ++++++++@@@@@@@@@@@@@@@@++++++++ ", +" ++++++++@@@@@@@@@@@@@@@@++++++++ ", +" ++++@@@@####$$$$$$$$$$$$$$$$####@@@@++++ ", +" ++++@@@@####$$$$$$$$$$$$$$$$####@@@@++++ ", +" ++++@@@@####$$$$$$$$$$$$$$$$####@@@@++++ ", +" ++++@@@@####$$$$$$$$$$$$$$$$####@@@@++++ ", +" ++++%%%%####$$$$&&&&++++++++&&&&$$$$####%%%%++++ ", +" ++++%%%%####$$$$&&&&++++++++&&&&$$$$####%%%%++++ ", +" ++++%%%%####$$$$&&&&++++++++&&&&$$$$####%%%%++++ ", +" ++++%%%%####$$$$&&&&++++++++&&&&$$$$####%%%%++++ ", +"++++++++****@@@@$$$$$$$$$$$$&&&&&&&&$$$$$$$$$$$$@@@@****++++++++", +"++++++++****@@@@$$$$$$$$$$$$&&&&&&&&$$$$$$$$$$$$@@@@****++++++++", +"++++++++****@@@@$$$$$$$$$$$$&&&&&&&&$$$$$$$$$$$$@@@@****++++++++", +"++++++++****@@@@$$$$$$$$$$$$&&&&&&&&$$$$$$$$$$$$@@@@****++++++++", +"====----;;;;####$$$$>>>>>>>>$$$$$$$$>>>>>>>>$$$$####;;;;----====", +"====----;;;;####$$$$>>>>>>>>$$$$$$$$>>>>>>>>$$$$####;;;;----====", +"====----;;;;####$$$$>>>>>>>>$$$$$$$$>>>>>>>>$$$$####;;;;----====", +"====----;;;;####$$$$>>>>>>>>$$$$$$$$>>>>>>>>$$$$####;;;;----====", +",,,,,,,,====----@@@@''''''''########''''''''@@@@----====,,,,,,,,", +",,,,,,,,====----@@@@''''''''########''''''''@@@@----====,,,,,,,,", +",,,,,,,,====----@@@@''''''''########''''''''@@@@----====,,,,,,,,", +",,,,,,,,====----@@@@''''''''########''''''''@@@@----====,,,,,,,,", +"----====,,,,====----))))))))!!!!!!!!))))))))----====,,,,====----", +"----====,,,,====----))))))))!!!!!!!!))))))))----====,,,,====----", +"----====,,,,====----))))))))!!!!!!!!))))))))----====,,,,====----", +"----====,,,,====----))))))))!!!!!!!!))))))))----====,,,,====----", +",,,,,,,,,,,,,,,,,,,,====~~~~{{{{{{{{~~~~====,,,,,,,,,,,,,,,,,,,,", +",,,,,,,,,,,,,,,,,,,,====~~~~{{{{{{{{~~~~====,,,,,,,,,,,,,,,,,,,,", +",,,,,,,,,,,,,,,,,,,,====~~~~{{{{{{{{~~~~====,,,,,,,,,,,,,,,,,,,,", +",,,,,,,,,,,,,,,,,,,,====~~~~{{{{{{{{~~~~====,,,,,,,,,,,,,,,,,,,,", +"----------------------------{{{{{{{{----------------------------", +"----------------------------{{{{{{{{----------------------------", +"----------------------------{{{{{{{{----------------------------", +"----------------------------{{{{{{{{----------------------------", +"]]]];;;;----^^^^////((((____((((((((____((((////^^^^----;;;;]]]]", +"]]]];;;;----^^^^////((((____((((((((____((((////^^^^----;;;;]]]]", +"]]]];;;;----^^^^////((((____((((((((____((((////^^^^----;;;;]]]]", +"]]]];;;;----^^^^////((((____((((((((____((((////^^^^----;;;;]]]]", +"::::::::<<<<@@@@^^^^++++////++++++++////++++^^^^@@@@<<<<::::::::", +"::::::::<<<<@@@@^^^^++++////++++++++////++++^^^^@@@@<<<<::::::::", +"::::::::<<<<@@@@^^^^++++////++++++++////++++^^^^@@@@<<<<::::::::", +"::::::::<<<<@@@@^^^^++++////++++++++////++++^^^^@@@@<<<<::::::::", +"::::::::<<<<<<<<----####^^^^$$$$$$$$^^^^####----<<<<<<<<::::::::", +"::::::::<<<<<<<<----####^^^^$$$$$$$$^^^^####----<<<<<<<<::::::::", +"::::::::<<<<<<<<----####^^^^$$$$$$$$^^^^####----<<<<<<<<::::::::", +"::::::::<<<<<<<<----####^^^^$$$$$$$$^^^^####----<<<<<<<<::::::::", +"~~~~[[[[}}}}||||||||@@@@----------------@@@@||||||||}}}}[[[[~~~~", +"~~~~[[[[}}}}||||||||@@@@----------------@@@@||||||||}}}}[[[[~~~~", +"~~~~[[[[}}}}||||||||@@@@----------------@@@@||||||||}}}}[[[[~~~~", +"~~~~[[[[}}}}||||||||@@@@----------------@@@@||||||||}}}}[[[[~~~~", +"[[[[[[[[||||||||<<<<~~~~~~~~~~~~~~~~~~~~~~~~<<<<||||||||[[[[[[[[", +"[[[[[[[[||||||||<<<<~~~~~~~~~~~~~~~~~~~~~~~~<<<<||||||||[[[[[[[[", +"[[[[[[[[||||||||<<<<~~~~~~~~~~~~~~~~~~~~~~~~<<<<||||||||[[[[[[[[", +"[[[[[[[[||||||||<<<<~~~~~~~~~~~~~~~~~~~~~~~~<<<<||||||||[[[[[[[[", +"[[[[[[[[||||<<<<~~~~[[[[[[[[[[[[[[[[[[[[[[[[~~~~<<<<||||[[[[[[[[", +"[[[[[[[[||||<<<<~~~~[[[[[[[[[[[[[[[[[[[[[[[[~~~~<<<<||||[[[[[[[[", +"[[[[[[[[||||<<<<~~~~[[[[[[[[[[[[[[[[[[[[[[[[~~~~<<<<||||[[[[[[[[", +"[[[[[[[[||||<<<<~~~~[[[[[[[[[[[[[[[[[[[[[[[[~~~~<<<<||||[[[[[[[["}; diff --git a/src/sdl/Srb2SDL.ico b/src/sdl/Srb2SDL.ico index 4e3f81336..f9caf642c 100644 Binary files a/src/sdl/Srb2SDL.ico and b/src/sdl/Srb2SDL.ico differ diff --git a/src/sdl/i_main.c b/src/sdl/i_main.c index 5b205503e..de3ea3c9a 100644 --- a/src/sdl/i_main.c +++ b/src/sdl/i_main.c @@ -269,7 +269,7 @@ int main(int argc, char **argv) #endif // startup SRB2 - CONS_Printf("Setting up SRB2Kart...\n"); + CONS_Printf("Setting up Dr. Robotnik's Ring Racers...\n"); D_SRB2Main(); #ifdef LOGMESSAGES if (!M_CheckParm("-nolog")) diff --git a/src/sdl/i_system.c b/src/sdl/i_system.c index 854c35793..af46d6632 100644 --- a/src/sdl/i_system.c +++ b/src/sdl/i_system.c @@ -145,10 +145,10 @@ typedef LPVOID (WINAPI *p_MapViewOfFile) (HANDLE, DWORD, DWORD, DWORD, SIZE_T); // Locations for searching for main.kart #if defined (__unix__) || defined(__APPLE__) || defined (UNIXCOMMON) -#define DEFAULTWADLOCATION1 "/usr/local/share/games/SRB2Kart" -#define DEFAULTWADLOCATION2 "/usr/local/games/SRB2Kart" -#define DEFAULTWADLOCATION3 "/usr/share/games/SRB2Kart" -#define DEFAULTWADLOCATION4 "/usr/games/SRB2Kart" +#define DEFAULTWADLOCATION1 "/usr/local/share/games/RingRacers" +#define DEFAULTWADLOCATION2 "/usr/local/games/RingRacers" +#define DEFAULTWADLOCATION3 "/usr/share/games/RingRacers" +#define DEFAULTWADLOCATION4 "/usr/games/RingRacers" #define DEFAULTSEARCHPATH1 "/usr/local/games" #define DEFAULTSEARCHPATH2 "/usr/games" #define DEFAULTSEARCHPATH3 "/usr/local" @@ -247,8 +247,8 @@ static void write_backtrace(INT32 signal) void *array[BT_SIZE]; char timestr[STR_SIZE]; - const char *error = "An error occurred within SRB2! Send this stack trace to someone who can help!\n"; - const char *error2 = "(Or find crash-log.txt in your SRB2 directory.)\n"; // Shown only to stderr. + const char *error = "An error occurred within Dr. Robotnik's Ring Racers! Send this stack trace to someone who can help!\n"; + const char *error2 = "(Or find crash-log.txt in your Ring Racers directory.)\n"; // Shown only to stderr. fd = open(va("%s" PATHSEP "%s", srb2home, "crash-log.txt"), O_CREAT|O_APPEND|O_RDWR, S_IRUSR|S_IWUSR); @@ -682,7 +682,7 @@ static void I_StartupConsole(void) if (gotConsole) { - SetConsoleTitleA("SRB2Kart Console"); + SetConsoleTitleA("Dr. Robotnik's Ring Racers Console"); consolevent = SDL_TRUE; } @@ -1513,8 +1513,8 @@ void I_UpdateMumble(const mobj_t *mobj, const listener_t listener) return; if(mumble->uiVersion != 2) { - wcsncpy(mumble->name, L"SRB2Kart "VERSIONSTRINGW, 256); - wcsncpy(mumble->description, L"Sonic Robo Blast 2 Kart with integrated Mumble Link support.", 2048); + wcsncpy(mumble->name, L"Dr. Robotnik's Ring Racers "VERSIONSTRINGW, 256); + wcsncpy(mumble->description, L"Dr. Robotnik's Ring Racers with integrated Mumble Link support.", 2048); mumble->uiVersion = 2; } mumble->uiTick++; @@ -1853,7 +1853,7 @@ INT32 I_StartupSystem(void) I_OutputMsg("Linked with SDL version: %d.%d.%d\n", SDLlinked.major, SDLlinked.minor, SDLlinked.patch); if (SDL_Init(0) < 0) - I_Error("SRB2: SDL System Error: %s", SDL_GetError()); //Alam: Oh no.... + I_Error("Dr. Robotnik's Ring Racers: SDL System Error: %s", SDL_GetError()); //Alam: Oh no.... #ifndef NOMUMBLE I_SetupMumble(); #endif @@ -1976,7 +1976,7 @@ void I_Error(const char *error, ...) // on the target system if (!M_CheckParm("-dedicated")) SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR, - "SRB2Kart "VERSIONSTRING" Recursive Error", + "Dr. Robotnik's Ring Racers "VERSIONSTRING" Recursive Error", buffer, NULL); W_Shutdown(); @@ -2025,7 +2025,7 @@ void I_Error(const char *error, ...) // on the target system if (!M_CheckParm("-dedicated")) SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR, - "SRB2Kart "VERSIONSTRING" Error", + "Dr. Robotnik's Ring Racers "VERSIONSTRING" Error", buffer, NULL); // Note that SDL_ShowSimpleMessageBox does *not* require SDL to be diff --git a/src/sdl/i_video.c b/src/sdl/i_video.c index 9f96a2177..ceba0f330 100644 --- a/src/sdl/i_video.c +++ b/src/sdl/i_video.c @@ -1729,7 +1729,7 @@ INT32 VID_SetMode(INT32 modeNum) src_rect.w = vid.width; src_rect.h = vid.height; - //Impl_SetWindowName("SRB2Kart "VERSIONSTRING); + //Impl_SetWindowName("Dr. Robotnik's Ring Racers "VERSIONSTRING); VID_CheckRenderer(); return SDL_TRUE; } @@ -1756,7 +1756,7 @@ static SDL_bool Impl_CreateWindow(SDL_bool fullscreen) #endif // Create a window - window = SDL_CreateWindow("SRB2Kart "VERSIONSTRING, SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, + window = SDL_CreateWindow("Dr. Robotnik's Ring Racers "VERSIONSTRING, SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, realwidth, realheight, flags); @@ -1932,7 +1932,7 @@ void I_StartupGraphics(void) // Create window //Impl_CreateWindow(USE_FULLSCREEN); - //Impl_SetWindowName("SRB2Kart "VERSIONSTRING); + //Impl_SetWindowName("Dr. Robotnik's Ring Racers "VERSIONSTRING); VID_SetMode(VID_GetModeForSize(BASEVIDWIDTH, BASEVIDHEIGHT)); vid.width = BASEVIDWIDTH; // Default size for startup diff --git a/src/sdl/srb2icon.png b/src/sdl/srb2icon.png index 2aca4b204..17de4468e 100644 Binary files a/src/sdl/srb2icon.png and b/src/sdl/srb2icon.png differ diff --git a/src/sdl12/Srb2SDL.ico b/src/sdl12/Srb2SDL.ico index 4e3f81336..f9caf642c 100644 Binary files a/src/sdl12/Srb2SDL.ico and b/src/sdl12/Srb2SDL.ico differ diff --git a/src/sdl12/i_main.c b/src/sdl12/i_main.c index adcaae2fd..2cf2753aa 100644 --- a/src/sdl12/i_main.c +++ b/src/sdl12/i_main.c @@ -44,7 +44,7 @@ static char netmask[16] = {0}; #include PSP_HEAP_SIZE_KB(24*1024); PSP_MAIN_THREAD_ATTR(PSP_THREAD_ATTR_USER | PSP_THREAD_ATTR_VFPU); -PSP_MAIN_THREAD_NAME("SRB2Kart"); +PSP_MAIN_THREAD_NAME("Dr. Robotnik's Ring Racers"); PSP_MAIN_THREAD_STACK_SIZE_KB(256); #endif @@ -228,7 +228,7 @@ int main(int argc, char **argv) #endif #endif // startup SRB2 - CONS_Printf("%s", M_GetText("Setting up SRB2...\n")); + CONS_Printf("%s", M_GetText("Setting up Dr. Robotnik's Ring Racers...\n")); D_SRB2Main(); CONS_Printf("%s", M_GetText("Entering main game loop...\n")); // never return diff --git a/src/sdl12/i_system.c b/src/sdl12/i_system.c index 14d183748..b388a9bf5 100644 --- a/src/sdl12/i_system.c +++ b/src/sdl12/i_system.c @@ -155,9 +155,9 @@ void __set_fpscr(long); // in libgcc / kernel's startup.s? //#define DEFAULTSEARCHPATH3 "/pc/home/alam/srb2code/data" #elif defined (GP2X) #define DEFAULTWADLOCATION1 "/mnt/sd" -#define DEFAULTWADLOCATION2 "/mnt/sd/SRB2Kart" +#define DEFAULTWADLOCATION2 "/mnt/sd/RingRacers" #define DEFAULTWADLOCATION3 "/tmp/mnt/sd" -#define DEFAULTWADLOCATION4 "/tmp/mnt/sd/SRB2Kart" +#define DEFAULTWADLOCATION4 "/tmp/mnt/sd/RingRacers" #define DEFAULTSEARCHPATH1 "/mnt/sd" #define DEFAULTSEARCHPATH2 "/tmp/mnt/sd" #elif defined (_WII) @@ -184,10 +184,10 @@ void __set_fpscr(long); // in libgcc / kernel's startup.s? #define DEFAULTSEARCHPATH1 "host0:/" #define DEFAULTSEARCHPATH2 "ms0:/PSP/GAME/SRB2PSP" #elif defined (__unix__) || defined(__APPLE__) || defined (UNIXCOMMON) -#define DEFAULTWADLOCATION1 "/usr/local/share/games/SRB2Kart" -#define DEFAULTWADLOCATION2 "/usr/local/games/SRB2Kart" -#define DEFAULTWADLOCATION3 "/usr/share/games/SRB2Kart" -#define DEFAULTWADLOCATION4 "/usr/games/SRB2Kart" +#define DEFAULTWADLOCATION1 "/usr/local/share/games/RingRacers" +#define DEFAULTWADLOCATION2 "/usr/local/games/RingRacers" +#define DEFAULTWADLOCATION3 "/usr/share/games/RingRacers" +#define DEFAULTWADLOCATION4 "/usr/games/RingRacers" #define DEFAULTSEARCHPATH1 "/usr/local/games" #define DEFAULTSEARCHPATH2 "/usr/games" #define DEFAULTSEARCHPATH3 "/usr/local" @@ -196,21 +196,21 @@ void __set_fpscr(long); // in libgcc / kernel's startup.s? #ifdef __GNUC__ #include #endif -#define DEFAULTWADLOCATION1 "c:\\srb2kart" -#define DEFAULTWADLOCATION2 "d:\\srb2kart" -#define DEFAULTWADLOCATION3 "e:\\srb2kart" -#define DEFAULTWADLOCATION4 "f:\\srb2kart" -#define DEFAULTWADLOCATION5 "g:\\srb2kart" -#define DEFAULTWADLOCATION6 "h:\\srb2kart" -#define DEFAULTWADLOCATION7 "i:\\srb2kart" +#define DEFAULTWADLOCATION1 "c:\\ringracers" +#define DEFAULTWADLOCATION2 "d:\\ringracers" +#define DEFAULTWADLOCATION3 "e:\\ringracers" +#define DEFAULTWADLOCATION4 "f:\\ringracers" +#define DEFAULTWADLOCATION5 "g:\\ringracers" +#define DEFAULTWADLOCATION6 "h:\\ringracers" +#define DEFAULTWADLOCATION7 "i:\\ringracers" #elif defined (_WIN32_WCE) #define NOCWD #define NOHOME -#define DEFAULTWADLOCATION1 "\\Storage Card\\SRB2Kart" +#define DEFAULTWADLOCATION1 "\\Storage Card\\RingRacers" #define DEFAULTSEARCHPATH1 "\\Storage Card" #elif defined (_WIN32) -#define DEFAULTWADLOCATION1 "c:\\games\\srb2kart" -#define DEFAULTWADLOCATION2 "\\games\\srb2kart" +#define DEFAULTWADLOCATION1 "c:\\games\\ringracers" +#define DEFAULTWADLOCATION2 "\\games\\ringracers" #define DEFAULTSEARCHPATH1 "c:\\games" #define DEFAULTSEARCHPATH2 "\\games" #endif @@ -701,7 +701,7 @@ static void I_StartupConsole(void) if (gotConsole) { - SetConsoleTitleA("SRB2Kart Console"); + SetConsoleTitleA("Dr. Robotnik's Ring Racers Console"); consolevent = SDL_TRUE; } @@ -2333,8 +2333,8 @@ void I_UpdateMumble(const mobj_t *mobj, const listener_t listener) return; if(mumble->uiVersion != 2) { - wcsncpy(mumble->name, L"SRB2Kart "VERSIONSTRING, 256); - wcsncpy(mumble->description, L"Sonic Robo Blast 2 Kart with integrated Mumble Link support.", 2048); + wcsncpy(mumble->name, L"Dr. Robotnik's Ring Racers "VERSIONSTRING, 256); + wcsncpy(mumble->description, L"Dr. Robotnik's Ring Racers with integrated Mumble Link support.", 2048); mumble->uiVersion = 2; } mumble->uiTick++; @@ -2905,7 +2905,7 @@ void I_StartupTimer(void) I_AddExitFunc(I_ShutdownTimer); #elif 0 //#elif !defined (_arch_dreamcast) && !defined(GP2X) // the DC have it own timer and GP2X have broken pthreads? if (SDL_InitSubSystem(SDL_INIT_TIMER) < 0) - I_Error("SRB2: Needs SDL_Timer, Error: %s", SDL_GetError()); + I_Error("Dr. Robotnik's Ring Racers: Needs SDL_Timer, Error: %s", SDL_GetError()); #endif } @@ -2925,13 +2925,13 @@ INT32 I_StartupSystem(void) const SDL_version *SDLlinked; #ifdef _XBOX #ifdef __GNUC__ - char DP[] =" Sonic Robo Blast 2!\n"; + char DP[] =" Dr. Robotnik's Ring Racers!\n"; debugPrint(DP); #endif - unlink("e:/Games/SRB2/stdout.txt"); - freopen("e:/Games/SRB2/stdout.txt", "w+", stdout); - unlink("e:/Games/SRB2/stderr.txt"); - freopen("e:/Games/SRB2/stderr.txt", "w+", stderr); + unlink("e:/Games/RingRacers/stdout.txt"); + freopen("e:/Games/RingRacers/stdout.txt", "w+", stdout); + unlink("e:/Games/RingRacers/stderr.txt"); + freopen("e:/Games/RingRacers/stderr.txt", "w+", stderr); #endif #ifdef _arch_dreamcast #ifdef _DEBUG @@ -2954,7 +2954,7 @@ INT32 I_StartupSystem(void) #else if (SDL_Init(SDL_INIT_NOPARACHUTE) < 0) #endif - I_Error("SRB2: SDL System Error: %s", SDL_GetError()); //Alam: Oh no.... + I_Error("Dr. Robotnik's Ring Racers: SDL System Error: %s", SDL_GetError()); //Alam: Oh no.... #ifndef NOMUMBLE I_SetupMumble(); #endif @@ -3106,7 +3106,7 @@ void I_Error(const char *error, ...) } #endif OutputDebugStringA(buffer); - MessageBoxA(vid.WndParent, buffer, "SRB2 Recursive Error", MB_OK|MB_ICONERROR); + MessageBoxA(vid.WndParent, buffer, "Dr. Robotnik's Ring Racers Recursive Error", MB_OK|MB_ICONERROR); #else // Don't print garbage va_start(argptr, error); diff --git a/src/sdl12/i_video.c b/src/sdl12/i_video.c index 45ce67cf5..e32885a3c 100644 --- a/src/sdl12/i_video.c +++ b/src/sdl12/i_video.c @@ -1719,7 +1719,7 @@ INT32 VID_SetMode(INT32 modeNum) BitsPerPixel = (Uint8)cv_scr_depth.value; //vid.bpp = BitsPerPixel==8?1:2; // Window title - SDL_WM_SetCaption("SRB2Kart "VERSIONSTRING, "SRB2Kart"); + SDL_WM_SetCaption("Dr. Robotnik's Ring Racers "VERSIONSTRING, "Dr. Robotnik's Ring Racers"); if (render_soft == rendermode) { @@ -1881,9 +1881,9 @@ void I_StartupGraphics(void) // Window title #ifdef _WIN32_WCE - SDL_WM_SetCaption("SRB2Kart "VERSIONSTRING, "SRB2Kart"); + SDL_WM_SetCaption("Dr. Robotnik's Ring Racers "VERSIONSTRING, "Dr. Robotnik's Ring Racers"); #else - SDL_WM_SetCaption("SRB2Kart: Starting up", "SRB2Kart"); + SDL_WM_SetCaption("Dr. Robotnik's Ring Racers: Starting up", "Dr. Robotnik's Ring Racers"); #endif // Window icon diff --git a/src/sdl12/sdl_sound.c b/src/sdl12/sdl_sound.c index 1a7525fee..eebcb65df 100644 --- a/src/sdl12/sdl_sound.c +++ b/src/sdl12/sdl_sound.c @@ -154,16 +154,16 @@ static SDL_mutex *Msc_Mutex = NULL; #ifdef _arch_dreamcast #define MIDI_PATH "/ram" #elif defined(GP2X) -#define MIDI_PATH "/mnt/sd/srb2" -#define MIDI_PATH2 "/tmp/mnt/sd/srb2" +#define MIDI_PATH "/mnt/sd/ringracers" +#define MIDI_PATH2 "/tmp/mnt/sd/ringracers" #else #define MIDI_PATH srb2home #if defined (__unix__) || defined(__APPLE__) || defined (UNIXCOMMON) #define MIDI_PATH2 "/tmp" #endif #endif -#define MIDI_TMPFILE "srb2music" -#define MIDI_TMPFILE2 "srb2wav" +#define MIDI_TMPFILE "ringracersmusic" +#define MIDI_TMPFILE2 "ringracerswav" static INT32 musicvol = 62; #if SDL_MIXER_VERSION_ATLEAST(1,2,2) @@ -1932,7 +1932,7 @@ boolean I_StartDigSong(const char *musicname, boolean looping) loopstartDig = 0.0l; #else if (looping && strcmp(data, "OggS") == 0) - I_OutputMsg("I_StartDigSong: SRB2 was not compiled with looping music support(no Mix_FadeInMusicPos)\n"); + I_OutputMsg("I_StartDigSong: Ring Racers was not compiled with looping music support(no Mix_FadeInMusicPos)\n"); #endif if (!LoadSong(data, lumplength, 1)) diff --git a/src/win32/Srb2win.ico b/src/win32/Srb2win.ico index 4e3f81336..f9caf642c 100644 Binary files a/src/win32/Srb2win.ico and b/src/win32/Srb2win.ico differ diff --git a/src/win32/Srb2win.rc b/src/win32/Srb2win.rc index b3925c873..dbd11991a 100644 --- a/src/win32/Srb2win.rc +++ b/src/win32/Srb2win.rc @@ -94,16 +94,16 @@ BEGIN BEGIN BLOCK "04090000" BEGIN - VALUE "Comments", "Go go-karting with Dr. Eggman!\0" + VALUE "Comments", "Go go-karting with Dr. Robotnik!\0" VALUE "CompanyName", "Kart Krew\0" - VALUE "FileDescription", "SRB2Kart\0" + VALUE "FileDescription", "Dr. Robotnik's Ring Racers\0" VALUE "FileVersion", VERSIONSTRING_RC - VALUE "InternalName", "srb2kart\0" + VALUE "InternalName", "drrr\0" VALUE "LegalCopyright", "Copyright 2018-2020 by Kart Krew\0" - VALUE "LegalTrademarks", "Dr. Eggman and related characters are trademarks of Sega.\0" - VALUE "OriginalFilename", "srb2kart.exe\0" + VALUE "LegalTrademarks", "Dr. Robotnik and related characters are trademarks of Sega.\0" + VALUE "OriginalFilename", "drrr.exe\0" VALUE "PrivateBuild", "\0" - VALUE "ProductName", "SRB2Kart\0" + VALUE "ProductName", "Dr. Robotnik's Ring Racers\0" VALUE "ProductVersion", VERSIONSTRING_RC VALUE "SpecialBuild", "\0" END diff --git a/src/win32/win_dbg.c b/src/win32/win_dbg.c index 4230e962f..b5e3767dc 100644 --- a/src/win32/win_dbg.c +++ b/src/win32/win_dbg.c @@ -74,7 +74,7 @@ BOOL InitBugTrap(void) if (g_hmodBugTrap) { - lpfnBT_SetAppName(TEXT("Sonic Robo Blast 2")); + lpfnBT_SetAppName(TEXT("Dr. Robotnik's Ring Racers")); lpfnBT_SetAppVersion(TEXT(VERSIONSTRING)); lpfnBT_SetFlags(BTF_DETAILEDMODE | BTF_ATTACHREPORT); lpfnBT_SetSupportURL(TEXT("http://www.srb2.org/")); @@ -454,7 +454,7 @@ LONG WINAPI RecordExceptionInfo(PEXCEPTION_POINTERS data/*, LPCSTR Message, LPST FPrintf(fileHandle, "Email Sonic Team Junior so we can fix the bugs\r\n"); // Tails FPrintf(fileHandle, "Make sure you tell us what you were doing to cause the crash, and if possible, record a demo!\r\n"); // Tails FPrintf(fileHandle, "\r\n\r\n\r\n\r\n"); - FPrintf(fileHandle, "SRB2Kart %s -ERROR LOG-\r\n\r\n", VERSIONSTRING); + FPrintf(fileHandle, "Dr. Robotnik's Ring Racers %s -ERROR LOG-\r\n\r\n", VERSIONSTRING); FPrintf(fileHandle, "\r\n"); // VirtualQuery can be used to get the allocation base associated with a // code address, which is the same as the ModuleHandle. This can be used diff --git a/src/win32/win_main.c b/src/win32/win_main.c index 54b489751..70b0d7201 100644 --- a/src/win32/win_main.c +++ b/src/win32/win_main.c @@ -325,8 +325,8 @@ static inline VOID OpenTextConsole(VOID) { if (AllocConsole()) //Let get the real console HANDLEs, because Mingw's Bash is bad! { - SetConsoleTitleA("SRB2Kart Console"); - CONS_Printf(M_GetText("Hello, it's me, SRB2Kart's Console Window\n")); + SetConsoleTitleA("Dr. Robotnik's Ring Racers Console"); + CONS_Printf(M_GetText("Hello, it's me, Dr. Robotnik's Ring Racers' Console Window\n")); } else { @@ -612,7 +612,7 @@ static int WINAPI HandledWinMain(HINSTANCE hInstance) #endif // open a dummy window, both OpenGL and DirectX need one. - if ((hWndMain = OpenMainWindow(hInstance, va("SRB2Kart "VERSIONSTRING))) == INVALID_HANDLE_VALUE) + if ((hWndMain = OpenMainWindow(hInstance, va("Dr. Robotnik's Ring Racers "VERSIONSTRING))) == INVALID_HANDLE_VALUE) { tlErrorMessage(TEXT("Couldn't open window")); return FALSE; @@ -624,7 +624,7 @@ static int WINAPI HandledWinMain(HINSTANCE hInstance) MakeCodeWritable(); // startup SRB2 - CONS_Printf("Setting up SRB2Kart...\n"); + CONS_Printf("Setting up Dr. Robotnik's Ring Racers...\n"); D_SRB2Main(); CONS_Printf("Entering main game loop...\n"); // never return diff --git a/src/win32/win_net.c b/src/win32/win_net.c index c06919550..4e958da60 100644 --- a/src/win32/win_net.c +++ b/src/win32/win_net.c @@ -33,7 +33,7 @@ boolean I_InitNetwork(void) { if (M_CheckParm ("-net")) { - I_Error("The Win32 version of SRB2Kart doesn't work with external drivers like ipxsetup, sersetup, or doomatic\n" + I_Error("The Win32 version of Dr. Robotnik's Ring Racers doesn't work with external drivers like ipxsetup, sersetup, or doomatic\n" "Read the documentation about \"-server\" and \"-connect\" parameters or just use the launcher\n"); } diff --git a/src/win32/win_sys.c b/src/win32/win_sys.c index 9b2c5bd07..8d4819dd8 100644 --- a/src/win32/win_sys.c +++ b/src/win32/win_sys.c @@ -513,7 +513,7 @@ static void signal_handler(int num) } #endif - MessageBoxA(hWndMain, va("signal_handler(): %s", sigmsg), "SRB2Kart error", MB_OK|MB_ICONERROR); + MessageBoxA(hWndMain, va("signal_handler(): %s", sigmsg), "Dr. Robotnik's Ring Racers error", MB_OK|MB_ICONERROR); signal(num, SIG_DFL); // default signal action raise(num); @@ -630,7 +630,7 @@ void I_Error(const char *error, ...) va_end(argptr); OutputDebugStringA(txt); - MessageBoxA(hWndMain, txt, "SRB2Kart Recursive Error", MB_OK|MB_ICONERROR); + MessageBoxA(hWndMain, txt, "Dr. Robotnik's Ring Racers Recursive Error", MB_OK|MB_ICONERROR); W_Shutdown(); exit(-1); // recursive errors detected } @@ -673,7 +673,7 @@ void I_Error(const char *error, ...) } #endif - MessageBoxA(hWndMain, txt, "SRB2Kart Error", MB_OK|MB_ICONERROR); + MessageBoxA(hWndMain, txt, "Dr. Robotnik's Ring Racers Error", MB_OK|MB_ICONERROR); W_Shutdown(); exit(-1); @@ -3092,8 +3092,8 @@ void I_UpdateMumble(const mobj_t *mobj, const listener_t listener) return; if(mumble->uiVersion != 2) { - wcsncpy(mumble->name, L"SRB2Kart "VERSIONSTRINGW, 256); - wcsncpy(mumble->description, L"SRB2Kart with integrated Mumble Link support.", 2048); + wcsncpy(mumble->name, L"Dr. Robotnik's Ring Racers "VERSIONSTRINGW, 256); + wcsncpy(mumble->description, L"Dr. Robotnik's Ring Racers with integrated Mumble Link support.", 2048); mumble->uiVersion = 2; } mumble->uiTick++;