UDL (User-Defined Language) for Notepad++

Creation, discussion, and balancing of game content such as techs, buildings, ship parts.

Moderator: Committer

Message
Author
User avatar
qsswin
Pupating Mass
Posts: 93
Joined: Tue Oct 18, 2011 6:48 pm
Location: UTC-5

UDL (User-Defined Language) for Notepad++

#1 Post by qsswin » Wed Jan 23, 2013 1:05 am

I had no idea whatsoever where to put this thing, so I decided to drop it here:

I made a UDL (User-Defined Language) for Notepad++ based the scripting language that FreeOrion uses. (Actually, for old versions, it's for the UDL 2.0 Notepad++ plugin, but in recent versions, that is part of the official program.) It should include all currently implemented values, statistics, conditions, effects, logical keywords, operators, and miscellaneous "glue" keywords. To use it, open the "Language", choose the "Define Your Language..." option, and click import and import the file. If you dislike the colors, you can change them from the many "styler" dialogs throughout the menus(see http://udl20.weebly.com/ for more information).

It probably isn't all that likely anybody will find this useful, but I hope somebody does! Even if nobody else does, I will.

(It is in a .zip since the forum software considers xml files possible attack vectors, apparently. Of course, downloading a zip is considerably less secure than downloading an xml file...)
Attachments
effects.zip
download at your own risk ;p
(2.25 KiB) Downloaded 103 times

User avatar
Bigjoe5
Designer and Programmer
Posts: 2058
Joined: Tue Aug 14, 2007 6:33 pm
Location: Orion

Re: How to Help with Scripting

#2 Post by Bigjoe5 » Wed Jan 23, 2013 6:20 am

qsswin wrote:I had no idea whatsoever where to put this thing, so I decided to drop it here:
A new thread probably would have been appropriate.
qsswin wrote:I made a UDL (User-Defined Language) for Notepad++ based the scripting language that FreeOrion uses... It probably isn't all that likely anybody will find this useful, but I hope somebody does! Even if nobody else does, I will.
I was considering doing that myself actually. I'll have to tweak it some to suit my style, but I think I'll definitely use this.
Last edited by Bigjoe5 on Fri Jan 25, 2013 11:14 am, edited 1 time in total.
Warning: Antarans in dimensional portal are closer than they appear.

User avatar
em3
Vacuum Dragon
Posts: 504
Joined: Sun Sep 25, 2011 2:51 pm

Re: UDL (User-Defined Language) for Notepad++

#3 Post by em3 » Wed Jan 23, 2013 10:21 am

Maybe the language should get an official name... FreeOrionEffectsScript (FOES) ;)?
[...] for Man has earned his right to hold this planet against all comers, by virtue of occasionally producing someone totally batshit insane. - Randall Munroe, title text to xkcd #556

User avatar
Vezzra
Release Manager, Design
Posts: 4609
Joined: Wed Nov 16, 2011 12:56 pm
Location: Sol III

Re: UDL (User-Defined Language) for Notepad++

#4 Post by Vezzra » Wed Jan 23, 2013 3:13 pm

em3 wrote:Maybe the language should get an official name... FreeOrionEffectsScript (FOES) ;)?
FreeOrionContentScript (FOCS) would be more accurate I think ;)

User avatar
em3
Vacuum Dragon
Posts: 504
Joined: Sun Sep 25, 2011 2:51 pm

Re: UDL (User-Defined Language) for Notepad++

#5 Post by em3 » Wed Jan 23, 2013 3:43 pm

I might have suggested a humorous name, but in essence a name would be helpful. If someone were to, say, create an emacs mode, effects-mode (taking cue from qsswin's file name) would sound too generic, in my opinion. :)
[...] for Man has earned his right to hold this planet against all comers, by virtue of occasionally producing someone totally batshit insane. - Randall Munroe, title text to xkcd #556

User avatar
Geoff the Medio
Programming, Design, Admin
Posts: 12249
Joined: Wed Oct 08, 2003 1:33 am
Location: Munich

Re: UDL (User-Defined Language) for Notepad++

#6 Post by Geoff the Medio » Wed Jan 23, 2013 6:49 pm

Content Script instead of Effects Script might be more accurate, as the format does more than just effects.

User avatar
Vezzra
Release Manager, Design
Posts: 4609
Joined: Wed Nov 16, 2011 12:56 pm
Location: Sol III

Re: UDL (User-Defined Language) for Notepad++

#7 Post by Vezzra » Wed Jan 23, 2013 7:13 pm

How does FOCOS sound? (_F_ree_O_rion_CO_ntent_S_cript)

User avatar
Geoff the Medio
Programming, Design, Admin
Posts: 12249
Joined: Wed Oct 08, 2003 1:33 am
Location: Munich

Re: UDL (User-Defined Language) for Notepad++

#8 Post by Geoff the Medio » Wed Jan 23, 2013 7:15 pm

Vezzra wrote:How does FOCOS sound? (_F_ree_O_rion_CO_ntent_S_cript)
Pretty lame...

User avatar
Vezzra
Release Manager, Design
Posts: 4609
Joined: Wed Nov 16, 2011 12:56 pm
Location: Sol III

Re: UDL (User-Defined Language) for Notepad++

#9 Post by Vezzra » Wed Jan 23, 2013 7:20 pm

Geoff the Medio wrote:
Vezzra wrote:How does FOCOS sound? (_F_ree_O_rion_CO_ntent_S_cript)
Pretty lame...
:lol: Oh well, it was worth a try... ;)

User avatar
em3
Vacuum Dragon
Posts: 504
Joined: Sun Sep 25, 2011 2:51 pm

Re: UDL (User-Defined Language) for Notepad++

#10 Post by em3 » Thu Jan 24, 2013 9:35 am

FOrCS
OrCS
FOrC
OrC
FOS
FOC
[...] for Man has earned his right to hold this planet against all comers, by virtue of occasionally producing someone totally batshit insane. - Randall Munroe, title text to xkcd #556

User avatar
qsswin
Pupating Mass
Posts: 93
Joined: Tue Oct 18, 2011 6:48 pm
Location: UTC-5

Re: UDL (User-Defined Language) for Notepad++

#11 Post by qsswin » Thu Jan 24, 2013 11:54 pm

I'm glad it was useful!

As for a name, how about FreeOrion Content/Ui Scripts, or FOCUS?

User avatar
em3
Vacuum Dragon
Posts: 504
Joined: Sun Sep 25, 2011 2:51 pm

Re: UDL (User-Defined Language) for Notepad++

#12 Post by em3 » Fri Jan 25, 2013 8:47 am

I like that, but it could lead to some hilarious statements (how to change a planet's focus in FOCUS? ;)).
[...] for Man has earned his right to hold this planet against all comers, by virtue of occasionally producing someone totally batshit insane. - Randall Munroe, title text to xkcd #556

yandonman
Creative Contributor
Posts: 699
Joined: Thu Aug 30, 2012 12:32 am

Re: UDL (User-Defined Language) for Notepad++

#13 Post by yandonman » Fri Jan 25, 2013 8:52 am

See previous
Pretty lame...
How about FOScript. Fo'shizzle.

... see previous ... :P
Pretty lame...
Code released under GPL 2.0. Content released under GPL 2.0 and Creative Commons Attribution-ShareAlike 3.0.

User avatar
Bigjoe5
Designer and Programmer
Posts: 2058
Joined: Tue Aug 14, 2007 6:33 pm
Location: Orion

Re: UDL (User-Defined Language) for Notepad++

#14 Post by Bigjoe5 » Fri Jan 25, 2013 11:15 am

em3 wrote:I like that, but it could lead to some hilarious statements (how to change a planet's focus in FOCUS? ;)).
Actually, in that context IMO, FOCUS makes even more sense, and is less silly-sounding than FOrCS. We could also just drop the caps and call it "Focus".
Warning: Antarans in dimensional portal are closer than they appear.

User avatar
eleazar
Design & Graphics Lead Emeritus
Posts: 3858
Joined: Sat Sep 23, 2006 7:09 pm
Location: USA — midwest

Re: UDL (User-Defined Language) for Notepad++

#15 Post by eleazar » Sun Jan 27, 2013 12:08 am

A name would be useful.

I think something distinct would be more beneficial than a clever acronym. A search for "focs" or whatever would work much better than for "focus"

Post Reply