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

feat: read assets from client 11+ #70

Open
wants to merge 76 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
76 commits
Select commit Hold shift + click to select a range
454990b
feat: support to client 11+ assets loading
dudantas Jan 29, 2024
4b46b5e
fix: build and other adjusts
dudantas Jan 29, 2024
892822d
fix: static library compile
dudantas Jan 29, 2024
394c4ba
fix: assets loading items and utf8 caracteres from client path
dudantas Jan 30, 2024
b78acf8
fix: some bugs related to map window
dudantas Jan 31, 2024
cf1d150
fix: transparent image background and others
dudantas Feb 3, 2024
d9f210c
fix: blit editor sprite texture
dudantas Feb 3, 2024
ce7b877
fix: solution build
dudantas Feb 3, 2024
1d2a9af
fix: path
dudantas Feb 3, 2024
0c490b7
fix dir
dudantas Feb 3, 2024
f103c85
fix: position format
dudantas Feb 3, 2024
2f4d4db
fix: ubuntu build and revert cmakelists
dudantas Feb 3, 2024
3d86658
Update CMakeLists.txt
dudantas Feb 3, 2024
2964fe2
test fix windows
dudantas Feb 3, 2024
571730b
fix: compile
dudantas Feb 3, 2024
d23fe81
fix: build static library
dudantas Feb 3, 2024
9532807
Update CMakePresets.json
dudantas Feb 3, 2024
eed7e12
fix: linux artifact
dudantas Feb 3, 2024
bfc41aa
fix: 64x64 npcs not being rendered properly
phacUFPE Jun 21, 2024
e79dfbc
refactor: update some remere name to canary
phacUFPE Jun 21, 2024
de29ac6
fix: houses brush list not loading
phacUFPE Jun 24, 2024
06fefb4
fix: open multiple maps with same otbm version
phacUFPE Jun 24, 2024
6764598
Merge branch 'main' into feat-read-assets-from-client-11+
phacUFPE Jun 24, 2024
77f44d3
Code format - (Clang-format)
github-actions[bot] Jun 24, 2024
01c0144
fix: lights
phacUFPE Jun 25, 2024
1284571
Merge branch 'feat-read-assets-from-client-11+' of https://github.com…
phacUFPE Jun 25, 2024
509162c
fix: wall hooks
phacUFPE Jun 25, 2024
ccee564
fix: map tabs close
phacUFPE Jun 25, 2024
f0f897d
fix: hook item find and item hook brush name
phacUFPE Jun 25, 2024
690c731
fix: outfit offset
phacUFPE Jun 26, 2024
72a9d6b
fix: npcs direction
phacUFPE Jun 27, 2024
3f92271
fix: users npcs and monsters
phacUFPE Jun 27, 2024
64b6d19
fix: remove non existent items
phacUFPE Jun 28, 2024
610e5ad
fix: add missing item properties
phacUFPE Jun 28, 2024
d64f243
fix: crash with monsters direction to west
phacUFPE Jun 28, 2024
fb9dd4b
fix: simple and advanced item properties
phacUFPE Jun 28, 2024
4f4624d
fix: reload appearences
phacUFPE Jun 28, 2024
ad74197
fix: crash on spawn monsters where there is not valid tile
phacUFPE Jun 30, 2024
9a9b571
fix: npc spawn able to draw without valid tile
phacUFPE Jun 30, 2024
8d55401
fix: some brushes was not having the map updated
phacUFPE Jun 30, 2024
839ce20
Merge branch 'main' into feat-read-assets-from-client-11+
phacUFPE Jun 30, 2024
3761899
fix: crash on closing tabs
phacUFPE Jul 1, 2024
6a8fb0e
fix: remove unnecessary map check
phacUFPE Jul 2, 2024
9cb9732
fix: find/replace/remove on selection and refactor find item window
phacUFPE Jul 3, 2024
83e03d3
Code format - (Clang-format)
github-actions[bot] Jul 3, 2024
1900f72
fix: npcs with monster oufit crashing when looking to west
phacUFPE Jul 4, 2024
2759b07
fix: position clipboard paste
phacUFPE Jul 8, 2024
34675a7
Code format - (Clang-format)
github-actions[bot] Jul 8, 2024
55ed765
fix: comment
phacUFPE Jul 8, 2024
e499ad9
fix: zone brush not working with uppercase letters
phacUFPE Jul 10, 2024
75262f1
fix: temporary solution to add teleport destinations
phacUFPE Jul 23, 2024
2f2d866
feat: add custom attributes to simple properties window panel
phacUFPE Jul 28, 2024
f721c38
Code format - (Clang-format)
github-actions[bot] Jul 28, 2024
dafc9b3
fix: remove unnecessary comment
phacUFPE Jul 28, 2024
054f22a
fix: version modifications and removed client versions selector
phacUFPE Jul 28, 2024
253c459
Merge branch 'main' into feat-read-assets-from-client-11+
phacUFPE Aug 11, 2024
ae548ff
Merge branch 'main' into feat-read-assets-from-client-11+
phacUFPE Aug 15, 2024
6cecb10
fix: items top order
phacUFPE Aug 15, 2024
8bb084e
feat: add liquid selection into item properties window
phacUFPE Aug 15, 2024
c80dac6
Merge branch 'main' into feat-read-assets-from-client-11+
phacUFPE Aug 15, 2024
4949e7d
feat: Add possibility to use old item properties window
phacUFPE Aug 15, 2024
45e34bb
Merge branch 'feat-read-assets-from-client-11+' of https://github.com…
phacUFPE Aug 15, 2024
6bf8fb7
fix: disable door id edition when tile is not house
phacUFPE Aug 16, 2024
c208cff
Merge branch 'main' into feat-read-assets-from-client-11+
majestyotbr Aug 16, 2024
0a78aa0
fix: replaced liquid unknown with liquid none
phacUFPE Aug 17, 2024
d7ae1a9
Merge branch 'main' into feat-read-assets-from-client-11+
phacUFPE Sep 3, 2024
de117ae
fix: item brushes images
phacUFPE Oct 1, 2024
1b03d6d
Merge branch 'main' into feat-read-assets-from-client-11+
phacUFPE Oct 3, 2024
5e06489
fix: windows debug solution
phacUFPE Oct 3, 2024
891ea35
Merge branch 'main' into feat-read-assets-from-client-11+
phacUFPE Nov 18, 2024
d01adc0
fix: crash with debug build (wrong assert)
dudantas Nov 21, 2024
cb00fcf
fix: generate name for debug/release
dudantas Nov 21, 2024
49814b1
fix: build type
dudantas Nov 21, 2024
732d19d
fix: crash related to sprite width/height and std::memcpy
dudantas Nov 22, 2024
147ae62
Code format - (Clang-format)
github-actions[bot] Nov 22, 2024
76e1f55
fix: remove duplicated comment
dudantas Nov 22, 2024
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: 2 additions & 2 deletions .github/workflows/build-ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ jobs:
uses: lukka/get-cmake@main

- name: Install additional libraries
run: sudo apt-get install libasio-dev nlohmann-json3-dev libfmt-dev libxi-dev libgl1-mesa-dev libglu1-mesa-dev mesa-common-dev libxrandr-dev libxxf86vm-dev libglib2.0-dev at-spi2-core libwxgtk3.0-gtk3-dev libarchive-dev freeglut3-dev libxmu-dev libdbus-1-dev libxtst-dev
run: sudo apt-get install libasio-dev nlohmann-json3-dev libfmt-dev bison libxi-dev libgl1-mesa-dev libegl1-mesa-dev libglu1-mesa-dev mesa-common-dev libxrandr-dev libxxf86vm-dev libx11-dev libxft-dev libxext-dev libwayland-dev libxkbcommon-dev libibus-1.0-dev libasound2-dev libxmu-dev libdbus-1-dev libxtst-dev linux-libc-dev libarchive-dev libwxgtk3.0-gtk3-dev python3-distutils libxrender-dev

- name: Run CMake Cache and Build
uses: lukka/run-cmake@main
Expand All @@ -95,4 +95,4 @@ jobs:
with:
name: ${{ matrix.os }}-${{ matrix.buildtype }}
path: |
${{ github.workspace }}/remeres
${{ github.workspace }}/canary-map-editor
52 changes: 29 additions & 23 deletions .github/workflows/build-windows-solution.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,31 @@ on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
paths:
- 'src/**'
- 'source/**'
- 'cmake/**'
- 'CMakeLists.txt'
- 'CMakePresets.json'
- 'vcpkg.json'
- 'vcproj/**'
- "source/**"
merge_group:
push:
paths:
- 'src/**'
- 'source/**'
- 'cmake/**'
- 'CMakeLists.txt'
- 'CMakePresets.json'
- 'vcpkg.json'
- 'vcproj/**'
- "source/**"
branches:
- main

env:
CMAKE_BUILD_PARALLEL_LEVEL: 2
MAKEFLAGS: "-j 2"
GITHUB_WORKSPACE: ${{ github.workspace }}
VCPKG_ROOT: ${{ github.workspace }}/vcpkg
VCPKG_TRIPLET: x64-windows

jobs:
cancel-runs:
if: github.event_name == 'pull_request' && github.ref != 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.9.1
with:
access_token: ${{ github.token }}

job:
if: ${{ github.event_name == 'push' || !github.event.pull_request.draft }}
name: ${{ matrix.os }}-${{ matrix.buildtype }}
Expand All @@ -40,13 +45,6 @@ jobs:
packages: >
sccache
steps:
- name: Cancel Previous Runs
if: github.ref != 'refs/heads/main'
uses: fkirc/skip-duplicate-actions@master
with:
concurrent_skipping: 'same_content'
cancel_others: true

- name: Setup MSBuild.exe
uses: microsoft/setup-msbuild@v1.1

Expand All @@ -60,12 +58,20 @@ jobs:
./bootstrap-vcpkg.bat
./vcpkg integrate install

- name: Print useful paths
run: |
Write-Host "Workspace: $env:GITHUB_WORKSPACE"
Write-Host "Vcpkg Path: $env:GITHUB_WORKSPACE\vcpkg"
Write-Host "Triplet: ${{ matrix.triplet }}"

- name: Build project
run: msbuild.exe /p:VcpkgEnableManifest=true /p:Configuration=Release /p:Platform=x64 /p:VcpkgRoot=$env:GITHUB_WORKSPACE/vcpkg vcproj/RME.sln
env:
GITHUB_WORKSPACE: ${{ github.workspace }}
run: msbuild.exe /p:VcpkgEnableManifest=true /p:Configuration=Debug /p:Platform=x64 /p:GITHUB_WORKSPACE="$env:GITHUB_WORKSPACE" vcproj/RME.sln

- name: Upload artifacts
uses: actions/upload-artifact@main
with:
name: ${{ matrix.os }}-${{ matrix.buildtype }}
path: |
${{ github.workspace }}/vcproj/x64/${{ matrix.buildtype }}/
${{ github.workspace }}/vcproj/Project/x64/${{ matrix.buildtype }}/
8 changes: 4 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ world
*.opendb
*.vs

vcproj/
vcproj/generated/
vcproj/ipch/
vcproj/Beta Release/
Expand Down Expand Up @@ -59,7 +60,6 @@ cmake-build-debug/
*.exe
*.pdb
*.rar
vcpkg_installed/
*.ilk
remeres.exe.manifest
remeres
*.lzma
*.dat
*.manifest
9 changes: 9 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@ if(DEFINED ENV{VCPKG_DEFAULT_TRIPLET} AND NOT DEFINED VCPKG_TARGET_TRIPLET)
set(VCPKG_TARGET_TRIPLET "$ENV{VCPKG_DEFAULT_TRIPLET}" CACHE STRING "")
endif()

if(MSVC)
if(BUILD_STATIC_LIBRARY)
set(VCPKG_TARGET_TRIPLET "x64-windows-static" CACHE STRING "")
else()
set(VCPKG_TARGET_TRIPLET "x64-windows" CACHE STRING "")
endif()
endif()

set(VCPKG_FEATURE_FLAGS "versions")
set(VCPKG_BUILD_TYPE "release")

Expand Down Expand Up @@ -119,4 +127,5 @@ endif()
# *****************************************************************************
# Add source project
# *****************************************************************************
add_subdirectory(source/protobuf)
add_subdirectory(source)
5 changes: 3 additions & 2 deletions CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@
"type": "FILEPATH"
},
"VCPKG_TARGET_TRIPLET": "x64-windows-static",
"CMAKE_BUILD_TYPE": "Release",
"OPTIONS_ENABLE_SCCACHE": "ON"
"CMAKE_BUILD_TYPE": "RelWithDebInfo",
"OPTIONS_ENABLE_SCCACHE": "ON",
"BUILD_STATIC_LIBRARY": "ON"
},
"architecture": {
"value": "x64",
Expand Down
Binary file removed data/items/items.otb
Binary file not shown.
Loading
Loading