News:

Come Chat with us live! Learn how HERE!

Main Menu

Tremulous Admin.dat tool

Started by Paradox, March 19, 2007, 11:50:27 PM

Paradox

I stardted development to ease the task of creating and managing an admin.dat. It is currently non-functional, only a gui, but I will continue to work on it. If it is beyond the scope of the language, or time, i will drop it, but i do not plan to. Here are some dev shots so far:



∧OMG ENTROPY∧

David

Looks nice.

I'm assuming C# (or other .net) so no linux version?

One thing, some mods add new flags for there commands.
It would be nice if the list of flags was in a file so it could be customized easily, and would be more future proof.
Any maps not in the MG repo?  Email me or come to irc.freenode.net/#mg.
--
My words are mine and mine alone.  I can't speak for anyone else, and there is no one who can speak for me.  If I ever make a post that gives the opinions or positions of other users or groups, then they will be clearly labeled as such.
I'm disappointed that people's past actions have forced me to state what should be obvious.
I am not a dev.  Nothing I say counts for anything.

Rawr

Will this be editable through server via rcon :D

My host won't give me Ftp  :cry:

Paradox

its local, has to open/generate file.

Its actually visual basic, since i dont want to fuck around too hard with c# for a small project.
As for mods adding flags, they can be entered into the permissions field on the dialog, the text one. The checkboxes will tie to the field, and populate it, but the field is what gets parsed to the data.

∧OMG ENTROPY∧

::ThePredator

Damn, if you ever release the source I might try to translate it to python. Then again the last time I read some Vb I nearly killed myself.

Rawr

Quote from: Paradoxits local, has to open/generate file.

Its actually visual basic, since i dont want to fuck around too hard with c# for a small project.
As for mods adding flags, they can be entered into the permissions field on the dialog, the text one. The checkboxes will tie to the field, and populate it, but the field is what gets parsed to the data.
Awes, Good work though  :wink:

Angelwinged Devil

bah, stupid microsoft coding :| it would be nice if it worked for linux too as I think more than half of the servers runs on linux.
y hobby is to pwn
personal slaves: Taiyo, xinef

Undeference

Doesn't Real Software have a MSVB to Real Basic converter? RB compiles to Linux.
Need help? Ask intelligently. Please share solutions you find.

Quote from: tuple on February 15, 2008, 11:54:10 PMThats what we need, helpful players, not more powerful admins.

David

Any maps not in the MG repo?  Email me or come to irc.freenode.net/#mg.
--
My words are mine and mine alone.  I can't speak for anyone else, and there is no one who can speak for me.  If I ever make a post that gives the opinions or positions of other users or groups, then they will be clearly labeled as such.
I'm disappointed that people's past actions have forced me to state what should be obvious.
I am not a dev.  Nothing I say counts for anything.

Paradox

As i said, this is about on the middle-back burner, and i dont even know if i get it done. I could build the interface, then upload the prj file for someone else to use.

∧OMG ENTROPY∧

Confess

it would be cool if you managed to also make it so this could be implimented to a website for better administration. :) Or, so it will connect to a server somehow and drag the necessary things from the admin.dat (and of course, you'd need to have a username and password). then you could assign rights and the such.
know that I myself cannot do anything, that I will fall, and that I am a sinful man, but I know that I can do ANYTHING through God Almighty, whom strengthens me.

David

Quote from: confessit would be cool if you managed to also make it so this could be implimented to a website for better administration. :)

Now THAT is a project.
phpTremAdmin :p
Some cool config tool for admin.dat, server.cfg and all that.
Any maps not in the MG repo?  Email me or come to irc.freenode.net/#mg.
--
My words are mine and mine alone.  I can't speak for anyone else, and there is no one who can speak for me.  If I ever make a post that gives the opinions or positions of other users or groups, then they will be clearly labeled as such.
I'm disappointed that people's past actions have forced me to state what should be obvious.
I am not a dev.  Nothing I say counts for anything.

FisherP

If I can get the time I'm sure that I could write something in QT. Aparently there is libraries that can be installed so that it can be compiled in Visual Basic.

Time is a precious commodity though

Smokey

Quote from: David
Quote from: confessit would be cool if you managed to also make it so this could be implimented to a website for better administration. :)

Now THAT is a project.
phpTremAdmin :p
Some cool config tool for admin.dat, server.cfg and all that.
I'v got something like that, web editing for the files and such, :)

Paradox

Yea, i have an ajax text editor, but nothing complicated.
We could work with some people, i know some tools from the DoJo toolkit that could be used.

∧OMG ENTROPY∧

Eli

Wow This looks really nice...
ngame name:(Cebt)Namrorrim

I EAT BUTTERED TOAST MOOO!!!

Quote from: _Equilibrium_if baricades cost 1 bp each, we could build some sweet mazes.

Caveman

Quote from: Davidjust use mono.

DON'T WANT

sleekslacker

umm.. I'm not trying to troll here but I don't really understand the purpose of this program. Why ? What's wrong with Notepad/PsPad/UltraEdit/vi/vim/jed/kate/gedit/etc ? If I find the reason strong enough I might make a php/gtk front end to edit it.
y last name is Jones, the family motto is "Jones' never give up!"

Currently ignoring all of your spams.

David

OMG! its a text configuration file!!! *noob dies from shock*
Some people are just thick.
Those people shouldn't have access to a server, but sadly some do.
Any maps not in the MG repo?  Email me or come to irc.freenode.net/#mg.
--
My words are mine and mine alone.  I can't speak for anyone else, and there is no one who can speak for me.  If I ever make a post that gives the opinions or positions of other users or groups, then they will be clearly labeled as such.
I'm disappointed that people's past actions have forced me to state what should be obvious.
I am not a dev.  Nothing I say counts for anything.

khalsa

Wait,

are you seriously trying to tell me I have to edit some wierd .dat file manually using notepad? I dont get it. It's not a .txt so how do you expect me to open and change what's inside? How will I know what to do?

Thank god paradox has made this tool, otherwise I would never be able to do anything to my admin.dat

Good thing he made it in Visual Basic too, that way I can be sure that when my friend sends me the file (admin.vbs) I can rest assured it's safe and sound to run as administrator on my computer.

Thanks so much for your hard work paradox!

Khalsa

(no Really[/i])
}MG{ Mercenariesguild
ਮਨੁ ਜੀਤੇ ਜਗੁ ਜੀਤਿਆ

Undeference

QuoteI'm not trying to troll here but I don't really understand the purpose of this program. Why ? What's wrong with Notepad/PsPad/UltraEdit/vi/vim/jed/kate/gedit/etc ?
Why is because some people find it difficult to remember what a few dozen symbols stand for. What's "i" mean? It means "!listplayers"... not exactly intuitive.
Need help? Ask intelligently. Please share solutions you find.

Quote from: tuple on February 15, 2008, 11:54:10 PMThats what we need, helpful players, not more powerful admins.

Paradox

Its here for many reasons:
[list=1]
  • Quote from: UndeferenceWhy is because some people find it difficult to remember what a few dozen symbols stand for. What's "i" mean? It means "!listplayers"... not exactly intuitive.
  • Easier to search through admins
  • Easier to search through bans[/list:o]

    While yes you can edit a dat file in any text editor, this is a tool to provide assistance. While it isnt he most powerful tool for the job (imagine building a whole site in emacs), it is the WYSIWYG tool, the simpler interface that doesnt have access to all the features, but provides quick and easy access to most of them. Even if you dont use it pro actively, you can use it to look up what flag does what.

∧OMG ENTROPY∧

next_ghost

Quote from: Paradox
Quote from: UndeferenceWhy is because some people find it difficult to remember what a few dozen symbols stand for. What's "i" mean? It means "!listplayers"... not exactly intuitive.

wget -qO - http://tjw.org/tremulous/ADMIN.txt |grep whatever

QuoteEasier to search through admins

grep -C 5 -B 0 "\[admin\]" .tremulous/base/admin.dat |grep whatever

QuoteEasier to search through bans

grep -C 8 -B 0 "\[ban\]" .tremulous/base/admin.dat |grep whatever

GUIs start failing at a few hundred records. Grep and VIM don't mind.
If my answer to your problem doesn't seem helpful, it means I won't help you until you show some effort to fix your problem yourself!
1.2.0 release's been delayed for 5:48:00 already because of stupid questions.

Kaleo

the censorship department will only let you continue if you make a mac port!
Quote from: Stannum
Thou canst not kill that which doth not live,
but you can blow it into chunky kibbles!
I has a cookie, and u can has a cookie, but i no givs u mai cookie...

Paradox

Quote from: next_ghost
Quote from: Paradox
Quote from: UndeferenceWhy is because some people find it difficult to remember what a few dozen symbols stand for. What's "i" mean? It means "!listplayers"... not exactly intuitive.

wget -qO - http://tjw.org/tremulous/ADMIN.txt |grep whatever

QuoteEasier to search through admins

grep -C 5 -B 0 "\[admin\]" .tremulous/base/admin.dat |grep whatever

QuoteEasier to search through bans

grep -C 8 -B 0 "\[ban\]" .tremulous/base/admin.dat |grep whatever

GUIs start failing at a few hundred records. Grep and VIM don't mind.

Then why do you even bother to use a gui? Why not switch to solaris, if a console does everything you need? Why was it such a revoloution when xerox PARC and apple developed the first computer gui system? Why doesn't the world still use DOS and UNIX for everything. Because GUIs are more human. Yes they are limited in some ways, but they are more human.

∧OMG ENTROPY∧

Undeference

The point was more that this is something that doesn't benefit from a GUI.

Quotewget -qO - http://tjw.org/tremulous/ADMIN.txt |grep whatever
Humans are very bad at mechanical translation. Computers are very good at it. grep can find where the flag is described (or better yet, defined), but it can't translate the human form of a bunch of commands into the cryptic version for your flag string.

The optimal solution is probably a single web page with a dumb little Javascript and a bunch of check boxes.
Need help? Ask intelligently. Please share solutions you find.

Quote from: tuple on February 15, 2008, 11:54:10 PMThats what we need, helpful players, not more powerful admins.

next_ghost

Quote from: ParadoxThen why do you even bother to use a gui?

I don't. I use X server just to watch videos, play Tremulous, and view websites that don't like Links. I do everything else in a few terminals and GVIM instances.

QuoteWhy not switch to solaris, if a console does everything you need?

Because I use Gentoo Linux.

QuoteWhy was it such a revoloution when xerox PARC and apple developed the first computer gui system? Why doesn't the world still use DOS and UNIX for everything. Because GUIs are more human. Yes they are limited in some ways, but they are more human.

Not at all.

Quote from: Linux.comCLI magic: shell programming

Monday March 15, 2004 (09:00 AM GMT)

By: Joe Barr

Shell programming? I can hear it now. "Barr, you're a lunatic! This time you've gone too far! Noobies will never, ever, under any circumstances, grok shell programming!" I don't blame them for feeling that way. I was a doubter myself until I saw it with my own eyes. But because I have seen it, and others have as well, this week we're going to jump in the middle of that pond and see who can swim and who can't. ...

Quote from: Undeferencegrep can find where the flag is described (or better yet, defined), but it can't translate the human form of a bunch of commands into the cryptic version for your flag string.

Should I waste an hour writing perl script that will turn a few descriptive words into that cryptic flag string?
If my answer to your problem doesn't seem helpful, it means I won't help you until you show some effort to fix your problem yourself!
1.2.0 release's been delayed for 5:48:00 already because of stupid questions.

gareth

Quote from: next_ghost
GUIs start failing at a few hundred records. Grep and VIM don't mind.

time for an upgrade?

Undeference

QuoteShould I waste an hour writing perl script that will turn a few descriptive words into that cryptic flag string?
No, but should you waste an hour trying to turn a few descriptive words into that cryptic flag string when someone else wasted an hour of their time writing a perl script to do it for you? :wink:
Need help? Ask intelligently. Please share solutions you find.

Quote from: tuple on February 15, 2008, 11:54:10 PMThats what we need, helpful players, not more powerful admins.

-:GoDz:-Devil

When will this tool be ready to be released?