Raised This Month: $ Target: $400
 0% 

[Solved] SMA file to big to be compiled? Not enough memory?


Post New Thread Reply   
 
Thread Tools Display Modes
tonykaram1993
Senior Member
Join Date: Mar 2013
Location: This World
Old 12-08-2014 , 09:49   Re: [Solved] SMA file to big to be compiled? Not enough memory?
Reply With Quote #11

Aha I see. I have a habit of always saving the file before compiling, however it could be that this time I forgot?
Anyhow, I am sorry you had to spend some time on this, but yet again I thank you for it.
__________________
My Plugins:
UltimatePlugin
UltimateSurf
UltimateAdmin
Code:
rcon version | rcon amxx version | rcon meta version
rcon amxx plugins | rcon meta list | rcon status
I AM INACTIVE ON THIS FORUM - For direct contact: [email protected]

Last edited by tonykaram1993; 12-08-2014 at 09:50.
tonykaram1993 is offline
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 12-08-2014 , 10:03   Re: [Solved] SMA file to big to be compiled? Not enough memory?
Reply With Quote #12

Quote:
Originally Posted by Arkshine View Post
It crashes because of g_strKnifeSounds, you have left a comma for the last item and for some reason compiler doesn't like it. It's dumb, and another stupid compiler bug. It seems to crash only with 3d array with undefined size. I don't remember if it was happening with 1.8.2 compiler, as it could be a side-effect of the update applied in 1.8.3. That's said, I remember SourceMod allowing extra comma in array, like enum, I guess it's worth to check that. Compiler is a bitch.
I will take a note about this. ;)

By the way, below sentences make me laugh when I read it again and again. Yet, it is true. Please don't misunderstood me.
Quote:
Originally Posted by Arkshine View Post
It's dumb, and another stupid compiler bug.
Quote:
Originally Posted by Arkshine View Post
Compiler is a bitch.

Last edited by zmd94; 12-08-2014 at 10:11.
zmd94 is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 12-08-2014 , 11:39   Re: [Solved] SMA file to big to be compiled? Not enough memory?
Reply With Quote #13

No worry.

By the way, I was wrong, actually trailing comma in an array is allowed in 1.8.2/3, but doesn't work well when you want to use sizeof on it, it could give wrong result. It happens more for array with undefined size.

Like:
Code:
new array[][]= {     { 1, 2 },     { 2, 3 }, }
Result: sizeof array is 3 (expected 2), sizeof array[] throws a warning and thus returns 0.


Code:
new array[][][] = {     { { 1, 2 }, { 1, 2 } },     { { 2, 3 }, { 1, 2 } }, }
Result: sizeof array is 3 (expected 2), sizeof array[] is 1 (expected 2), sizeof array[][] throws a warning with 1.8.2.
Worth be noted: in 1.8.2, even without comma, sizeof array[][] returns a warning. It has been fixed in 1.8.3 where it gives proper size but with comma it crashes (regression).


So to sum up:
- 3d array [][][] with undefined size + trailing comma = 1.8.2: wrong sizeof value with non-string values, otherwise crash with string. 1.8.3: crash for both.
- 2d array [][] with undefined size + trailing comma = wrong sizeof value.

Will see if it can be fixed, but meanwhile make sure you avoid trailing comma anyway.
__________________

Last edited by Arkshine; 12-08-2014 at 11:41.
Arkshine is offline
AGoodGuy
Member
Join Date: Sep 2014
Old 12-08-2014 , 12:16   Re: [Solved] SMA file to big to be compiled? Not enough memory?
Reply With Quote #14

Try to complie with F9 in Amxx Studio, you can easy detect small error like this. I always use F9 to quick complie.
Btw: Can i use Notepad++ to showing code like Amxx studio(with color) and quick complie?
__________________
Without Passion Life Is Nothing

Quote:
“If you can't fly then run, if you can't run then walk, if you can't walk then crawl, but whatever you do, you have to keep moving forward.”― Martin Luther King Jr.

Last edited by AGoodGuy; 12-08-2014 at 12:19.
AGoodGuy is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 12-08-2014 , 12:33   Re: [Solved] SMA file to big to be compiled? Not enough memory?
Reply With Quote #15

Maybe you should read the thread. There is no error, it's compiler crash. Whatever AMXX Studio, NP++ or such, it uses amxxpc.exe to compile, and if compiler crashes, there is nothing you can do.
__________________
Arkshine is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 12-08-2014 , 18:10   Re: [Solved] SMA file to big to be compiled? Not enough memory?
Reply With Quote #16

This has been fixed in latest build. Both wrong sizeof value and crash with trailing comma in 2d/3d arrays. I got actually lucky since such fix was pushed for SourceMod recently.
__________________

Last edited by Arkshine; 12-08-2014 at 18:11.
Arkshine is offline
tonykaram1993
Senior Member
Join Date: Mar 2013
Location: This World
Old 12-08-2014 , 18:19   Re: [Solved] SMA file to big to be compiled? Not enough memory?
Reply With Quote #17

Thank you. I probably should have posted this in "Issues with AMX Mod X", but anyway you still saw and it's fixed now
__________________
My Plugins:
UltimatePlugin
UltimateSurf
UltimateAdmin
Code:
rcon version | rcon amxx version | rcon meta version
rcon amxx plugins | rcon meta list | rcon status
I AM INACTIVE ON THIS FORUM - For direct contact: [email protected]
tonykaram1993 is offline
AGoodGuy
Member
Join Date: Sep 2014
Old 12-09-2014 , 00:24   Re: [Solved] SMA file to big to be compiled? Not enough memory?
Reply With Quote #18

PHP Code:
"weapons/taser/knife_deploy1.wav"
        
"weapons/taser/knife_hit1.wav"
        
"weapons/taser/knife_stab"
        
"weapons/taser/knife_hit1.wav"
        
"weapons/taser/knife_hit1.wav"//<== Here 
Sorry, my mistake, i only see this, :-p
__________________
Without Passion Life Is Nothing

Quote:
“If you can't fly then run, if you can't run then walk, if you can't walk then crawl, but whatever you do, you have to keep moving forward.”― Martin Luther King Jr.
AGoodGuy is offline
tonykaram1993
Senior Member
Join Date: Mar 2013
Location: This World
Old 12-09-2014 , 06:04   Re: [Solved] SMA file to big to be compiled? Not enough memory?
Reply With Quote #19

Have you read the thread? It has already been solved by Arkshine.
__________________
My Plugins:
UltimatePlugin
UltimateSurf
UltimateAdmin
Code:
rcon version | rcon amxx version | rcon meta version
rcon amxx plugins | rcon meta list | rcon status
I AM INACTIVE ON THIS FORUM - For direct contact: [email protected]
tonykaram1993 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:16.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode