Jump to content


Photo

GMLpal: RegEx find & replace, code statistics


  • Please log in to reply
17 replies to this topic

#1 Davve

Davve

    GMC Member

  • GMC Member
  • 4091 posts
  • Version:GM:Studio

Posted 30 June 2014 - 10:24 PM

It kinda sucks that GameMaker can't replace text across all code in the opened project, so I made this little tool.
GMLpal can open GameMaker:Studio projects and match code pieces in scripts, shaders, timelines, objects, rooms and constants using Regular Expressions (or normal search patterns) and replace them if you wish. It also has some neat statistics about the opened project.

Download (.zip with .exe)
 
Tips
  • In the replace box, use $1, $2... to represent groups matched by RegEx. In the screenshot below you can see how I use this to replace all draw_sprite into draw_sprite_ext.
  • When saving changes, GMLpal can automatically make a backup for you. This is recommended in case you change your mind about something you've replaced.
  • Open Stats via Misc to see lines of code count and other interesting info about your game. Select an item in the tree to limit the statistics to that node.
  • RegEx reference: http://www.regular-e.../reference.html


7-1.png

7-2.png


Edited by Davve, 18 October 2015 - 03:31 PM.

  • 22

#2 Lukan Spellweaver

Lukan Spellweaver

    Gay Wizard Freak & mcmonkey's plaything

  • GMC Member
  • 3704 posts
  • Version:GM:Studio

Posted 30 June 2014 - 10:46 PM

Omg, it's a real thing! I thought your status was just a mockup!
I can't properly download and use this right now, but I most definitely will later!
  • 0

DeEuDARh.pngi1SR21Q.png

Find me on Itch.io | GameJolt | YouTube | Twitter | Facebook | Website | Ask.FM

 GMC Google Hangout | I liek monkehs

The GMC, here lies she. Kicked to the curb, with nary a word. She shall live on, though. Remain strong, bros.

Also: MIKE DAILLY TOLD ME TO UPDATE MY SIGNATURE


#3 minecheesecraft

minecheesecraft

    GMC Member

  • GMC Member
  • 29 posts
  • Version:GM:Studio

Posted 30 June 2014 - 11:13 PM

Hey David! Looks cool! I'll have to try it when I get time.


  • 0

> This forum is archived. If you like my stuff, get some mental help and some glasses. Or if you prefer, you can visit my website or my new forums profile. <


#4 Nallebeorn

Nallebeorn

    Valar Morghulis

  • GMC Member
  • 703 posts
  • Version:GM:Studio

Posted 03 July 2014 - 01:59 PM

Nice tool! What does "items" mean? (in the stats)


  • 0

oldGMCsig1.png oldGMCsig2.png oldGMCsig3.png oldGMCsig4.png oldGMCsig5.png


#5 Davve

Davve

    GMC Member

  • GMC Member
  • 4091 posts
  • Version:GM:Studio

Posted 03 July 2014 - 02:10 PM

Nice tool! What does "items" mean? (in the stats)

 

An "item" is a script or a folder in the tree in the left window.


  • 0

#6 Nallebeorn

Nallebeorn

    Valar Morghulis

  • GMC Member
  • 703 posts
  • Version:GM:Studio

Posted 03 July 2014 - 02:13 PM

 

Nice tool! What does "items" mean? (in the stats)

 

An "item" is a script or a folder in the tree in the left window.

 

Oh... yeah, feels rather obvious know :)


  • 0

oldGMCsig1.png oldGMCsig2.png oldGMCsig3.png oldGMCsig4.png oldGMCsig5.png


#7 Tthecreator

Tthecreator

    GMC Member

  • GMC Member
  • 241 posts
  • Version:GM:Studio

Posted 12 July 2014 - 10:30 PM

is this made in gamemaker itself??? doesn't look like but who knows.


  • 0

progresses of my games:

IMPF maincoms: 5%, just making it for my friends as an reaction test since we are a tf2 team using some minigames and trowing some networking in. not shore why i'm telling this but i could make it public for anyone on request

Breaktrough engine: 1%, making an engine that is reliable, moddable(as in external data), using as many features from myself as possible. Unfortunetly i had a drawback due to corrupted files.

site: http://www.digithomas.nl (dutch)

 

#8 Davve

Davve

    GMC Member

  • GMC Member
  • 4091 posts
  • Version:GM:Studio

Posted 12 July 2014 - 10:59 PM

is this made in gamemaker itself??? doesn't look like but who knows.

 

C# using Windows Forms.


  • 0

#9 Tthecreator

Tthecreator

    GMC Member

  • GMC Member
  • 241 posts
  • Version:GM:Studio

Posted 13 July 2014 - 08:11 PM

omg omg omg, awesome!!!!


  • 0

progresses of my games:

IMPF maincoms: 5%, just making it for my friends as an reaction test since we are a tf2 team using some minigames and trowing some networking in. not shore why i'm telling this but i could make it public for anyone on request

Breaktrough engine: 1%, making an engine that is reliable, moddable(as in external data), using as many features from myself as possible. Unfortunetly i had a drawback due to corrupted files.

site: http://www.digithomas.nl (dutch)

 

#10 ThePC007

ThePC007

    Chickenator

  • GMC Member
  • 1062 posts
  • Version:GM:Studio

Posted 15 July 2014 - 01:51 PM

I love this for the stats feature. :P


  • 1

#11 Black Doomer

Black Doomer

    GMC Member

  • GMC Member
  • 105 posts
  • Version:GM8.1

Posted 18 July 2014 - 03:20 AM

Amazing. Can you add support for GMK and GM81 formats?


  • 1

And sorry for my bad English.

My projects: Doom 2D Multiplayer

My extensions: Codepage Converter | XP Messages | Bit Wizard | Time Library

Other: Download Manager 2 GEX


#12 LukeLC

LukeLC

    GMC Member

  • GMC Member
  • 152 posts
  • Version:GM:Studio

Posted 08 August 2014 - 03:37 AM

I know this thread is a couple months old now, but just wanted to express my thanks for this tool. Being able to search and replace through all my scripts has helped me tremendously and I know will continue to do so in the future. Great job! :)


  • 0

LukeLC
 

bmcd7l6.png


#13 Paolo Mazzon

Paolo Mazzon

    Has Too Much Time

  • GMC Member
  • 811 posts
  • Version:GM:Studio

Posted 18 October 2014 - 07:26 PM

What's this made in? It doesn't look GM:S.


  • 0

#14 SpiderJelly

SpiderJelly

    GMC Member

  • New Member
  • 5 posts
  • Version:GM:Studio

Posted 19 October 2014 - 12:19 AM

What's this made in? It doesn't look GM:S.

 

 

 

Beyond the necropost of Lugi123 (The answer is in the thread, by the way. C#), this has saved me countless hours.

 

Instead of bothering to learn how to code well I'm using a large number of form objects which requires a -lot- of find&replace. This is a huge help.


  • 0

#15 Paolo Mazzon

Paolo Mazzon

    Has Too Much Time

  • GMC Member
  • 811 posts
  • Version:GM:Studio

Posted 19 October 2014 - 02:13 AM

Stoopid me. I suspected C#.


  • 0

#16 Stir the Sugar

Stir the Sugar

    GMC Member

  • GMC Member
  • 58 posts
  • Version:GM8.1

Posted 31 January 2015 - 08:03 PM

This is an amazing tool thank you Davve or should I say the glorious David!


  • 0

#17 Paolo Mazzon

Paolo Mazzon

    Has Too Much Time

  • GMC Member
  • 811 posts
  • Version:GM:Studio

Posted 31 January 2015 - 08:05 PM

This is an amazing tool thank you Davve or should I say the glorious David!

Yeah, Davve is like a GML god in me and my friends' mind. He just makes awesome stuff that really pushes GM's capabilities.


  • 1

#18 ShrikeGFX

ShrikeGFX

    GMC Member

  • GMC Member
  • 66 posts
  • Version:GM:Studio

Posted 28 March 2016 - 06:34 PM

thanks a lot for this, saved my ass

Nice looking website btw


  • 0