CptSky Posted December 12, 2022 Share 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 Link to comment Share on other sites More sharing options...
Spirited Posted December 12, 2022 Share 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 Link to comment Share on other sites More sharing options...
CptSky Posted December 12, 2022 Author Share 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 Link to comment Share on other sites More sharing options...
danielezra Posted November 26, 2023 Share Posted November 26, 2023 Thank you very much, is there a guide how to run that emulator? Quote Link to comment Share on other sites More sharing options...
AFRIAT Posted July 22 Share Posted July 22 amazing work but i cant run this emulator in qt 5 with qmysql, can i have lil help with how to run it? Quote Link to comment Share on other sites More sharing options...
Spirited Posted July 23 Share Posted July 23 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 Link to comment Share on other sites More sharing options...
AFRIAT Posted July 31 Share Posted July 31 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 Link to comment Share on other sites More sharing options...
Spirited Posted August 1 Share Posted August 1 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 Link to comment Share on other sites More sharing options...
AFRIAT Posted August 1 Share Posted August 1 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 Link to comment Share on other sites More sharing options...
CptSky Posted August 3 Author Share Posted August 3 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 Link to comment Share on other sites More sharing options...
CptSky Posted September 16 Author Share Posted September 16 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 Link to comment Share on other sites More sharing options...
AFRIAT Posted October 29 Share Posted October 29 alright i will install Qt6 modify those lines and try again. thanks! Quote Link to comment Share on other sites More sharing options...
AFRIAT Posted October 29 Share Posted October 29 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 Link to comment Share on other sites More sharing options...
Spirited Posted November 1 Share Posted November 1 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 Link to comment Share on other sites More sharing options...
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.