Gamemode Compiling Size
#1

Hey guys... I get a wierd thing after I'm done compiling my gamemode. Its not what you think, there are no erros or warnings. It seems something is way too huge and it displays in this manner.

Note : Also, my gamemode's .amx is 40mb in size. My gamemode has around 40.000 lines so it shouldn't be that much.

Quote:

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

Header size: 21852 bytes
Code size: 1944684 bytes
Data size: 167236404 bytes
Stack/heap size: 120000 bytes; estimated max. usage: unknown, due to recursion
Total requirements:169322940 bytes

Done.

Later edit : This is a list of my includes. If you have any ideas about which one might cause this please let me know
pawn Код:
#include <a_samp>
#include <a_mysql>
#include <strlib>
#include <utils>
#include <a_http>
#include <dini>
#include <multilines>
#include <audio>
#include <F_Streamer>
#include <zones>
#include <progress>
#include <neon>
#include <zcmd>
#include <regex>
#include <opjv>
#include <foreach>
Reply
#2

40mb amx file? That'd be normal for the 1-2million line scripts, which don't even exist!

Make sure your indention is fine, and make sure you're not using any unnecessary include files. Also, make sure that your arrays for the strings you're making are suitable, don't have massive arrays basically.
Reply
#3

Been checking some strings lately...dont think there is the problem.

What does "indention" mean ? I dont think I got it.
Reply
#4

Quote:
Originally Posted by rappy93
Посмотреть сообщение
Been checking some strings lately...dont think there is the problem.

What does "indention" mean ? I dont think I got it.
pawn Код:
SomeFunction()
{
    This
    {
        Is
        {
            Indention
        }
    }
}
SomeOtherFunction
{
This
{
Is
{
Not
}
}
}
Reply
#5

Well, I script like this
pawn Код:
{

    {

        {
 

         }

     }

}
Now,what should I be looking for exactly?
Reply
#6

Later edit : This is a list of my includes. If you have any ideas about which one might cause this please let me know
pawn Код:
#include <a_samp>
#include <a_mysql>
#include <strlib>
#include <utils>
#include <a_http>
#include <dini>
#include <multilines>
#include <audio>
#include <F_Streamer>
#include <zones>
#include <progress>
#include <neon>
#include <zcmd>
#include <regex>
#include <opjv>
#include <foreach>
Reply
#7

You probably have some really large arrays and you are compiling with 500 players check for those
Reply
#8

I just went through the whole script and cut almost all the strings into half their size where it could be done.
Also, MAX_PLAYERS is defined to 108 since my server slots are 100. Still same error.
Reply
#9

Not too sure if it would work or not but;

pawn Код:
#pragma dynamic 20000
Reply
#10

Tried pragma dynamic before but here, this is the result with your value :

stack/heap size: 80000 bytes; estimated max. usage: unknown, due to recursion

My question is , does it affect my script if I let it this way ?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)