Re: Tera API (node.js) and Launcher with pacher for patch 92/100
@hsdn i had a look on the 100.02 VM, then i made my 3 machines, DBs, WEB, Engine so thanks a lot for your work. Actually i'm having a look in the registration process. as i prefer to set password encrypted into the MYSQL Database while registering the accounts, is possible to include a "Mail Verification" process, and a "Reset Password" avoiding completely to make a website programming code for those 2 things?
Thanks in advance!
Re: Tera API (node.js) and Launcher with pacher for patch 92/100
These features have not been implemented.
Maybe this will be added in the future along with the integration of the ingame store.
Re: Tera API (node.js) and Launcher with pacher for patch 92/100
Quote:
Originally Posted by
hsdn
These features have not been implemented. Maybe this will be added in the futures along with the integration of the ingame store.
You Are The Best.
Re: Tera API (node.js) and Launcher with pacher for patch 92/100
Tera API has been updated
Changes:
- Added the initial benefits that will be assigned to the user on registration.
- Added a separate config file for configuring premium items and benefits.
- Added integration with FCGI Gateway and Box System.
- Minor code fixes (sql transactions, code optimization).
Installation:
- Download and replace all files of the src and config directories.
- Setup Box and FCGI Gateway from this: https://forum.ragezone.com/f797/tera...erver-1206086/
- If needed, customize premium items in the file config\chronoScroll.js.
- Add new config parameters to your .env (change benefits if needed):
Code:
# Enable a use of the FCGI Gateway Web Server to send requests when performing
# certain actions, such as: instant benefit activation, sending premium items, etc.
API_PORTAL_FCGI_GW_WEBAPI_ENABLE=true
# URL address to connect to the FCGI Gateway Web Server
API_PORTAL_FCGI_GW_WEBAPI_URL="http://127.0.0.1:8020"
# Set the initial benefits that will be assigned to the user on registration.
# The value indicates the number of days the benefit is valid.
# Set 0 as value or remove/comment parameter to disable the benefit.
API_PORTAL_INITIAL_BENEFIT_ID_533_DAYS=30 # RU VIP
API_PORTAL_INITIAL_BENEFIT_ID_534_DAYS=3600 # RU Founder
API_PORTAL_INITIAL_BENEFIT_ID_1000_DAYS=3600 # PC Cafe
- If you don't want to use FCGI integration, set value of API_PORTAL_FCGI_GW_WEBAPI_ENABLE parameter to false.
- Restart tera-api.
Re: Tera API (node.js) and Launcher with pacher for patch 92/100
Works like a charm! You are great!
Re: Tera API (node.js) and Launcher with pacher for patch 92/100
UPD: Uploaded minor update with fixes (prevents API crash if FCGI is not available).
Re: Tera API (node.js) and Launcher with pacher for patch 92/100
Is possible to make https and cloudflare proxy work with this api?
Re: Tera API (node.js) and Launcher with pacher for patch 92/100
Quote:
Originally Posted by
Lord Moon
Is possible to make https and cloudflare proxy work with this api?
Yes.
Also you need to enable option LOG_IP_ADDRESSES_FORWARDED_FOR in your .env if you want to log the real client IP addresses.
Re: Tera API (node.js) and Launcher with pacher for patch 92/100
hello @hsdn
i'm experiencing a minor issue. I refer to the way that the APIs check if the server is online or not. in most scenarios, if you install the server in a Windows VM that has directly the public IP available without NAT or Router Firewall it works. My scenario is different as i don't expose directly windows or linux servers on the internet.
To let you understand:
Internet -> Firewall ->VM
Public IP NAT
so my internal network differs from the public IP declared into the MysqlDatabase.
this cause the APIs to try exit the firewall and be back on the firewall wan port exposed, and the firewall will not allow such thing, on the other hand in the DB i must put the PUBLIC IP to let the client connect. Is there a way to include the IP To Check inside the .env config file to let handle most complex scenarios?
Thanks in Advance.
Re: Tera API (node.js) and Launcher with pacher for patch 92/100
Quote:
Originally Posted by
hsdn
Yes.
Also you need to enable option LOG_IP_ADDRESSES_FORWARDED_FOR in your .env if you want to log the real client IP addresses.
I did that and now i get the error 274 (11): ini error
Re: Tera API (node.js) and Launcher with pacher for patch 92/100
Quote:
Originally Posted by
Lord Moon
I did that and now i get the error 274 (11): ini error
Check api log. You need use https:// instead of http:// for launcherMain and http:// for launcher_mask (https not work on this).
Re: Tera API (node.js) and Launcher with pacher for patch 92/100
Is it possible to add the ability to use more than just one language? Maybe add a selector that can be enabled and if enabled it checks if tw ru kor etc DC files and then launches using those languages?
Re: Tera API (node.js) and Launcher with pacher for patch 92/100
Quote:
Originally Posted by
vileninja
Is it possible to add the ability to use more than just one language? Maybe add a selector that can be enabled and if enabled it checks if tw ru kor etc DC files and then launches using those languages?
if HSDN launcher uses the vanilla launcher, its fairly easy, how I did on my side was just to create a function that will modify the global variable containing the language string and modifies it through buttons that calls this function, by exemple in the launcher's HTML:
<button onclick="change_language('EUR');return false">EUR</button>
<button onclick="change_language('FRA');return false">FRA</button>
<button onclick="change_language('GER');return false">GER</button>
<button onclick="change_language('RUS');return false">RUS</button>
And in the JS functions_launcher.js:
function change_language(lan) {
language = lan;
}
It can be made a better way ofc.
Re: Tera API (node.js) and Launcher with pacher for patch 92/100
Quote:
Originally Posted by
vileninja
Is it possible to add the ability to use more than just one language? Maybe add a selector that can be enabled and if enabled it checks if tw ru kor etc DC files and then launches using those languages?
Currently, the language selector is available in QA mode.
https://i.imgur.com/yEg0Iu4.png
In future versions, perhaps this will be added to the main launcher window.
Re: Tera API (node.js) and Launcher with pacher for patch 92/100
@hsdn
as far the implementation of recaptcha is quite Easy,
create the google account and declare the fqdn hostname, using recapcha v3, enabling all the 3 options in the google page, using correctly the .env file to enable that feature, setting the 2 keys correctly
to me that function is still not working :D
Quite Weird as i triple checked all