A relog is required to apply the benefits, because its are sent at the time of enter to server.
- - - Updated - - -
I didn't add Korean chronoscrolls, its are not used in the game.
Printable View
@hsdn is there a way to let the api retry the mysql connection if it fails? like max 3 retries (forgot to turn on mysql as ex) and not close automatically if there's no connection
@argeus99 Before starting the API, you need to make sure that the MySQL is running (it is usually installed as a Windows system service). If the MySQL has crashed while the API is running, an attempt to reconnect to the MySQL occurs every time the API sends a request to database (select/insert/update etc).
Yeah, proceeded with the launcher from the original files and no protest from windows defender yet.
However, getting weird issue on the launcher, keeps downloading "DO_NOT_DELETE.TXT" to \S1Game\Locilization directoy. Total file count just keeps climbing:
Attachment 171760
Any ideas?
@MasterRow Try to delete this file from client distribution and pack client again.
This file is not needed for correct working of client.
Hi, after about 3 hours of packing I got this error:
https://i.gyazo.com/8ec0e60f97f43cde...0f4f51bf56.png
ALl folders in config exist. Please help.
Thanks.
@Dakado Error reporting has fixed, update app.js file from github and try again (you not need to delete the packed files).
If the error occurs again, it should display normally.
- - - Updated - - -
As for the real error - probably the utility failed to update/create the version.ini file.
Check the paths and permissions of the file.
So if I dont delete the packed files it will continue where it left off without any issues if I run it again ?
But I downloaded the packer yesterday from github so I guess I have the latest version already.
So your telling me to delete the file named "do not delete"? What could possibly go wrong? lol just kidding, not quite sure why that file was even there to be honest.
It downloaded to completion after deletion. Pressing the play button is giving a 273 (3): SLS error now:
Attachment 171763
Does this have anything to do with language or region setting? I'm seeing the following in the API:
Attachment 171764
It is showing 200 connection though so I don't know.
Thanks for all your help, and making this project public!
I decided to enable the patcher and have it on a remote webserver.
Not sure if we're supposed to put http:// in front or not. When I do have it there and open the launcher, i getCode:API_PORTAL_CLIENT_PATCH_URL= *url here*
Error 274(40400)
when I remove the http:// and open the launcher, I get:
Error 274(16)
Either way, the root of the web server contains the version.ini, cab files, and a sub directory for the db files. Are they supposed to all be in one directory? not sure how this works entirely
I finally solved the problems with this API very difficult and not clear, but I figured it out myself and started now I can enter the game
I suffered for a couple of days and then I understood the installation process
Apologies, I missed that important step. Everything running now!
I have been working with a TW datacenter file with with English subtitles. When I changed the last characters of the datacenter file to EUR, I had the problem with it displaying the [][][] in lieu of dialogue. So instead of changing the file itself I changed the .env file to match the datacenter file and it loads up fine. This meant I had to go into the serverstrings table and change the TW row cells to English i order for it to populate the Queue and Population columns on server select:
Attachment 171769
It would be nice to change to EUR on the datacenter file but not critical.
As a test, I took the datacenter file out of the client directory and did a repair, but it did not catch that the file was missing and did not redownload the file from the server. What am I doing wrong here?
You need to add euro font. Download here https://drive.google.com/file/d/1rTs...ew?usp=sharing
Unpack and place into S1Game\CookedPC\Art_Data\Packages\S1UI\ folder.
I have managed to successfully pack the client, get the repair files from server working, but when I try to start the game, after TERA XINGCODE load and tera logo, the game goes into "Not responding" state:
https://i.gyazo.com/1e5efeb228775ffc...1d8690ed01.jpg
and then I see this message:
https://i.gyazo.com/76b00d3ce421a590...96748543b4.png
What does it mean please ? With the original grails API (v92) everything worked just fine.
Quick question I noticed that if you place the launcher.exe in an empty folder it does try to download the whole game which is great but it's been 28 hours and the game is still patching files. I can see the patch has also created the correct size for the client's files.
My question is how do you set a stop so that it does not continue to download? Setting API_PORTAL_CLIENT_PATCH_NO_CHECK=true works but then the client cannot be updated.
Spoiler:
- - - Updated - - - Reply to above post
Try downloading dependencies for the launcher & game.
Spoiler:
Can also try using Xigncode Bypass so that it does not load.
What does it mean please ? With the original grails API (v92) everything worked just fine.[/QUOTE]Spoiler:
[QUOTE=As a test, I took the datacenter file out of the client directory and did a repair, but it did not catch that the file was missing and did not redownload the file from the server. What am I doing wrong here?[/QUOTE]
I tried another test by deleting a lesser file in a localization folder. The launcher repair caught that the file was missing and downloaded it again.
I tried the datacenter test again by deleting it from the client and starting a repair. It still did not recognize the file was missing and did not download it again.
Is this because I was playing around with the datacenter ending on the server side?
Hi, I still cant figure this out, the new launcher simply wont launch the game:
With original Launcher and original grails API everything worked just fine.
Client patching works fine.
https://i.gyazo.com/1e5efeb228775ffc...1d8690ed01.jpghttps://i.gyazo.com/76b00d3ce421a590...96748543b4.png
I believe this is the same error that I had when the datacenter region in the client did not match the region of the .env file.
e.g. your .env "API_PORTAL_CLIENT_DEFAULT_REGION=TW", and your datacenter file should be titled "DataCenter_Final_TW.dat"
Or whatever you region is, EUR, RUS, TW.
OMG, you are a life savior :) Thanks that was really it!
- - - Updated - - -
Just one more question, what is the correct procedure when creating a patch, should I just replace all the .cab files in /patch or should I delete them all first and then put there the new ones ? In regards to db files I guess I should keep all of them in /db folder right ?
Yes I know that I should not delete any files from the working directory that is generated by the app, but what about when I am uploading those files to the server ? I guess I have to remove them all and copy again from the working directory. Unfortunately this takes hours :D
The storage is incremental, so deleting files is not required. If you change any file, just run the app.bat again, the utility will find the changes, pack the changed file and add it to the database.
Not quite sure what you are trying to accomplish by not having the files on the server itself?
I used the following directories as hsdn instructed:
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).
You want to point your config.js in your tera-client-packer-master directory to the above directories. That way you do not do any manual copying of files. After this is done, when you make changes to any files in the "clientdirectory" all you have to do is run the app.bat again. Hope this helps.
Is there any list of files I should remove from client before packing ? Something went wrong for me. When I press update it start donwloading and unpacking the same files indefinitely. Last time I left it and it ran over 10000 cycles of updating this same file.
https://i.gyazo.com/de4b48679e74f65e...08a9c279f7.png
Invalid version.ini ?
Code: 500000
No local.db or version.ini in the game folder.Quote:
[Download]
Retry=3
Wait=1000
Version=0
DL root=patch
DB file=db/server.db.0.cab
[CheckHash]
count=0
hash=d41d8cd98f00b204e9800998ecf8427e
signature=4bcd3c28f0b535df1b844defe5e547692b128ef2195d1ada38ed4b8cc9bc21c7d5a220c1e92a678a8659afc4d6cf709c186d60de6ff888867d7f75967a80f37098a94f9106e11637e74ebca1cd71144c153f26799b1b35cedab70ff105dfe1c0fe8516ccefc304ff1012a8e69fcddf5909c0a30c1ba98da1c3ff7a88966b6335
file0=Binaries\TERA.exe
value0=32f81770ad8d6e58d9ed5ebb952e8298
Was working with Chinese VM & client on v100.02 and found that the patcher would continually download the following files:
From the Engine/Localization directory:
All of the Properties.CHN, .CZE, etc. files
IpDrv.jpn
But I believe more importantly from CookedPC directory:
9dc1ecae_145.gpk
UITextures000.tfc
Deleted these from client and repacked and everything worked fine, but is this .gpk file crucial?
Having the same issue. It keeps looping between S1Game/Localization to Engine/Localization infinite downloads
- - - Updated - - -
Ok after several tests, anything that's "empty" or "0kb", seems to get stuck in a loop.
THis is how i managed to fix it:
Engine/Localization : Delete everything in there
S1Game/Localization : I deleted everything but the EUR folder (we're only going to be using the EUR datacenter)
Run app.bat again
Also delete these in your local client as well as the launcher will not remove them
S1Game/CookedPC/UITextures000.tfc The launcher REFUSED to download this, stuck in a loop of repeated download/unpacking over and over again. This is a 0kb file, so I sent this to the two people that are playing on my server and had them delete the folders above and put UITextures000.tfc in the S1Game/CookedPC directory and delete their local.db and have the launcher repair
This managed to get them into my server.
Hope this helps and hope this helps @hsdn figure out what's going on as this launcher is amazing and I cannot thank enough for it.
Is there any hope for holding the patch folder somewhere on a webhosting? Something like https://example.com/tera/patch
How can i add the GM rights?
The Alt+A GM Panel.
In old files it was privilege 33 if i remember right.
Strange, even after adding EUR (reading previous replies) font I still have this font issue:
https://i.gyazo.com/a53a18e87cab27d5...3d057d6086.png
EDIT:
Managed to solve it by changing the tw strings in database as I am using TW Datacenter file.
tera-client-packer has been updated.
I think we have fixed the issue with 0 Kb files.
Spoiler:
Download and replace elzma.exe: https://github.com/justkeepquiet/ter...master/lib/bin and repack again.
I've tried to modify the design but the transparency doens't seems to work....i've tried with Alpha Channel and still the same problem.
Already modified the mask.png to match my launcher.
@S37uP!Update you need save mask in 1bit png format.
Launcher buttons without text (attachment). To create your own launcher template/design or translation.
Hi, has anyone gotten the launcher to work under Wine? It seems to freeze as soon it reaches the login page, but works normally on a Windows VM.
For the launcher to work, the Internet Explorer environment is required.
I see. Is there any alternative? With Skylake, the game crashes as soon I try to enter the server, and with novadrop-run it crashes before the server select screen (maybe I missed something?)
EDIT: Managed to get novadrop-run working :laugh:. In the database, had to add another entry in server_strings with "uk" as language (didn't change the already existing english one since i'm not sure if it would break something), then runI got TL.exe from Steam depot, not sure if any version works but worth a try :wink:Code:wine novadrop-run.exe launcher path/to/TERA/Client/Tl.exe accountDBID authKey 'http://SERVER_ADDRESS/tera/ServerList?lang=uk'
When I launch the launcher exe after installing the file it just loads. No window pops up.
With the new release of v100.02 client from GameForge, it provided a USA region datacenter. When setting the api region to USA it gave me the "Error 65520 (1021): Game program closed" error which is the datacenter region not matching the .env. Double checked the .env region is labeled as USA. I'm assuming because USA is not listed under supported regions it will not work?
The USA datacenter was actually for the EME client which for whatever reason, Bluehole included with the GF client (and continued doing so even well past EME's closure). Primary difference from the GF EUR DC was in the naming of cosmetic items, pets, mounts plus the usual publisher specific information.
Also i do not think the USA DC was ever being updated further, judging by the size of the file.
Follow instructions https://github.com/justkeepquiet/ter...n-your-project
After changing the intro_fog.bik, runned the client packer again and it says there's nothing to be updated, even tho the original file intro_fog.bik has 11mb and my file has 20mb it's weird it doesn't recognize it was changed, it actually checks only the file if it is actually there or not, if you change it with something you've done it's not working.
Any way to get that working too?
After the packer finds the changes, it packs files into a separate cab archive, after which it creates a new file server.db.#.cab and version.ini, which you need to place in the patch directory. See the packer's console, after detecting changes, it should assign a new version to the database.
I know, but i doesn't do that even if i changed the video file, if i change DataCenter, the patch is working but it doesn't change the video file :)
Ok, so i managed to make it work but now i have another problem, the updater keeps downloading the intro_fog.bik forever.
Ur right, i looked into the client folder I made especially for updates and i accidentally replaced the file from the old version, so i replaced it back with the original one and used the update to run it again and everything works now, i actually added a new file intro_xx.bik and edited the line from DataCenter MovieData.xml with my own video file name.
- - - Updated - - -
So i've tried to setup the Chronscroll's but it seems like i miss something?
I've set the API_PORTAL_BENEFIT_ID_ELITE_STATUS=807
I also tried other benefit id's too: #* 533 -- RU VIP, #* 701 -- VIP, #* 807 -- User ELITE (VIP), #* 803 -- PC Café (VIP)
None of them working, they all show me the same error like in the screen shot i attached here.
Any idea what is the problem?
The only benefit that's acctivated on that account is the PlayTime Event Benefit that comes up when you setup the playtime event.
Check the API console log.
Works fine with https://teralore.com/en/item/183460/
At first, you need to update API to latest version, otherwise, the API_PORTAL_BENEFIT_ID_ELITE_STATUS parameter will not work. How to update https://forum.ragezone.com/f797/tera...ml#post9127012
And the benefits activated after restart the game.
- - - Updated - - -
API has been updated
Changes:
- Fixed issue with automatic login to the last selected server.
- Update server permissions routines for SLS.
- Implemented /api/GetServerPermission API endpoint (server permission info).
Installation:
- Download and replace all files of the tera-api/src directory with new ones.
- Restart Tera API.
I'm getting the following error when i enable recaptcha
'grecaptcha' is not defined
https://i.ibb.co/Kj3SLYc/captcha-error.jpg
@argeus99 Check the correct of recaptcha keys and version selected on https://www.google.com/recaptcha in your recaptcha control panel.
API uses reCAPTCHA v3.
That was the issue, change from v2 to v3 recaptcha and worked at first try
Thanks for your support!!
Regarding the last update of the API, i'm getting "Failed with not enough priviledge" and doesn't let me go more far than server list
https://i.ibb.co/wg9fPrz/src.jpg
I see that your server is in the mode of denying entry for new players.
Set the value to 0 for isCrowdness field in the server_info table.
Initially, this field should be used to prevent new players from entering at the opening of a new server, in order to enter players not all at once.
I'm getting this when trying to run the packer.
Error: ENOENT: no such file or directory, open 'C:\Users\admin\Desktop\tera-api-master\tera-client-packer-master\UsersadminDesktop era-api-masterpublicersion.ini'
at Object.openSync (node:fs:591:3)
at Object.writeFileSync (node:fs:2212:35)
at Version._write (C:\Users\admin\Desktop\tera-api-master\tera-client-packer-master\lib\version.js:63:6)
at Version.set (C:\Users\admin\Desktop\tera-api-master\tera-client-packer-master\lib\version.js:50:8)
at new Version (C:\Users\admin\Desktop\tera-api-master\tera-client-packer-master\lib\version.js:37:9)
at new App (C:\Users\admin\Desktop\tera-api-master\tera-client-packer-master\app.js:17:18)
at Object.<anonymous> (C:\Users\admin\Desktop\tera-api-master\tera-client-packer-master\app.js:197:14)
at Module._compile (node:internal/modules/cjs/loader:1105:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
at Module.load (node:internal/modules/cjs/loader:981:32) {
errno: -4058,
syscall: 'open',
code: 'ENOENT',
path: 'C:\\Users\\admin\\Desktop\\tera-api-master\\tera-client-packer-master\\UsersadminDesktop\tera-api-masterpublic\x0Bersion.ini'
Error: ENOENT: no such file or directory,
open 'C:\Users\admin\Desktop\tera-api-master\tera-client-packer-master\UsersadminDesktop era-api-masterpublicersion.ini'
This is your error.
The file is there but it's not registering the /desktop
Am I supposed to make the version.ini or does patcher make it?
I will try moving the updater to a new location and see if it works.
I have moved it and renamed it to a shorter name and it still gives
Error: ENOENT: no such file or directory, open 'C:\patcher\APIpublicersion.ini'
at Object.openSync (node:fs:591:3)
at Object.writeFileSync (node:fs:2212:35)
at Version._write (C:\patcher\lib\version.js:63:6)
at Version.set (C:\patcher\lib\version.js:50:8)
at new Version (C:\patcher\lib\version.js:37:9)
at new App (C:\patcher\app.js:17:18)
at Object.<anonymous> (C:\patcher\app.js:197:14)
at Module._compile (node:internal/modules/cjs/loader:1105:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
at Module.load (node:internal/modules/cjs/loader:981:32) {
errno: -4058,
syscall: 'open',
code: 'ENOENT',
path: 'C:\\patcher\\APIpublic\x0Bersion.ini'
}
Press any key to continue . . .
It is not registering the \ in the directory.
>>path: 'C:\\patcher\\APIpublic\x0Bersion.ini'
does object exist on this path?
So here's a new Design for the launcher, feel free to use it however you want, the files contain the photoshop project of the launcher in format .PSD in case you would want to modify it.
https://i.imgur.com/0JuW3ig.png
Download:
Mega: https://mega.nz/file/pBlBgKxY#Fc9j8D...gA7PnfMe-88v1c
Mediafire: https://www.mediafire.com/file/e4gjo...esign.zip/file
Sendspace: https://www.sendspace.com/file/1v698r
How to install?
Just replace images in Tera-Api\public\launcher\images
@hsdn if you want, you can update the first post with the extra design if someone wishses to use it. Up to you!
So after updating TeraAPI by new ver from 9 jun 2022, but catch more errors, and in log me seen messages about:
"GET /public/patch/version.ini 404" on older ver, but all works, and now me catch error about "Server not accessible"
So me create empty version.ini - old API works, newest give error in launcher "274(0): ini error"
P.S. can't send private message to hsdn - his mail box is full
In TeraAPI from 09 jun 2022, when me edit launcher_info.ini and change localhost to server_IP, in client side me catch message "In current Time impossible login into server"(В настоящее время невозможно войти на сервер.)
So strange...
I am trying to adjust character creation and in addition with the new char create, I want to adjust certain table in MSSMS. Any tips where in API I could add this functionality?
EDIT:
To be more clear, any tips how to add tera club benefits to new characters/accounts on creation?
@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!
These features have not been implemented.
Maybe this will be added in the future along with the integration of the ingame store.
Tera API has been updated
Spoiler:
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.
Works like a charm! You are great!