PtokaX forum

Archive => Archived 5.1 boards => Request for scripts => Topic started by: BrotherBear on 24 August, 2006, 19:16:25

Title: Easier to Add Profiles
Post by: BrotherBear on 24 August, 2006, 19:16:25
Hi!

Is it possible when you create scripts that you could have a textfile where you
add the profiles you want to have, then the scripts call that textfile.

A little some profiles.xml under CFG folder.

Thanks in advance
Title: Re: Easier to Add Profiles
Post by: BrotherBear on 27 August, 2006, 13:41:29
Oki, I understand :(
Title: Re: Easier to Add Profiles
Post by: BrotherBear on 29 August, 2006, 09:27:48
LoL

I understand that no one had a clue about what I was asking, or?
Title: Re: Easier to Add Profiles
Post by: Herodes on 29 August, 2006, 09:29:53
Quote from: BrotherBear on 29 August, 2006, 09:27:48
LoL

I understand that no one had a clue about what I was asking, or?
nope please make your request, question (http://www.catb.org/~esr/faqs/smart-questions.html) a bit more structured and more detailed,...
Title: Re: Easier to Add Profiles
Post by: Tw?sT?d-d?v on 29 August, 2006, 13:44:09
is that your after a script that you can add your own profiles to hub other then master/op/vip  ect

so u just type !addprofile superop
and it saves in the profile.xml

am i on the right lines ?
Title: Re: Easier to Add Profiles
Post by: BrotherBear on 29 August, 2006, 14:38:05
Sorry for my bad English and not understandable questions.

I vill try again :)

I wonder if you could make it easier to add profiles in all the scripts you use?

For example, the scripts use the Profiles.xml from the CFG folder.?
One place to add your profiles.

I have added 2 extra profiles in the Profiles.xml and it was many places
that I had to add those to get it to work.

I know that you scripters put alot of hard work on scripts for us and I thank you all
for this.

I hope this clears things up :)

Cheers
Title: Re: Easier to Add Profiles
Post by: BrotherBear on 29 August, 2006, 14:42:09
Quote from: (uk)jay on 29 August, 2006, 13:44:09
is that your after a script that you can add your own profiles to hub other then master/op/vip  ect

so u just type !addprofile superop
and it saves in the profile.xml

am i on the right lines ?

Something like that, but I want it to spread to the scripts too, does it do that?
Title: Re: Easier to Add Profiles
Post by: Anna on 29 August, 2006, 15:23:18
I know what he wants.. he wants all scripts to read from profile.xml, as it is now some scripts you have to manually edit to include any nonstandard profile.

Basically its not a script he is after (as I understand it) but more a question/hope that you scripters can agree on reading the profiles from profile.xml for any script you create and that way make them dynamic without manual editing
Title: Re: Easier to Add Profiles
Post by: Pothead on 29 August, 2006, 15:26:50
The main problem i see with this, is that there is no "reload profiles" option.  So the hub has to be closed to adjust the profiles.  Same goes with ClientTags.xml, which i see much more use in adjusting while the hub is running.
Title: Re: Easier to Add Profiles
Post by: BrotherBear on 29 August, 2006, 19:29:18
Quote from: Anna on 29 August, 2006, 15:23:18
I know what he wants.. he wants all scripts to read from profile.xml, as it is now some scripts you have to manually edit to include any nonstandard profile.

Basically its not a script he is after (as I understand it) but more a question/hope that you scripters can agree on reading the profiles from profile.xml for any script you create and that way make them dynamic without manual editing

Yess, Anna :)

Thats exactly what I mean.

Hmm, youre right about that it is not a script, sorry :(

Thanks Anna :)
Title: Re: Easier to Add Profiles
Post by: BrotherBear on 29 August, 2006, 19:31:47
Quote from: Pothead on 29 August, 2006, 15:26:50
The main problem i see with this, is that there is no "reload profiles" option.  So the hub has to be closed to adjust the profiles.  Same goes with ClientTags.xml, which i see much more use in adjusting while the hub is running.

That is not a problem from my side, it is not so often you add a profile.
Title: Re: Easier to Add Profiles
Post by: JueLz on 29 August, 2006, 22:58:31
I would like the command !addprofile
Title: Re: Easier to Add Profiles
Post by: JueLz on 29 August, 2006, 23:59:03
QuoteQuote from: (uk)jay on Today at 01:44:09 pm
is that your after a script that you can add your own profiles to hub other then master/op/vip  ect

so u just type !addprofile superop
and it saves in the profile.xml

am i on the right lines ?

Could  i please have the command !addprofile ?
Title: Re: Easier to Add Profiles
Post by: BrotherBear on 30 August, 2006, 17:48:55
Quote from: Mutor on 29 August, 2006, 23:19:38
You could pull profiles from the hub with either..

GetProfileIdx(ProfileName)      - Return ProfileNumber or -1 failed
GetProfileName(ProfileNumber)   - Return ProfileName or nil for failed

The reason you'll see this in many script is to allow [by profile] certain
feature of the script. What might be easier is to use an editor with a
Search & Replace In Files One of my editors [PsPad] has this feature.
feature. To be used with caution, but you could easily update all script
to include your new profiles.

Yes youre right.

I use NotePad++ to change your script, it works pretty good,
but I always forget someplace to change or add or even make
a mistake.

Thank you all anyway :)