Author Topic: Tremulous Admin.dat tool  (Read 21209 times)

Paradox

  • Posts: 2612
  • Turrets: +253/-250
    • Paradox Designs
Tremulous Admin.dat tool
« 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:



∧OMG ENTROPY∧

David

  • Spam Killer
  • *
  • Posts: 3543
  • Turrets: +249/-273
Tremulous Admin.dat tool
« Reply #1 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.
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

  • Posts: 918
  • Turrets: +1/-1
Tremulous Admin.dat tool
« Reply #2 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:
img]http://dvclan.org/statsig/statsig.php/3826/4.jpg[/img]

Paradox

  • Posts: 2612
  • Turrets: +253/-250
    • Paradox Designs
Tremulous Admin.dat tool
« Reply #3 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.

∧OMG ENTROPY∧

::ThePredator

  • Posts: 90
  • Turrets: +0/-1
Tremulous Admin.dat tool
« Reply #4 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.

Rawr

  • Posts: 918
  • Turrets: +1/-1
Tremulous Admin.dat tool
« Reply #5 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:
img]http://dvclan.org/statsig/statsig.php/3826/4.jpg[/img]

Angelwinged Devil

  • Posts: 65
  • Turrets: +0/-0
Tremulous Admin.dat tool
« Reply #6 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.
y hobby is to pwn
personal slaves: Taiyo, xinef

Undeference

  • Tremulous Developers
  • *
  • Posts: 1254
  • Turrets: +122/-45
Tremulous Admin.dat tool
« Reply #7 on: March 20, 2007, 02:19:29 pm »
Doesn't Real Software have a MSVB to Real Basic converter? RB compiles to Linux.
Need help? Ask intelligently. Please share solutions you find.

Thats what we need, helpful players, not more powerful admins.

David

  • Spam Killer
  • *
  • Posts: 3543
  • Turrets: +249/-273
Tremulous Admin.dat tool
« Reply #8 on: March 20, 2007, 02:41:39 pm »
just use mono.
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

  • Posts: 2612
  • Turrets: +253/-250
    • Paradox Designs
Tremulous Admin.dat tool
« Reply #9 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.

∧OMG ENTROPY∧

Confess

  • Posts: 237
  • Turrets: +25/-15
    • http://sstcentral.com
Tremulous Admin.dat tool
« Reply #10 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.
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

  • Spam Killer
  • *
  • Posts: 3543
  • Turrets: +249/-273
Tremulous Admin.dat tool
« Reply #11 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.
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

  • Posts: 295
  • Turrets: +31/-32
Tremulous Admin.dat tool
« Reply #12 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

Smokey

  • Posts: 793
  • Turrets: +23/-58
    • Zilla Clan
Tremulous Admin.dat tool
« Reply #13 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, :)

Paradox

  • Posts: 2612
  • Turrets: +253/-250
    • Paradox Designs
Tremulous Admin.dat tool
« Reply #14 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.

∧OMG ENTROPY∧

Eli

  • Posts: 72
  • Turrets: +2/-4
Tremulous Admin.dat tool
« Reply #15 on: March 21, 2007, 05:22:45 am »
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

  • Guest
Tremulous Admin.dat tool
« Reply #16 on: March 21, 2007, 01:35:28 pm »
Quote from: "David"
just use mono.


DON'T WANT

sleekslacker

  • Posts: 407
  • Turrets: +10/-35
Tremulous Admin.dat tool
« Reply #17 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.
y last name is Jones, the family motto is "Jones' never give up!"

Currently ignoring all of your spams.

David

  • Spam Killer
  • *
  • Posts: 3543
  • Turrets: +249/-273
Tremulous Admin.dat tool
« Reply #18 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.
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

  • Administrator
  • Posts: 597
  • Turrets: +187/-132
    • http://www.mercenariesguild.net
Tremulous Admin.dat tool
« Reply #19 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])
}MG{ Mercenariesguild
ਮਨੁ ਜੀਤੇ ਜਗੁ ਜੀਤਿਆ

Undeference

  • Tremulous Developers
  • *
  • Posts: 1254
  • Turrets: +122/-45
Tremulous Admin.dat tool
« Reply #20 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.
Need help? Ask intelligently. Please share solutions you find.

Thats what we need, helpful players, not more powerful admins.

Paradox

  • Posts: 2612
  • Turrets: +253/-250
    • Paradox Designs
Tremulous Admin.dat tool
« Reply #21 on: March 21, 2007, 03:25:41 pm »
Its here for many reasons:
[list=1]
  • 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.
  • 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

  • Posts: 892
  • Turrets: +3/-6
Tremulous Admin.dat tool
« Reply #22 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.
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

  • Posts: 2098
  • Turrets: +176/-220
    • KaleoDesign
Tremulous Admin.dat tool
« Reply #23 on: March 22, 2007, 02:35:28 am »
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

  • Posts: 2612
  • Turrets: +253/-250
    • Paradox Designs
Tremulous Admin.dat tool
« Reply #24 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.

∧OMG ENTROPY∧

Undeference

  • Tremulous Developers
  • *
  • Posts: 1254
  • Turrets: +122/-45
Tremulous Admin.dat tool
« Reply #25 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.
Need help? Ask intelligently. Please share solutions you find.

Thats what we need, helpful players, not more powerful admins.

next_ghost

  • Posts: 892
  • Turrets: +3/-6
Tremulous Admin.dat tool
« Reply #26 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 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: "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?
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

  • Posts: 710
  • Turrets: +38/-89
Tremulous Admin.dat tool
« Reply #27 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?

Undeference

  • Tremulous Developers
  • *
  • Posts: 1254
  • Turrets: +122/-45
Tremulous Admin.dat tool
« Reply #28 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:
Need help? Ask intelligently. Please share solutions you find.

Thats what we need, helpful players, not more powerful admins.

-:GoDz:-Devil

  • Guest
Tremulous Admin.dat tool
« Reply #29 on: March 23, 2007, 01:39:25 pm »
When will this tool be ready to be released?