Hi all,
I'm working on 64x64 graphics in OTC (Mehah). Apart from upscaling the graphics I've made the following changes:
src/client/creature.cpp
Change:
To:
To have the creature's name displayed in the right position & compiled. Then I've changed in
otclient/data/setup.otml
sprite-size: 32
to:
sprite-size: 64
So that the graphics is displayed correctly in 64x64 rather than 32x32.
I, however, have an issue with stacking items on the ground (parcels, boxes, whatever) & creatures walking on them seems to be a bit out of place. Example:
The table is also broken:
Items lying on a counter:
& creature (character) standing on the parcels:
So, I know that the positioning of the items lying higher is incorrect & should be upscaled as I use higher-res graphics but couldn't find the right source part nor any fix on the forum for the problem.
Any help will be appreciated!
I'm working on 64x64 graphics in OTC (Mehah). Apart from upscaling the graphics I've made the following changes:
src/client/creature.cpp
Change:
C++:
const auto& creatureOffset = Point(16 - getDisplacementX(), -getDisplacementY() - 2) + getDrawOffset();
To:
C++:
const auto& creatureOffset = Point(32 - getDisplacementX(), -getDisplacementY() - 4) + getDrawOffset();
To have the creature's name displayed in the right position & compiled. Then I've changed in
otclient/data/setup.otml
sprite-size: 32
to:
sprite-size: 64
So that the graphics is displayed correctly in 64x64 rather than 32x32.
I, however, have an issue with stacking items on the ground (parcels, boxes, whatever) & creatures walking on them seems to be a bit out of place. Example:
The table is also broken:
Items lying on a counter:
& creature (character) standing on the parcels:
So, I know that the positioning of the items lying higher is incorrect & should be upscaled as I use higher-res graphics but couldn't find the right source part nor any fix on the forum for the problem.
Any help will be appreciated!