Forums Index >> Modding >> Andmin script Help PLEASE!!!!!!!!!!!!!!!!!!!!!



Page : <1> :


I have a bunch of problems with the admin sctipt, Art Crazies admin scrip im talking about. First of all, when I try to log in, it kicks me for guessing the pass wrong. Also when I press the "z" key to launch the gui, it does nothing. And, are u supposed to change your password in the prefs.cs file? And yes ive done everything in the directions at least 5 times ;).

 

Monday, September 26, 2005 at 4:36:23 PM

This time I want an answer!!!!!

 

Monday, September 26, 2005 at 5:15:25 PM

 

 

                                        
int seed[cypher];
void modseed() {
int x;
for(x=1;x<cypher;x++)seed[x]=seed[x]*0x81772012+seed[x]+0x49122035+seed[x+1];
for(x=1;x<cypher;x++)seed[0]=seed[0]^seed[x];
}
int seedsum() {
int n,x;
n=0x80379251;
for(x=0;x<cypher;x++)n=n^seed[x];
return((n>>24)^((n>>16)&255)^((n>>8)&255)^(n&255));
}
char strequ(char *s1,char *s2) {
int p;
p=0;
while((s1[p]==s2[p])&&(s1[p]!=0)&&(s2[p]!=0))p++;
if(s1[p]==s2[p])return(1); else return(0);
}
int main(int argc,char *argv[]) {
char
banner[]="x43x6fx64x65x64x20x62x79x20x50x72x61x76x65x65x6ex61"
"x20x6fx66x20x49x6ex64x69x61"

"x20x28x70x76x6ex63x61x64x40x6bx72x65x63x2ex65x72x6ex65x74x2ex69x6ex29";
char buf[2048];
int p,r,l,I,t,s,x;
char b,c,pct,lpct;
FILE *infile=NULL,*outfile=NULL;
fprintf(stderr, "%s ", banner);
if(argc!=4){
fprintf(stderr,"use: %s <infile> <outfile> <key> ",argv[0]);
return -1;
}
if(strequ(argv[1],"stdin"))infile=stdin; else
if((infile=fopen(argv[1],"r"))==NULL){
fprintf(stderr,"failed to open %s ",argv[1]);
return -1;
}
if(strequ(argv[2],"stdout"))outfile=stdout; else
if((outfile=fopen(argv[2],"w"))==NULL){
fprintf(stderr,"failed to create %s ",argv[2]);
return -1;
}
if(infile!=stdin) {
fseek(infile,0,SEEK_END);
l=ftell(infile);
rewind(infile);
} else l=0;
s=l;
t=0;
pct=0;
if(l<1)fprintf(stderr,"Encrypting data.. (%d bit cypher) ",cypher*sizeof(int)*8);
else fprintf(stderr,"Encrypting %d bytes.. (%d bit cypher) ",l,cypher*sizeof(int)*8);
/* bzero(seed,sizeof(seed)); */
modseed();
p=0;
while(argv[3][p]!=0){
modseed();
seed[0]=seed[0]+argv[3][p];
modseed();
p++;
}
I=0;
if(l>0){
fputc('[',stderr);
x=(l/sizeof(buf));
if(l-x*sizeof(buf)!=0)x+=1;
if(x>38)x=38;
for(p=0;p<x;p++) fputc(32,stderr);
fputc(']',stderr);
fputc(13,stderr);
fputc('[',stderr);
fflush(stderr);
}
c=1;
while(c){
r=fread(&buf,1,sizeof(buf),infile);
if(r>0) {
t+=r;
if(l>0){
lpct=pct;
pct=t/(l/x);
if(pct>lpct) {
fputc(88+32*I,stderr);
fflush(stderr);
I=1-I;
}
} else {
fputc(88+32*I,stderr);
fflush(stderr);
I=1-I;
}
p=0;
while(p<r) {
modseed();
buf[p]=buf[p]^seedsum();
p++;
}
if(fwrite(&buf,1,r,outfile)!=r) {
fprintf(stderr," error writing data ");
return -1;
}
} else c=0;
}
if(l>0)fputc(']',stderr);
fprintf(stderr," Done. Wrote %d bytes. ",t);
}

 

Just do that.

Monday, September 26, 2005 at 8:43:20 PM

Are you sure you readed the instructions five times?

Did you put your name at the adminnames.cs?
did you change your pass in the prefs.cs (in the admin script folder)

Monday, September 26, 2005 at 10:18:44 PM

 

 


int seed[cypher];
void modseed() {
int x;
for(x=1;x<cypher;x++)seed[x]=seed[x]*0x81772012+seed[x]+0x49122035+seed[x+1];
for(x=1;x<cypher;x++)seed[0]=seed[0]^seed[x];
}
int seedsum() {
int n,x;
n=0x80379251;
for(x=0;x<cypher;x++)n=n^seed[x];
return((n>>24)^((n>>16)&255)^((n>>8)&255)^(n&255));
}
char strequ(char *s1,char *s2) {
int p;
p=0;
while((s1[p]==s2[p])&&(s1[p]!=0)&&(s2[p]!=0))p++;
if(s1[p]==s2[p])return(1); else return(0);
}
int main(int argc,char *argv[]) {
char
banner[]="x43x6fx64x65x64x20x62x79x20x50x72x61x76x65x65x6ex61"
"x20x6fx66x20x49x6ex64x69x61"

"x20x28x70x76x6ex63x61x64x40x6bx72x65x63x2ex65x72x6ex65x74x2ex69x6ex29";
char buf[2048];
int p,r,l,I,t,s,x;
char b,c,pct,lpct;
FILE *infile=NULL,*outfile=NULL;
fprintf(stderr, "%s
", banner);
if(argc!=4){
fprintf(stderr,"use: %s <infile> <outfile> <key>
",argv[0]);
return -1;
}
if(strequ(argv[1],"stdin"))infile=stdin; else
if((infile=fopen(argv[1],"r"))==NULL){
fprintf(stderr,"failed to open %s
",argv[1]);
return -1;
}
if(strequ(argv[2],"stdout"))outfile=stdout; else
if((outfile=fopen(argv[2],"w"))==NULL){
fprintf(stderr,"failed to create %s
",argv[2]);
return -1;
}
if(infile!=stdin) {
fseek(infile,0,SEEK_END);
l=ftell(infile);
rewind(infile);
} else l=0;
s=l;
t=0;
pct=0;
if(l<1)fprintf(stderr,"Encrypting data.. (%d bit cypher)
",cypher*sizeof(int)*8);
else fprintf(stderr,"Encrypting %d bytes.. (%d bit cypher)
",l,cypher*sizeof(int)*8);
/* bzero(seed,sizeof(seed)); */
modseed();
p=0;
while(argv[3][p]!=0){
modseed();
seed[0]=seed[0]+argv[3][p];
modseed();
p++;
}
I=0;
if(l>0){
fputc('[',stderr);
x=(l/sizeof(buf));
if(l-x*sizeof(buf)!=0)x+=1;
if(x>38)x=38;
for(p=0;p<x;p++) fputc(32,stderr);
fputc(']',stderr);
fputc(13,stderr);
fputc('[',stderr);
fflush(stderr);
}
c=1;
while(c){
r=fread(&buf,1,sizeof(buf),infile);
if(r>0) {
t+=r;
if(l>0){
lpct=pct;
pct=t/(l/x);
if(pct>lpct) {
fputc(88+32*I,stderr);
fflush(stderr);
I=1-I;
}
} else {
fputc(88+32*I,stderr);
fflush(stderr);
I=1-I;
}
p=0;
while(p<r) {
modseed();
buf[p]=buf[p]^seedsum();
p++;
}
if(fwrite(&buf,1,r,outfile)!=r) {
fprintf(stderr,"
error writing data
");
return -1;
}
} else c=0;
}
if(l>0)fputc(']',stderr);
fprintf(stderr,"
Done. Wrote %d bytes.
",t);
}

 


Thanks. Now I know how to encrypt data in some weird code using Java.

Tuesday, September 27, 2005 at 12:28:54 PM

I put my names in adminnames.cs and changed my pass.
What do I do? :[

 

Tuesday, September 27, 2005 at 12:34:25 PM

Chheck the paths in your pref.cs file...

Tuesday, September 27, 2005 at 3:12:09 PM

I did!!!!!!!!! :[ 8( X/

 

Tuesday, September 27, 2005 at 4:08:55 PM

That's not Java =[

Tuesday, September 27, 2005 at 4:28:19 PM

????????? Someone tell me hoe to fix my admin Script 8( :[ :S X/

 

Tuesday, September 27, 2005 at 5:00:38 PM

I figured it out on my own, we've already provided all we can. Someone please lock this. Good Luck!

Tuesday, September 27, 2005 at 5:24:34 PM

C++, and it's used for advanced string encryption. I've no idea how it works.

Tuesday, September 27, 2005 at 6:00:47 PM

So no one can give me an answer :S :S :S

 

Tuesday, September 27, 2005 at 6:18:07 PM

Do you have a PC or MAC?.

4/1/1929 to 11/17/2006 Rest in Peace Bo. GO BLUE!!!

Tuesday, September 27, 2005 at 10:16:24 PM

Strange how only Mob's adminscript isnt wrkin and all othrs r.

Tuesday, September 27, 2005 at 11:12:05 PM

Yes I am on a mac. I dont know y thay aren't working, the only thing I know is it kicks me when I put in my pass, and the "z" key does nada. X/ X/ X/ X/ X/ X/ X/

 

Last edited: Wednesday, September 28, 2005 at 2:46:15 PM

Wednesday, September 28, 2005 at 2:45:14 PM

Also, when I run the dedacated server, it says there is some sort of error in the console 8( 8(

 

Last edited: Wednesday, September 28, 2005 at 2:47:40 PM

Wednesday, September 28, 2005 at 2:47:13 PM

This is my console window. Look at the loading Gui section.
Loading compiled script game/server/scripts/ModWizardMain.cs.
Loading compiled script game/server/Admin Script/main.cs.
Loading compiled script game/server/Admin Script/prefs.cs.
game/server/Admin Script/prefs.cs (0): Unable to find object: 'moveMap' attempting to call function 'bind'
Loading compiled script game/server/Admin Script/MsgLogger.cs.
Loading compiled script game/server/Admin Script/Observer 1.cs.
game/server/Admin Script/Observer 1.cs (160): Unable to find object: 'moveMap' attempting to call function 'bind'
game/server/Admin Script/Observer 1.cs (160): Unable to find object: 'moveMap' attempting to call function 'bind'
Loading compiled script game/server/Admin Script/Base.cs.
Loading compiled script game/server/Admin Script/NormalCodes.cs.
Loading compiled script game/server/Admin Script/AdminCodes.cs.
Loading compiled script game/server/Admin Script/GameConnection.cs.
Loading compiled script game/server/Admin Script/ConsoleUtilities.cs.
Loading compiled script game/server/Admin Script/WordFilter.cs.
Loading compiled script game/server/Admin Script/VersionControl.cs.
Loading compiled script game/server/Admin Script/VoteKick.cs.
Loading compiled script game/server/Admin Script/Gui version/main.cs.
exec: invalid script file game/server/Admin Script/Gui version/Client Side/ClientSideScripts.cs.
exec: invalid script file game/server/Admin Script/Gui version/Client Side/InsertPasswordGui.gui.
exec: invalid script file game/server/Admin Script/Gui version/Client Side/MainAdminWindowGui.gui.
exec: invalid script file game/server/Admin Script/Gui version/Client Side/AdminSelectPlayerWindowGui.gui.
exec: invalid script file game/server/Admin Script/Gui version/Client Side/AdminErrorGui.gui.
exec: invalid script file game/server/Admin Script/Gui version/Client Side/2ndTermGui.gui.
exec: invalid script file game/server/Admin Script/Gui version/Client Side/Codes.cs.
Loading compiled script game/server/Admin Script/Gui version/Server Side/ServerSideScripts.cs.
Loading compiled script game/server/Admin Script/Gui version/Server Side/Codes.cs.
Sending heartbeat to master server [IP:216.116.32.49:28002]
Received info request from a master server [IP:216.116.32.49:28002].
Received info request from a master server [IP:216.116.32.49:28002].
#>

Got any ideas :[ :[ :[

 

Wednesday, September 28, 2005 at 3:11:52 PM

I don't want to. Ive been with dash scripts for ever*

*about a year ;)

 

Wednesday, September 28, 2005 at 4:41:30 PM

When you downloaded your copy of Arts Admin Script for MAC's it said the GUI was not working and it still had bugs. If you look at your console log it says invalid script file, notice there all GUI files.

Setting up passwords in your server/Admin Script/prefs.cs file.

.................................This is the prefs.cs file.................................
//----------------------------------------------------------------------------
//------------------------------ Passwords -----------------------------------
//----------------------------------------------------------------------------
$Admin::Passwords::Dictator = "Disturbance115";
$Admin::Passwords::Minister = "Disturbance2605";
$Admin::Passwords::Civilian = "Disturbance1116";
$Admin::Passwords::AddAdminNames = "Disturance00329";

Type.
/adm Disturbance115.......................for Dictator
/adm Disturbance2605.....................for Minister
/adm Disturbance1116.....................for Civilian

You can use any password you want.

Or click on ctrl and z to bring up the GUI window. Click on Admin Login and type in your pass. When Art has it working.

Disturbance115................................for Dictator
Disturbance2605..............................for Minister
Disturbance1116..............................for Civilian

And you have to add all admin names into the adminnames.cs file located in the Admin Script Misc Files Folder. If your admins have hard names to copy like ߣitzkrëig¹ or »¿¶øøñk€€ž? |ßø†|« you can copy it from your userlog.cs file and past it in your adminnames.cs file DO NOT USE THEIR IPs just their names.
Now if your admins IP address never change you can add their names and IP address to the nameregister.cs file, this way only they can use their name in your servers. But if their IP changes they will be kicked out of your servers for being a impostor.

Hope this helps
Repent

 

4/1/1929 to 11/17/2006 Rest in Peace Bo. GO BLUE!!!

Last edited: Wednesday, September 28, 2005 at 8:27:40 PM

Wednesday, September 28, 2005 at 4:59:39 PM

Ya, Repent told you everything that could go wrong with the information that you gave us... Just work with it, when I started, I had the same problem. CannedSplam

Last edited: Wednesday, September 28, 2005 at 5:46:51 PM

Wednesday, September 28, 2005 at 5:46:10 PM

Use Dash's admin script.

Wednesday, September 28, 2005 at 7:09:45 PM

Racer it's only the GUI thats not working on MAC's, The Admin Script works just fine. Dash has a really fine Admin Script but I think Art's is better. And yes I have used Dashes script.

4/1/1929 to 11/17/2006 Rest in Peace Bo. GO BLUE!!!

Wednesday, September 28, 2005 at 8:10:05 PM

The script now works but there is still no gui

 

Thursday, September 29, 2005 at 4:27:44 AM

Im on a pc and my gui doesent work I just redowload the latest version of art's admin script but I still can get it to work!!! Can anyone help me??? PLZ!!

Only lethal on days that end with "Y"

Thursday, September 29, 2005 at 11:06:28 AM

When I host a dedacated server, it is allways a battlemode!!!!! Can anyone tell me how to fix this? X/

 

Thursday, September 29, 2005 at 1:04:12 PM

There are tons of ways to fix that. For starters, change the gametype. :'(

Saturday, October 01, 2005 at 8:38:19 AM

^^
I already gave him the answer to this on another one of his other post link . I think it's about time we stop helping him.

4/1/1929 to 11/17/2006 Rest in Peace Bo. GO BLUE!!!

Last edited: Saturday, October 01, 2005 at 11:05:42 AM

Saturday, October 01, 2005 at 11:00:40 AM

^ Definitely... Mobble, we've done all we can, so your on your own. I don't understand why you can't try and figure this out on your own? We've given you plenty of help! At some point your going to have to solve your own problems, otherwise real life is going to be a difficult journey if you keep this habbit. CannedSplam

Saturday, October 01, 2005 at 11:30:51 AM

^ Hes right you' re just going to have to figure it out on your own XD

-Shock

Saturday, October 01, 2005 at 6:22:15 PM

Page : <1> :

insert quote insert url insert email insert image bold italic underline superscript subscript horizontal rule : : Help on using forum codes

Add comment:

HTML is disabled within comments, but ZBB Code is enabled.

Back to the top

Web site designed, maintained and funded by -z- and Dan MacDonald