World of Banished

MODS Garage => Tips and Help => Topic started by: Browser_ice on December 01, 2017, 03:24:33 PM

Title: Trying to create a Notepad++ language for the *.rsc, *.srsl files
Post by: Browser_ice on December 01, 2017, 03:24:33 PM
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++
Title: Re: Trying to create a Notepad++ language for the *.rsc, *.srsl files
Post by: Browser_ice on December 01, 2017, 06:19:06 PM
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.
Title: Re: Trying to create a Notepad++ language for the *.rsc, *.srsl files
Post by: RedKetchup on December 01, 2017, 10:49:58 PM
i am not sure where you are going with this....

it is like you want to do programation instead of making mods.