Tremulous Forum

General => General Discussion => Topic started by: Paradox on March 20, 2007, 12:50:27 am

Title: Tremulous Admin.dat tool
Post by: Paradox on March 20, 2007, 12:50:27 am
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:
(http://img299.imageshack.us/img299/5738/tremadminviewdc8.th.jpg) (http://img299.imageshack.us/img299/5738/tremadminviewdc8.jpg)

(http://img19.imageshack.us/img19/6470/addlvldialgpx4.th.jpg) (http://img19.imageshack.us/img19/6470/addlvldialgpx4.jpg)
Title: Tremulous Admin.dat tool
Post by: David on March 20, 2007, 01:05:17 am
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.
Title: Tremulous Admin.dat tool
Post by: Rawr on March 20, 2007, 01:07:32 am
Will this be editable through server via rcon :D

My host won't give me Ftp  :cry:
Title: Tremulous Admin.dat tool
Post by: Paradox on March 20, 2007, 04:32:49 am
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.
Title: Tremulous Admin.dat tool
Post by: ::ThePredator on March 20, 2007, 04:39:46 am
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.
Title: Tremulous Admin.dat tool
Post by: Rawr on March 20, 2007, 04:44:40 am
Quote from: "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.

Awes, Good work though  :wink:
Title: Tremulous Admin.dat tool
Post by: Angelwinged Devil on March 20, 2007, 08:04:45 am
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.
Title: Tremulous Admin.dat tool
Post by: Undeference on March 20, 2007, 02:19:29 pm
Doesn't Real Software have a MSVB to Real Basic converter? RB compiles to Linux.
Title: Tremulous Admin.dat tool
Post by: David on March 20, 2007, 02:41:39 pm
just use mono.
Title: Tremulous Admin.dat tool
Post by: Paradox on March 20, 2007, 09:45:02 pm
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.
Title: Tremulous Admin.dat tool
Post by: Confess on March 21, 2007, 01:06:17 am
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.
Title: Tremulous Admin.dat tool
Post by: David on March 21, 2007, 01:07:48 am
Quote from: "confess"
it 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.
Title: Tremulous Admin.dat tool
Post by: FisherP on March 21, 2007, 02:32:13 am
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
Title: Tremulous Admin.dat tool
Post by: Smokey on March 21, 2007, 02:55:56 am
Quote from: "David"
Quote from: "confess"
it 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, :)
Title: Tremulous Admin.dat tool
Post by: Paradox on March 21, 2007, 03:18:50 am
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.
Title: Tremulous Admin.dat tool
Post by: Eli on March 21, 2007, 05:22:45 am
Wow This looks really nice...
Title: Tremulous Admin.dat tool
Post by: Caveman on March 21, 2007, 01:35:28 pm
Quote from: "David"
just use mono.


DON'T WANT
Title: Tremulous Admin.dat tool
Post by: sleekslacker on March 21, 2007, 01:54:32 pm
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.
Title: Tremulous Admin.dat tool
Post by: David on March 21, 2007, 01:56:37 pm
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.
Title: Tremulous Admin.dat tool
Post by: khalsa on March 21, 2007, 02:09:04 pm
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])
Title: Tremulous Admin.dat tool
Post by: Undeference on March 21, 2007, 03:08:43 pm
Quote
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 ?
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.
Title: Tremulous Admin.dat tool
Post by: Paradox on March 21, 2007, 03:25:41 pm
Its here for many reasons:
[list=1]
Title: Tremulous Admin.dat tool
Post by: next_ghost on March 21, 2007, 06:34:22 pm
Quote from: "Paradox"
Quote from: "Undeference"
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.


Code: [Select]
wget -qO - http://tjw.org/tremulous/ADMIN.txt |grep whatever

Quote
Easier to search through admins


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

Quote
Easier to search through bans


Code: [Select]
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.
Title: Tremulous Admin.dat tool
Post by: Kaleo on March 22, 2007, 02:35:28 am
the censorship department will only let you continue if you make a mac port!
Title: Tremulous Admin.dat tool
Post by: Paradox on March 22, 2007, 05:00:09 pm
Quote from: "next_ghost"
Quote from: "Paradox"
Quote from: "Undeference"
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.


Code: [Select]
wget -qO - http://tjw.org/tremulous/ADMIN.txt |grep whatever

Quote
Easier to search through admins


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

Quote
Easier to search through bans


Code: [Select]
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.
Title: Tremulous Admin.dat tool
Post by: Undeference on March 22, 2007, 05:10:13 pm
The point was more that this is something that doesn't benefit from a GUI.

Quote
wget -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.
Title: Tremulous Admin.dat tool
Post by: next_ghost on March 22, 2007, 05:45:24 pm
Quote from: "Paradox"
Then 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.

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


Because I use Gentoo Linux.

Quote
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.


Not at all.

Quote from: "Linux.com"
CLI 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 (http://osnews.com/story.php?news_id=6282) 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. ... (http://docs.linux.com/article.pl?sid=04/03/11/1426214&tid=89&tid=14)


Quote from: "Undeference"
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.


Should I waste an hour writing perl script that will turn a few descriptive words into that cryptic flag string?
Title: Tremulous Admin.dat tool
Post by: gareth on March 22, 2007, 10:32:28 pm
Quote from: "next_ghost"

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


time for an upgrade?
Title: Tremulous Admin.dat tool
Post by: Undeference on March 23, 2007, 08:41:49 am
Quote
Should 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:
Title: Tremulous Admin.dat tool
Post by: -:GoDz:-Devil on March 23, 2007, 01:39:25 pm
When will this tool be ready to be released?
Title: Tremulous Admin.dat tool
Post by: Paradox on March 23, 2007, 04:37:20 pm
I promise nothing.
If i cant make it parse them, i can at least make it create them.
Title: Re: Tremulous Admin.dat tool
Post by: Oblivion on June 10, 2008, 09:26:57 pm
Old topic, but while researching I come across this.
What ever happen to this tool?
Title: Re: Tremulous Admin.dat tool
Post by: Paradox on June 10, 2008, 11:06:01 pm
It is yet another topic which i lost interest to.
Also, you wouldn't want it, it was in Vb. :(
Title: Re: Tremulous Admin.dat tool
Post by: Oblivion on June 11, 2008, 09:04:05 am
Ahh, I understand.  Okay thanks.