-
Notifications
You must be signed in to change notification settings - Fork 40
upstream -> ZK #702
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
upstream -> ZK #702
Conversation
email verification in REGISTER/CONFIRMAGREEMENT
(they don't do anything anymore!)
& remove NOCHANNELTOPIC (no longer used by Spring and afaict not used by ZK)
updates for compat flags / stop sending dead compat flags
zk -> upstream
* Added gameConfig for TAPrime
various lobby protocol fixes
load game config in one place and check for some necessary tables (should probably add more...) (try to fail early whenever possible)
…ig (gameConfig/tc)
added byar gameconfig
fixed font-uiscaling bug
added custom game lobbymusic option
ZK -> Upstream (WIP)
|
@GoogleFrog Please check if it can be merged now. |
LuaMenu/widgets/snd_music_lite.lua
Outdated
| "sounds/lobbyMusic/Tomorrow Landscape.ogg", | ||
| } | ||
| local randomTrackList | ||
| local OPEN_TRACK_NAME |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am going to change the name of OPEN_TRACK_NAME because it is not what I would call a constant. You can do this before it is pulled if you like.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed, I'll fix
| link_maps = link_maps, | ||
| link_particularMapPage = link_particularMapPage, | ||
| ignoreServerVersion = false, | ||
| openTrack = 'sounds/lobbyMusic/The Secret of Ayers Rock.ogg', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bad whitespace. My rule is that tabs should only ever occur after newlines or tabs.
|
Verzonden vanaf mijn Samsung-apparaat
…-------- Oorspronkelijk bericht --------
Van: Gajo Petrovic <notifications@github.com>
Datum: 19-07-19 20:32 (GMT+01:00)
Aan: ZeroK-RTS/Chobby <Chobby@noreply.github.com>
Cc: Floris <floris@ruwhof.net>, Mention <mention@noreply.github.com>
Onderwerp: Re: [ZeroK-RTS/Chobby] upstream -> ZK (#702)
@GoogleFrog Please check if it can be merged now.
—You are receiving this because you were mentioned.Reply to this email directly, view it on GitHub, or mute the thread.
[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "#702?email_source=notifications\u0026email_token=ACUBVWI526S6ZTGOW2PHPV3QAICCLA5CNFSM4IDGRGQ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2MNFNY#issuecomment-513331895",
"url": "#702?email_source=notifications\u0026email_token=ACUBVWI526S6ZTGOW2PHPV3QAICCLA5CNFSM4IDGRGQ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2MNFNY#issuecomment-513331895",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]
|
|
|
||
| self.loadLocalWidgets = false | ||
| self.displayBots = false | ||
| self.displayBadEngines2 = true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I want this to be true because wrapper launch can launch into other engine versions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure I want to touch this because it was changed to fix an issue: Spring-Chobby@3627fe8
Was this change wrong?
|
|
||
| Spring.SetConfigInt("WindowBorderless", (mode == 4 and 1) or 0, false) | ||
|
|
||
| Spring.SetConfigInt("Fullscreen", 0, false) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need a tab here.
|
I'm a the point where I am just noting what I can fix after merging. @gajop said he will fix something so I will wait for his input. |
|
@GoogleFrog feel free to go ahead with the merge. I'd rather deal with smaller PRs after this gets in, would prefer to avoid any new conflicts. |
LuaMenu/widgets/snd_music_lite.lua
Outdated
| if OPEN_TRACK_NAME == nil or OPEN_TRACK_NAME == '' then | ||
| OPEN_TRACK_NAME = randomTrackList[math.random(#randomTrackList)] | ||
| openTrack = WG.Chobby.Configuration.gameConfig.openTrack | ||
| if openTrack ~= nil then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know what this nested if is meant to do, but there has to be a mistake here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is open track being checked against ''? It looks like the meaning of configuration values is being overridden in a confusing way.
- openTrack should be a string. If it is set then that track is played when the menu opens.
- If openTrack is not set then a random track should be played.
- If someone wants the ability to start the menu with no music they can add a config value to do that.
- If the configuration has openTrack = '' then the music widget should print a warning about that track not existing.
LuaMenu/widgets/snd_music_lite.lua
Outdated
| end | ||
| end | ||
| if OPEN_TRACK_NAME == nil or OPEN_TRACK_NAME == '' then | ||
| if openTrack == nil or openTrack == '' then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why can't this widget run if there is no open track? It would just mean there is silence until the first game is over (at which point a track will play).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this be
`if not openTrack then'
| disablePlanetwars = true, -- removes settings related to planetwars | ||
| disableMatchMaking = true, -- removes match making | ||
| disableCommunityWindow = true, -- removes Community Window | ||
| openTrack = '', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is bad.
|
It turns out I can commit changes. |
|
That's not an improvement though. |
|
Ok. |
Leaving this up until it's ready to be merged.