Skip to content

Commit 2206d63

Browse files
jordanhoaremehahSkullzOTSluanluciano93MUN1Z
authored
feat: merge upstream (#3)
* perf: Drawpool 3.1 more stability in FPS * setting m_effectAlpha, m_missileAlpha to 1.f * fix: display density on mapview * feat: hud scale * fix: Interface Anchors (mehah#862) * feat: support directx * improve: use egl v3 * small change in gc * fix: memory leak in controller * improve: organization of the project structure * add new config to draw covered things There are projects where this system doesn't work very well, so if your project is one of those, just set it to true to fix the tiles that aren't being drawn. * feat: update background image and startup sound to use 13.40 cip files. Adjustments in options buttons order and logout button icon. (mehah#865) * update UIGraph (need test) * fix shader warning * fix: console error due to shaders * draw-covered-things to false Note: Setting false will not draw objects that the client understands are covered. If for some reason a tile is not being drawn because your game is custom, set this property to true and this issue will be resolved. * baseline updated (update your vcpkg) git pull * Revert "baseline updated (update your vcpkg)" This reverts commit 8dda995. * fix: mehah#867 * feat: extractTexture in framebuffer, Arch SS2 by default and cleanup * fix: inverted texture in extractTexture * html: support tag img * perf: reducing locking, thus increasing performance a little. * fix draw shader * prevent crash in static text * improve: add lua call protection * perf: improve propagateOnMouseMove * fix: bot item ondrop and analyzer loot channel (mehah#887) * fix: outfit size , prevent ERROR: invalid thing (mehah#884) Co-authored-by: Rodrigo Paixão <god.rodrigo@hotmail.com> * improve: HTTP login error handling to display login.php error messages (mehah#886) * fix: compilation error on some pcs * feat: full cyclopedia module (mehah#868) * fix: game_store bugs. fix: mehah#873 (mehah#874) * feat: Minimap GM teleport ( ctrl +shift + click on minimap) (mehah#885) Co-authored-by: Luan Luciano <luanluciano@outlook.com> * support "Mage" vocation (mehah#882) several OT servers merge MS/ED vocation into a Mage vocation having the best features of both MS and ED. Without this fix, on those servers, vBot would constantly error out with Error: (...) concatenat voc: a nil value * fix (mehah#900) * improve parseOpenContainer and fix error with decoration kit (mehah#890) * fix: optional display rarity colors in items . feature GameColorizedLootValue 12.00 (mehah#896) * fix: crash getItems (mehah#892) * looting blacklist (mehah#881) When "loot every item" is off, it will loot everything in the loot list. When "loot every item" is on, it will loot everything that is not in the loot list, effectively making the loot list a blacklist when "loot every item" is on. * Fix black and red squares behaviors (mehah#902) * Fix squares: - Set black squares color to 1 instead of 0 so it's not treated as alpha - Fix creaturesMark logic so red squares don't disappear when attacking and black squares show when attacked * feat: display tier UI (GameThingUpgradeClassification) (mehah#895) * feat: Vips Groups | fix issue: mehah#730 (mehah#908) * fix: spacing for align bottom vertical layouts (mehah#909) * Fix: mehah#901 --------- Co-authored-by: Renato Machado <mehahx@gmail.com> Co-authored-by: SkullzOTS <86809689+SkullzOTS@users.noreply.github.com> Co-authored-by: Luan Luciano <luanluciano@outlook.com> Co-authored-by: Felipe Muniz <felipe.silva@virtus.ufcg.edu.br> Co-authored-by: Rodrigo Paixão <god.rodrigo@hotmail.com> Co-authored-by: kokekanon <114332266+kokekanon@users.noreply.github.com> Co-authored-by: divinity76 <divinity76@gmail.com> Co-authored-by: divinity76 <hans@loltek.net> Co-authored-by: OT Archive <112215823+OTArchive@users.noreply.github.com> Co-authored-by: Marcin Jałocha <nekiro.dev@gmail.com>
1 parent aa3411b commit 2206d63

File tree

2,317 files changed

+25058
-2135
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,317 files changed

+25058
-2135
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ static/
2424
[Oo]bj/
2525
cmake-build-*/
2626
vcpkg_installed/
27+
vc17/
2728

2829
# MSTest test Results
2930
[Tt]est[Rr]esult*/

README.md

+45-29

data/images/background.png

4.03 MB
3.52 KB
6.37 KB
3.38 KB
6.84 KB
3.26 KB
6.89 KB
3.58 KB
2.96 KB
6.79 KB
3.39 KB
6.88 KB
3.63 KB
7.41 KB
3.09 KB
7.07 KB

data/images/game/cyclopedia/off.psd

42.2 KB

data/images/game/cyclopedia/on.psd

75.7 KB
1.48 KB
1.14 KB
326 Bytes
944 Bytes
673 Bytes
637 Bytes
1.02 KB
586 Bytes
1.47 KB
1.39 KB
315 Bytes

data/images/inventory/tiers-strip.png

265 Bytes
3.14 KB
3.27 KB
3.09 KB
3.14 KB
2.48 KB

data/images/topbuttons/logout.png

188 Bytes

data/images/topbuttons/viplist.png

-493 Bytes

data/images/ui/backdrop-dark-grey.png

2.1 KB

data/images/ui/button-9grid-idle.png

5.96 KB
5.75 KB
931 Bytes
927 Bytes
2.12 KB

data/images/ui/button-storexp.png

2.13 KB

data/images/ui/character/ammo.png

1.1 KB

data/images/ui/character/ammo2.png

1.76 KB

data/images/ui/character/amulet.png

1.38 KB

data/images/ui/character/amulet2.png

1.87 KB

data/images/ui/character/armor.png

1.6 KB

data/images/ui/character/armor2.png

2.29 KB

data/images/ui/character/artifact.png

16.1 KB
2.17 KB

data/images/ui/character/backpack.png

2.33 KB
1.72 KB

data/images/ui/character/blank.png

206 Bytes

data/images/ui/character/boots.png

949 Bytes

data/images/ui/character/boots2.png

2.06 KB

data/images/ui/character/helmet.png

1012 Bytes

data/images/ui/character/helmet2.png

2.04 KB

data/images/ui/character/icon.png

21.7 KB

data/images/ui/character/legs.png

1.4 KB

data/images/ui/character/legs2.png

2.19 KB

data/images/ui/character/mainhand.png

1.07 KB
1.96 KB

data/images/ui/character/offhand.png

1.13 KB

data/images/ui/character/offhand2.png

2 KB
2.19 KB

data/images/ui/character/ring.png

435 Bytes

data/images/ui/character/ring2.png

1.82 KB

data/images/ui/character/rune.png

14 KB

data/images/ui/character/rune2.png

2.24 KB
1.85 KB

data/images/ui/character/slot.png

2.25 KB

data/images/ui/ditherpattern.png

147 Bytes

data/images/ui/miniborder.png

14.3 KB

data/images/ui/miniwindow_buttons.png

-50 Bytes

data/images/ui/progress-separator.png

1.63 KB

data/images/ui/rarity_blue.png

-12.4 KB

data/images/ui/rarity_gold.png

-15.2 KB
Binary file not shown.

data/images/ui/rarity_green.png

-12.5 KB

data/images/ui/rarity_grey.png

2.68 KB

data/images/ui/rarity_purple.png

-12.4 KB

data/images/ui/rarity_white.png

-12.3 KB

data/images/ui/rarity_yellow.png

2.75 KB

data/images/ui/undefined_item.png

1.82 KB

data/images/ui/widget-borderimage.png

17.1 KB

data/setup.otml

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ game
2828
diagonal-walk-speed: 3
2929

3030
render
31+
draw-covered-things: false
3132
invisible-ticks-per-frame: 75
3233
item-ticks-per-frame: 75
3334
effect-ticks-per-frame: 75

data/sounds/startup.ogg

1.43 MB
Binary file not shown.

data/styles/10-checkboxes.otui

+30
Original file line numberDiff line numberDiff line change
@@ -104,3 +104,33 @@ QtCheckBox < UICheckBox
104104

105105
$checked disabled:
106106
image-clip: 0 26 14 14
107+
108+
fakeCheckBox < UICheckBox
109+
font: cipsoftFont
110+
size: 106 23
111+
image-source: /images/ui/button
112+
image-clip: 0 0 22 23
113+
image-border: 3
114+
padding: 5 10 5 10
115+
opacity: 1.0
116+
color: #b9b9b9ff
117+
118+
$hover !disabled:
119+
color: #ffffff
120+
121+
$!checked:
122+
image-clip: 0 0 22 23
123+
124+
$hover !checked:
125+
image-clip: 0 0 22 23
126+
127+
$checked:
128+
image-clip: 0 46 22 23
129+
130+
$hover checked:
131+
image-clip: 0 46 22 23
132+
133+
$disabled:
134+
image-color: #dfdfdf88
135+
color: #dfdfdf88
136+
opacity: 0.8

data/styles/10-items.otui

+28-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,19 @@ Item < UIItem
88

99
$disabled:
1010
color: #646464
11-
11+
UIWidget
12+
id: tier
13+
size: 10 9
14+
image-source: /images/inventory/tiers-strip
15+
image-clip: 0 0 10 9
16+
image-size: 10 9
17+
anchors.top: parent.top
18+
anchors.right: parent.right
19+
phantom: true
20+
focusable: false
21+
visible: false
22+
image-smooth: true
23+
1224
MainInventoryItem < UIWidget
1325
image-source: /images/inventory/containerslot
1426
image-border: 3
@@ -180,5 +192,19 @@ MainInventoryItem < UIWidget
180192

181193
Label
182194
id: Duration
183-
anchors.fill: parent
195+
anchors.bottom: parent.bottom
196+
anchors.left: parent.left
197+
phantom: true
198+
UIWidget
199+
id: tier
200+
size: 10 9
201+
image-source: /images/inventory/tiers-strip
202+
image-clip: 0 0 10 9
203+
image-size: 10 9
204+
anchors.top: parent.top
205+
anchors.right: parent.right
206+
phantom: true
207+
focusable: false
208+
visible: false
209+
image-smooth: true
184210

mods/game_bot/default_configs/vBot_4.8/targetbot/looting.lua

+6-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ TargetBot.Looting.setup = function()
1414
UI.Container(TargetBot.Looting.onContainersUpdate, true, nil, ui.containers)
1515
ui.everyItem.onClick = function()
1616
ui.everyItem:setOn(not ui.everyItem:isOn())
17+
if ui.everyItem:isOn() then
18+
ui.labelToLoot:setText("Items to ignore")
19+
else
20+
ui.labelToLoot:setText("Items to loot")
21+
end
1722
TargetBot.save()
1823
end
1924
ui.maxDangerPanel.value.onTextChange = function()
@@ -224,7 +229,7 @@ TargetBot.Looting.lootContainer = function(lootContainers, container)
224229
for i, item in ipairs(container:getItems()) do
225230
if item:isContainer() and not itemsById[item:getId()] then
226231
nextContainer = item
227-
elseif itemsById[item:getId()] or (ui.everyItem:isOn() and not item:isContainer()) then
232+
elseif (not ui.everyItem:isOn() and itemsById[item:getId()]) or (ui.everyItem:isOn() and (not item:isContainer() and not itemsById[item:getId()])) then
228233
item.lootTries = (item.lootTries or 0) + 1
229234
if item.lootTries < 5 then -- if can't be looted within 0.5s then skip it
230235
return TargetBot.Looting.lootItem(lootContainers, item)

mods/game_bot/default_configs/vBot_4.8/targetbot/looting.otui

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@ TargetBotLootingPanel < Panel
1818

1919
BotSwitch
2020
id: everyItem
21-
!text: tr("Loot every item")
21+
!text: tr("Loot every item, except these")
2222
margin-top: 2
23+
font: small-9px
2324

2425
Label
2526
margin-top: 5

mods/game_bot/default_configs/vBot_4.8/vBot/analyzer.lua

+5-5
Original file line numberDiff line numberDiff line change
@@ -723,11 +723,10 @@ local expPerHour = function(calculation)
723723
end
724724

725725
local function add(t, text, color, last)
726-
table.insert(t, text)
727-
table.insert(t, color)
726+
local coloredText = "{" .. text .. ", " .. color .. "}"
727+
table.insert(t, coloredText)
728728
if not last then
729-
table.insert(t, ", ")
730-
table.insert(t, "#FFFFFF")
729+
table.insert(t, "{, , #FFFFFF}")
731730
end
732731
end
733732

@@ -958,7 +957,8 @@ onTextMessage(function(mode, text)
958957
local panel = console.consoleTabBar:getTabPanel(tab)
959958
local consoleBuffer = panel:getChildById('consoleBuffer')
960959
local message = consoleBuffer:getLastChild()
961-
message:setColoredText(t)
960+
message:setColoredText(table.concat(t))
961+
962962
end)
963963

964964
local function niceFormat(v)

mods/game_bot/default_configs/vBot_4.8/vBot/extras.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,7 @@ if true then
588588
guild = guild .. "..."
589589
end
590590
local voc = "?"
591-
if text:lower():find("sorcerer") then
591+
if text:lower():find("sorcerer") or text:lower():find("mage") then
592592
voc = "MS"
593593
elseif text:lower():find("druid") then
594594
voc = "ED"

0 commit comments

Comments
 (0)