Raised This Month: $32 Target: $400
 8% 

Have I written the largest plugin for Sourcemod?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Skyy
AlliedModders Donor
Join Date: Jan 2010
Location: Toronto, Canada
Old 11-13-2022 , 01:32   Have I written the largest plugin for Sourcemod?
Reply With Quote #1


Expecting to break the 300,000 byte marker before it's finished. This is a giant text parser.
A few years ago, it was close to breaking the line count of Sourcemod.
Skyy is offline
Drixevel
AlliedModders Donor
Join Date: Sep 2009
Location: Somewhere headbangin'
Old 11-13-2022 , 13:45   Re: Have I written the largest plugin for Sourcemod?
Reply With Quote #2

That is indeed a girthy boy.
Drixevel is offline
alasfourom
Senior Member
Join Date: Feb 2022
Location: Saudi Arabia
Old 11-13-2022 , 14:58   Re: Have I written the largest plugin for Sourcemod?
Reply With Quote #3

I wonder how many lines
__________________
alasfourom is offline
Skyy
AlliedModders Donor
Join Date: Jan 2010
Location: Toronto, Canada
Old 11-13-2022 , 18:10   Re: Have I written the largest plugin for Sourcemod?
Reply With Quote #4

Quote:
Originally Posted by alasfourom View Post
I wonder how many lines
25,935.
The Original skyrpg was > 200,000 lines, since a lot of stuff was hard-coded.
I managed to squeeze this version down to around to 20% of that amount with the sequel to it, RPGMaker v1 and this version is about 13% of the original.

It's less overall code, but it's all logic, so it was a lot harder from a technical stand-point, as it needed to be designed for scalability and flexibility with the expectation that a group of people could all download it and develop their own totally-unique experience through editing config files alone.

Compared to the old, hard-coded version where new talents and features had to be hard-coded, the caveats to this new system is the main config file has about 400 variables, and the talent config I built is over 3,000 lines, and that's just for creating talents. Each system has its own config that has to be fully-configured. It could be as small as a few thousand lines or as large as hundreds of thousands of lines, depending on how large and complex of an RPG experience a server operator wants to build for their community.


This is primarily why I won't port RPGMaker1 or RPGMaker2 to new syntax.
Current SM versions support old syntax, and tmk they don't have plans to stop supporting it.

Might write RPG Maker 3 in new syntax, but not sure, yet. This started as a multi-month project that ballooned into a multi-year project.

Last edited by Skyy; 11-13-2022 at 18:15.
Skyy is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 11-14-2022 , 10:31   Re: Have I written the largest plugin for Sourcemod?
Reply With Quote #5

Oh, shit. I hope you split code by different includes. Otherwise, I cannot imagine, how to manage such huge code and find anything in it. For me, it's quite difficult to support even 2000+ lines of my code.
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas is offline
Grey83
Veteran Member
Join Date: Dec 2014
Location: Ukraine
Old 11-14-2022 , 12:34   Re: Have I written the largest plugin for Sourcemod?
Reply With Quote #6

Skyy, I hope you didn't get a crappy code like in FireWaLL Super Admin?
__________________

Last edited by Grey83; 11-14-2022 at 12:34.
Grey83 is offline
Skyy
AlliedModders Donor
Join Date: Jan 2010
Location: Toronto, Canada
Old 11-21-2022 , 05:55   Re: Have I written the largest plugin for Sourcemod?
Reply With Quote #7

Quote:
Originally Posted by Dragokas View Post
Oh, shit. I hope you split code by different includes.
Definitely.
The configs are split up, too. Probably why the binary is a lot smaller.

The highlighted talentmenu.cfg will probably be 200,000 - 300,000 bytes when it's finished.

Quote:
Originally Posted by Grey83 View Post
Skyy, I hope you didn't get a crappy code like in FireWaLL Super Admin?
I wrote the code, myself; I didn't get it from somewhere else.

Last edited by Skyy; 11-21-2022 at 05:59.
Skyy is offline
Grey83
Veteran Member
Join Date: Dec 2014
Location: Ukraine
Old 11-21-2022 , 08:51   Re: Have I written the largest plugin for Sourcemod?
Reply With Quote #8

Quote:
Originally Posted by Skyy View Post
I wrote the code, myself; I didn't get it from somewhere else.
I'm talking about the quality of writing code, and not about borrowing pieces of code.
__________________
Grey83 is offline
Skyy
AlliedModders Donor
Join Date: Jan 2010
Location: Toronto, Canada
Old 12-02-2022 , 05:15   Re: Have I written the largest plugin for Sourcemod?
Reply With Quote #9

Quote:
Originally Posted by Grey83 View Post
I'm talking about the quality of writing code, and not about borrowing pieces of code.
the code I write for my community is always top shelf; if you're going to do something, do it right; I don't trust other people to do something that I can do better, and I would never use the majority of the publicly-shared plugins, since a lot of developers have no standards.

Last edited by Skyy; 12-02-2022 at 05:16.
Skyy is offline
Drixevel
AlliedModders Donor
Join Date: Sep 2009
Location: Somewhere headbangin'
Old 12-02-2022 , 11:44   Re: Have I written the largest plugin for Sourcemod?
Reply With Quote #10

Quote:
Originally Posted by Skyy View Post
the code I write for my community is always top shelf; if you're going to do something, do it right; I don't trust other people to do something that I can do better, and I would never use the majority of the publicly-shared plugins, since a lot of developers have no standards.
This is like the bog standard way most coders think. lol
Drixevel 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:25.


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