ZenHAX

Free Game Research Forum | Official QuickBMS support | twitter @zenhax | SSL HTTPS://zenhax.com
It is currently Thu Jun 24, 2021 6:02 pm

All times are UTC




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

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 12303
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: 12303
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: 548
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: 12303
@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
   
PostPosted: Sun Jan 20, 2019 12:01 am 
User avatar

Joined: Tue Oct 13, 2015 1:26 pm
Posts: 548
aluigi wrote:
@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.
Exactly, I was talking about the Np++ User-defined Language, not the script itself.

_________________
Tribo Gamer Brasil


Top
   
PostPosted: Fri Jun 11, 2021 5:19 pm 

Joined: Sun Jan 10, 2021 2:23 pm
Posts: 71
Fixed.
Attachment:
Before.jpg [153.67 KiB]
Downloaded 1 time

Attachment:
After.jpg [126.09 KiB]
Downloaded 1 time

Attachment:
Process.gif [336.8 KiB]
Downloaded 1 time

There are two versions:
1) fixed as shown and exported (20 KB)
2) manually patched as text (27 KB)


Attachments:
userDefineLang_bms.zip [15.19 KiB]
Downloaded 15 times

_________________
How to search (and find!) scripts @ My Notes
Use Filecutter so more people can look in your files.
Please, don't quote if message context is clear.
Top
   
PostPosted: Sat Jun 12, 2021 1:02 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 12303
Great! :D


Top
   
PostPosted: Wed Jun 16, 2021 6:26 pm 

Joined: Sun Jan 10, 2021 2:23 pm
Posts: 71
Fixing resulted issue.
Attachment:
c12.gif [266.17 KiB]
Not downloaded yet
Also added (seek_set seek_cur seek_end) to 7th group, (exit) to 1st.
Enabled folding of comments. (compact, expand)
Attachment:
afoc.gif [106.2 KiB]
Not downloaded yet
There's a great plugin used to get context help: Language Help by Franco Stellari
Attachment:
LangHelp.gif [164.75 KiB]
Not downloaded yet
But it's fully functional for help files in specific formats.
Quote:
The help file path may point to a local CHM, HLP, or PDF files for keyword search.
Alternatively, the field may point to a command/file that will be shell executed.
This include HTML file both on the local machine and on the internet.
The other good solution would be console like help: getdstring /?


Attachments:
UDL_QBMS.zip [7.07 KiB]
Downloaded 8 times

_________________
How to search (and find!) scripts @ My Notes
Use Filecutter so more people can look in your files.
Please, don't quote if message context is clear.
Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 10 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