Free Lines Of Code Counter

Dragon47

Member
Lines of Code Counter

This program analyzes your code and gives you numbers on how many lines and characters you have in your GM Studio project.

When you've chosen a directory and pressed ok, you'll be presented with the information. The text is automatically copied to the clipboard.

It would be cool if you could paste it as a reply here! If you encounter any bugs, please tell me.

Source: http://www.mediafire...nes_of_Code.gmk
EXE: http://www.mediafire...nes_of_Code.exe
 
Current project 23,000 lines.

First project a staggering 204,000 lines I knew it would be a lot, but not that much. Funny thing is I have standardized systems and a few hundred scripts, so that helped squeeze the code down. I've even gone back and rewritten old code.

There are other projects, but I'll spare you the details.

Thanks for the tool.
 

Sammi3

Member
Cool tool. My current project in early alpha currently has the following:

Rooms:
Lines: 0
Empty lines: 0
Characters: 0

Shaders:
Lines: 4466
Empty lines: 806
Characters: 190483

Objects:
Lines: 1515
Empty lines: 176
Characters: 28560

Scripts:
Lines: 13387
Empty lines: 3212
Characters: 325314

Total:
Lines: 19368
Empty lines: 4194
Lines (excluding empty lines): 15174
Empty lines ratio (empty lines/lines): 0.22
Characters: 544357
Characters per line: 28.11
Characters per line (excluding empty lines): 35.87
 
Hey, just stumbled upon this topic, it's a pretty nice tool! Previously I used CLOC with a very quick definition file for GML. Not exactly sure it's working properly, hence it's showing different numbers than your tool. So far I'm trusting yours :p Here's my few-years old project, afaik the biggest I have to date:
Rooms:
Lines: 121
Empty lines: 27
Characters: 2675

Shaders:
Lines: 1331
Empty lines: 246
Characters: 36255

Objects:
Lines: 10313
Empty lines: 2011
Characters: 193409

Scripts:
Lines: 2838
Empty lines: 212
Characters: 62767

Total:
Lines: 14603
Empty lines: 2496
Lines (excluding empty lines): 12107
Empty lines ratio (empty lines/lines): 0.17
Characters: 295106
Characters per line: 20.21
Characters per line (excluding empty lines): 24.37

Edit: One small issue is that I'm using this from my laptop and the window does not fit on the screen. A scrollbar could be nice, but since this tool is aimed at developers, I think it's easy enough to just paste it into some text editor hanging around.
 
Thank you for this tool! This saves me the time of counting by hand! ;)

My RPG project currently has the following:

Rooms:
Lines: 41
Empty lines: 13
Characters: 474

Shaders:
Lines: 0
Empty lines: 0
Characters: 0

Objects:
Lines: 5897
Empty lines: 1768
Characters: 195272

Scripts:
Lines: 11743
Empty lines: 3054
Characters: 500502

Total:
Lines: 17681
Empty lines: 4835
Lines (excluding empty lines): 12846
Empty lines ratio (empty lines/lines): 0.27
Characters: 696248
Characters per line: 39.38
Characters per line (excluding empty lines): 54.20
 
H

Hermen

Guest
Amazing tool, still works even! here's my result :p


Rooms:
Lines: 0
Empty lines: 0
Characters: 0

Shaders:
Lines: 41
Empty lines: 11
Characters: 1119

Objects:
Lines: 15023
Empty lines: 3738
Characters: 363914

Scripts:
Lines: 28551
Empty lines: 3175
Characters: 883579

Total:
Lines: 43615
Empty lines: 6924
Lines (excluding empty lines): 36691
Empty lines ratio (empty lines/lines): 0.16
Characters: 1248612
Characters per line: 28.63
Characters per line (excluding empty lines): 34.03
 
Top