Help - Mercury Emulator Fix

Status
Not open for further replies.

FicoLikeNiko

Member
Jun 30, 2014
33
4
Hey People! :)
I have a problem on Mercury Emulator! :(
Please someone help me! ;)
Error:
dplrUpf.png



Hope you can help me! :muffit:

Code:
## Mercury Emulator System Configuration File
## Must be edited for the server to work

## MySQL Configuration
db.hostname=127.0.0.1
db.port=3306
db.username=root
db.password=root
db.name=mercurydb

## MySQL pooling setup (controls amount of connections)
db.pool.minsize=1
db.pool.maxsize=500

## Game TCP/IP Configuration
game.tcp.bindip=127.0.0.1
game.tcp.port=30004
game.tcp.conlimit=11000
game.tcp.conperip=100
game.tcp.enablenagles=true

## MUS TCP/IP Configuration
mus.tcp.bindip=127.0.0.1
mus.tcp.port=30008
mus.tcp.allowedaddr=127.0.0.1

## Client configuration
client.ping.enabled=1
client.ping.interval=20000
client.maxrequests=300

Extra_Settings:
Code:
# Mercury ExtraSettings #

# Credits/Pixels Loop
currency.loop.enabled=true
currency.loop.time.in.minutes=15
credits.to.give=3000
pixels.to.give=100

# Diamonds Loop
diamonds.loop.enabled=true
diamonds.to.give=1
diamonds.vip.only=true

# Navigator New 2014 Style
navigator.newstyle.enabled=false

# Change Name Settings #
change.name.staff=false
change.name.vip=false
change.name.everyone=false

# Beta stuff and NUX gifts #
enable.beta.camera=true
newuser.gifts.enabled=false
newuser.gift.yttv2.id=

# Interactive stuff #
everyone.use.floor=true
figuredata.url=http://www.holobox.com.es/lcnchk/figuredata.xml
youtube.thumbnail.suburl=youtubethumbnail.php?Video
ExtraSettings.cs (Visual Studio 2013)
Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace Mercury.Core
{
    class ExtraSettings
    {
        internal static bool CURRENCY_LOOP_ENABLED = true;
        internal static int CURRENTY_LOOP_TIME_IN_MINUTES = 15;
        internal static int CREDITS_TO_GIVE = 3000;
        internal static int PIXELS_TO_GIVE = 100;

        internal static bool DIAMONDS_LOOP_ENABLED = true;
        internal static bool DIAMONDS_VIP_ONLY = true;
        internal static int DIAMONDS_TO_GIVE = 1;

        internal static bool CHANGE_NAME_STAFF = true;
        internal static bool CHANGE_NAME_VIP = true;
        internal static bool CHANGE_NAME_EVERYONE = true;

        internal static bool NEW_USER_GIFTS_ENABLED = true;
        internal static bool NAVIGATOR_NEW_ENABLED = true;
        internal static bool ENABLE_BETA_CAMERA = true;
        internal static uint NEW_USER_GIFT_YTTV2_ID = 4930;

        internal static bool EVERYONE_USE_FLOOR = true;
        internal static string FIGUREDATA_URL = "http://www.holobox.com.es/lcnchk/figuredata.xml";


        internal static bool RunExtraSettings()
        {
            if (!File.Exists("extra_settings.txt"))
            {
                return false;
            }
            else
            {
                foreach (string Line in File.ReadAllLines("extra_settings.txt", Encoding.Default))
                {
                    if (String.IsNullOrWhiteSpace(Line) || !Line.Contains("="))
                    {
                        continue;
                    }

                    string[] PARAMS = Line.Split('=');

                    switch (PARAMS[0])
                    {
                        case "currency.loop.enabled":
                            if (PARAMS[1] != "true")
                            {
                                CURRENCY_LOOP_ENABLED = false;
                            }
                            break;

                        case "currency.loop.time.in.minutes":
                            int i = 15;
                            if (int.TryParse(PARAMS[1], out i))
                            {
                                CURRENTY_LOOP_TIME_IN_MINUTES = i;
                            }
                            break;

                        case "credits.to.give":
                            int j = 3000;
                            if (int.TryParse(PARAMS[1], out j))
                            {
                                CREDITS_TO_GIVE = j;
                            }
                            break;

                        case "pixels.to.give":
                            int k = 100;
                            if (int.TryParse(PARAMS[1], out k))
                            {
                                PIXELS_TO_GIVE = k;
                            }
                            break;

                        case "diamonds.loop.enabled":
                            if (PARAMS[1] != "true")
                            {
                                DIAMONDS_LOOP_ENABLED = false;
                            }
                            break;

                        case "diamonds.to.give":
                            int l = 100;
                            if (int.TryParse(PARAMS[1], out l))
                            {
                                DIAMONDS_TO_GIVE = l;
                            }
                            break;

                        case "diamonds.vip.only":
                            if (PARAMS[1] != "true")
                            {
                                DIAMONDS_VIP_ONLY = false;
                            }
                            break;

                        case "navigator.newstyle.enabled":
                            if (PARAMS[1] != "true")
                            {
                                NAVIGATOR_NEW_ENABLED = false;
                            }
                            break;

                        case "change.name.staff":
                            if (PARAMS[1] != "true")
                            {
                                CHANGE_NAME_STAFF = false;
                            }
                            break;

                        case "change.name.vip":
                            if (PARAMS[1] != "true")
                            {
                                CHANGE_NAME_VIP = false;
                            }
                            break;

                        case "change.name.everyone":
                            if (PARAMS[1] != "true")
                            {
                                CHANGE_NAME_EVERYONE = false;
                            }
                            break;

                        case "enable.beta.camera":
                            if (PARAMS[1] != "true")
                            {
                                ENABLE_BETA_CAMERA = false;
                            }
                            break;
                        case "newuser.gifts.enabled":
                            if (PARAMS[1] != "true")
                            {
                                NEW_USER_GIFTS_ENABLED = false;
                            }
                            break;

                        case "newuser.gift.yttv2.id":
                            uint u;
                            if (uint.TryParse(PARAMS[1], out u))
                            {
                                NEW_USER_GIFT_YTTV2_ID = u;
                            }
                            break;

                        case "everyone.use.floor":
                            if (PARAMS[1] != "true")
                            {
                                EVERYONE_USE_FLOOR = false;
                            }
                            break;

                        case "figuredata.url":
                            FIGUREDATA_URL = PARAMS[1];
                            break;

                        default: break;
                    }
                }
            }

            return true;

        }
    }
}
 
Last edited:

Brad

Well-Known Member
Jun 5, 2012
2,319
992
Change this
internal static string FIGUREDATA_URL = " ";
in extra_settings to your Figure data Url, also this is wrong section.
 
Status
Not open for further replies.

Users who are viewing this thread

Top