AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   General (https://forums.alliedmods.net/forumdisplay.php?f=58)
-   -   Have I written the largest plugin for Sourcemod? (https://forums.alliedmods.net/showthread.php?t=340353)

Skyy 11-13-2022 01:32

Have I written the largest plugin for Sourcemod?
 
https://i.imgur.com/PGZzTBy.png
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.

Drixevel 11-13-2022 13:45

Re: Have I written the largest plugin for Sourcemod?
 
That is indeed a girthy boy.

alasfourom 11-13-2022 14:58

Re: Have I written the largest plugin for Sourcemod?
 
I wonder how many lines

Skyy 11-13-2022 18:10

Re: Have I written the largest plugin for Sourcemod?
 
Quote:

Originally Posted by alasfourom (Post 2792749)
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.

Dragokas 11-14-2022 10:31

Re: Have I written the largest plugin for Sourcemod?
 
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.

Grey83 11-14-2022 12:34

Re: Have I written the largest plugin for Sourcemod?
 
Skyy, I hope you didn't get a crappy code like in FireWaLL Super Admin?

Skyy 11-21-2022 05:55

Re: Have I written the largest plugin for Sourcemod?
 
Quote:

Originally Posted by Dragokas (Post 2792798)
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.
https://i.imgur.com/gZLv8zn.png
The highlighted talentmenu.cfg will probably be 200,000 - 300,000 bytes when it's finished.

Quote:

Originally Posted by Grey83 (Post 2792805)
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.

Grey83 11-21-2022 08:51

Re: Have I written the largest plugin for Sourcemod?
 
Quote:

Originally Posted by Skyy (Post 2793315)
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.

Skyy 12-02-2022 05:15

Re: Have I written the largest plugin for Sourcemod?
 
Quote:

Originally Posted by Grey83 (Post 2793326)
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.

Drixevel 12-02-2022 11:44

Re: Have I written the largest plugin for Sourcemod?
 
Quote:

Originally Posted by Skyy (Post 2794150)
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


All times are GMT -4. The time now is 04:48.

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