Jump to content
  • 0

how to Install Athena-Web-Server | Get error "Type 3"


LearningRO

Question


  • Group:  Members
  • Topic Count:  107
  • Topics Per Day:  0.02
  • Content Count:  770
  • Reputation:   69
  • Joined:  02/10/12
  • Last Seen:  

Hi, I try to install this  Pull: https://github.com/secretdataz/athena-web-service

already succeed follow this step

To install dependencies for this project, you need https://getcomposer.org/.

  • run composer install to install dependencies.
  • copy .env.example and paste it as .env.
  • edit .env and add your MySQL credentials.
  • run php artisan key:generate to generate the encryption key for your installation.
  • run php artisan migrate to create required MySQL tables.
  • see config directory for additional configurations.

 

and this is my config/athena.php

use defaut setting. and already check my char_server.conf same like Alllowed_worlds "rAthena". 
 

<?php

return [
    'error_response' => '{"Type": 3}',
    'allowed_worlds' => ['rAthena'],
    'force_same_ip' => env('ATHENA_FORCE_SAME_IP', true),
];

and already generated new table 
Screenshot_434.png.ace1e6ba17e13d32fc3828bdff7625c0.png

and when try to akses the www.emble.myro.com < this addres where is athena web service installed

get error like this

Screenshot_430.png.e1867ba9ad213b975c6eb731b9578359.png

Actually I don't understand how to use this app
and what should display when try to run the app?


or i miss some configure?

Update : acctualy this app only work if reveice right data ? LOL thats way always get type: 3 [so this app only triger from change emblem in game]

And dont forget to change forcesameip into False! I don't know why when i set to true the emblem didn't wanna to upload

and  new case :
what the function for get user_configs?
is related with this message?

Screenshot_446.png.878e326ad621d264eb8c84151f002d8c.png
its should triger when player first login right? until right now table user_configs always empty...

Edited by LearningRO
Link to comment
Share on other sites

18 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  924
  • Reputation:   166
  • Joined:  04/05/13
  • Last Seen:  

Edit IP on '\data\luafiles514\lua files\service_korea\ExternalSettings_kr.lub'


AccountLinkedUserDataUrl = {
    Save = "http://127.0.0.1:8000/userconfig/save",
    Load = "http://127.0.0.1:8000/userconfig/load"
}
TwitterDataUrl = {
    Auth = "http://0.0.0.0:3000/twitter/user-auth",
    Upload = "http://0.0.0.0:3000/twitter/upload"
}
EmblemDataUrl = {
    Upload = "http://127.0.0.1:8000/emblem/upload",
    Download = "http://127.0.0.1:8000/emblem/download"
}


Change 127.0.0.1 to your ip address.

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  107
  • Topics Per Day:  0.02
  • Content Count:  770
  • Reputation:   69
  • Joined:  02/10/12
  • Last Seen:  

3 hours ago, Start_ said:

Edit IP on '\data\luafiles514\lua files\service_korea\ExternalSettings_kr.lub'


AccountLinkedUserDataUrl = {
    Save = "http://127.0.0.1:8000/userconfig/save",
    Load = "http://127.0.0.1:8000/userconfig/load"
}
TwitterDataUrl = {
    Auth = "http://0.0.0.0:3000/twitter/user-auth",
    Upload = "http://0.0.0.0:3000/twitter/upload"
}
EmblemDataUrl = {
    Upload = "http://127.0.0.1:8000/emblem/upload",
    Download = "http://127.0.0.1:8000/emblem/download"
}


Change 127.0.0.1 to your ip address.

Thanks @Start_ yeah i miss that step LOL

and when try use ip didnt get any respon 

and try use my subdomain since i install this app on subdomain

AccountLinkedUserDataUrl = {
    Save = "http://emblem.test-ro.com/userconfig/save",
    Load = "http://emblem.test-ro.com/userconfig/load"
}
TwitterDataUrl = {
    Auth = "http://emblem.test-ro.com/twitter/user-auth",
    Upload = "http://emblem.test-ro.com/twitter/upload"
}
EmblemDataUrl = {
    Upload = "http://emblem.test-ro.com/emblem/upload",
    Download = "http://emblem.test-ro.com/emblem/download"
}

get respond but stil failed

Screenshot_435.png.d576da59acedfbb292854b4ef5fe05ae.png

 

btw im still get "type:3" when try to acces embe.test-ro.com

its can be the problem?

or still miss some step?

Edited by LearningRO
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  924
  • Reputation:   166
  • Joined:  04/05/13
  • Last Seen:  

I don't know this step neccessary or not.

cd to your guild emblem folder like before and type

php artisan serve

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  107
  • Topics Per Day:  0.02
  • Content Count:  770
  • Reputation:   69
  • Joined:  02/10/12
  • Last Seen:  

4 minutes ago, Start_ said:

I don't know this step neccessary or not.

cd to your guild emblem folder like before and type


php artisan serve

 

hi this is my result when running that command

 

Lravel development server started: <http://127.0.0.1:8000>
[Fri Jul 10 17:45:12 2020] PHP 7.4.5 Development Server (http://127.0.0.1:8000) started

 

btw do u already try this app? and work?

Edited by LearningRO
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  924
  • Reputation:   166
  • Joined:  04/05/13
  • Last Seen:  

Yes. It's work well on 2020-03-04 RagexeRE.

 

20200401 last time I tried it's not working but not sure it's worked right now or not.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  107
  • Topics Per Day:  0.02
  • Content Count:  770
  • Reputation:   69
  • Joined:  02/10/12
  • Last Seen:  

On 7/10/2020 at 10:14 PM, Start_ said:

Yes. It's work well on 2020-03-04 RagexeRE.

 

20200401 last time I tried it's not working but not sure it's worked right now or not.

after I disabled forcesameIP right now succed upload/download
ahh i used 20200401 so my problem maybe on client side issue?

yeah its work on 20200304
Screenshot_450.png.cc1dcc7e07ffaf8b7dead555208a2bd1.png
thank you start!

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  1509
  • Reputation:   227
  • Joined:  08/03/12
  • Last Seen:  

Hello, I received {"Type": 3} also. 

I tried change EmblemDataUrl to my IP and using client 2020-03-04 RagexeRE.

Ive tried upload emblems in client, but nothing happen.

And theres no more forcesameIP since its already reverted in Secret's git.

Btw i delete .env file after installation. Or I should just leave it there ?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  924
  • Reputation:   166
  • Joined:  04/05/13
  • Last Seen:  

30 minutes ago, Chaos92 said:

Hello, I received {"Type": 3} also. 

I tried change EmblemDataUrl to my IP and using client 2020-03-04 RagexeRE.

Ive tried upload emblems in client, but nothing happen.

And theres no more forcesameIP since its already reverted in Secret's git.

Btw i delete .env file after installation. Or I should just leave it there ?

You should leave .env there.

If you can't see emblems change in seconds try re-open game client and set emblem again.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  107
  • Topics Per Day:  0.02
  • Content Count:  770
  • Reputation:   69
  • Joined:  02/10/12
  • Last Seen:  

38 minutes ago, Chaos92 said:

Hello, I received {"Type": 3} also. 

I tried change EmblemDataUrl to my IP and using client 2020-03-04 RagexeRE.

Ive tried upload emblems in client, but nothing happen.

And theres no more forcesameIP since its already reverted in Secret's git.

Btw i delete .env file after installation. Or I should just leave it there ?

Hello. for your message get "type 3" its coz this APP only triger in game and the right data

you should do nothing with your API addres

just config your API Adress like start_ tell before

Edited by LearningRO
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  1509
  • Reputation:   227
  • Joined:  08/03/12
  • Last Seen:  

1 hour ago, Start_ said:

You should leave .env there.

If you can't see emblems change in seconds try re-open game client and set emblem again.

Shouldnt it can be opened by anyone by going to /.env path ? Or should change the permission ?

because its in web-athena-service folder so public can just open the path/.env 

1 hour ago, LearningRO said:

Hello. for your message get "type 3" its coz this APP only triger in game and the right data

you should do nothing with your API addres

just config your API Adress like start_ tell before

does we need to use php artisan serve and do we need to use port 8000 there ?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  46
  • Topics Per Day:  0.02
  • Content Count:  267
  • Reputation:   40
  • Joined:  01/19/17
  • Last Seen:  

@Chaos92

You don't need to delete the .env file however you can add .htaccess to prevent public users to view it.

Also, you don't need to use port :8000 if you didn't change the port on your http daemon.

This link (external) might help you.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  1509
  • Reputation:   227
  • Joined:  08/03/12
  • Last Seen:  

I realized I didnt diffed client with external setting koreas, so :

- if you diffed with external setting koreas, u can add emblemURL stated above in service_korea. In my case, its in service_usa.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.02
  • Content Count:  115
  • Reputation:   7
  • Joined:  05/09/19
  • Last Seen:  

Need to know how to install Web service i try and don't understand

 

To install dependencies for this project, you need https://getcomposer.org/. 

  • run composer install to install dependencies.
  • copy .env.example and paste it as .env.
  • edit .env and add your MySQL credentials.
  • run php artisan key:generate to generate the encryption key for your installation.
  • run php artisan migrate to create required MySQL tables.
  • see config directory for additional configurations.
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.02
  • Content Count:  115
  • Reputation:   7
  • Joined:  05/09/19
  • Last Seen:  

The original model is good, why change it so difficult?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  1509
  • Reputation:   227
  • Joined:  08/03/12
  • Last Seen:  

18 minutes ago, ittiphol said:

The original model is good, why change it so difficult?

You can try this PR now : https://github.com/rathena/rathena/pull/5731

if you're asking about the guild emblem changes, its because of client support.

if you're using for example 2018 clients or older you might still can use the old one. This only for client 2020 above.

Edited by Chaos92
additional info
  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.02
  • Content Count:  115
  • Reputation:   7
  • Joined:  05/09/19
  • Last Seen:  

8 minutes ago, Chaos92 said:

You can try this PR now : https://github.com/rathena/rathena/pull/5731

if you're asking about the guild emblem changes, its because of client support.

if you're using for example 2018 clients or older you might still can use the old one. This only for client 2020 above.

Very difficult to install
And the elusive explanation I have tried many times, but I have not succeeded.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  1509
  • Reputation:   227
  • Joined:  08/03/12
  • Last Seen:  

44 minutes ago, ittiphol said:

Very difficult to install
And the elusive explanation I have tried many times, but I have not succeeded.

which one difficult ? its easier I think since its in rathena folder already.

If you're asking on how, its already there inside that PR the instruction.

Ive comment also about how to pull from other user git.

 

Or else you can just wait for it to be merged in rathena master and you use it, it just the matter of time.

Edited by Chaos92
additional info
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.02
  • Content Count:  115
  • Reputation:   7
  • Joined:  05/09/19
  • Last Seen:  

Just now, Chaos92 said:

which one difficult ? its easier I think since its in rathena folder already.

If you're asking on how, its already there inside that PR the instruction.

Ive comment also about how to pull from other user git.

 

Or else you can just wait for it to be merged in rathena master and you use it, it just the matter of time.

Oh then i wait to merged in rathena.

Thank you ^^

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...