Commit graph

421 commits

Author SHA1 Message Date
Renato Foot
935b97cede Add KnaryLib to RME
Signed-off-by: Renato Foot <renato@foot.com>
2022-08-29 12:48:38 +00:00
lgrossi
37ad3b4047 Simplify kmap saver to use library interfaces
We want RME code to be de-atached from flatbuffers, kmap and the kmap library. For that we've introduced a interface based library and we've implemented the interfaces in RME side (some of them were just incorporated to RME basic entities, like position).

That way we could remove a lot of boiler plate check, simplify the logics in the save and delegate some validations to the new domain objects.
2022-08-26 21:20:28 +02:00
Eduardo Dantas
eeaeb2030b Fix save kmap file 2022-08-24 02:13:20 -03:00
Eduardo Dantas
63eca8f288 Add new map files 2022-08-23 01:35:17 -03:00
Eduardo Dantas
fe00e23390 Remove some boosts and rework cmake 2022-08-22 14:33:47 -03:00
Eduardo Dantas
d6bc0e42ca Fix syntax error 2022-08-22 14:33:44 -03:00
Eduardo Dantas
5019590bfe Some changes 2022-08-19 15:10:50 -03:00
Eduardo Dantas
ee7297a037 Merge branch 'main' into add-flatbuffer-map-support 2022-08-19 14:43:29 -03:00
Eduardo Dantas
a90dea7eb5 Remove unused 2022-08-19 07:49:20 -03:00
Eduardo Dantas
3807946822 Fix conflict errors 2022-08-19 02:50:53 -03:00
Eduardo Dantas
047113ade3 Merge branch 'master' 2022-08-19 02:43:27 -03:00
Eduardo Dantas
17a7d674fe Added ItemAttributes table and move functions from .hpp to .cpp (KmapWriterfile)
Thanks @lgrossi for help to create and correct the functioning of the functions

Co-Authored-By: Lucas Grossi <34237492+lgrossi@users.noreply.github.com>
2022-08-19 01:55:39 -03:00
Eduardo Dantas
14f8e1cc27 Fixes 2022-08-18 18:15:52 -03:00
Eduardo Dantas
f39294734d Fix 2022-08-18 16:46:55 -03:00
Eduardo Dantas
2e2a39a586 Remove space 2022-08-18 15:50:52 -03:00
Eduardo Dantas
d44ee00de3 Some fix and adjustments 2022-08-18 15:50:09 -03:00
Eduardo Dantas
f9979ccb19 Add new changes 2022-08-18 12:48:29 -03:00
Eduardo Dantas
aec63e926e Fix map saving 2022-08-18 09:33:51 -03:00
Eduardo Dantas
96dfb1cce3 Add kmap saving 2022-08-18 09:05:08 -03:00
Eduardo Dantas
eeb51a9e53 Some fixes 2022-08-17 21:20:27 -03:00
Eduardo Dantas
a68b2563ec Some fixes 2022-08-17 17:43:51 -03:00
Eduardo Dantas
43602d5b56 Added flatbuffer map saving 2022-08-17 17:13:53 -03:00
Nailson
05b791ee07 Use standard min,mas,abs functions, fix compile warning. 2022-06-16 22:39:12 -03:00
gustavomb
7443c0af46
Fixing MapTabbook/wxAuiNotebook/MapTab hierarchy. (#355) 2022-06-16 22:37:12 -03:00
João Carlos Dias
bf9b5561da
Fix map display OnMouseActionClick functin logic (fix objects selection) (#17)
Resolves #13
2022-05-12 13:45:08 -03:00
Fridza
80d8925ec8
Add offset_z as an option when importing map (#387) 2022-04-02 22:10:34 -03:00
Fridza
c64a0d469e
Matching few variables to correct type (#385) 2022-04-02 22:08:54 -03:00
Danilo Pucci
579f1f47f7
fix GraphicManager::loadSpriteMetadata from trying to load invalid .dat (#384) 2022-03-03 18:41:11 -03:00
Marco Oliveira
29cb0ae6f8
Remove trailing whitespace (#376) 2022-03-03 18:36:26 -03:00
Eduardo Dantas
48fd839a24
Convert sprites ids from "nothing special" and "stairs" to client id (#11) 2022-02-27 11:46:54 -03:00
diath
8bf57e35a6
Fix build errors (#380)
- Updated the minimum required CMake version.
- Updated the minimum required C++ standard version to match the
  functions used in the code base.
- Added missing `public` visibility specifier for classes deriving from
  wxEvtHandler (DatDebugView and MainMenuBar) that is required to
  access the event table from the derived classes.
- Fixed a typo in the MainMenuBar code (`REPLACE_ITEM` =>
  `REPLACE_ITEMS`).
- Added missing ZLIB search to the CMake project (previously it was
  implicitly linked by older wxWidgets versions?).
- Fixed GLUT compatibility with newer CMake version.
- Added a new `FROM_DIP` macro that fixes wxSize scaling compatibility
  with wxWidgets <3.1.0.
- Fixed catching std::bad_cast exceptions by value instead of const
  ref.

Closes #329.
Closes #345.
Closes #371.
Closes #373.
Closes #375.
2022-02-02 18:55:27 -03:00
Nailson
c8b6179255 Update CMakeLists.txt 2021-10-03 12:47:22 -03:00
Sarah Wesker
ccef8fdd90
Fix spawntime overflowing when drawing (#362) 2021-10-02 22:42:57 -03:00
Nailson
ad6b3065ae New Replace Items dialog, allows to replace multiple items at once.
Fix: cannot undo after replacing items
2021-10-02 22:41:32 -03:00
Nailson
b7278e7c7e Switch to v3.8 ⬆️ 2021-09-20 08:34:00 -03:00
Eduardo Dantas
adef6c47c1
Change ids to clientid and organize data folder and tilesets (#6)
This only works with the canary server: https://github.com/opentibiabr/canary

Added support only for client .dat and .spr 11.00 outdated (10x), signature: data format="11" dat="0x4A10" spr="0x59E48E02"

Otb cllient 11, version 3, id 62

In addition to the ids being converted to client id (for compatibility with canary), the data folder has been completely reorganized for ease of understanding.
The organization of tilesets was also started, which will be further improved in other pulls.
2021-06-23 21:30:37 -03:00
Nailson
1cd04461eb Show some item attributes in the Item Properties window. 2021-06-16 18:41:45 -03:00
Nailson
dca66a1309 Fix items xml reader 2021-06-16 18:38:18 -03:00
Nailson
fcbbf5e364 Load improvement avoiding bad lexical cast. 2021-06-06 23:45:46 -03:00
yamaken93
6022bf797e
feat: draw creature addons and mounts (#357)
support creature outfit mounts with the lookmount xml attribute
2021-06-06 20:05:01 -03:00
gustavomb
785cbbc57b
Ignoring control characters when rendering tooltips. (#356) 2021-06-06 19:36:56 -03:00
Eduardo Dantas
e09f3e94c8
Decouple npcs from the creature class (it's create npc.xml file in the map folder) (#3)
Created the complete organization of npcs, that way, it is possible to create own files for npcs, no longer depending on being together with the monsters
this pull request was made to be worked together with the canary project: https://github.com/opentibiabr/canary

The spawns npcs is "yellow" and spawns monsters is "red" (the old)

With this change, the map will automatically create an "npc.xml" the first time it is saved.
It is possible to edit only the xml, it is not necessary to add or modify the npc by opening the editor map

Thus, there is a script for npcs, similar to how it works with old spawns
2021-05-25 00:29:12 -03:00
Evil Puncker
b3e11db2be
Added three missing liquid types (#349) 2021-04-28 23:55:47 -03:00
Nailson
b4f4af03b1 Add check to enable buttons in the Browse Field window. 2020-12-27 11:37:35 -03:00
Moisés dos Santos
b2516b8e84
fix ghost selected items in the browse field (#327) 2020-12-20 20:48:36 -03:00
gustavomb
b308ff8fe0
Building in Windows with libarchive and freeglut from vcpkg (#323)
Co-authored-by: Gustavo B <gustavomb@users.noreply.github.com>
2020-09-14 17:55:04 -03:00
Matheus Matias
362d2f324b
Formatting (#325)
*A few formatting changes to better fit the project.
2020-08-13 22:08:03 -03:00
Matheus Matias
b4c26bd644
Performance Optimization & Teleport 'Open Door' fix (#316)
*Adds a minor performance update by removing 'tooltip' allocations every time 'DrawTile' was called, this should increase the performance when moving around the map(e.g. using arrow keys when zoomed out), slow computers should benefit the most from this.
The performance increase can be seen in the comparison bellow, where I used the same map, distance from the ground and movement from a specific point to benchmark.

*Teleports should no longer have the option to 'Open Door' when right-clicking them.
2020-08-08 11:38:49 -03:00
Evil Puncker
cfe36ce5b3
license headers (#315) 2020-07-30 11:42:28 -03:00
Elime1
58c2f07a86 Fix menu not being enabled 2020-07-30 09:06:11 +02:00