Crazy AMX Sizes.
#1

For some reason, whenever I specifically compile with the "actor_plus" include, it causes my .amx size to get crazy big. I've just finished testing it with a blank script (so the includes merely consist of a_samp, actor_plus and Pawn.RakNet), here are the outputs:

.pwn size = 4kb
.amx size = 383,726kb

Here's the warning that I get specifically and only when I'm including actor_plus (I've never seen this before; does not occur when compiling my script without actor_plus included):

PHP Code:
"warning 232: output file is written, but with compact encoding disabled" 
I'm guessing that's the root of my issue, however I'm even more curious why I'm only getting this warning when using actor_plus.

Notes:

I should probably note I'm using Sublime 3 as my IDE and compiling through there. I'm also using Zeex's latest compiler (https://github.com/pawn-lang/compiler/releases)

I've also contacted Dayrion (creator of the "actor_plus" include) and he's said he has never gotten such a compiler warning nor the issue of the .amx file sizes.
Reply
#2

I'll post the PM I sent previously to add some details on this thread.
Quote:
Originally Posted by Dayrion
Hello.
That's weird. I've a filterscript that used to test the include. I included : izcmd, sscanf2, YSF, y_va, Pawn.RakNet, stream and y_iterate to test it and the AMX File isn't bigger than 120 KO.

For the warning you get, I've never seen it before. I'm sorry. You should ask on the forum what it means. If you do it, please let me know I want to follow the thread.
Reply
#3

Quote:
Originally Posted by [HLF]Southclaw
View Post
Someone else mentioned they ran into this and they said the only change was a new compiler so it could be a regression in the latest 3.10.7 release. If you could try and reproduce this bug as minimally as possible, we can get a fix out in the next compiler release. And temporarily, you can drop back to 3.10.4 until 3.10.8 is out.
Well, here are the outputs when I use different versions of the compiler. (this is on a blank script that's the size of 4kb, with the includes "a_samp/streamer/Pawn.RakNet/actor_plus":

PHP Code:
[B]Compiler Version 3.10.3[/B]: Test.pwn4kbOutput AMX Size102,386kb0 Warnings.
[
B]Compiler Version 3.10.4[/B]: Test.pwn4kbOutput AMX Size102,386kb0 Warnings.
[
B]Compiler Version 3.10.5[/B]: Test.pwn4kbOutput AMX Size102,386kb0 Warnings.
[
B]Compiler Version 3.10.6[/B]: Test.pwn4kbOutput AMX Size102,386kb0 Warnings.
[
B]Compiler Version 3.10.7[/B]: Test.pwn4kbOutput AMX Size383,726kb1 Warning.
"warning 232: output file is written, but with compact encoding disabled" 
Clearly the issue is with the latest version of the compiler, seeing how the warning only appears when I compile with that version. Although, even though the other version don't give me this warning and the .amx size output is way smaller; aren't they still outputing crazy numbers? 102mb amxes for a .pwn the size of 4kb seems like quite a lot.

I'm also still EXTREMELY curious why this only happens when I use "actor_plus", because, otherwise, it compiles my actual (as well as the blank) script perfectly fine at a reasonable size amx and I don't get the warning.
Reply
#4

Can you, please, share the script you compile? I'm curious that my include make you troubles.
Reply
#5

Quote:
Originally Posted by Dayrion
View Post
Can you, please, share the script you compile? I'm curious that my include make you troubles.
It's quite litterally a blank script. Although this happens on any script I attempt to compile with your include.

Take a look:

https://pastebin.com/2kEwb0D3
Reply
#6

Similar issue. My AMX size is so huge. I also got that warning I've never seen before, but to fix that, place #pragma compress 0 in your script. But in my scenario, I don't use actor_plus.

.pwn file = 2,261 KB
.amx file = 3,082,119 KB (3GB+.. )

I think it's the latest zeex compiler that caused this issue.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)