Results 1 to 9 of 9
  1. #1
    Xandahhh's Avatar
    Join Date
    Apr 2013
    Gender
    male
    Location
    UK
    Posts
    42
    Reputation
    10
    Thanks
    3
    My Mood
    Confused

    Infinite Loading

    For whatever reason my Server and wServer have decided to not work anymore, I haven't changed a thing.

    Getting the infinite load error, wServer stops on /char/getList, why does this happen?

  2. #2
    XWojtasPLX's Avatar
    Join Date
    Feb 2017
    Gender
    male
    Posts
    2
    Reputation
    10
    Thanks
    0
    you must undo new maded things by you

  3. #3
    Xandahhh's Avatar
    Join Date
    Apr 2013
    Gender
    male
    Location
    UK
    Posts
    42
    Reputation
    10
    Thanks
    3
    My Mood
    Confused
    I didn't make any changes...
    Anyway, here's a screenshot of Fiddler.

    <h1>Not Found</h1>
    The requested URL <i>/char/list</i> was not found on this server.

  4. #4
    ossimc82's Avatar
    Join Date
    Jul 2012
    Gender
    male
    Posts
    496
    Reputation
    42
    Thanks
    887
    My Mood
    In Love
    You clearly changed the something in the request handler, cuz the server says that there is no requesthandler for "/char/list"

  5. #5
    Xandahhh's Avatar
    Join Date
    Apr 2013
    Gender
    male
    Location
    UK
    Posts
    42
    Reputation
    10
    Thanks
    3
    My Mood
    Confused
    This is a completely freshly downloaded source from your ******, I've not changed anything at all, apart from wServer config and Server config, this is like my 5th attempt at trying to make it work

  6. #6
    BurgerLoverMx's Avatar
    Join Date
    Jan 2014
    Gender
    male
    Location
    Québec
    Posts
    411
    Reputation
    23
    Thanks
    843
    My Mood
    Relaxed
    Pretty sure you didn't setup xampp correctly, hense there not being any place to store chars and accounts.

  7. #7
    Xandahhh's Avatar
    Join Date
    Apr 2013
    Gender
    male
    Location
    UK
    Posts
    42
    Reputation
    10
    Thanks
    3
    My Mood
    Confused
    Apacheort 80 /443
    MySQL: port 3306





    #region

    using db;
    using System;
    using System.Collections.Generic;
    using System.Collections.Specialized;
    using System****;
    using System.Net;
    using System.Web;

    #endregion

    namespace server
    {
    public abstract class RequestHandler
    {
    protected NameValueCollection Query { get; private set; }
    protected HttpListenerContext Context { get; private set; }

    public void HandleRequest(HttpListenerContext context)
    {
    this.Context = context;
    if (ParseQueryString())
    {
    Query = new NameValueCollection();
    using (StreamReader rdr = new StreamReader(context.Request.InputStream))
    Query = HttpUtility.ParseQueryString(rdr.ReadToEnd());

    if (Query.AllKeys.Length == 0)
    {
    string currurl = context.Request.RawUrl;
    int iqs = currurl.IndexOf('?');
    if (iqs >= 0)
    Query = HttpUtility.ParseQueryString((iqs < currurl.Length - 1) ? currurl.Substring(iqs + 1) : string.Empty);
    }
    }

    HandleRequest();
    }

    public bool CheckAccount(Account acc, Database db, bool checkAccInUse=true)
    {
    if (acc == null && !String.IsNullOrWhiteSpace(Query["password"]))
    {
    WriteErrorLine("Account credentials not valid");
    return false;
    }
    else if (acc == null && String.IsNullOrWhiteSpace(Query["password"]))
    return true;

    if (acc.Banned)
    {
    using (StreamWriter wtr = new StreamWriter(Context.Response.OutputStream))
    wtr.WriteLine("<Error>Account under maintenance</Error>");
    Context.Response.Close();
    return false;
    }
    if (checkAccInUse)
    {
    int? timeout = 0;
    if (db.CheckAccountInUse(acc, ref timeout))
    {
    if (timeout != null)
    using (StreamWriter wtr = new StreamWriter(Context.Response.OutputStream))
    wtr.WriteLine("<Error>Account in use. (" + timeout + " seconds until timeout.)</Error>");
    else
    using (StreamWriter wtr = new StreamWriter(Context.Response.OutputStream))
    wtr.WriteLine("<Error>Account in use.</Error>");

    Context.Response.Close();
    return false;
    }
    }
    return true;
    }

    public void WriteLine(string value, params object[] args)
    {
    using (StreamWriter wtr = new StreamWriter(Context.Response.OutputStream))
    if (args == null || args.Length == 0) wtr.Write(value);
    else wtr.Write(value, args);
    }

    public void WriteErrorLine(string value, params object[] args)
    {
    using (StreamWriter wtr = new StreamWriter(Context.Response.OutputStream))
    wtr.Write("<Error>" + value + "</Error>", args);
    }

    protected virtual bool ParseQueryString() => true;

    protected abstract void HandleRequest();
    }

    //internal class RequestHandlers
    //{
    // internal static readonly Dictionary<string, RequestHandler> Handlers = new Dictionary<string, RequestHandler>
    // {
    // {"/crossdomain.xml", new Crossdomain()},
    // {"/mysterybox/getBoxes", new mysterybox.getBoxes()},
    // {"/package/getPackages", new packages.getPackages()},
    // //{"/arena/getPersonalBest", new ArenaPersonalBest()},
    // //{"/arena/getRecords", new ArenaRecords()},
    // {"/app/globalNews", new app.globalNews()},
    // {"/app/getLanguageStrings", new app.languageSettings()},
    // {"/app/init", new app.init()},
    // //{"/clientError/add", new Add()},
    // {"/account/purchaseSkin", new account.purchaseSkin()},
    // {"/account/verifyage", new account.verifyage()},
    // // /account/getCredits
    // {"/account/purchasePackage", new account.purchasePackage()},
    // {"/playerMuledump/view", new playerMuledump.view()},
    // {"/account/acceptTOS", new account.acceptTOS()},
    // // /account/getBeginnerPackageTimeLeft
    // // /getoffers
    // // /kabam/getcredentials
    // // /account/sendVerifyEmail
    // // /steamworks/purchaseOffer
    // // /steamworks/register
    // // /kongregate/getcredentials
    // // /kongregate/register
    // // /kongregate/internalRegister
    // // /steamworks/getcredentials
    // {"/account/playFortuneGame", new account.playFortuneGame()},
    // {"/account/redeemGiftCode", new account.redeemGiftCode()},
    // {"/account/checkGiftCode", new account.checkGiftCode()},
    // {"/account/resetPassword", new account.resetPassword()},
    // {"/account/validateEmail", new account.validateEmail()},
    // {"/account/changeEmail", new account.changeEmail()},
    // {"/account/purchaseMysteryBox", new account.purchaseMysteryBox()},
    // {"/account/getProdAccount", new account.getProdAccount()},
    // {"/account/register", new account.register()},
    // {"/account/verify", new account.verify()},
    // {"/account/forgotPassword", new account.forgotPassword()},
    // {"/account/sendVerifyEmail", new account.sendVerifyEmail()},
    // {"/account/changePassword", new account.changePassword()},
    // {"/account/purchaseCharSlot", new account.purchaseCharSlot()},
    // {"/account/setName", new account.setName()},
    // {"/char/list", new @char.list()},
    // {"/char/delete", new @char.delete()},
    // {"/char/fame", new @char.fame()},
    // {"/credits/getoffers", new credits.getoffers()},
    // {"/credits/add", new credits.add()},
    // {"/credits/kabamadd", new credits.kabamadd()},
    // {"/char/purchaseClassUnlock", new @char.purchaseClassUnlock()},
    // {"/fame/list", new fame.list()},
    // {"/picture/get", new picture.get()},
    // {"/guild/getBoard", new guild.getBoard()},
    // {"/guild/setBoard", new guild.setBoard()},
    // {"/guild/listMembers", new guild.listMembers()}
    // };
    //}
    }
    - - - Updated - - -

    All my ports are forwarded aswell, no idea what's going on

    - - - Updated - - -
    @ossimc82 Do I need to update any or all of the NuGet packages? I tried that aswell and it completely fucks up the whole project

    - - - Updated - - -

    Will having my Client pointed at 127.0.0.1:8888 make any difference?

  8. #8
    Xandahhh's Avatar
    Join Date
    Apr 2013
    Gender
    male
    Location
    UK
    Posts
    42
    Reputation
    10
    Thanks
    3
    My Mood
    Confused

    Help

    Funnily enough I can access the documents through a web browser but the client seems to not be able to do the same

  9. #9
    Xandahhh's Avatar
    Join Date
    Apr 2013
    Gender
    male
    Location
    UK
    Posts
    42
    Reputation
    10
    Thanks
    3
    My Mood
    Confused
    Solved @Raple @Ahlwong

Similar Threads

  1. [Solved] Infinite Loading Screen
    By Fightera100 in forum Realm of the Mad God Private Servers Help
    Replies: 0
    Last Post: 10-18-2014, 03:41 PM
  2. Infinite loading
    By epicly awsome in forum Realm of the Mad God Help & Requests
    Replies: 5
    Last Post: 07-24-2014, 06:25 PM
  3. How to Create Infinite Loading Screens
    By ^R&srtgr#$efrf in forum Realm of the Mad God Discussions
    Replies: 3
    Last Post: 07-15-2013, 07:06 PM
  4. [Help Request] Infinite Loading Screen (How to Clear Cache to Unban Account)
    By cucuYeL in forum Realm of the Mad God Help & Requests
    Replies: 5
    Last Post: 06-27-2013, 01:23 PM
  5. [Help Request] Character infinite loading screen *NOT BANNED!*
    By you5576 in forum Realm of the Mad God Help & Requests
    Replies: 2
    Last Post: 02-16-2013, 10:00 PM