OFPEC Forum

OFPEC The Editing Center => Comments & Suggestions => Topic started by: i0n0s on 28 Feb 2008, 17:16:45

Title: Adding possibility to reserve IDDs for tags
Post by: i0n0s on 28 Feb 2008, 17:16:45
The OFPEC-Tagsystem has already reduced the number of possible addon-conflicts to zero. But if the addonmaker wants to use customdialogs he creates a new conflictfield: Custom IDDs and IDCs.
Would it be possible to modify the system, that you can get an unique IDD that will be registered to your Tag?

That would be a possibility to solve the problem. Ok, it's not the only way, but from my point of view and my current ideas it will be the best solution.

Has anyone any ideas/comments about this? If yes, so please write them down :)
Title: Re: Adding possibility to reserve IDDs for tags
Post by: hoz on 28 Feb 2008, 18:33:27
Why wouldn't you just use your tag to identify the IDD & IDC's? This is what I've done with some of my stuff.
Title: Re: Adding possibility to reserve IDDs for tags
Post by: Wolfrug on 28 Feb 2008, 20:18:18
Problem is, hoz, that IDDs are numbers. Which might cause some problems in addons - scripts can and should always use tags, but numbers...hmm.

IDCs isn't a problem, since each IDC is always "local" to the parent dialog (the commands to manipulate them only affect the currently open dialog, so you can have a million idc=100 as long as they belong to different dialogs). IDDs might cause a problem however. Heh. How about using Ascii?

Quote
66 - A
67 - B
68 - C
69 - D
70 - E
71 - F
72 - G
73 - H
74 - I
75 - J
76 - K
77 - L
78 - M
79 - N
80 - O
81 - P
82 - Q
83 - R
84 - S
85 - T
86 - U
87 - V
88 - W
89 - X
90 - Y
91 - Z

Then my tag RUG would be the equivalent in "ascii" of 838672. My very own IDD number.  :cool2:

Or, if we don't want to go all two-number about it, a simple letter-number replacement scheme!

Quote
A - 1
B - 2
C - 3
D - 4
E - 5
F - 6
G - 7
H - 8
I - 9
J - 10
K - 11
L - 12
M - 13
N - 14
O - 15
P - 16
Q - 17
R - 18
S - 19
T - 20
U - 21
V - 22
W - 23
X - 24
Y - 25
Z - 26

In which case RUG would be 18217!

...or then we can just go binary -> 010100100101010101000111 for RUG :P

Yeah, it's a problem all right.  ;)

Suggestion: use really esoteric numbers if you absolutely want to avoid conflicts.

Wolfrug out.