CabConModding
Facebook
Twitter
youtube
Discord
Contact us
RSS
Menu
CabConModding
Home
New
Top
Premium
Rules
FAQ - Frequently Asked Questions
Games
Fornite
Call of Duty: Black Ops 3
Clash of Clans
Grand Theft Auto 5
Apex Legends
Assassin’s Creed Origins
Forums
Premium
Latest posts
What's new
Latest posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Log in
Register
What's new
Premium
Latest posts
Menu
Log in
Register
Navigation
Install the app
Install
More options
Dark Theme
Contact us
Close Menu
Forums
Gaming
Call of Duty Classics
Call of Duty: Black Ops 2
Call of Duty: Black Ops 2 Mods and Scripts
Call of Duty: Black Ops 2 Scripts
GSC Lines of Code Counter
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="BullyWiiPlaza" data-source="post: 7937" data-attributes="member: 543"><p>I thought that it would be useful to count the total lines of code in a GSC project. For this I found CLOC which you can download <a href="https://sourceforge.net/projects/cloc/" target="_blank"><strong>here</strong></a>.</p><p></p><p>Since this is a command line tool, you'll have to use CMD and type the following command:</p><p>[CODE]cloc-1.64.exe --force-lang="C",gsc "D:\Bossam v6"[/CODE]</p><p>The first parameter specifies the language and the 2nd parameter the project folder which you need to edit every time you want to analyze a different project.</p><p></p><p><u><strong>Note:</strong></u></p><p>All GSC source files must have the <strong>.gsc</strong> extension, not <strong>.txt</strong> or anything else.</p><p></p><p>If you enter the command correctly and press Enter, the output will look similar to this:</p><p>[CODE]http://cloc.sourceforge.net v 1.64 T=0.13 s (7.5 files/s, 100438.0 lines/s)</p><p>-------------------------------------------------------------------------------</p><p>Language files blank comment code</p><p>-------------------------------------------------------------------------------</p><p>C 1 1016 71 12282</p><p>-------------------------------------------------------------------------------[/CODE]</p><p>So Bossam's menu for instance has 12.282 lines of code.</p><p></p><p>Let's do another one:</p><p>[CODE]>cloc-1.64.exe --force-lang="C",gsc "D:\Jiggy v4.2"</p><p> 1 text file.</p><p> 1 unique file.</p><p> 1 file ignored.</p><p></p><p>http://cloc.sourceforge.net v 1.64 T=0.17 s (6.1 files/s, 100226.0 lines/s)</p><p>-------------------------------------------------------------------------------</p><p>Language files blank comment code</p><p>-------------------------------------------------------------------------------</p><p>C 1 771 932 14841</p><p>-------------------------------------------------------------------------------[/CODE]</p><p>The biggest menu probably:</p><p>[CODE]>cloc-1.64.exe --force-lang="C",gsc "D:\Project TCM v9"</p><p> 1 text file.</p><p> 1 unique file.</p><p> 1 file ignored.</p><p></p><p>http://cloc.sourceforge.net v 1.64 T=0.36 s (2.8 files/s, 108789.0 lines/s)</p><p>-------------------------------------------------------------------------------</p><p>Language files blank comment code</p><p>-------------------------------------------------------------------------------</p><p>C 1 4117 8879 26351</p><p>-------------------------------------------------------------------------------[/CODE]</p><p>And one last one:</p><p>[CODE]>cloc-1.64.exe --force-lang="C",gsc "D:\Dynamic v3"</p><p> 20 text files.</p><p> 20 unique files.</p><p> 5 files ignored.</p><p></p><p>http://cloc.sourceforge.net v 1.64 T=0.17 s (120.2 files/s, 91523.2 lines/s)</p><p>-------------------------------------------------------------------------------</p><p>Language files blank comment code</p><p>-------------------------------------------------------------------------------</p><p>C 20 163 0 15065</p><p>-------------------------------------------------------------------------------</p><p>SUM: 20 163 0 15065</p><p>-------------------------------------------------------------------------------[/CODE]</p><p>Of course, the menu size does not mean much about quality but it's still interesting. I hope you enjoyed this. <img src="/styles/default/xenforo/smilies.emoji/people/stuck_out_tongue_winking_eye.emoji.svg" class="smilie" loading="lazy" alt=":tonguewink:" title="Tongue Wink :tonguewink:" data-shortname=":tonguewink:" /></p></blockquote><p></p>
[QUOTE="BullyWiiPlaza, post: 7937, member: 543"] I thought that it would be useful to count the total lines of code in a GSC project. For this I found CLOC which you can download [URL='https://sourceforge.net/projects/cloc/'][B]here[/B][/URL]. Since this is a command line tool, you'll have to use CMD and type the following command: [CODE]cloc-1.64.exe --force-lang="C",gsc "D:\Bossam v6"[/CODE] The first parameter specifies the language and the 2nd parameter the project folder which you need to edit every time you want to analyze a different project. [U][B]Note:[/B][/U] All GSC source files must have the [B].gsc[/B] extension, not [B].txt[/B] or anything else. If you enter the command correctly and press Enter, the output will look similar to this: [CODE]http://cloc.sourceforge.net v 1.64 T=0.13 s (7.5 files/s, 100438.0 lines/s) ------------------------------------------------------------------------------- Language files blank comment code ------------------------------------------------------------------------------- C 1 1016 71 12282 -------------------------------------------------------------------------------[/CODE] So Bossam's menu for instance has 12.282 lines of code. Let's do another one: [CODE]>cloc-1.64.exe --force-lang="C",gsc "D:\Jiggy v4.2" 1 text file. 1 unique file. 1 file ignored. http://cloc.sourceforge.net v 1.64 T=0.17 s (6.1 files/s, 100226.0 lines/s) ------------------------------------------------------------------------------- Language files blank comment code ------------------------------------------------------------------------------- C 1 771 932 14841 -------------------------------------------------------------------------------[/CODE] The biggest menu probably: [CODE]>cloc-1.64.exe --force-lang="C",gsc "D:\Project TCM v9" 1 text file. 1 unique file. 1 file ignored. http://cloc.sourceforge.net v 1.64 T=0.36 s (2.8 files/s, 108789.0 lines/s) ------------------------------------------------------------------------------- Language files blank comment code ------------------------------------------------------------------------------- C 1 4117 8879 26351 -------------------------------------------------------------------------------[/CODE] And one last one: [CODE]>cloc-1.64.exe --force-lang="C",gsc "D:\Dynamic v3" 20 text files. 20 unique files. 5 files ignored. http://cloc.sourceforge.net v 1.64 T=0.17 s (120.2 files/s, 91523.2 lines/s) ------------------------------------------------------------------------------- Language files blank comment code ------------------------------------------------------------------------------- C 20 163 0 15065 ------------------------------------------------------------------------------- SUM: 20 163 0 15065 -------------------------------------------------------------------------------[/CODE] Of course, the menu size does not mean much about quality but it's still interesting. I hope you enjoyed this. :tonguewink: [/QUOTE]
Verification
Post reply
Forums
Gaming
Call of Duty Classics
Call of Duty: Black Ops 2
Call of Duty: Black Ops 2 Mods and Scripts
Call of Duty: Black Ops 2 Scripts
GSC Lines of Code Counter
CabConModding is now on facebook! Check the latest Updates, the Site Status and much more now!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.
Accept
Learn more…
Top