AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting (https://forums.alliedmods.net/forumdisplay.php?f=107)
-   -   SM Compiler Oddities (https://forums.alliedmods.net/showthread.php?t=310750)

Skyy 09-18-2018 08:30

SM Compiler Oddities
 
Hello, I am just curious if the SM compiler starts to act a little bit funny when plugins get rather large (300,000+ lines) or if there are any current limitations (i'm using sm 1.8.0.5928) on that version.

I have been considering rewriting for new syntax w/ mm.

404UserNotFound 09-18-2018 14:29

Re: SM Compiler Oddities
 
How pray-tell did you write a plugin that is 300k lines?

Skyy 09-18-2018 15:46

Re: SM Compiler Oddities
 
Oh, it's really just about adding new features; I use keyfiles, and we have about twenty of those; one for each module, and some are 10,000+ lines in their own rights. !skyrpg is a project that has transcended the better part of the last 4 years, for me.

It's just a little silly, it takes a good 30+ seconds to compile; https://ca.pcpartpicker.com/user/JESSlCA/saved/ are my machines, so I don't think it's a hardware problem. The good news is it still runs like a charm, regardless of compiler time.

Sadly, because of how much code there is, I have been hesitant to port it to the new method-map system, and the result has been functionality not supported in 1.8 has been added to the plugin by writing a smaller plugin with mm support that uses forwards and natives to send the information to the plugin, although perhaps that could cause a potential issue down-the-line.

lugui 09-19-2018 08:16

Re: SM Compiler Oddities
 
IDK but if it does, I'm prety sure you can split the plgin features across many plgins

Skyy 09-19-2018 09:11

Re: SM Compiler Oddities
 
Yeah - Thank god for natives and forwards.

eyal282 09-21-2018 07:56

Re: SM Compiler Oddities
 
Bro L4D2's entire pseduo code ( or however you spell it ) is a mindboggling 1.5M lines, you can't possibly tell me you got a 300k line code...

Dr!fter 09-21-2018 08:39

Re: SM Compiler Oddities
 
Pretty sure no one is going to be able to answer "if" the compiler acts weirdly with 300k lines. No one is insane to have one plugin with that many lines... well, no one else is. Compile time taking forever is normal, my weapon restrict plugin can take up to 1 second to compile and its easily under 5k lines.

r3D w0LF 09-21-2018 18:48

Re: SM Compiler Oddities
 
Yeah, it depends on ur code, mine is less than 100 lines and takes +3 seconds (ofc in this case i messed up)
https://i.imgur.com/1qzXoBV.png?1

Neuro Toxin 09-21-2018 19:34

Re: SM Compiler Oddities
 
Quote:

Originally Posted by r3D w0LF (Post 2616220)
Yeah, it depends on ur code, mine is less than 100 lines and takes +3 seconds (ofc in this case i messed up)
https://i.imgur.com/1qzXoBV.png?1

Lol @ the datasize

eyal282 09-21-2018 20:02

Re: SM Compiler Oddities
 
Quote:

Originally Posted by r3D w0LF (Post 2616220)
Yeah, it depends on ur code, mine is less than 100 lines and takes +3 seconds (ofc in this case i messed up)
https://i.imgur.com/1qzXoBV.png?1

I need to see it lol


All times are GMT -4. The time now is 05:40.

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