Skip to content
Open

Sync #773

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
9c59f24
Uparrow/downarrow in console autofills sent messages.
MasterBel2 May 10, 2020
5b6147b
Changes requested by PR:
MasterBel2 May 20, 2020
ead0c9c
Fix whitespace
MasterBel2 May 20, 2020
a1adaab
Fix whitespace
MasterBel2 May 20, 2020
1c55e29
Removed extraneous changes that should have already been reverted
MasterBel2 May 20, 2020
116a403
Merge pull request #511 from ZeroK-RTS/master
gajop May 24, 2020
fabcd6d
Merge pull request #513 from MasterBel2/master
gajop May 24, 2020
0aab90d
Remove extraneous whitespace to fix build.
MasterBel2 Jul 10, 2020
12ba5be
Merge pull request #515 from MasterBel2/whitespace-cull
gajop Jul 10, 2020
026442c
Store friends on `FRIENDLIST`
MasterBel2 Jul 10, 2020
924a084
Merge pull request #514 from MasterBel2/master
gajop Jul 11, 2020
6d300bf
enforce unique teamID, close https://github.com/beyond-all-reason/BYA…
gajop Sep 13, 2020
c3d6f2e
misc:
gajop Oct 2, 2020
3c947b3
StartScript with Side and AIOptions
rlcevg Oct 5, 2020
d388d74
AIOptions window
rlcevg Oct 6, 2020
9ca626c
AI side selection and gameConfig.skirmishDefault.AIOptionsEnabled option
rlcevg Oct 6, 2020
1d8bbd2
Remove Side from AIOptions
rlcevg Oct 9, 2020
3005b90
Merge pull request #516 from rlcevg/chobby_side
gajop Oct 10, 2020
39b03e7
close https://github.com/Spring-Chobby/Chobby/issues/517 : give AIs a…
gajop Oct 25, 2020
405f186
- try to prevent the client from forcing the playerID too many times …
gajop Oct 25, 2020
80e67d2
Merge branch 'master' into syncMerge
GoogleFrog Nov 4, 2020
01f81b0
SAIDPRIVATE can activate chat panel and tab on gameConfig.sayPrivateS…
Beherith Nov 6, 2020
8d46851
Merge pull request #518 from Beherith/master
gajop Nov 6, 2020
6610447
Add option to shorten download names
Beherith Nov 25, 2020
bfe6993
Add faction selector
rlcevg Nov 29, 2020
019c45e
Merge pull request #520 from rlcevg/chobby_faction
gajop Nov 30, 2020
91a0b4b
typo
gajop Nov 30, 2020
558a0fc
don't show side if none is assigned
gajop Nov 30, 2020
3ea03a2
fix codex.lua
gajop Nov 30, 2020
cccc769
Add 'Show AIOptions' toggle. Separate button for AIOptions in ai_list…
rlcevg Dec 7, 2020
cf7036c
Automatically retry downloads up to WG.Chobby.Configuration.download…
Beherith Dec 9, 2020
55ed83d
Create an Integer popup window type
Beherith Dec 9, 2020
7df1ef4
Enable filtering of redundant empty hosts
Beherith Dec 9, 2020
6840470
Make travis not cry
Beherith Dec 10, 2020
4f13c8f
white space
Beherith Dec 10, 2020
be5c79c
Tooltips to battle filters
Beherith Dec 10, 2020
2e7c238
Hide AIOptions button in multiplayer
rlcevg Dec 12, 2020
f213881
Merge pull request #521 from rlcevg/aioptions2
gajop Dec 13, 2020
d58721f
- remove modifications in list_window.lua
gajop Dec 13, 2020
2335a18
Merge branch 'master' into behe-merge
gajop Dec 13, 2020
9ef545c
Merge pull request #522 from Beherith/master
gajop Dec 17, 2020
3bfc410
fix uber's friend list and make it not conflict with ZK's implementation
gajop Dec 19, 2020
cc4d64a
Merge branch 'master' into syncMerge
gajop Dec 19, 2020
2f8b65f
Merge remote-tracking branch 'zkfork/master' into syncMerge
gajop Dec 19, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions LuaMenu/configs/gameConfig/zk/ModOptions.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

-- $Id: ModOptions.lua 4642 2009-05-22 05:32:36Z carrepairer $


Expand Down Expand Up @@ -83,7 +82,7 @@ local options = {
{ key='none', name = "Off", desc = 'Turns commsharing off.' },
},
},

{
key = "noelo",
name = "No Elo",
Expand Down Expand Up @@ -563,7 +562,6 @@ local options = {
-- -- }
-- },
-- },

{
key = 'chicken',
name = 'Chicken',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@
},
"hoverraid": {
"role": ["raider"],
"attribute": ["melee","scout"],
"attribute": ["melee","scout"],
"pwr_mod": 0.9,
"pwr_mod": 0.8,
"limit": 20,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,4 +190,4 @@
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -376,4 +376,4 @@
}
}
}
}
}
Binary file added LuaMenu/images/settings.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
42 changes: 21 additions & 21 deletions LuaMenu/widgets/api_battle_proposal_handler.lua
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,15 @@ local function CheckCancelProposal(message)
})
end
currentProposal = nil

return true
end

local function GetProposalFromString(message)
if string.sub(message, 1, 1) ~= "!" or string.sub(message, 1, 14) ~= "!proposebattle"then
return false
end

local data = message:split(" ")
local paramValues = {}
for i = 1, #data do
Expand All @@ -69,14 +69,14 @@ local function GetProposalFromString(message)
end
end
end

local proposalValues = {
minelo = paramValues[1] or false,
maxelo = paramValues[2] or false,
minsize = math.max(1, math.floor(paramValues[3] or 4)),
}
proposalValues.maxsize = math.max(proposalValues.minsize, paramValues[4] or 8)

return true, proposalValues
end

Expand All @@ -91,12 +91,12 @@ local function CheckProposalSent(prop)
})
return false
end

currentProposal = prop

currentProposal.currentPlayers = 1
currentProposal.acceptedPlayers = {}

Chotify:Post({
title = "Battle Proposal",
body = "New proposal sent.\nUse !endproposal to cancel.",
Expand All @@ -121,17 +121,17 @@ function BattleProposalHandler.AddClickableInvites(userName, preMessage, message
if myProposal and CheckCancelProposal(message) then
return onTextClick, textTooltip
end

local hasProposal, prop = GetProposalFromString(message)
if not hasProposal then
return onTextClick, textTooltip
end

local myInfo = WG.LibLobby.lobby:GetMyInfo()
local effectiveSkill = math.max(myInfo.skill or 1500, myInfo.casualSkill or 1500)
local skillTooLow = (prop.minelo and effectiveSkill < prop.minelo)
local skillTooHigh = (prop.maxelo and effectiveSkill > prop.maxelo)

if myProposal then
if skillTooLow then
Chotify:Post({
Expand All @@ -146,13 +146,13 @@ function BattleProposalHandler.AddClickableInvites(userName, preMessage, message
})
return onTextClick, textTooltip
end

CheckProposalSent(prop)
end

local startIndex = string.len(preMessage)
local endIndex = startIndex + string.len(message) + 1

if not (skillTooLow or skillTooLow) then
onTextClick[#onTextClick + 1] = {
startIndex = startIndex,
Expand All @@ -171,7 +171,7 @@ function BattleProposalHandler.AddClickableInvites(userName, preMessage, message
}
}
end

local proposalString
if skillTooLow then
proposalString = "Your skill rating is too low for this proposal."
Expand All @@ -191,7 +191,7 @@ function BattleProposalHandler.AddClickableInvites(userName, preMessage, message
end
proposalString = proposalString .. "\nA battle will open when " .. prop.minsize .. " players accept."
end

textTooltip[#textTooltip + 1] = {
startIndex = startIndex,
endIndex = endIndex,
Expand Down Expand Up @@ -223,7 +223,7 @@ function DelayedInitialize()
if (currentProposal.minelo and effectiveSkill < currentProposal.minelo) or (currentProposal.maxelo and effectiveSkill > currentProposal.maxelo) then
return
end

if currentProposal.battleHostComplete then
lobby:BattleProposalBattleInvite(userName, currentProposal.battleID, currentProposal.password)
Chotify:Post({
Expand All @@ -232,14 +232,14 @@ function DelayedInitialize()
})
return
end

currentProposal.currentPlayers = currentProposal.currentPlayers + 1
currentProposal.acceptedPlayers[userName] = true
Chotify:Post({
title = "Battle Proposal",
body = userName .. " accepted.\nPlayers: " .. currentProposal.currentPlayers .. "/" .. currentProposal.minsize,
})

if currentProposal.currentPlayers >= currentProposal.minsize and not currentProposal.openingBattleName then
-- Check for users leaving
for acceptedUserName, _ in pairs(currentProposal.acceptedPlayers) do
Expand All @@ -249,7 +249,7 @@ function DelayedInitialize()
currentProposal.currentPlayers = currentProposal.currentPlayers - 1
end
end

-- Host the battle
if currentProposal.currentPlayers >= currentProposal.minsize then
WG.BattleRoomWindow.LeaveBattle()
Expand All @@ -272,7 +272,7 @@ function DelayedInitialize()
if battleInfo.title ~= currentProposal.openingBattleName then
return
end

for acceptedUserName, _ in pairs(currentProposal.acceptedPlayers) do
lobby:BattleProposalBattleInvite(acceptedUserName, battleID, currentProposal.password)
end
Expand All @@ -294,7 +294,7 @@ function DelayedInitialize()
body = "Joining " .. userName .. "'s battle",
})
end

lobby:AddListener("OnBattleProposalResponse", OnBattleProposalResponse)
lobby:AddListener("OnJoinedBattle", OnJoinedBattle)
lobby:AddListener("OnBattleProposalBattleInvite", OnBattleProposalBattleInvite)
Expand Down
4 changes: 2 additions & 2 deletions LuaMenu/widgets/api_chili.lua
Original file line number Diff line number Diff line change
Expand Up @@ -107,14 +107,14 @@ function widget:DrawScreen()
gl.PopMatrix()
end
gl.Color(1,1,1,1)

if loadFade then
local vsx,vsy = gl.GetViewSizes()
gl.Color(1,1,1,loadFade)
gl.Texture(loadTex)
gl.TexRect(0,0,vsx,vsy)
gl.Color(1,1,1,1)

if not hideInterface then
loadFade = loadFade - 0.18
if loadFade <= 0 then
Expand Down
12 changes: 11 additions & 1 deletion LuaMenu/widgets/api_download_handler.lua
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ local externalFunctions = {}
local listeners = {}
local wrapperFunctions = {}

local downloadQueue = {} -- {name, fileType, priority, id}
local downloadQueue = {} -- {name, fileType, priority, id, retryCount}
local downloadCount = 0
local topPriority = 0
local removedDownloads = {}
Expand Down Expand Up @@ -191,6 +191,15 @@ local function RemoveDownload(name, fileType, putInRemoveList, removalType)
end
downloadQueue[index] = downloadQueue[#downloadQueue]
downloadQueue[#downloadQueue] = nil

if putInRemoveList and removalType == "fail" and WG.Chobby.Configuration.downloadRetryCount then
local lastFailed = removedDownloads[#removedDownloads]
if lastFailed.retryCount < WG.Chobby.Configuration.downloadRetryCount then
Spring.Echo("Downloading of ", name, fileType, "failed, retryCount=", lastFailed.retryCount)
lastFailed.retryCount = lastFailed.retryCount + 1
externalFunctions.RetryDownload(name,fileType)
end
end
requestUpdate = true
return true
end
Expand Down Expand Up @@ -225,6 +234,7 @@ function externalFunctions.QueueDownload(name, fileType, priority)
fileType = fileType,
priority = priority,
id = downloadCount,
retryCount = 0,
}
requestUpdate = true
CallListeners("DownloadQueued", downloadCount, name, fileType)
Expand Down
2 changes: 1 addition & 1 deletion LuaMenu/widgets/api_limit_fps.lua
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ function widget:AllowDraw()
framesInBuffer = oldFramesInBuffer + 1
return true
end

return false
end

Expand Down
Loading