Community Filename Prefix Reservations

Started by Baronius, August 14, 2004, 06:38:23 PM

Previous topic - Next topic

Baronius

#320
Beside G#, now PA is also registered for you. However, please choose a longer prefix instead of #. (E.g. #A) Nothing except Tutu, which is a finished project, uses such a common (AND important) character, even World Transition Project which is a giant TC can manage it with a longer prefix. Six letters still contain a lot of possibilities, and file-naming can be managed easily if you contemplate your naming conventions properly. ;)
Mental harmony dispels the darkness.

Dragon Lord


jastey

Quote from: Dragon LordPlease register DL# for me. Thanks

-Dragon Lord
Sorry, "DL" is already taken, so your prefix would collide, and current policy is to stick to two-letter prefixes only. Any other posibility? :)


Baronius

Please choose a two-character prefix. I think XL would be perfect (it includes XL# as well! :) )
Mental harmony dispels the darkness.


Baronius

Mental harmony dispels the darkness.

Azzathoth

#327
With my preferred prefix (the one that follows logically from my screen name and that I've been using throughout my thus-far prewriting) looking for all the world like it's already been registered by someone [edited out], it looks like I'd better register one now rather than have to go through all my mod's files when it's ready for release and replace the prefixes for compatibility reasons...

How about A2?

jastey


Sorrow


jastey

Sorry for taking so long for the respond. We prefer registering personal prefixes so I registered IT for you, I hope that's convenient.


Ascension64


The Bigg

Since it's missing, I think I'll make a post about which characters to avoid:

~: conflicts with weidu synthax
$: conflicts with regexp
%: conflicts with WeiDU synthax.
^: conflicts with regexp
*: not allowed in most OS.
+: conflicts with regexp
[]: I may want to reserve them for weidu synthax.
{}: I may want to reserve for weidu synthax.
': I may want to reserve for WeiDU synthax.
": not allowed in most OS.
|: not allowed in most OS.
: not allowed in Windows.
\: not allowed in Windows, conflicts with regexp.
.: means file separator.
<>: not allowed in most OS.
/: not allowed in most OS.
?: not allowed in most OS.
!: if part of a kit name, WeiDU will fail to compile BCS scripts depending on that kit (this is a big problem, and unfortunately it's a bit too late to solve this).

-: forbidden only as a first character, as many program interpret that as a command-line switch, rather than as part of the file (you cant tisunpack a file starting with -, for example).

note: all non alpha-numeric, non _ characters are underrecommended, as they might conflict with characters in some programming language (including '#', which means 'precompiler' in C); however, restricting them is a bit over-reaching.

also: isn't it better to allow only 3-letters reservations, rather than only 2-letter ones, to avoid all legit combinations finishing (or at least delay the inevitable)?

Finally, maybe a moot point, but isn't it better to make it like on TBG, where accepted requests were deleted? this way, it'll be easier for people to notice the rules and the existing list, rather than having to crawl through all the thread.
Please do not contact me for assistance in using BGT, BP, any other of the 'large mods', or a mod I didn't write or contribute to. I'm not your paid support staff, so I'd suggest you to direct your help questions to the forum relative to the mod you're playing.

Thanks for your cooperation.

jastey

Ascension64: prefix is registered.

The Bigg: That's a very helpful list, thank you very much.

Baronius

#335
Thank you for the list of those symbols TheBigg, I was really missing such a list! I'll add it to the initial post of this thread.

Quoteisn't it better to allow only 3-letters reservations, rather than only 2-letter ones, to avoid all legit combinations finishing (or at least delay the inevitable)?
Anyone familiar a bit with discrete maths (and inside that, with combinatorics) can easily see that even if only standard alphabet letters and digits are used, the number of possibilities will be still around 1300.

Two letters are advantageous because they are not too few (some people e.g. Grim Squeaker with # even found the two-letter requirement too many), but not too many either (which  would force the honest modder to spend much more time with contemplating his/her file naming convention.)

If it happens that we're running out of prefixes, people will learn to register only one prefix for themselves, and (after a serious global examination) we will start to delete never-used prefixes (a high percent of the currently registered ones are such).

QuoteFinally, maybe a moot point, but isn't it better to make it like on TBG, where accepted requests were deleted? this way, it'll be easier for people to notice the rules and the existing list, rather than having to crawl through all the thread.
No one has to crawl through the whole thread, because the up-to-date rules can always be found in the initial post. It wouldn't be worth to delete those older posts, they don't prevent anyone from visiting the prefix list or registering their prefix. So it's really doesn't matter that they remain in the thread. :)
Mental harmony dispels the darkness.

The Bigg

#336
The initial post doesn't seem to have been updated  :)

Anyway, while I was trying to fix the problem with '!' in kit names, I found that correct IDS entries are of the form
['A'-'Z''a'-'z']['0'-'9''A'-'Z''a'-'z''#''_''-''!']*

(the '!' I'm trying to code in now), so prefixes starting with a non-letter aren't legal. I can try to change this to
['A'-'Z''a'-'z''#''_']['0'-'9''A'-'Z''a'-'z''#''_''-''!']*
if you ask, but I can't add IDS entries starting with a number or a ! since they conflict with other BAF synthax (and I've already explained the problem with starting a file with '-').

[note: the ' symbols you see there have a relation with how char are represented, they don't mean you can use ' in file names].

EDIT: I just fixed my version of WeiDU so that Kit(Player1,B!SOMEKIT) works, so A!, U! et all are safe.  :)

I'm trying to fix prefixes starting with '#', '_' or a number.

EDIT II: starting with a number or with '#' isn't a 5 minutes job, so for now it's scraped. starting with '_' is added the trivial way, it doesn't cause obvious problems.

EDIT III: prefixes can start with a number (freely), or with a '#'.
Exceptions:
1) it is underrecommended to use file names made up entirely of numbers (EG no ADD_KIT 123456), since this way
Kit(Player1,123456) will be interpreted wrongly (IE it isn't replaced with kid.ids's entry for 123456, it'll contain the number 123456.
2) if your prefix starts with a dash, the following character must be a non-numeric, since
Kit(Player1,#123)
will trigger the routine for RESPONSE # 100 (with or without space).

Starting with '-' or '!' can't be added at all.
Please do not contact me for assistance in using BGT, BP, any other of the 'large mods', or a mod I didn't write or contribute to. I'm not your paid support staff, so I'd suggest you to direct your help questions to the forum relative to the mod you're playing.

Thanks for your cooperation.

The Bigg

#337
Finished testing.
Starting with a number can't be added.
Starting with a '#' can be done, provided the following character is a non-'#', non-numeral.

In a nut-shell, these existing prefix may cause problems, if used for kits:
Quote!x     KenTeamBG
(starts with a !)

0  Vail_Woodshadow
5H  5th_horseman
5R  Qatanqa
64  Ascension64
7F  drake127
(all start with a number)

A@  Arch Angel
§  Telcar
(both contain a non-allowed character, if I don't fix it; I don't feel like fixing that, since I never heard of mods by those two)

EDIT: prefixes must be chosen so filenames may respect at least one of the following regexp:

[A-Za-z_][0-9A-Za-z#_!-]*
  • [A-Za-z_-][0-9A-Za-z#_!-]*

    -bigg
Please do not contact me for assistance in using BGT, BP, any other of the 'large mods', or a mod I didn't write or contribute to. I'm not your paid support staff, so I'd suggest you to direct your help questions to the forum relative to the mod you're playing.

Thanks for your cooperation.

Baronius

Thank you for the comprehensive analysis (I will find a way to mark those prefixes that you've listed). I'm sure that the IE modding community is most grateful for your efforts. :)

Yes the initial post wasn't updated because I didn't have time. I would update it now, but I'm not sure what I should add, since you've made several new remarks. Shall I add the content of your original post, without any changes, or did you plan to alter that summary?
Mental harmony dispels the darkness.

The Bigg

Quote from: BaroniusShall I add the content of your original post, without any changes, or did you plan to alter that summary?
Earlier posts are wrong, because I've modified the WeiDU source (which will be distributed rather sooner than later). The most correct listing is this:

[A-Za-z_][0-9A-Za-z#_!-]*
  • [A-Za-z_!-][0-9A-Za-z#_!-]*

    which could be expressed as:
    Any letter or _, followed by any number, letter, #, _, ! or - character.
    OR
    A '#' character, followed by a letter, _, ! or - character.

    Additional characters or patterns may be requested to Weimer, me or anyone who can/does edit WeiDU source code, but their inclusion is not guaranteed.

    In particular, starting with a '!' is not codeable at all, and starting with a number (or, worse, a sequence of numbers) is tricky (as probably does '@', but I don't recall any mod made by Archangel).
Please do not contact me for assistance in using BGT, BP, any other of the 'large mods', or a mod I didn't write or contribute to. I'm not your paid support staff, so I'd suggest you to direct your help questions to the forum relative to the mod you're playing.

Thanks for your cooperation.

Quick Reply

Name:
Email:
Shortcuts: ALT+S post or ALT+P preview