Comments (7)
Yes, you have to obtain the assets from the original game and put them in the correct directories yourself.
from otclient.
./modules/client_terminal/commands.lua: local filepath = '/things/' .. file
./modules/game_things/things.lua: datPath = resolvepath('/things/' .. filename)
./modules/game_things/things.lua: sprPath = resolvepath('/things/' .. filename)
./modules/game_things/things.lua: datPath = resolvepath('/things/' .. version .. '/Tibia')
./modules/game_things/things.lua: sprPath = resolvepath('/things/' .. version .. '/Tibia')
Why is this hard-coded like this?
from otclient.
That's intended, the files are loaded from the respective protocol version folders so that you can use it on different version servers.
from otclient.
Oh I was probably unclear. I do understand that it looks for different versions in different catalogues.
However, the path, since it starts with a "/" - it will then look on the root of the filesystem for a catalogue named "things".
I am not sure that people should or would want place a catalogue there toghether with etc, opt, dev and so on.
Would it be possible to make path relative to the binary instead?
from otclient.
It's not the filesystem root but rather PhysFS mount root, PhysFS creates a virtual filesystem of sorts that uses absolute paths as relative to the mounted PhysFS root. All you have to do is create the things directory where your client binary is.
https://www.icculus.org/physfs/
from otclient.
Oh, I have totally missunderstood then.
I guess I have to find the .dat files also and populate the catalogues too?
from otclient.
Thanks for clarifying.
I suppose this project cant really include the files due to legal reasons.
from otclient.
Related Issues (20)
- Latest OTClient doesn't work with forgotten server 1.4.1 (10.98 protocol) HOT 3
- Physfs has been moved to github
- Compiling Error HOT 1
- Many errors on OTClient log when connecting to TFS. HOT 1
- ASIO not found
- Error while compiling on windows HOT 2
- Texts and images has low resolution on macOS
- Errors during compilation HOT 1
- Debian/Ubuntu instructions on Wiki are not matching Dockerfile HOT 1
- Error compiling in Windows "LNK1104 não é possível abrir o arquivo 'zstdd.lib'" HOT 3
- where to download spr/dat files? HOT 2
- Cannot load incompatible bytecode (compiling bytecode with luajit) HOT 8
- wrong repo HOT 1
- fatal error: 'lua.hpp' file not found HOT 4
- Heys guys i have this problem, help me any? HOT 1
- Friend healer by mana potion
- Text edit focus.
- CMake Error at /opt/homebrew/Cellar/cmake/3.28.1/share/cmake/Modules/FindBoost.cmake:1841
- Just a black screen after logging to server
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from otclient.