Page 1 of 2

/maxfps killing framerate the next time you log in...

Posted: Sat Nov 01, 2003 9:14 pm
by Plazmic
Change the WritePrivateProfileString calls to use Arg2 instead of Arg1, otherwise you log into 1 fps...

Posted: Sat Nov 01, 2003 9:49 pm
by wassup
I didn't have a problem with framerate when I logged in, or anytime after.

This is with today's zip file.

Posted: Sat Nov 01, 2003 10:06 pm
by Plazmic
It's fine until you do a /maxfps fg #
then it sets the ini to "fg" which on the next login gives you 1 fps ;(

Posted: Sat Nov 01, 2003 10:32 pm
by wassup
ouch hehe... I experimented a little with that in game... seems some # between 40 and 50 gives acceptable framerates when in fg.

Great new feature without a doubt. I was able to start some apps with EQ in the background and didn;t get the extremely long waiting times for the app to start.

Posted: Sat Nov 01, 2003 11:10 pm
by Lax
Normally I couldn't very well work on MQ while in game, now I do it all and compile, etc just link after unloading ;)

Fixed the ini bug in dev cvs, dont have time to update zip right now sorry

Posted: Sat Nov 01, 2003 11:14 pm
by EqMule
updated zip...

Posted: Sat Nov 01, 2003 11:31 pm
by dont_know_at_all
Argh, the telnet output is all messed up...

Posted: Sat Nov 01, 2003 11:36 pm
by EqMule
they usefullness of this command should make up for it ;) heck I lost my nice colors in the mqchatwindow, but Ill take that any day if I can get my cpu to 42% ;)

Posted: Sun Nov 02, 2003 8:53 am
by Lax
Telnet output should be fine, I'll double check the StripMQChat function.

Posted: Sun Nov 02, 2003 12:38 pm
by dont_know_at_all
I fixed it, mostly.

I couldn't find a case where there was a color change like this:
\a#12345

so I'm not sure if that is the right format to skip when sending it to telnet.

Posted: Sun Nov 02, 2003 12:44 pm
by Lax
It's \a#RRGGBB

Posted: Sun Nov 02, 2003 12:46 pm
by dont_know_at_all
I think we need i+=7 in that block.

Posted: Sun Nov 02, 2003 12:50 pm
by Lax
Nope it should be ok how it is.

\a gets skipped in output
# is victim of i++
add 6 to skip the RRGGBB

Posted: Mon Nov 03, 2003 4:22 am
by dont_know_at_all
With your changes, it should be six.

Why did you make it seven? Or am I missing something?

Code: Select all

#include <stdio.h>

typedef char *PCHAR;
typedef void VOID;

VOID StripMQChat(PCHAR in, PCHAR out)
{
        //DebugSpew("StripMQChat(%s)",in);
        int i = 0;
        int o = 0;
        while(in[i])
        {
                if (in[i]=='\a')
                {
                        i++;
                        if(in[i]=='-')
                        { // skip 1 after -
                                i+=2;
                        }
                        else if (in[i]=='#')
                        { // skip 6 after #
                                i+=7;
                        }
                }
                else if (in[i]=='\n')
                {
                }
                else
                        out[o++]=in[i];
                i++;
        }
        out[o]=0;
        //DebugSpew("StripMQChat=>(%s)",out);
}

void main()
{
char szCmd[1024], szOut[1024];
sprintf(szCmd,"\a#rrggbb\aw\ayMaxFPS\ax\a-u:\ax\a-u[\ax\at%d\axForeground\a-u]\ax \a-u[\ax\at%d\ax Background\a-u]\ax",1000/20,1000/50);

StripMQChat(szCmd, szOut);
printf("<%s>\n", szOut);
}

Posted: Mon Nov 03, 2003 9:06 am
by Lax
Well, I certainly didnt make it skip 2 after '-' so that's someone elses change