News:

Welcome to World of Banished!

Main Menu

Trying to create a Notepad++ language for the *.rsc, *.srsl files

Started by Browser_ice, December 01, 2017, 03:24:33 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Browser_ice

Hi, I have done this but I am trying to create a Notepad++ language based on the RSC and SRSL files.

I have started by concatenated all RSC and SRSL files from the resource folder into one single file. I have then sorted the whole thing and removing duplicates. This should give me a lexique of commands (somewhat).

Found 2 possible errors:

Notice ELEMENET instead of ELEMENT:
QuoteRibbonDescription inventoryRibbon
{
"   ElemenetDescription _border = ""containerBorder"";"
"   bool _vertical = true;"
"   ElementDescription _elements [ inventoryHeader, ""inventory"" ]"
}

Notice the RIMAGE instead of IMAGE:
Quotefloat t = image.x + (1.0 - rimage.z) * image.y;

There are a bunch of lines that have calculations with what looks like possible functions or system variables.  Not sure about those so I will not include them.

I have my dictionnary list. Now I need to add them into Notepad++
Computer Specs:
I5-2500 CPU 3.30Mhz,
16GB memory,
GTX 960, DirextX-11
Windows 7 Family Premium

Browser_ice

I am testing the language file. I am using that combined rsc files I manually created to test it.

I have a few issues but don't know if it is because of the rsc combined file I use or not.

I attached what I have so far.

Trying to see autocompletion also.


You are free to try it out.  Again, this is the first I create a custom language file for NotePad++. It is not perfect and has a few mistakes.
Computer Specs:
I5-2500 CPU 3.30Mhz,
16GB memory,
GTX 960, DirextX-11
Windows 7 Family Premium

RedKetchup

i am not sure where you are going with this....

it is like you want to do programation instead of making mods.
> > > Support Mods Creation developments with Donations by Paypal  < < <
Click here to Donate by PayPal .