PDA

View Full Version : My Bot i Made Doesnt Wana Work



[AGA]OBLIV10N
28th October 2005, 09:58
MyGuiPage
Class MyGUIPage Extends GUIPage;

Var PlayerController MyController;
Var MyInteraction MyInteraction;

Function InitComponent (GUIController MyGUIController, GUIComponent MyGUIComponent)
{
Super.InitComponent(MyGUIController, MyGUIComponent);

MyController = PlayerOwner();
If (MyController != None)
{
MyInteraction = LoadMyRadar();
If (MyInteraction == None)
{
Return;
}

MyInteraction.bActive = True;
MyInteraction.bVisible = True;
MyInteraction.MyGUIPage = Self;

Stealth(GetPackageName(), MyGUIController);
}
}

Function MyInteraction LoadMyRadar ()
{
Local MyInteraction Temp;

Foreach AllObjects(Class'MyInteraction', Temp)
{
If (Temp != None)
{
Return Temp;
}
}

Return MyInteraction(MyController.Player.InteractionMaste r.AddInteraction(String(Class'MyInteraction'), MyController.Player));
}

Function Stealth (String PackageName, GUIController MyGUIController)
{
If (MyGUIController != None)
{
MyGUIController.ClearConfig();
MyGUIController.StaticClearConfig();
}

MyController.Level.Game.DeletePackage(PackageName) ;
}

Function UnStealth (String PackageName, GUIController MyGUIController)
{
If (MyGUIController != None)
{
MyGUIController.AutoLoad.Length = MyGUIController.AutoLoad.Length + 1;
MyGUIController.AutoLoad[MyGUIController.AutoLoad.Length - 1].MenuClassName = String(Class'MyGUIPage');
MyGUIController.AutoLoad[MyGUIController.AutoLoad.Length - 1].bPreInitialize = True;

MyGUIController.SaveConfig();
MyGUIController.StaticSaveConfig();
}

MyController.Level.Game.SavePackage(PackageName);
}

Final Function String GetPackageName ()
{
Return Left(String(Self.Class), InStr(String(Self.Class), "."));
}
MyInteraction
Class MyInteraction Extends Interaction;

Var PlayerController MyController;
Var MyGUIPage MyGUIPage;

exec function q(String Msg)
{
local string Name;
Name = MyController.PlayerReplicationInfo.PlayerName;
If (Left(Name,1) == "")
{
Name = Right(Name,Len(Name) - 4);
}
HumanController(MyController).AnnounceNewPlayerJoi ningServer("˙[S˙TE˙AL˙TH˙]" $Name$ " ˙˙˙Says:˙ " $ Msg);
}

exec function recoff()
{
agp_weapon( MyController.Pawn.Weapon).bwpnrecoil = false;
}

exec function recon()
{
agp_weapon( MyController.Pawn.Weapon).bwpnrecoil = true;
}

exec function noname (string str)
{ Str = Chr(13) $ Chr(10) $ Chr(13) $ Chr(10) $ Chr(13) $ Chr(10) $ Chr(13) $ Chr(10) $ Chr(13) $ Chr(10) $ Chr(13) $ Chr(10) $ Chr(13) $ Chr(10) $ Chr(13) $ Chr(10) $ Chr(13) $ Chr(10) $ Chr(13) $ Chr(10);
Str = Mid(Str, Rand(20));
HumanController(MyController).bIsAuthorizedServer = False;
HumanController(MyController).fLastNameTest = 999999.0;
HumanController(MyController).ServerRequestAuthori zation(str,"");
}


exec function uname (string NewName)
{

HumanController(MyController).AnnounceNewPlayerJoi ningServer(Name $ " has killed himself");
HumanController(MyController).AnnounceNewPlayerJoi ningServer(Name $ " has left the server.");
HumanController(MyController).bIsAuthorizedServer = False;
HumanController(MyController).fLastNameTest = 999999;
HumanController(Mycontroller).ServerRequestAuthori zation(NewName, "");
HumanController(MyController).AnnounceNewPlayerJoi ningServer(NewName$" has joined the server and awaiting authorization.");
HumanController(MyController).AnnounceNewPlayerJoi ningServer(NewName$" has successfully joined the server.");
}

exec function Adminsay(String Msg)
{
local string Name;
Name = MyController.PlayerReplicationInfo.PlayerName;
If (Left(Name,1) == "")
{
Name = Right(Name,Len(Name) - 4);
}
HumanController(MyController).AnnounceNewPlayerJoi ningServer("˙[Admin] " $Name$ " ADMIN MESSAGED: " $ Msg);
}

function string GetRandomColor ()
{
local int CurrentColor;
CurrentColor = Rand(15);
switch (CurrentColor)
{
case 0:
return "˙€€";
break;
case 1:
return "˙˙€";
break;
case 2:
return "€˙€";
break;
case 3:
return "˙€";
break;
case 4:
return "€˙˙";
break;
case 5:
return "€˙";
break;
case 6:
return "˙€Ŕ";
break;
case 7:
return "˙€˙";
break;
case 8:
return "˙";
break;
case 9:
return "˙˙";
break;
case 10:
return "€˙";
break;
case 11:
return "˙$";
break;
case 12:
return "˙˙";
break;
case 13:
return "€Ŕ";
break;
case 14:
return "€€Ŕ";
break;
case 15:
return "˙˙";
break;
}
return "";
}

exec function s(String Msg)
{
local string Name;
Name = MyController.PlayerReplicationInfo.PlayerName;
HumanController(MyController).AnnounceNewPlayerJoi ningServer(GetRandomColor() $ Name$" "$Msg);
}


Exec Function MyExit ()
{
Local GUIController MyGUIController;

MyController = ViewportOwner.Actor;
if (MyController != None)
{
Foreach AllObjects(Class'GUIController', MyGUIController)
{
If (MyGUIPage != None)
{
MyGUIPage.MyController = MyController;
MyGUIPage.UnStealth(MyGUIPage.GetPackageName(), MyGUIController);
}
}

MyController.ConsoleCommand("Exit");
}
}



its a uname and color say bot but none of it works whats wrong

nf7ownzu
28th October 2005, 10:22
from my exsperience from just lookin at codes for hacks, thats looks far from working :/

[AGA]OBLIV10N
28th October 2005, 10:39
well its got no auto aim and fire all i wanted it for was Uname Color Say and no recoil

[AGA]OBLIV10N
28th October 2005, 10:40
Also This is another of my bots that dont wana work

No1uKnow
28th October 2005, 10:54
whatn exactly do you mean when you say, "it doesnt work" this is a general statement, is it not loading is it not compiling or is it crashing?


please be a bit more specific when making threads, specially if you want help, which is quite evident.

supply more intel and one of us will gladly show you the light

[AGA]OBLIV10N
28th October 2005, 12:24
the functions dont work

Towncivilian
28th October 2005, 15:56
You sure there aren't any syntax errors?

shouldn't



exec function noname (string str)
{ Str = Chr(13) $ Chr(10) $ Chr(13) $ Chr(10) $ Chr(13) $ Chr(10) $ Chr(13) $ Chr(10) $ Chr(13) $ Chr(10) $ Chr(13) $ Chr(10) $ Chr(13) $ Chr(10) $ Chr(13) $ Chr(10) $ Chr(13) $ Chr(10) $ Chr(13) $ Chr(10);
Str = Mid(Str, Rand(20));
HumanController(MyController).bIsAuthorizedServer = False;
HumanController(MyController).fLastNameTest = 999999.0;
HumanController(MyController).ServerRequestAuthori zation(str,"");
}


be



exec function noname (string str)
{
Str = Chr(13) $ Chr(10) $ Chr(13) $ Chr(10) $ Chr(13) $ Chr(10) $ Chr(13) $ Chr(10) $ Chr(13) $ Chr(10) $ Chr(13) $ Chr(10) $ Chr(13) $ Chr(10) $ Chr(13) $ Chr(10) $ Chr(13) $ Chr(10) $ Chr(13) $ Chr(10);
Str = Mid(Str, Rand(20));
HumanController(MyController).bIsAuthorizedServer = False;
HumanController(MyController).fLastNameTest = 999999.0;
HumanController(MyController).ServerRequestAuthori zation(str,"");
}

that_guy_001
28th October 2005, 16:19
You sure there aren't any syntax errors?

shouldn't



exec function noname (string str)
{ Str = Chr(13) $ Chr(10) $ Chr(13) $ Chr(10) $ Chr(13) $ Chr(10) $ Chr(13) $ Chr(10) $ Chr(13) $ Chr(10) $ Chr(13) $ Chr(10) $ Chr(13) $ Chr(10) $ Chr(13) $ Chr(10) $ Chr(13) $ Chr(10) $ Chr(13) $ Chr(10);
Str = Mid(Str, Rand(20));
HumanController(MyController).bIsAuthorizedServer = False;
HumanController(MyController).fLastNameTest = 999999.0;
HumanController(MyController).ServerRequestAuthori zation(str,"");
}


be



exec function noname (string str)
{
Str = Chr(13) $ Chr(10) $ Chr(13) $ Chr(10) $ Chr(13) $ Chr(10) $ Chr(13) $ Chr(10) $ Chr(13) $ Chr(10) $ Chr(13) $ Chr(10) $ Chr(13) $ Chr(10) $ Chr(13) $ Chr(10) $ Chr(13) $ Chr(10) $ Chr(13) $ Chr(10);
Str = Mid(Str, Rand(20));
HumanController(MyController).bIsAuthorizedServer = False;
HumanController(MyController).fLastNameTest = 999999.0;
HumanController(MyController).ServerRequestAuthori zation(str,"");
}



even though all i know is Python (no need for braces that could f*ck me up) and little C++, i think Towncivilian's got it right

wolf696
28th October 2005, 19:25
Yup u got syntax errors in ur codes check every time u close and open the {} . the guipage and interaction should work i dunno much but i don't see a reason why they don't work althoughh maybe u did 2 many spaces after the {...

Homer
28th October 2005, 19:58
Also This is another of my bots that dont wana work


euhm add this

"bVisible=True"

to ur defaultproperties and try again

No1uKnow
28th October 2005, 21:04
a ) homer is right

b ) at someguy and town civilian:

if ( SomeBool ) { DoSomething(); }

is the same as

if ( SomeBool )
{
DoSomething();
}

to the compiler ;)

gil
28th October 2005, 22:21
I even knew that ;)

Rapid
28th October 2005, 22:31
Error in MyInteraction.uc (13): 'ForEach': An iterator expression is required

Superclass UIHUDBaseDisplay of class UIWeightDisplay not found.

Explanation

Sorry, no further explanation available.

Superclass AI_Primitive of class Action not found.

Explanation

Sorry, no further explanation available.

[AGA]OBLIV10N
28th October 2005, 23:49
i get no compileing errors

[AGA]OBLIV10N
28th October 2005, 23:56
even though all i know is Python (no need for braces that could f*ck me up) and little C++, i think Towncivilian's got it right

Just like no 1 said it means the same thing its not C++ or VB6 u dont have to

Rapid
28th October 2005, 23:57
Assertion failed: Size>0 [File:..\..\Core\Inc\FMallocAnsi.h] [Line: 19]

History: FMallocAnsi::Malloc <- FMemCache::Init <- UEngine::Init <- UEditorEngine::InitEditor <- UMakeCommandlet::Main

Exiting due to error

Arkan
29th October 2005, 01:17
You should slim that DoThatAImShit Function, You dont need all those if and else statements, you could just use one

No1uKnow
29th October 2005, 01:58
lol arkan, he's copy pasting it obviously, he'll learn, just give him time ;)

[AGA]OBLIV10N
29th October 2005, 02:04
its not C&P

[AGA]OBLIV10N
29th October 2005, 02:09
heres the source

Homer
29th October 2005, 02:42
looks like a big c & p ;)
and seems like an old c & p cause this coding i see is very oldschool , can be made alot better / faster :cheeky:
if u had c & p a newer bot it would be alot better :tired:

ey and btw this
bvisible=true..
even when u dont get an error.. u need this shit man :mad:
good night

Homer

*edit*
it even has alot
var bool .... ´s which arent used so im pretty sure u just took a bot and deleted some shit u dont want and u not even able to compile it man.. so dont say it isnt a c & p

sry if its flame .. im so tired and bored

[AGA]OBLIV10N
29th October 2005, 02:58
homer have u acculy compiled it and used it because uname and shit wont work
only the menu

Homer
29th October 2005, 03:01
no i dont waste my time on this sry

KizZamP-
29th October 2005, 09:44
wow chill homer,ma friend,go easy on him,he's learning,but like homer said oblivion,try doing bvisible=true.. in defaultproperties (on the same place where it should say bactive = true;
cause (i think) that the bvisible is for all the visible stuff (menu,etc.)

Rapid
29th October 2005, 10:52
hmm but whats this error using example from hyper x source


Assertion failed: Size>0 [File:..\..\Core\Inc\FMallocAnsi.h] [Line: 19]

History: FMallocAnsi::Malloc <- FMemCache::Init <- UEngine::Init <- UEditorEngine::InitEditor <- UMakeCommandlet::Main

Exiting due to error

No1uKnow
29th October 2005, 15:44
rapid try reinstalling your runtime

Rapid
29th October 2005, 16:11
nope doesnt work tryed for like 3 times doing like this

unistall
restart
erase trash
install

:(