ZenHAX

Free Game Research Forum | Official QuickBMS support | twitter @zenhax | SSL HTTPS://zenhax.com
It is currently Fri Jan 18, 2019 5:57 pm

All times are UTC




Post new topic  Reply to topic  [ 6 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 228 times
Top
   
PostPosted: Sun May 31, 2015 2:00 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 9649
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: 9649
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
   
PostPosted: Tue Dec 25, 2018 12:48 am 
User avatar

Joined: Tue Oct 13, 2015 1:26 pm
Posts: 397
aluigi wrote:
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.

Sorry for the necropost but I can't finded this subject on another place so... there's some problem with the comment tags "/**/", you can see what I'm talking about in this script: http://aluigi.altervista.org/bms/nxpk.bms

_________________
Tribo Gamer Brasil


Top
   
PostPosted: Wed Jan 02, 2019 6:52 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 9649
@Delutto
Here I see no problems with nxpk.bms. The only "weird" thing is that both "if" and "endif" are red but the comment is perfectly handled.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 6 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