-
Notifications
You must be signed in to change notification settings - Fork 125
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
Installation Bug #38
Comments
When I tried to run a TravianZ (locally, using Docker) I had similar problems but I don't remember how I solved it. At first glance, I'd say it's related to missing libraries or wrong versions of PHP/MySQL. Try to google that error, for example, I found this SO page that might be helpful: https://stackoverflow.com/questions/25281467/fatal-error-call-to-undefined-function-mysqli-connect |
By any chance do you remember how you run the project, @andreapavoni ? |
@mazzespazze I've just tried once (around 10-12 months ago) to make some tests and see how it worked, I remember I've used The only things I remember are related to versions of PHP/MySQL that should match in some way, because OT note: I've started my own implementation of Travian game from scratch. I've initially started it in Elixir months ago (that's why I tried to run TravianZ locally), but then I got bored because it wasn't challenging enough and stopped. Lately I've started again, this time with Golang (even Rust was an excellent candidate, but it would have required too much effort to build a web app like this). The project's code is not public yet, but I already wrote 80% of the main domain logic (battle algorithm following Kirilloid's notes, buildings and upgrades, maps). It still needs db persistence (which will probably be a simple SQLite) and a web ui, but at least it has a decent test coverage and it will be easy to run/deploy for everyone, everywhere. |
@andreapavoni if you plan on having an open source, please feel free to include me as well. I don't code in Elixir/RUST, mainly Java/Python, but I'm in DevOps since 5y. And I don't mind to test the UX out. It would be cool to have a complete docker image for travian |
@andreapavoni found this project https://hub.docker.com/r/smied/travianz. |
@mazzespazze sure! I'll open source it when it's at least decently presentable in terms of game engine :-P I'm a backender, so I already know I'm going to suffer for the UI part, but I'm planning to keep it dead simple (using hexagons, like in 2006!) and without the gold/plus stuff (monetization is not my primary goal, if it will get a decent user base I'll ask for donations or some kind of low fee). Regarding the docker image you linked, I never heard of it. I've seen the user that uploaded that image has also published other projects, I'm not sure if they're somewhat legit or backdoored. Finally, regarding the error, it's weird you didn't get any error or logs somewhere, have you tried to check the browser inspector? maybe some error is hidden. |
Probably missing the extension You can try a docker compose I've made for easy installation. |
I installed it on nginx, try it here: https://trav.bimlind.com |
@Bimbimz thank you, I'm seeing there's some people there, maybe I'll join to check it out. I have a working local installation too (with two forks, to check differences). Meanwhile I'm continuing development on my Go version. |
Thanks for joining. I noticed almost no bugs happening, except for building the placement of intersections and walls, it gets built in a slot when you click on it. |
Hey @Bimbimz, I'm writing here because I can't find another way to contact you and I'm not sure it's a bug of your server or it's also present in the main code here (if that's the case, I'll open a new issue). It happened 2 times, and it's weird because the other villages I've conquered on this server have never behaved like that, but I remember you did some changes/fixes to the server code:
|
Bug solved |
Hi bro.. this is my comment after 1.5 years from the previous comment. |
expected behaviour
Installing the game engine without troubles
incorrect behaviour
After running the php project and select step 3 "Create" the server ends up in the following error:
the operating system & version
Ubuntu 20.04, x86_64
PHP version on the server
PHP 7.4.3
MySQL / MariaDB version on the server
8.0.31-0ubuntu0.20.04.2
The text was updated successfully, but these errors were encountered: