it work!! thanks!!!!!!!!!!!!!!!
Printable View
Hello ! i hope someone can help me with this , i was testing the Shop with the JP data center , but when i try open the Tera shop , just open the tikat shop , what im missing there ?
Hello,
I don't understand your guide to translate the launcher :
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-en.css. Open
.env and add the line API_PORTAL_CLIENT_REGIONS_FRA=English and save. Restart TeraAPI.
I have to copy in where? the launcher or the server? or I have to download fr.json. ? Sorry I don't understand English well., I use @shadow66's server.
edit .env
API_PORTAL_CLIENT_REGIONS_FRA=Français
go to Web Api
add in DB via admin api: 127.0.0.1:8050 or VM ip:8050
https://www.youtube.com/watch?v=XNhpitFDfb4
@Misty24 This is on a tera-api side - launcher, shop, admin panel.
Hi i've encountered a new and bizzare issue, the launcher gets stuck infinitely patching the client
Thank you for the release <3
Any chance for open sourcing the launcher code?
@hsdn i just help to setup a new server to a buddy, everything went well until some random crashes occurred from the api
https://i.ibb.co/wdpd3QW/Screenshot-55.png
https://i.ibb.co/Bf43972/Screenshot-56.png
https://i.ibb.co/GCj532T/Screenshot-57.png
I guess it is related to mysql version (didn't have the time to check) or could be something else?
@argeus99 Try to update the node.js to v18.9.1, remove node_modules folder from tera-api and run tera-api/install.bat.
Also check this: https://stackoverflow.com/questions/...ws-deps-uv-src
So, I didnt really bother to post it earlier cause didnt care much but now it starts to bother me xD So after the last API update the launcher mask is no longer transparent. Am I the only one with that issue?
is there any possibility to send box item claim only to online users? maybe taking it from the online users table?
After having created the patch and following the instructions and after running the launcher and downloading or checking the entire client, that error appears at the end.https://media.discordapp.net/attachm...72/unknown.png
Launcher
Error 65520(1021):Game program closed.
Do you want vitit FAQ page?
After logging in to the account, an error will be reported when entering the game
Could you help me see what's going on?
@hsdn thanks for your beautiful work and contribution to the Tera community.
I started using your API today, i did some tests and it's all very interesting, thanks!!
I'm using my VM 92.03, i've done all the necessary settings, i think, but
the items in the Shop cannot be shown, do you have any idea what it could be?
I'm using ip 192.168.15.12 as Host-only, Can be it?
Some images.:
https://postimg.cc/nCV2L0cq
https://postimg.cc/pyRY0qj3
https://postimg.cc/zLTK7gGJ
@Robyson Currently the frontend javascript used in the Shop are not supported by the browser in the 32bit patches is used.
But, you can try to remove this line from the file tera-api\src\views\shopMain.ejs:
Code:<script type="text/javascript" src="/public/shop/js/coherent.js"></script>
@argeus99
https://i.postimg.cc/vBr2zPSw/Screenshot-2.png
- - - Updated - - -
Hi @hsdn, unfortunately it didn't solve...
https://postimg.cc/21Fd4tjH
Thank you for your help!!
API has been updated to support shop with 32bit patch.
Please update file tera-api\public\shop\js\shop.js and check.
Nice!! It's working fine, Thanks!! :thumbup1:
https://postimg.cc/5YhBGrNN
- - - Updated - - -
EDIT: Is it possible to add Coins to the table by Navicat?
https://i.postimg.cc/cCy6gt4w/Screenshot-1.png
You can use API Admin Panel like that: https://forum.ragezone.com/f797/tera...1/#post9142301
Or in the Navicat/HeidiSQL, this can be done by create/edit a row on table shop_accounts in the tera-api database.
Ok!! i added by Navicat and everything worked...
https://postimg.cc/w3w346DB
https://postimg.cc/G4y2pGVB
https://postimg.cc/4mhZvZ5q
more easy way with Tera API Admin Shop
If you dont have any Tera balance
Login to TERA API Admin Shop as: imsadmin pass: password
go to Shop\Account
Create new Account
In Account ID type email or number
Balance
Add amount of Tera shop coins
Press Add
and that's all
you even no need logout from game :)
If you have some amount
then just edit amount :)
Hello, what is the problem and how can I solve it? thanks
https://forum.ragezone.com/image/png...BJRU5ErkJggg==
https://imgur.com/a/ZB5uK5F
https://imgur.com/BOnZOiThttps://imgur.com/BOnZOiThttps://imgur.com/BOnZOiT
You need to configure API with Steer Server. Read this section https://github.com/justkeepquiet/ter...h-steer-server
@uiojilk777 This warning is displayed if you have STEER_ENABLE=false in your .env.
Hello, I have always displayed like this (no problem to play), what is the problem? thanks
(不=no)
OK, thanks.
I want to ask, I tried to make bg.png and launcher_mask.png, but why can't they be displayed normally? thanks
I noticed that I tried making it into BMP and then changing the file extension to png, but it doesn't seem to work
- - - Updated - - -
I found a software called imagemagick, I'll try it out thanks
guys any one have launcher source code ?
Hi, would like to ask a question about the Admin Panel.
What is the function of "Sort." and "Service item ID"?
What should I fill in Service item ID? Thank you
The "Sort" function allows you to sort the products in the shop. The higher the number, the higher the product position in the catalog. A "Service Item ID" is an identifier of an item in the Box Server database, this field can be left blank, the API will set it automatically.
Thank you for your help.
If you run it with en, the Terra Shop will open, but if you run it with ko, nothing happens when you press the Terra Shop button.
What should I do?
For reference, I am using Ver 100.02. (VM)
error messege : (info) Portal API: GET /tera/ShopPartiaError
Korean language is not available for the Launcher and Tera Shop. You need to do the translation yourself. Read the section "How to add new language translation (new region of client)" here: https://forum.ragezone.com/f797/tera...s-and-1205579/. Also note that for Korean you need to use the "kr" instead of "ko".
After setting up local Korea, both Korean voice and text work well.
But if you press the Terra Shop button, there is no response.
Should I add more?
https://i.ibb.co/d7pw34n/TERA-Screen...128-002903.png
No response after clicking.
When run in English or Russian, Terra Shop opens normally.
@doogydog Most likely, the Shop function is disabled for this language.
I think this is a problem of the tera client or DC. But this is not an API problem.
do we need to restart server after edit via web server admin control ? and reset only worldserver or everything ?
I did exactly as described, but when I set the client to french, I have no servers to chose.
https://i.ibb.co/MsSHYcB/Server-List.png
Edit: Same for german.
What I am missing?
Thank you.
Edit: Figured it out myself, is working now.
Hello. I've encountered a bizzare issue, the launcher gets stuck infinitely patching the client but i used the same way i always did. Can someone give me some tips, please?
ty
I solved that problem following the indications of @hsdn:
Files and folders that must be removed from clientDirectory 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
you will have to repack everything again from 0
Hi,
I am experiencing a very weird issue.
The AdminTool webpage works perfectly only one thing: where it shows the user data.
(e.g. 127.0.0.1:88/users/default.aspx?ServerNo=1&UserDBId=31)
I did not find a reason why certain characters are throwing the attached error message and why some are completely fine :(
It even happened that for one char (ID 1034) the page was working fine and I changed some stats without any issue. Then started to add some items which went well as well for like 5or 6 items then suddenly the same error came for this user out of the blue.
Or for example a character (ID 1031) was not working since its creation.
All of these character (1031 or 1034) are working fine in the game as the users reports and they can use the game fully. Only I cannot alter their stats (or help with resetting quest lines) due to the error message attached.
Any idea how to fix it or what went wrong for these characters?
I've been trying to optimize my server and one way was to move the mysql (and the api) off my server to a different host, so I've created a dockerfile for the tera-api to run it as a docker container. I haven't gotten to BOX or STEER yet, unfortunately, but this is a good starting point.
Copy tera-api folder somewhere, make a Dockerfile in the dir
Dockerfile:
Build it locally:Code:FROM node:19
# Create app directory
WORKDIR /usr/src/app
# Install app dependencies
# A wildcard is used to ensure both package.json AND package-lock.json are copied
# where available (npm@5+)
COPY package*.json
./RUN npm install
COPY . .
EXPOSE 81
EXPOSE 8050
EXPOSE 8040
EXPOSE 8080
CMD [ "node", "--max_old_space_size=4096", "src/app.js" ]
And to run it (you may need to change ports)Code:docker build . -t tera-api
Code:docker run -p 8050:8050 -p 8049:81 -p 8080:8080 -p 8040:8040 tera-api
getting error 274 when using https for launcher.
any idea why?
https://somehost/tera/LauncherMain is accessible in browser
https://somehost/public/launcher/ima...ncher_mask.png is also accessible in browser
using port http://teragamehost:81/tera/LauncherMain works.
But I got a reverse proxy setup so https://somehost is pointed to teragamehost:81 and can deliver traffic over https. cert is from lets encrypt.
I never got an error 274 but I lose transparency when I do the launcher over HTTPS so I just use HTTP for the launcher. I use caddy, here's my config below. I host the client and launcher files on my web server and proxy everything else to 81 on my API host.
Code:tera.domain.net http://tera.domain.net {
handle_path /public/* {
root * /data/tera/
file_server
}
handle_path /launcher/* {
root * /data/tera/launcher/
file_server
}
handle {
reverse_proxy 10.10.10.128:81
}
}
@Incedius You can try nginx with this config:
Code:server {
server_name test.ml;
listen 10.64.16.238:80;
location / {
try_files /does_not_exists @api;
}
location @api {
proxy_buffering off;
proxy_pass http://10.64.16.109:81;
proxy_redirect http://10.64.16.109:81 /;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
access_log off;
}
}
I'm using this setup as well but with nginx. My intention is to use SSL for the login as well as for tera shop so having connections to 81 isn't ideal.
this is similar to my setup but i'm trying to listen on port 443 with a valid cert from letsencrypt
what does error 274(11) mean anyway?
Caddy is doing exactly what nginx does. I don't understand what you're saying isn't ideal? Port 81 is what the API is listening on and the reverse proxy accepts an HTTPS connection and proxies the connection to port 81 on the API host. It's HTTPS to the client and HTTP to the API, it's completely transparent just like nginx..
With my caddy config the shopis proxied to the API host because only /public/* and /launcher/* (patches, images, css, etc) are all provided by Caddy directly.Code:/tera/ShopAuth?authKey=%s
My bad I misunderstood what you mean when you said that you use http for launcher and then proxying everything else to 81.
So you were able to get the launcher to load with caddy as the reverse proxy on your webserver proxying to the api server's port 81.
I'll give caddy a try then.
Edit:
After some more digging I found that the launcher is somehow trying to load /public/patch/launcher_info.ini and /public/patch/version.ini using http and since I have all http requests redirected to https it's giving me the 274(11) error.
This behavior is only observed when I use https. if I use http://host:portnumber, launcher uses portnumber for all requests. (bug?)
Once I added the /public/patch/* path to port 80 error disappeared and launcher is loading.
No transparency like you mentioned but it's a tradeoff I'm willing to make if it means a more secure login
How do you translate it into Korean?
Tera API has been updated
Changes:
- Added Gateway API method GetAccountBanByUserNo.
- Fixed variables names and translation.
- Fixed edit password in Admin Panel when sha512 enabled.
- Switch from isAlphanumeric to isStrongPassword and increase password max length to 128.
Installation:
- Download and replace all files of the tera-api\src directory with new ones.
- Restart Tera API.
Tera API has been updated
Changes:
- Added new config parameter API_ARBITER_USE_IP_FROM_LAUNCHER.
- Fixed security issue with request IP spoofing (X-Forwarded-For header).
- Removed fonts from repository (must now be downloaded separately).
The new parameter API_ARBITER_USE_IP_FROM_LAUNCHER allows you to solve the problem with determining the client IP address (for the Admin Panel logs and IP bans) when using Tera Server Proxy. When this parameter is set as true, the client IP address will be used as the login IP address of the Launcher. When using the Launcher (Portal API) behind a proxy like nginx or Cloudflare, set parameter LOG_IP_ADDRESSES_FORWARDED_FOR as true.
Installation:
- Download and replace all files of the tera-api\src directory with new ones.
- If necessary, add parameter API_ARBITER_USE_IP_FROM_LAUNCHER to your .env file.
- Restart Tera API.
@hsdn
You can help me out ?
when i open my Tiktak shop my game crashes