ryzom / ryzomcore

Ryzom Core is the open-source project related to the Ryzom game. This community repository is synchronized with the Ryzom Forge repository, based on the Core branch.
https://wiki.ryzom.dev
GNU Affero General Public License v3.0
338 stars 90 forks source link

cant register ingame #84

Closed ryzom-pipeline closed 10 years ago

ryzom-pipeline commented 10 years ago

Original report by Matthew Lagoe (Bitbucket: botanic, GitHub: botanic).


the shard registration is set to

CreateAccountURL = "";

WOOPS!

ryzom-pipeline commented 10 years ago

Original comment by liria (Bitbucket: liria, GitHub: liria).


The CreateAccountURL variable is hardoced in the code source of "code/ryzom/client/src/client_cfg.cpp"

lines : 330

#!c++

        DisplayAccountButtons = true;
        CreateAccountURL        = "https://secure.ryzom.com/signup/from_client.php";
        ConditionsTermsURL      = "https://secure.ryzom.com/signup/terms_of_use.php";
        EditAccountURL          = "https://secure.ryzom.com/payment_profile/index.php";

And theses variables cannot be set in the client_default.cfg, or only for the DEV version of the client :

lines 883 :

#!c++

        READ_BOOL_DEV(DisplayAccountButtons)
        READ_STRING_DEV(CreateAccountURL)
        READ_STRING_DEV(EditAccountURL)

A simple patch, remove the need of the DEV client : replace READ_STRING_DEV by READ_STRING And add the URLs to your client_default.cfg

ryzom-pipeline commented 10 years ago

Original comment by liria (Bitbucket: liria, GitHub: liria).


A patch not tested :s

#!c++

$ diff -u client_cfg.cpp.origin client_cfg.cpp
--- client_cfg.cpp.origin   2013-11-22 13:06:48.998921068 +0100
+++ client_cfg.cpp  2013-11-22 13:34:23.901571846 +0100
@@ -327,13 +327,11 @@
    TexturesLoginInterface.push_back("texture_interfaces_v3_login");

    DisplayAccountButtons = true;
-   CreateAccountURL    = "https://secure.ryzom.com/signup/from_client.php";
-   ConditionsTermsURL  = "https://secure.ryzom.com/signup/terms_of_use.php";
-   EditAccountURL      = "https://secure.ryzom.com/payment_profile/index.php";
-   BetaAccountURL      = "http://www.ryzom.com/profile";
-   ForgetPwdURL        = "https://secure.ryzom.com/payment_profile/lost_secure_password.php";
-   FreeTrialURL        = "http://www.ryzom.com/join/?freetrial=1";
-   LoginSupportURL     = "http://www.ryzom.com/en/support.html";
+   CreateAccountURL    = "https://shard.ryzomcore.org/ams/index.php?page=register";
+   EditAccountURL      = "https://shard.ryzomcore.org/ams/index.php?page=settings.php";
+   ForgetPwdURL        = "https://shard.ryzomcore.org/ams/index.php?page=reset_password";
+   FreeTrialURL        = "https://shard.ryzomcore.org/ams/index.php?page=register";
+   LoginSupportURL     = "https://shard.ryzomcore.org/ams/";
    Position            = CVector(0.f, 0.f, 0.f);   // Default Position.
    Heading             = CVector(0.f, 1.f, 0.f);   // Default Heading.
    EyesHeight          = 1.5f;                     // Default User Eyes Height.
@@ -881,13 +879,12 @@
    READ_STRING_FV(FSHost)

    READ_BOOL_DEV(DisplayAccountButtons)
-   READ_STRING_DEV(CreateAccountURL)
-   READ_STRING_DEV(EditAccountURL)
-   READ_STRING_DEV(ConditionsTermsURL)
-   READ_STRING_DEV(BetaAccountURL)
-   READ_STRING_DEV(ForgetPwdURL)
-   READ_STRING_DEV(FreeTrialURL)
-   READ_STRING_DEV(LoginSupportURL)
+   READ_STRING_FV(CreateAccountURL)
+   READ_STRING_FV(EditAccountURL)
+   READ_STRING_FV(ConditionsTermsURL)
+   READ_STRING_FV(ForgetPwdURL)
+   READ_STRING_FV(FreeTrialURL)
+   READ_STRING_FV(LoginSupportURL)

 #ifndef RZ_NO_CLIENT
    // if cookie is not empty, it means that the client was launch
ryzom-pipeline commented 10 years ago

Original comment by Matthew Lagoe (Bitbucket: botanic, GitHub: botanic).


fix committed, closing