Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change gMapSides when knife round swaps. #753

Merged
merged 1 commit into from
Jun 26, 2022

Conversation

PhlexPlexico
Copy link
Collaborator

This should fix Side Restore Issues in #699.

Currently on round 0, it appears that the temp valve backup is not created, which causes us to hit the conditional in RestoreGet5Backup() and calls SetStartingTeams() in teamlogic.sp on Line 301. So instead of rewriting a bunch of logic, we just set the current g_MapSides value to be whichever side choice is selected by the !swap command.

This should fix Side Restore Issues in splewis#699.
@tapir
Copy link
Contributor

tapir commented Jun 14, 2022

I get

ERROR: Failed to compile get5, from ./smbuild
./scripting/get5/kniferounds.sp(48) : error 017: undefined symbol "GetMapNumber"
./scripting/get5/kniferounds.sp(50) : error 017: undefined symbol "GetMapNumber"

any ideas?

@PhlexPlexico
Copy link
Collaborator Author

Make sure you don't have any other changes, I've never used smbuild as I've used my own Environment.

https://github.com/PhlexPlexico/get5/suites/6611108015/artifacts/248719183

But it looks like it compiled successfully here, so you can use that if you'd like.

@tapir
Copy link
Contributor

tapir commented Jun 14, 2022

Hmm I have the 0.9 changes pulled too. Probably why it happens. Any chance to get this rebased to 0.9 since from what I understand it will be the next release

@nickdnk
Copy link
Collaborator

nickdnk commented Jun 14, 2022

@tapir We're more likely to rebase 0.9 on this though. I will do that once this gets merged in.

@PhlexPlexico
Copy link
Collaborator Author

We've been in the talks about that, and whatever gets merged in first we'll adjust and rebase as necessary. But for now, I was working on the fact that it's not breaking changes, so it shouldn't be merged into 0.9 just yet.

@tapir
Copy link
Contributor

tapir commented Jun 14, 2022

Thanks a lot. Turns out was just a matter of renaming it to Get5_GetMapNumber() btw.

@PhlexPlexico PhlexPlexico linked an issue Jun 22, 2022 that may be closed by this pull request
@splewis splewis merged commit c5aaf4f into splewis:master Jun 26, 2022
PhlexPlexico added a commit to PhlexPlexico/get5 that referenced this pull request Jun 26, 2022
* Update Dockerfile to debian 11 (splewis#760)

Update Dockerfile to debian 11

* Change gMapSides when knife round swaps. (splewis#753)

This should fix Side Restore Issues in splewis#699.

* Include basic mkdocs installation.

Update build to use one run instead of multiple.

TODO: Update build job to build and host files with GH Pages.

* Documentation conversion. Start with essentials.

Include build job for github pages.

Update example match json for new map pool.

* Update mkdocs and github action.

* Update published directory.

* Try once more.

* Change to a different build process.

* Another build change?

* Include space for commands for proper formatting.

* Remove redunant text in README and point to docs site.

* Swap URL.

* Branch update.

* Include colours from the utils class.

* Update generate_docs.yml

Attempt to fix directory issue

Co-authored-by: Alex <[email protected]>
PhlexPlexico added a commit to PhlexPlexico/get5 that referenced this pull request Jul 2, 2022
* Update Dockerfile to debian 11 (splewis#760)

Update Dockerfile to debian 11

* Change gMapSides when knife round swaps. (splewis#753)

This should fix Side Restore Issues in splewis#699.

* Include basic mkdocs installation.

Update build to use one run instead of multiple.

TODO: Update build job to build and host files with GH Pages.

* Documentation conversion. Start with essentials.

Include build job for github pages.

Update example match json for new map pool.

* Update mkdocs and github action.

* Update published directory.

* Try once more.

* Change to a different build process.

* Another build change?

* Include space for commands for proper formatting.

* Remove redunant text in README and point to docs site.

* Swap URL.

* Branch update.

* Include colours from the utils class.

* Update generate_docs.yml

Attempt to fix directory issue

Co-authored-by: Alex <[email protected]>

Shift docs generation around.
PhlexPlexico added a commit to PhlexPlexico/get5 that referenced this pull request Jul 8, 2022
* Update Dockerfile to debian 11 (splewis#760)

Update Dockerfile to debian 11

* Change gMapSides when knife round swaps. (splewis#753)

This should fix Side Restore Issues in splewis#699.

* Include basic mkdocs installation.

Update build to use one run instead of multiple.

TODO: Update build job to build and host files with GH Pages.

* Documentation conversion. Start with essentials.

Include build job for github pages.

Update example match json for new map pool.

* Update mkdocs and github action.

* Update published directory.

* Try once more.

* Change to a different build process.

* Another build change?

* Include space for commands for proper formatting.

* Remove redunant text in README and point to docs site.

* Swap URL.

* Branch update.

* Include colours from the utils class.

* Update generate_docs.yml

Attempt to fix directory issue

Co-authored-by: Alex <[email protected]>

Shift docs generation around.
@PhlexPlexico PhlexPlexico deleted the swap-backup-fix branch July 8, 2022 18:14
@nickdnk nickdnk added this to the 0.9 milestone Jul 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] First round restore swap issues
4 participants