sav-chris / SC2-Peep-Mod

Starcraft 2 Mod for playing round robin 1v1s in a lobby with many players. Custom Races are supported too.
0 stars 0 forks source link

Game broken #35

Closed sav-chris closed 1 year ago

sav-chris commented 1 year ago

Seems like the Gresvan map is broken and needs to be remade

image

D:\Archive\Programming\GalaxyScript\SC2-Peep-Mod [main ≡ +0 ~31 -4 !]> git stash
Saved working directory and index state WIP on main: 7fe78d3 Handle Stalemates https://github.com/sav-chris/SC2-Peep-Mod/issues/1 https://github.com/sav-chris/SC2-Peep-Mod/issues/31
D:\Archive\Programming\GalaxyScript\SC2-Peep-Mod [main ≡]> git checkout main
Your branch is up to date with 'origin/main'.
D:\Archive\Programming\GalaxyScript\SC2-Peep-Mod [main ≡]> git bisect start
D:\Archive\Programming\GalaxyScript\SC2-Peep-Mod [main ≡ +0 ~1 -0 !]> git stash
Saved working directory and index state WIP on (no branch): 6f5bb35 Show races in lobby and on game start fixed gas bug https://github.com/sav-chris/SC2-Peep-Mod/issues/19
Unlink of file 'Mod/bin/PeepMod.SC2Mod' failed. Should I try again? (y/n) n
error: unable to unlink old 'Mod/bin/PeepMod.SC2Mod': Invalid argument
D:\Archive\Programming\GalaxyScript\SC2-Peep-Mod [(6f5bb35...)|BISECTING +0 ~1 -0 !]> git bisect good
Bisecting: 3 revisions left to test after this (roughly 2 steps)
error: Your local changes to the following files would be overwritten by checkout:
        Mod/bin/PeepMod.SC2Mod
Please commit your changes or stash them before you switch branches.
Aborting
D:\Archive\Programming\GalaxyScript\SC2-Peep-Mod [(6f5bb35...)|BISECTING +0 ~1 -0 !]> git stash
Saved working directory and index state WIP on (no branch): 6f5bb35 Show races in lobby and on game start fixed gas bug https://github.com/sav-chris/SC2-Peep-Mod/issues/19
D:\Archive\Programming\GalaxyScript\SC2-Peep-Mod [(6f5bb35...)|BISECTING]> git bisect good
Bisecting: 3 revisions left to test after this (roughly 2 steps)
[53766e201d6d81b7ff0d7acfa929c9e61d46e598] Fix for chat bug https://github.com/sav-chris/SC2-Peep-Mod/issues/24
D:\Archive\Programming\GalaxyScript\SC2-Peep-Mod [(53766e2...)|BISECTING]> git bisect bad
Bisecting: 0 revisions left to test after this (roughly 1 step)
error: Your local changes to the following files would be overwritten by checkout:
        Mod/src/PeepMod.SC2Mod/DocumentHeader
Please commit your changes or stash them before you switch branches.
Aborting
D:\Archive\Programming\GalaxyScript\SC2-Peep-Mod [(53766e2...)|BISECTING +0 ~11 -0 !]> git stash
Saved working directory and index state WIP on (no branch): 53766e2 Fix for chat bug https://github.com/sav-chris/SC2-Peep-Mod/issues/24
D:\Archive\Programming\GalaxyScript\SC2-Peep-Mod [(53766e2...)|BISECTING]> git bisect bad
Bisecting: 0 revisions left to test after this (roughly 1 step)
[c83a751df17df22d7ac14cec7470c377f0866cd8] Don't spoil random race to opponent https://github.com/sav-chris/SC2-Peep-Mod/issues/23
D:\Archive\Programming\GalaxyScript\SC2-Peep-Mod [(c83a751...)|BISECTING]> git stash
Saved working directory and index state WIP on (no branch): c83a751 Don't spoil random race to opponent https://github.com/sav-chris/SC2-Peep-Mod/issues/23
D:\Archive\Programming\GalaxyScript\SC2-Peep-Mod [(c83a751...)|BISECTING]> git bisect good
53766e201d6d81b7ff0d7acfa929c9e61d46e598 is the first bad commit
commit 53766e201d6d81b7ff0d7acfa929c9e61d46e598
Author: sav <christopher.savini@gmail.com>
Date:   Mon Apr 17 02:11:58 2023 +1000

    Fix for chat bug
    https://github.com/sav-chris/SC2-Peep-Mod/issues/24

 .../PeepMod.SC2Mod/Base.SC2Data/Lib1B69CECC.galaxy   |   1 +
 Mod/src/PeepMod.SC2Mod/DocumentHeader                | Bin 399 -> 399 bytes
 Mod/src/PeepMod.SC2Mod/Triggers                      |  19 +++++++++++++++++++
 Mod/src/PeepMod.SC2Mod/Triggers.version              | Bin 44 -> 44 bytes
 4 files changed, 20 insertions(+)
D:\Archive\Programming\GalaxyScript\SC2-Peep-Mod [(c83a751...)|BISECTING]>
sav-chris commented 1 year ago

image


void lib1B69CECC_gf_InitialiseGame (playergroup lp_lobby_Players) {
    int init_i;

    // Variable Declarations
    string[3] lv_start_locations;
    int lv_aPlayer;
    int lv_idx;

    // Automatic Variable Declarations
    playergroup autoEF8BA5EB_g;

    // Variable Initialization
    for (init_i = 0; init_i <= 2; init_i += 1) {
        lv_start_locations[init_i] = "";
    }

    // Implementation
    lib1B69CECC_gf_HideLobby(lib1B69CECC_gv_lobbyModal);
    SoundPlayForPlayer(SoundLink("UI_BnetCountdown321", -1), c_maxPlayers, PlayerGroupAll(), 100.0, 0.0);
    UIDisplayMessage(lib1B69CECC_gf_nonneutral_players(), c_messageAreaSubtitle, StringExternal("Param/Value/lib_1B69CECC_890AFE24"));
    CinematicFade(false, 2.0, c_fadeStyleNormal, Color(0.00, 0.00, 0.00), 0.0, true);
    CinematicFade(true, 2.0, c_fadeStyleNormal, Color(0.00, 0.00, 0.00), 0.0, true);
    lv_start_locations[0] = lib1B69CECC_gv_sTARTLOCATION_1;
    lv_start_locations[1] = lib1B69CECC_gv_sTARTLOCATION_2;
    lib1B69CECC_gv_pLAYERS = lib1B69CECC_gf_ChoosePlayersFromLobby(lp_lobby_Players);
    lib1B69CECC_gv_oBSERVERS = lib1B69CECC_gf_ChooseObserversFromLobby(lib1B69CECC_gf_nonneutral_players(), lib1B69CECC_gv_pLAYERS);
    lv_idx = 0;
    autoEF8BA5EB_g = lib1B69CECC_gv_pLAYERS;
    lv_aPlayer = -1;
    while (true) {
        lv_aPlayer = PlayerGroupNextPlayer(autoEF8BA5EB_g, lv_aPlayer);
        if (lv_aPlayer < 0) { break; }
        if ((lv_idx < 2)) {
            lib1B69CECC_gf_InitialisePlayer(lv_aPlayer, lv_start_locations[lv_idx]);
            lv_idx = (lv_idx + 1);
        }

    }
    libNtve_gf_SetAllianceBetweenTwoPlayerGroups(lib1B69CECC_gv_pLAYERS, lib1B69CECC_gv_oBSERVERS, libNtve_ge_AllianceSetting_Enemy);
    libNtve_gf_SetAllianceBetweenTwoPlayerGroups(lib1B69CECC_gv_oBSERVERS, lib1B69CECC_gv_pLAYERS, libNtve_ge_AllianceSetting_Enemy);
    libNtve_gf_SetPlayerGroupAlliance(lib1B69CECC_gv_pLAYERS, libNtve_ge_AllianceSetting_Enemy);
    libNtve_gf_SetPlayerGroupAlliance(lib1B69CECC_gv_oBSERVERS, libNtve_ge_AllianceSetting_Ally);
    lib1B69CECC_gf_HideTimerWindow();
    lib1B69CECC_gf_EnableObserverUI(lib1B69CECC_gv_oBSERVERS, lib1B69CECC_gv_pLAYERS);
    lib1B69CECC_gf_EnablePlayerUI(lib1B69CECC_gv_pLAYERS);
    lib1B69CECC_gf_StartVictoryDetection();
    lib1B69CECC_gf_StartClock();
}