CptSky Posted December 12, 2022 Posted December 12, 2022 (edited) Around 2013/2014, I started an emulator for Era of Faith, before forking it and releasing it as COPS v7 Emulator (for Conquer Online). This is my original emulator for EoF, if anyone ever wants to work on that game.OverviewFaith Emulator is a C++ emulator of the MMORPG Era of Faith.The emulator is coded in C++ and uses Qt4 / Qt5.N.B. The QMySQL driver must be build to use the QSQL module properly.FeaturesFaith Emulator is currently released as a base source. Most functionalities are not implemented or completed. However, there is some code to log into the game, talk to NPCs, walk around, etc. Additional code could be backported from COPS v7 Emulator, and adapted for EoF.Downloadhttps://mega.nz/file/j1twRIDA#9uDz89-PBgD3J0HsZMv14_VoDmC3QlC-hpBjqBBMhB0Screenshots Edited December 12, 2022 by CptSky Quote
Spirited Posted December 12, 2022 Posted December 12, 2022 Awesome! Thanks for sharing this. I might go in and add the screenshots you shared to a new pinned thread, if you don't mind. Quote
CptSky Posted December 12, 2022 Author Posted December 12, 2022 Awesome! Thanks for sharing this. I might go in and add the screenshots you shared to a new pinned thread, if you don't mind.No feel free! And if you need to additional info (i.e. mobs / etc), I know I still have some web archives of some pages around. Quote
danielezra Posted November 26, 2023 Posted November 26, 2023 Thank you very much, is there a guide how to run that emulator? Quote
AFRIAT Posted July 22, 2024 Posted July 22, 2024 amazing work but i cant run this emulator in qt 5 with qmysql, can i have lil help with how to run it? Quote
Spirited Posted July 23, 2024 Posted July 23, 2024 amazing work but i cant run this emulator in qt 5 with qmysql, can i have lil help with how to run it?Are you getting an error? What's holding you up from running it? Quote
AFRIAT Posted July 31, 2024 Posted July 31, 2024 amazing work but i cant run this emulator in qt 5 with qmysql, can i have lil help with how to run it?Are you getting an error? What's holding you up from running it?Maybe i didnt install qmysql right?im using linux mint, first time dealing with qt stuff, im a web js programmer.im getting this erorr: Quote
Spirited Posted August 1, 2024 Posted August 1, 2024 amazing work but i cant run this emulator in qt 5 with qmysql, can i have lil help with how to run it?Are you getting an error? What's holding you up from running it?Maybe i didnt install qmysql right?im using linux mint, first time dealing with qt stuff, im a web js programmer.im getting this erorr:Oh! That looks like it's probably a configuration issue. There's probably a file or setting you need to set for the username and password for MySQL. Quote
AFRIAT Posted August 1, 2024 Posted August 1, 2024 Are you getting an error? What's holding you up from running it?Maybe i didnt install qmysql right?im using linux mint, first time dealing with qt stuff, im a web js programmer.im getting this erorr:Oh! That looks like it's probably a configuration issue. There's probably a file or setting you need to set for the username and password for MySQL.first thank you very much for the help.Alright, what i did:1. installed QT -> open project -> cmake .pro and make to build everything.2.installed mysql module and check if it running with: sudo service mysql status -> getting "Active: active (running)".3.change the field - SERVER_IP to my IP and SQL_PWD to root password -> inside settings.cfg file.4.tried to run ./Faith\ Emulator still getting the same error above, nothing changed.ps i did try to log in to mysql server to see if user info correct and it open MySQL monitor.help PLOX XD Quote
CptSky Posted August 3, 2024 Author Posted August 3, 2024 The QMySQL driver seems to be loaded just fine, but maybe it is not compatible with the MySQL server you run? If the connector was too old. Maybe you can break in the code doing the connection to see the exact result/error returned.Otherwise, check also for SSL settings in the connection string. I think it is mandatory on modern connectors, and wasn’t back in the days. Quote
CptSky Posted September 16, 2024 Author Posted September 16, 2024 To debug the MySQL connection issues, I strongly suggest modifying bool Database::connect(const char* aHost, const char* aDbName, const char* aUserName, const char* aPassword); to either log itself, or optionally return a QSqlError. If the open() call fails, you can query lastError() to retrieve it. It should provide more information. ------------------------ Also, for the SSL settings, you may need to edit the function too look like: bool Database :: connect(const char* aHost, const char* aDbName, const char* aUserName, const char* aPassword) { ASSERT(aHost != nullptr && aHost[0] != '\0'); ASSERT(aDbName != nullptr && aDbName[0] != '\0'); ASSERT(aUserName != nullptr && aUserName[0] != '\0'); ASSERT(aPassword != nullptr); if (mConnection.isOpen()) { mConnection.close(); } mConnection.setHostName(aHost); mConnection.setDatabaseName(aDbName); mConnection.setUserName(aUserName); mConnection.setPassword(aPassword); mConnection.setConnectOptions("MYSQL_OPT_SSL_MODE=SSL_MODE_DISABLED"); // changed line return mConnection.open(); } But it seems to require Qt6. So for Qt5, you may need to configure certificates for your MySQL server. See the SSL options here. Quote
AFRIAT Posted October 29, 2024 Posted October 29, 2024 alright i will install Qt6 modify those lines and try again. thanks! Quote
AFRIAT Posted October 29, 2024 Posted October 29, 2024 btw this emulator is like game engine with era of faith assest? im not sure i understood what this emulator can do. i wish i had the game assest or even the code base, so i can make a server or new stuff with it. Quote
Spirited Posted November 1, 2024 Posted November 1, 2024 On 10/29/2024 at 4:08 AM, AFRIAT said: btw this emulator is like game engine with era of faith assest? im not sure i understood what this emulator can do. i wish i had the game assest or even the code base, so i can make a server or new stuff with it. This is just the server. Making a custom client would be much more involved. Quote
gaga Posted January 7 Posted January 7 the reason why database loaded failed is that a single map associated with multiple IDs, and the mMAP was proceed, only one ID is saved into mMAP, others are lost. you shall modify the logic for loading map data from 'mMAPs' to 'maps'. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.