ZenHAX

Free Game Research Forum | Official QuickBMS support | twitter @zenhax | SSL HTTPS://zenhax.com
It is currently Mon Dec 18, 2017 5:17 am

All times are UTC




Post new topic  Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Sun May 31, 2015 11:56 am 
User avatar

Joined: Sat Dec 13, 2014 1:01 am
Posts: 161
I use Notepad++ to create and edit QuickBMS scripts (makes indentation easier). However today I looked into making custom syntax colouring and such for it, and it wasn't too hard. Basically I just made it colour various commands and data types, as well as comments and strings. It makes script a bit more readable and less bland to look at. It also allows you to collapse if statements and loops.

I've attached an XML file with the language definition. To use it, in Notepad++ go to Language -> Define your language, then click Import and select the XML file. It should automatically detect .bms files to be displayed using that definition.

Hopefully this is helpful for some people, I definitely think it makes scripts easier to read :)


Attachments:
quickbms_udl.zip [1.25 KiB]
Downloaded 147 times
Top
   
PostPosted: Sun May 31, 2015 2:00 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 7251
There is also one on my website:
http://aluigi.org/papers/bms/userDefineLang.xml

I have only to add few recent algorithms and a couple of commands but it should be quite complete.
Maybe take a look at it too.


Top
   
PostPosted: Sun May 31, 2015 2:16 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 7251
I have just updated it by adding NameCRC and Codepage plus all the remaining compression and encryption algorithm that have been introduced in the recent versions.


Top
   
PostPosted: Sun May 31, 2015 2:24 pm 
User avatar

Joined: Sat Dec 13, 2014 1:01 am
Posts: 161
Ah, didn't know that existed. That one's much better than mine :P

Guess I'll be using that now, thanks!


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 4 posts ] 

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Limited