Tera API (node.js), Shop and Launcher with patcher for patch 92/100
Tera API + In-game Shop
API and In-game Shop implementation for the TERA Online retail server (patch 92/100) on Node.js. The API consists of four independent servers (Arbiter API, Portal API, Shop API and Admin Panel) running on different ports. Support of Arbiter server API functions, authorization, privileges, VIP items/benefits, Shop, Launcher API, SLS generator, etc.
Below is how to add the French language to the Launcher:
Copy the file src\locales\launcher\en.json to src\locales\launcher\fr.json.
Copy the file public\launcher\css\buttons-en.css to public\launcher\css\buttons-fr.css.
Open .env and add the line API_PORTAL_CLIENT_REGIONS_FRA=Français and save.
Restart TeraAPI.
Make sure you have a data center DataCenter_Final_FRA.dat in your Tera Client S1Data folder.
To translate the launcher, you need to edit file src\locales\launcher\fr.json.
If you need to translate buttons, edit the file public\launcher\css\buttons-fr.css with your own images.
Blank images of the buttons available here: https://forum.ragezone.com/f797/tera...ml#post9128933
Please note that the TERA Shop and Admin Panel will remain in English. To translate the TERA Shop, you need to copy file src\locales\shop\en.json to src\locales\shop\fr.json and add "fr" language entry to the file config\admin.js. Also you need to extract the necessary XMLs from the French data center and insert it to the API database using the method described here: https://github.com/justkeepquiet/ter...ata-datasheets.
Comparison of data centers with languages:
CHN: cn
EUR: en
FRA: fr
GER: de
INT: en
JPN: jp
KOR: kr
RUS: ru
SE: se
THA: th
TW: tw
USA: en
Recommended server startup order:
Spoiler:
1. hub and hub_gw
2. Steer Server services
3. Box Server services
4. TERA API
5. REST (Nexusserver, MatchServer, XigncodeProxy)
6. TopographyServer
7. arb_gw and ArbiterServer
8. WorldServer (PartyMatching, BattleField, DungeonServer)
9. TERA Server Proxy (if used)
Launcher
Launcher for Tera Online that supports patch 92 and 100. Based on the official version of the BHS launcher that works with the TW/JP localizers. This launcher supports all the functions of automatic game update and file integrity check. For these features to work, you need to use our tera-api. Translations an English and Russian available.
Changelog:
Spoiler:
Update 30.06.2022:
Updated executable file (issue with antivirus false positives).
/tera-api/public/patch/patch/ - game client packed files (like the 1-100.cab, 1-101.cab, etc.).
/tera-api/public/patch/db/ - update database files (like the server.db.1.cab).
/tera-api/public/patch/version.ini - generated by packer version.ini placed here.
Launcher update files structure:
/tera-api/public/patch/launcher_update/ - updates for launcher (files like LauncherInstaller_1.0.1.52.exe, created by Inno Setup script).
/tera-api/public/patch/launcher_info.ini - information file of launcher update version (edit manually).
Files and folders that must be removed from the client before packing:
\$Patch
\Binaries\cookies.dat
\S1Game\GuildFlagUpload
\S1Game\GuildLogoUpload
\S1Game\ImageCache
\S1Game\Logs
\S1Game\Screenshots
\S1Game\Config\S1Engine.ini
\S1Game\Config\S1Game.ini
\S1Game\Config\S1Input.ini
\S1Game\Config\S1Lightmass.ini
\S1Game\Config\S1Option.ini
\S1Game\Config\S1SystemSettings.ini
\S1Game\Config\S1TBASettings.ini
\S1Game\Config\S1UI.ini
\Launcher.exe
\local.db
\version.ini
22-05-22
S37uP!Update
Re: Tera API (node.js) and Launcher with pacher for patch 92/100
Copy the files to the your directory. (Where? What directory?)
Run the npm install command. (How, what do i need to open to run this command?)
Copy the .env.example file to .env. (Should i Rename the file?)
Configure the parameters in the .env file.
Impport the database structure to your MySQL server.
Execute the node src/app command, or run the file tera-api.bat to start API servers.
22-05-22
hsdn
Re: Tera API (node.js) and Launcher with pacher for patch 92/100
1. Any directory, like c:\tera-api.
2. This command is available after install node.js (just open windows cmd and type cd c:\tera-api and run npm install here).
3. You can copy or just rename (this is a example file).
22-05-22
S37uP!Update
Re: Tera API (node.js) and Launcher with pacher for patch 92/100
But this is an extra api right? It has nothing to do with TeraAPI right? I mean i start the server, and after starting the server i start this API right? Edit: and on this .env file i must edit only the username and password from mysql right? or should i change all 127.0.0.1 ips to my public ip? I want it public ip so i can play with friends!
22-05-22
hsdn
Re: Tera API (node.js) and Launcher with pacher for patch 92/100
This API replaces any old Tera API on Net or Java (laragon, Tera API .NET, grails, xampp etc.).
It is All-in-One solution for game server and launcher services (like the official Tera publisher).
- - - Updated - - -
You need to run this API before start of all native/retail Tera Servers (arb_gw, arbiter, etc.).
- - - Updated - - -
Quote:
Originally Posted by S37uP!Update
But this is an extra api right? It has nothing to do with TeraAPI right? I mean i start the server, and after starting the server i start this API right? Edit: and on this .env file i must edit only the username and password from mysql right? or should i change all 127.0.0.1 ips to my public ip? I want it public ip so i can play with friends!
The Arbiter API (API_ARBITER_LISTEN_HOST) must remain on the local network (at 127.0.0.1). It is needs only for Tera Server.
The Portal API (API_PORTAL_LISTEN_HOST) is needed for user authorization and launcher operation, you must open it outside.
22-05-22
S37uP!Update
Re: Tera API (node.js) and Launcher with pacher for patch 92/100
So from now on i have to use accountdb instead of accountdb_2008 for registering accounts via website register php script right?
(API_PORTAL_LISTEN_HOST) should i put my public ip there?
22-05-22
hsdn
Re: Tera API (node.js) and Launcher with pacher for patch 92/100
Quote:
Originally Posted by S37uP!Update
So from now on i have to use accountdb instead of accountdb_2008 for registering accounts via website register php script right?
(API_PORTAL_LISTEN_HOST) should i put my public ip there?
Right.
But note: the account database structure used differs from accountdb_2800.
The supported database structure is located in the share folder.
Also registration function is available into the Launcher (with reCAPTCHA secure if enabled). https://i.imgur.com/8F4ME6V.png
23-05-22
S37uP!Update
1 Attachment(s)
Re: Tera API (node.js) and Launcher with pacher for patch 92/100
In launcher.exe on address what port do i have to use? on old launcher we used it with port 81 to get this.
Also i noticed there is no LauncherMain file inside public/launcher/ folder.
23-05-22
hsdn
Re: Tera API (node.js) and Launcher with pacher for patch 92/100
Quote:
Originally Posted by S37uP!Update
In launcher.exe on address what port do i have to use? on old launcher we used it with port 81 to get this.
Also i noticed there is no LauncherMain file inside public/launcher/ folder.
You need specify your external IP. The port is specified the same as in API_PORTAL_LISTEN_PORT, for example 80.
If you want other users to be able to access you server - this port must be forwarded via NAT on your router.
23-05-22
S37uP!Update
1 Attachment(s)
Re: Tera API (node.js) and Launcher with pacher for patch 92/100
I know, i mean the entire address, where is this LauncherMain file located?
I have this error
23-05-22
hsdn
Re: Tera API (node.js) and Launcher with pacher for patch 92/100
For the Tera server to work, you only need to forward two ports: port 80 (Portal API) and port 7801 (Game Server).
In order for your server to appear in the list of servers, you need to add it to the server_info database table.
Based on this table, a Server List (SLS) is generated. Note that the isEnabled field must be set to 1. https://i.imgur.com/RCwHmq7.png https://i.imgur.com/RCwHmq7.png
- - - Updated - - -
Quote:
Originally Posted by S37uP!Update
I know, i mean the entire address, where is this LauncherMain file located?
I have this error
You can copy the launcher_info.ini into c:\tera-api\public\patch\launcher_update and edit this file to specity path to launcher installer (for launcher auto updates).
- - - Updated - - -
I will also note that this launcher will not launch the game if you do not have a patcher configured and a packages of the Tera client has not been created.
This project was created for those who want to open their server for public use with all the features: client auto-update, logging, registration with protection, etc.
For tests, you can switch the account to QA mode, to do this, set the value 10 in the privilege field in the account_info table.
Re: Tera API (node.js) and Launcher with pacher for patch 92/100
Thank you, right now i have this error.
PS: I managed to register account using the launcher, after that i got error on api console with version.ini file not being found, i've copied the version.ini from client to public\patch where launcher_info.ini is located and after that i get this error without launcher closing.
public/patch/db/server.db shows up in api. i don't have those files...
23-05-22
hsdn
Re: Tera API (node.js) and Launcher with pacher for patch 92/100
Quote:
Originally Posted by S37uP!Update
Thank you, right now i have this error.
Please read the information above.
You must make a pack of client using tera-client-packer, or set the account to QA mode for disable file checks and updates.
- - - Updated - - -
The "/public/patch/db/server.db.#.cab" file and other .cab (update) files is generated by tera-client-packer while packing of tera client for auto updates.
1. Only ports 8090 and 7801 are exposed
2. I sucessfully registered an account through launcher
3. server_info ok with IsEnabled 1
4. QA privilege in 10
Maybe i miss something?
Thanks in advance
23-05-22
hsdn
Re: Tera API (node.js) and Launcher with pacher for patch 92/100
@argeus99 This error also occurs after you click the Play button?
- - - Updated - - -
Try to remove the local.db and version.ini files from the game folder.
- - - Updated - - -
UPD: A new config parameter API_PORTAL_BRAND_NAME has been added to allow you to change the brand name in copyright.
23-05-22
smashking
Re: Tera API (node.js) and Launcher with pacher for patch 92/100
My arb_gw is failing to run now :(
[2022/05/23 00:11:32.510] Socket reconnection failed with No connection could be made because the target machine actively refused it
[2022/05/23 00:11:32.523] Socket closed with The operation completed successfully [d513fc]
[2022/05/23 00:11:32.530] **** SLOW Call 1031[/systemApi/RequestAPIServerStatusAvailable]
[2022/05/23 00:11:32.537] RequestAPIServerStatusAvailable
[2022/05/23 00:11:32.541] RequestAPIServerStatusAvailable failed -1[]
[2022/05/23 00:11:32.545] REST CheckServer failed
23-05-22
Zentsuken
Re: Tera API (node.js) and Launcher with pacher for patch 92/100
Thank you so much hsdn for sharing your wealth of knowledge along with this new API & Launcher. It took me a bit to figure it out but managed to get it going and was able to unlock the account benefits just fine. Love that you can also select the language right from the launcher and that you can see the available player count on the server list, truly fantastic work. THANK YOU! :thumbup:
Quote:
Originally Posted by smashking
My arb_gw is failing to run now :(
[2022/05/23 00:11:32.510] Socket reconnection failed with No connection could be made because the target machine actively refused it
[2022/05/23 00:11:32.523] Socket closed with The operation completed successfully [d513fc]
[2022/05/23 00:11:32.530] **** SLOW Call 1031[/systemApi/RequestAPIServerStatusAvailable]
[2022/05/23 00:11:32.537] RequestAPIServerStatusAvailable
[2022/05/23 00:11:32.541] RequestAPIServerStatusAvailable failed -1[]
[2022/05/23 00:11:32.545] REST CheckServer failed
Make sure you are binding it to the correct IP in 'API_ARBITER_LISTEN_HOST', also double check your ports (if you've changed them).
23-05-22
smashking
Re: Tera API (node.js) and Launcher with pacher for patch 92/100
tera-api gives me this when I run arb_gw
error: SequelizeDatabaseError: No database selected
And before it says that its connected to accountdb etc. Have no idea what this means
23-05-22
Zentsuken
Re: Tera API (node.js) and Launcher with pacher for patch 92/100
Did you import the new 'accountdb' found inside the share folder? Because this new API does not make use of the old 'accountdb_2800' database. Once you do that open up your .env file and double check that you've added your user/pass to the database configuration sections.
23-05-22
smashking
Re: Tera API (node.js) and Launcher with pacher for patch 92/100
Yes I have updated it. I had an error in the .evn regarding user of database, now it is no longer prompting error: SequelizeDatabaseError: No database selected.
Yet I am still stuck on refusing to connect error.
Using same stuff as grails api which didnt have problem to connect. I have tried adding new api to the firewall but it has no .exe file so I don't know how to add an exception for it
- - - Updated - - -
Solved it. Apparently my windows weren't recognizing env file extension. It was quite weird as the api gives false feedback that connection is established even though my .env was technically non existing
- - - Updated - - -
I quite don't understand this either, how come launcher's host is defined as in ..../tera/LauncherMain when it doesn't exist?
23-05-22
hsdn
Re: Tera API (node.js) and Launcher with pacher for patch 92/100
Quote:
Originally Posted by smashking
It was quite weird as the api gives false feedback that connection is established even though my .env was technically non existing
If database ip/port is not specified, API uses 127.0.0.1:3306 by default for database connections. Because of this, the false behavior of normal operation occurs. At the same time, since If the .env is missing, then the database name and other parameters are missing.
UPD: Fixed.
23-05-22
smashking
Re: Tera API (node.js) and Launcher with pacher for patch 92/100
Quote:
Originally Posted by hsdn
@argeus99 This error also occurs after you click the Play button?
- - - Updated - - -
Try to remove the local.db and version.ini files from the game folder.
Have Launcher_Update folder with Launcher.exe in it.
GettingError 274(0) ini error when I press play
23-05-22
hsdn
Re: Tera API (node.js) and Launcher with pacher for patch 92/100
Quote:
Originally Posted by smashking
GettingError 274(0) ini error
The cause of the error has been found. You have placed the wrong version.ini file in the C:\tera-api\public\patch folder, which is causing the launcher to generate this error.
You need to delete this file if you are not using the automatic update feature (404 error is normal).
23-05-22
smashking
Re: Tera API (node.js) and Launcher with pacher for patch 92/100
Quote:
Originally Posted by hsdn
The cause of the error has been found. You have placed the wrong version.ini file in the C:\tera-api\public\patch folder, which is causing the launcher to generate this error.
You need to delete this file if you are not using the automatic update feature (404 error is normal).
This worked and now I am getting new error of 65520(1021) Game Program closed. Any ideas?
23-05-22
hsdn
Re: Tera API (node.js) and Launcher with pacher for patch 92/100
Quote:
Originally Posted by smashking
This worked and now I am getting new error of 65520(1021) Game Program closed. Any ideas?
Wrong region language / DC file specified.
You need to rename your translated datacenter DataCenter_Final_TW.dat file to DataCenter_Final_EUR.dat.
This suffix (EUR) must match the one specified in the parameter API_PORTAL_CLIENT_DEFAULT_REGION.
23-05-22
smashking
Re: Tera API (node.js) and Launcher with pacher for patch 92/100
Omg I love you.
One of the kind to not only share but also help with setup. Thank you <3
One last thing, in my server selection screen, my population and other tab is in TW. any ideas how to change that to english without translating datacenter?
23-05-22
hsdn
Re: Tera API (node.js) and Launcher with pacher for patch 92/100
This question also related to the region parameter.
If API_PORTAL_CLIENT_DEFAULT_REGION=TW is specified, Chinese will be used to display the list of servers.
However, you can edit this translation in the server_strings table (just copy text from en to tw row):
But it is more correct to use the EUR value for API_PORTAL_CLIENT_DEFAULT_REGION along with DataCenter_Final_EUR.dat.
Thank you friend.
23-05-22
TieLay
Re: Tera API (node.js) and Launcher with pacher for patch 92/100
so me try install tera-api, but in step "Run the npm install for install required node modules." nodeJS goto frustration and nothing happens, only stuck progress of download modules.
So me corrected configure proxy in system set, bur in nodeJS how make it?
- - - Updated - - -
Me ask and me answer:
before run step 4 configure proxy settings:
for http: npm config set proxy http://proxy_host:port
for https: npm config set https-proxy https://proxy_host:port or npm config set https-proxy http://proxy_host:port
23-05-22
smashking
Re: Tera API (node.js) and Launcher with pacher for patch 92/100
Re: Tera API (node.js) and Launcher with pacher for patch 92/100
API and launcher work great! Very quick setup, too. I really like the check/update bypass feature; let me test functionality of everything with very little config time. Awesome!
23-05-22
juniordark
Re: Tera API (node.js) and Launcher with pacher for patch 92/100
Re: Tera API (node.js) and Launcher with pacher for patch 92/100
Quote:
Originally Posted by hsdn
In any case, incorrect error handling occurs. I will check later.
- - - Updated - - -
You can try use proxyng software, like Proxifier with node.exe / npm.exe.
Fixed it. Any chance we can get a guide how to use the game file download function? I have managed to create game files using your packer but I have no clue where to put them and what to enable in order to make launcher download it?
23-05-22
hsdn
Re: Tera API (node.js) and Launcher with pacher for patch 92/100
Quote:
Originally Posted by juniordark
This is taking way too long, i think i should have started this on ssd :junglejane:
Yes, it also depends on the cpu, a lzma compression level 9 is used. In any case, you pack only once, and in the future there will most likely be only DC updates.
23-05-22
argeus99
Re: Tera API (node.js) and Launcher with pacher for patch 92/100
Quote:
Originally Posted by hsdn
@argeus99 This error also occurs after you click the Play button?
- - - Updated - - -
Try to remove the local.db and version.ini files from the game folder.
- - - Updated - - -
UPD: A new config parameter API_PORTAL_BRAND_NAME has been added to allow you to change the brand name in copyright.
Yes, it was the version.ini file
What i did is copy the original version.ini from client and put it in server/patch folder and it works at first try
Thanks for your support!!
23-05-22
hsdn
Re: Tera API (node.js) and Launcher with pacher for patch 92/100
Quote:
Originally Posted by smashking
Fixed it. Any chance we can get a guide how to use the game file download function? I have managed to create game files using your packer but I have no clue where to put them and what to enable in order to make launcher download it?
You can place files into /tera-api/public/patch folder.
Client update files structure:
/tera-api/public/patch/patch/ - game client packed files (like the 1-100.cab, 1-101.cab, etc.).
/tera-api/public/patch/db/ - update database files (like the server.db.1.cab).
/tera-api/public/patch/version.ini - generated by packer version.ini placed here.
Launcher update files structure:
/tera-api/public/patch/launcher_update/ - updates for launcher (files like LauncherInstaller_1.0.1.52.exe, created by Inno Setup script).
/tera-api/public/patch/launcher_info.ini - information file of launcher update version (edit manually).
23-05-22
uiojilk777
Re: Tera API (node.js) and Launcher with pacher for patch 92/100
Can I use ZEROTIER to play with friends?
What files should I change if it works? Thanks
23-05-22
S37uP!Update
Re: Tera API (node.js) and Launcher with pacher for patch 92/100
Quote:
Originally Posted by hsdn
UPD: A new config parameter API_PORTAL_BRAND_NAME has been added to allow you to change the brand name in copyright.
How do i update to the latest version without having to start all over again?
23-05-22
hsdn
Re: Tera API (node.js) and Launcher with pacher for patch 92/100
Quote:
Originally Posted by S37uP!Update
How do i update to the latest version without having to start all over again?
Just overwrite all files. Your configuration will not be affected.
23-05-22
TieLay
Re: Tera API (node.js) and Launcher with pacher for patch 92/100
Me catch strange problem with replacing teraAPI by yours version.
So me use tera API based on apache-tomcat/catalina + laragon from 92.03 and it's worked, but functionality with VIP functions is not exists.
So me replace it, correct DB, by adding missing tablets and columns and server's part work perfectly, but it was broke connection between launcher and web part without send warning/error messages into log or console, me sad.
Can U help me?
23-05-22
hsdn
Re: Tera API (node.js) and Launcher with pacher for patch 92/100
Try to set LOG_LEVEL as debug.
If there is no information about connections from the launcher in the API logs, the problem is probably in the access to the port, or the invalid API endpoints specified in the launcher.
23-05-22
argeus99
Re: Tera API (node.js) and Launcher with pacher for patch 92/100
How to get those at the same time? i don't know nothing about arrays :)
For the account benefits open up your accountdb with your favorite db tool, then head over to 'account_benefits'. Inside you should see three columns "accountDBID" "benefitId" & "availableUntil".
Re: Tera API (node.js) and Launcher with pacher for patch 92/100
Quote:
Originally Posted by Zentsuken
For the account benefits open up your accountdb with your favorite db tool, then head over to 'account_benefits'. Inside you should see three columns "accountDBID" "benefitId" & "availableUntil".
Re: Tera API (node.js) and Launcher with pacher for patch 92/100
Any ideas what can cause this? When I launch client repair I get this. Tried on 2 computers, 1 had tera already, and another didnt have and had to download all the client.
It runs through all files in the patch and then the error appears (when I already have a client)
https://i.imgur.com/w6FaBuZ.png https://i.imgur.com/w6FaBuZ.png
24-05-22
hsdn
Re: Tera API (node.js) and Launcher with pacher for patch 92/100
Have you packed all client files?
24-05-22
smashking
Re: Tera API (node.js) and Launcher with pacher for patch 92/100
Quote:
Originally Posted by hsdn
Have you packed all client files?
Fixed it. Accidentally left an old local.db in my client before packing.
Tip for future users:
Make sure that local.db and version.ini files from tera client are not there when packing.
24-05-22
argeus99
Re: Tera API (node.js) and Launcher with pacher for patch 92/100
Stupid question:
item claim is handled by API or by something else?
24-05-22
Luciole
Re: Tera API (node.js) and Launcher with pacher for patch 92/100
Quote:
Originally Posted by argeus99
Ah, i see. thanks for your help! :)
@Luciole which id is the last icon of your pic?
Re: Tera API (node.js) and Launcher with pacher for patch 92/100
Quote:
Originally Posted by argeus99
Stupid question:
item claim is handled by API or by something else?
No, it's not API. This is called a box-server, which has a separate protocol for connecting to the arbiter server.
24-05-22
TieLay
Re: Tera API (node.js) and Launcher with pacher for patch 92/100
Quote:
Originally Posted by hsdn
Try to set LOG_LEVEL as debug.
If there is no information about connections from the launcher in the API logs, the problem is probably in the access to the port, or the invalid API endpoints specified in the launcher.
can U ask or share web back-end for use with yours tera-API realisation and launch string for exists 92.03 launcher?
Possible problem in this.
24-05-22
hsdn
Re: Tera API (node.js) and Launcher with pacher for patch 92/100
This API was originally created for patch 92 and works great with it. but you need a properly configured launcher as described in the repository.
24-05-22
TieLay
Re: Tera API (node.js) and Launcher with pacher for patch 92/100
Quote:
Originally Posted by hsdn
This API was originally created for patch 92 and works great with it. but you need a properly configured launcher as described in the repository.
but without web beck-end it's useless.
So ask fron another side, is yours Tera-API correct work with "Webapp" goes with 100.02 or need work with steel file for communicate all of this??
25-05-22
hsdn
Re: Tera API (node.js) and Launcher with pacher for patch 92/100
Quote:
Originally Posted by TieLay
but without web beck-end it's useless.
So ask fron another side, is yours Tera-API correct work with "Webapp" goes with 100.02 or need work with steel file for communicate all of this??
Yes, webapp work correctly with API (for example: the arbiter-server sending requests to API if you change character via webapp). And back-end of the Launcher - is a part of API (Portal API server). All work on 92 and 100 patch.
25-05-22
TieLay
Re: Tera API (node.js) and Launcher with pacher for patch 92/100
Quote:
Originally Posted by hsdn
Yes, webapp work correctly with API (for example: the arbiter-server sending requests to API if you change character via webapp). And back-end of the Launcher - is a part of API (Portal API server). All work on 92 and 100 patch.
So me can use webapp what leaked with 100.02 or need get other from other/strange place or U can share web back-end wit full support, possible not i.e. it's you's intellectial product ;)?
25-05-22
hsdn
Re: Tera API (node.js) and Launcher with pacher for patch 92/100
Quote:
Originally Posted by TieLay
So me can use webapp what leaked with 100.02 or need get other from other/strange place or U can share web back-end wit full support, possible not i.e. it's you's intellectial product ;)?
The launcher backend does not supplied separately, only as part of the Tera API. All source code is open.
25-05-22
smashking
Re: Tera API (node.js) and Launcher with pacher for patch 92/100
The launcher and updater works amazing! Althought I have a question.
How can I let people download full game 1st time and then exclude some folders from updating? For example S1 configs keeps redownloading everytime I launch game because I edit my account settings in game and they don't match the one in the pacher?
25-05-22
hsdn
Re: Tera API (node.js) and Launcher with pacher for patch 92/100
Quote:
Originally Posted by smashking
The launcher and updater works amazing! Althought I have a question.
How can I let people download full game 1st time and then exclude some folders from updating? For example S1 configs keeps redownloading everytime I launch game because I edit my account settings in game and they don't match the one in the pacher?
You don't need to include user configuration files in the release version.
The folder should remain like this when packing:
Re: Tera API (node.js) and Launcher with pacher for patch 92/100
So me 2nd try use yours TERA-api and see next:
- me take web back-end from leaked "TERA-Live100_02_TW.zip" called as "Weblogin"
- me compare it's data with previous leaked 92.03 combined with other GS and based on laragorn for Web and apache-tomcat for api - identical
- so me try use your's tera api and launcher from you's GIT repo
- so strings at 19 string line in launcher is abstract text, but at 20 line have link into folder "public" in your's API but why?
So me think whet enough replace tera-api system an all will work as earlier, but not and using your's launcher with correcting IP:Port unworked to.
So can U share web back-and for launcher for it's correct work, not only API?
P.S. Or U not interest this mess?
25-05-22
hsdn
Re: Tera API (node.js) and Launcher with pacher for patch 92/100
@smashking If you have already created and published the package, just delete the configuration files from the client release files and run the packaging again. The files will be excluded from future updates.
- - - Updated - - -
@TieLay If you are having problems with setup my API, you can contact me directrly (email, discord). I'll try to help.
25-05-22
TieLay
Re: Tera API (node.js) and Launcher with pacher for patch 92/100
Quote:
Originally Posted by hsdn
@TieLay If you are having problems with setup my API, you can contact me directrly (email, discord). I'll try to help.
but me can't send U answer "hsdn has exceeded their stored private messages quota and cannot accept further messages until they clear some space"
25-05-22
hsdn
Re: Tera API (node.js) and Launcher with pacher for patch 92/100
Re: Tera API (node.js) and Launcher with pacher for patch 92/100
@argeus99 This error reporting problem already been fixed (I think) in latest updates of tera-client-packer.
27-05-22
Muggus
Re: Tera API (node.js) and Launcher with pacher for patch 92/100
Where would the pointer to the SLS serverlist be located? I'm getting a code return of 273. I don't see a configuration for http://127.0.0.1/tera/ServerList?lang=en
Usually would have a serverlist.en or serverlist.tw trying to figure out what I'm missing
It would be cool to change our hero to any npc in game (like in wow or aion)
Thanks in advance
27-05-22
TieLay
Re: Tera API (node.js) and Launcher with pacher for patch 92/100
Quote:
Originally Posted by Muggus
Where would the pointer to the SLS serverlist be located? I'm getting a code return of 273. I don't see a configuration for http://127.0.0.1/tera/ServerList?lang=en
Usually would have a serverlist.en or serverlist.tw trying to figure out what I'm missing
Re: Tera API (node.js) and Launcher with pacher for patch 92/100
Quote:
Originally Posted by Muggus
Where would the pointer to the SLS serverlist be located? I'm getting a code return of 273. I don't see a configuration for http://127.0.0.1/tera/ServerList?lang=en
Usually would have a serverlist.en or serverlist.tw trying to figure out what I'm missing
Re: Tera API (node.js) and Launcher with pacher for patch 92/100
Quote:
Originally Posted by hsdn
Check server_info table in database accountdb.
- - - Updated - - -
Try to detele local.db, check.db and version.ini from the game folder.
That's it! i just renamed launcher.exe and delete local.db/version.ini
Thanks for your help!
- - - Updated - - -
1 Question,
I restored a 92.03 mssql backup and it worked with 100.02, but in the character selection screen only show that i only have 1 character but i have 7 (this behavior is purelly visual, ingame i have all of my chars)
looking at character table in mysql, there's only 1 record...then, is there a way to put those characters there or need to do it manually?
Thanks in advance
28-05-22
hsdn
Re: Tera API (node.js) and Launcher with pacher for patch 92/100
Quote:
Originally Posted by argeus99
looking at character table in mysql, there's only 1 record...then, is there a way to put those characters there or need to do it manually?
Thanks in advance
Because API has its own database of characters (duplicating the main one), you need to manually add all the characters to the table account_characters. Also you can export Users table from PlanetDB using Navicat, edit (using notepad++) and import into account_characters.
- - - Updated - - -
I had plans to synchronize these tables, but because of the old version of the SQL Server (which is not supported by the Sequelize library on node.js). In patch 100, there is already an updated SQL Server, and this idea can be implemented, but this is only needed once when migration from 92 to 100.
28-05-22
argeus99
Re: Tera API (node.js) and Launcher with pacher for patch 92/100
Quote:
Originally Posted by hsdn
Because API has its own database of characters (duplicating the main one), you need to manually add all the characters to the table account_characters. Also you can export Users database from PlanetDB using Navicat, edit (using notepad++) and import into account_characters.
I had plans to synchronize these tables, but because of the old version of the SQL Server (which is not supported by the Sequelize library on node.js). In patch 100, there is already an updated SQL Server, and this idea can be implemented, but this is only needed once when migration from 92 to 100.
Looking forward to it!
Thanks!
28-05-22
outlanderzor
5 Attachment(s)
Re: Tera API (node.js) and Launcher with pacher for patch 92/100
I got the Server and the API running, but when I try to enter the server I get an error message "Member authentication failed". When I check the server for logs the arb_gw returns the following message "GameAuthenticationLogin { "Return":false, "ReturnCode":0011, "Msg":"authkey mismatch" }.
I'm trying to setup the v100 server from scratch using the tera-api launcher and I'm kinda new on this.
Anyone had this issue or can give me any pointers on what I'm doing wrong?
I'll post some screenshots to make it easier to understand.
Thanks everyone for all the support.
28-05-22
hsdn
Re: Tera API (node.js) and Launcher with pacher for patch 92/100
Try to log out of the launcher using the "logout" button and log in again using your username and password (a new ticket/auth-key will be created). If the problem is not solved, your computer probably has a different IP address for the game server and the API server (launcher). Check the port forwarding/nat/web-server-proxy settings.
28-05-22
Brat05
Re: Tera API (node.js) and Launcher with pacher for patch 92/100
solved,Need to create a temp temporary directory, thanks
28-05-22
juniordark
Re: Tera API (node.js) and Launcher with pacher for patch 92/100
Quote:
Originally Posted by Brat05
...
No matter how I change, it always prompts that the directory cannot be found
create a temp folder inside tera-client-packer
28-05-22
Brat05
Re: Tera API (node.js) and Launcher with pacher for patch 92/100
Quote:
Originally Posted by juniordark
create a temp folder inside tera-client-packer
Wow, solved, thank you very much:thumbup:
28-05-22
Murasama
5 Attachment(s)
Re: Tera API (node.js) and Launcher with pacher for patch 92/100
I seem to be running into a different issue on my setup (using tya0411's virtual machine) where the launcher isn't even displaying the login/signup form. I've pretty much gone through this entire topic and tried every conceivable tip in it, to no avail.
IP Address on the VM is 192.168.163.130. The following pertinent parameters remained constant in .env:
The initial issue was getting arb_gw to run: it failed with the following (and any iteration of the portal address setting where localhost is used for Arbiter):
The only parameters where arb_gw got to server ready were:
1. leaving both API_ARBITER_LISTEN_HOST and API_PORTAL_LISTEN_HOST blank
2. setting both API_ARBITER_LISTEN_HOST and API_PORTAL_LISTEN_HOST to 192.168.163.130
With either of these, I can launch the necessary server processes.
The launcher (from the repository) is resource edited as follows:
Even though I have API_PORTAL_CLIENT_PATCH_NO_CHECK=true, I still have the packed client cab files in the tera-api/public/patch folders on the virtual machine side (the pack was done after making sure local.db and version.ini were not in the client folder).
Running the launcher results in no login window/launcher window being displayed, it only shows the Error 274 (40400): ini error message dialog:
I've tried all variations posted in this thread regarding the version.ini file in /public/patch including removing it but the above error still persists. I'm able to get the login/signup window loaded by going to http://192.168.163.130:8090/tera/LauncherMain via a web browser, and then to the game start window after signing up, and then logging in from the first screen (just cannot get the launcher itself to display this unlike most others folks who have had issues with Error 274):
I'm suspecting it is something simple that I might have overlooked elsewhere (the virtual machine firewall is still disabled as is the one on the system running the VM and the game client files to remove this from the equation).
28-05-22
snugglefoot
Re: Tera API (node.js) and Launcher with pacher for patch 92/100
Quote:
Originally Posted by Murasama
I seem to be running into a different issue on my setup (using tya0411's virtual machine) where the launcher isn't even displaying the login/signup form. I've pretty much gone through this entire topic and tried every conceivable tip in it, to no avail.
IP Address on the VM is 192.168.163.130. The following pertinent parameters remained constant in .env:
The initial issue was getting arb_gw to run: it failed with the following (and any iteration of the portal address setting where localhost is used for Arbiter):
The only parameters where arb_gw got to server ready were:
1. leaving both API_ARBITER_LISTEN_HOST and API_PORTAL_LISTEN_HOST blank
2. setting both API_ARBITER_LISTEN_HOST and API_PORTAL_LISTEN_HOST to 192.168.163.130
With either of these, I can launch the necessary server processes.
The launcher (from the repository) is resource edited as follows:
Even though I have API_PORTAL_CLIENT_PATCH_NO_CHECK=true, I still have the packed client cab files in the tera-api/public/patch folders on the virtual machine side (the pack was done after making sure local.db and version.ini were not in the client folder).
Running the launcher results in no login window/launcher window being displayed, it only shows the Error 274 (40400): ini error message dialog:
I've tried all variations posted in this thread regarding the version.ini file in /public/patch including removing it but the above error still persists. I'm able to get the login/signup window loaded by going to http://192.168.163.130:8090/tera/LauncherMain via a web browser, and then to the game start window after signing up, and then logging in from the first screen (just cannot get the launcher itself to display this unlike most others folks who have had issues with Error 274):
I'm suspecting it is something simple that I might have overlooked elsewhere (the virtual machine firewall is still disabled as is the one on the system running the VM and the game client files to remove this from the equation).
Re: Tera API (node.js) and Launcher with pacher for patch 92/100
Spoiler:
Quote:
Originally Posted by Murasama
I seem to be running into a different issue on my setup (using tya0411's virtual machine) where the launcher isn't even displaying the login/signup form. I've pretty much gone through this entire topic and tried every conceivable tip in it, to no avail.
IP Address on the VM is 192.168.163.130. The following pertinent parameters remained constant in .env:
The initial issue was getting arb_gw to run: it failed with the following (and any iteration of the portal address setting where localhost is used for Arbiter):
The only parameters where arb_gw got to server ready were:
1. leaving both API_ARBITER_LISTEN_HOST and API_PORTAL_LISTEN_HOST blank
2. setting both API_ARBITER_LISTEN_HOST and API_PORTAL_LISTEN_HOST to 192.168.163.130
With either of these, I can launch the necessary server processes.
The launcher (from the repository) is resource edited as follows:
Even though I have API_PORTAL_CLIENT_PATCH_NO_CHECK=true, I still have the packed client cab files in the tera-api/public/patch folders on the virtual machine side (the pack was done after making sure local.db and version.ini were not in the client folder).
Running the launcher results in no login window/launcher window being displayed, it only shows the Error 274 (40400): ini error message dialog:
I've tried all variations posted in this thread regarding the version.ini file in /public/patch including removing it but the above error still persists. I'm able to get the login/signup window loaded by going to http://192.168.163.130:8090/tera/LauncherMain via a web browser, and then to the game start window after signing up, and then logging in from the first screen (just cannot get the launcher itself to display this unlike most others folks who have had issues with Error 274):
I'm suspecting it is something simple that I might have overlooked elsewhere (the virtual machine firewall is still disabled as is the one on the system running the VM and the game client files to remove this from the equation).
Make sure you have version.ini in your game folder
This how my configs looks like working as intended
Re: Tera API (node.js) and Launcher with pacher for patch 92/100
Quote:
Originally Posted by hsdn
Try to log out of the launcher using the "logout" button and log in again using your username and password (a new ticket/auth-key will be created). If the problem is not solved, your computer probably has a different IP address for the game server and the API server (launcher). Check the port forwarding/nat/web-server-proxy settings.
Solved.
I had to logout and log in again, thanks!
29-05-22
Murasama
Re: Tera API (node.js) and Launcher with pacher for patch 92/100
Thanks hsdn. I did that before with all of my other tests but will try again by duplicating argeus99's .env config (I don't think I tried 0.0.0.0 for the portal).
------ RESOLVED
Thanks everyone for the pointers and tips!
I tried argeus99's .env settings but it didn't work for me as the launcher got stuck with just the loading dialog and I could no longer load up the launcher form from outside the VM via a web browser. So I went back to one of the original configs I had (where I could at least reach the launcher form from outside the VM via a web browser) but the launcher was still throwing Error 274. I double checked server side (for the hundredth time) to make sure version.ini wasn't in the patch directory (it wasn't) and I had my original version.ini in the game client folder (it was).
It was as expected, something VERY simple that was curb stomping my launcher. What happened is that I had also inadvertently removed launcher_info.ini (probably happened the same time when I removed version.ini and ended up forgetting that it existed until I unpacked a copy of the tera-api archive to start over from scratch). Replaced that, and everything is now working.
29-05-22
S37uP!Update
Re: Tera API (node.js) and Launcher with pacher for patch 92/100
If i'm using:
API_PORTAL_BENEFIT_ID_ELITE_STATUS=500
When i'm trying to use Chronoscroll (358, 372, 373) ingame, i can't use it.
Are those Chronscroll's working only with RU VIP (533)?
29-05-22
hsdn
Re: Tera API (node.js) and Launcher with pacher for patch 92/100
When using a Сhronoscoll, the benefit specified in the parameter API_PORTAL_BENEFIT_ID_ELITE_STATUS will be activated.
31-05-22
Jagger1998
Re: Tera API (node.js) and Launcher with pacher for patch 92/100
Re: Tera API (node.js) and Launcher with pacher for patch 92/100
@livhph The launcher is in the wrong directory. You need to put the Launcher.exe in the root directory of the game, in the same place where S1Game and Binaries is located.
02-06-22
popoty
Re: Tera API (node.js) and Launcher with pacher for patch 92/100
@hsdn
I would like to inform the one item that did not reflect the effect.
https://teralore.com/en/item/209175
ItemID:209175(boost packeage) contain ItemID:143438 as Mini Chronoscroll.
So it seems you need to add the following
Code:
// Mini Chronoscroll
358: userId => (new EliteStatusVoucherBenefit(userId)).add(7),
// Mini Chronoscroll 7days
143438: userId => (new EliteStatusVoucherBenefit(userId)).add(7),
BTW, is it normal behavior to have to relog to reflect the effect?