Some info please

  • Two Factor Authentication is now available on BeyondUnreal Forums. To configure it, visit your Profile and look for the "Two Step Verification" option on the left side. We can send codes via email (may be slower) or you can set up any TOTP Authenticator app on your phone (Authy, Google Authenticator, etc) to deliver codes. It is highly recommended that you configure this to keep your account safe.

Kaoh

MP_Clan member
Sep 16, 2000
185
0
0
Holland
www.kaoh.nl
I want to write a mod/moderator that will do:

Catch several events (non UT names used), like:
- player gotHit
- player landsOnFloor
- player FiresOnce
- player FiresContinues
etc.

I want this information to be send to an external app. or an activeX

and i want all original codes to continue.

So i end up with an simple logging (i know it is easyer to, but i will use it for a supprise) window or something

Is this possible? any pointers, please, i want it done by monday ;)
 

2COOL4-U

New Member
Mar 17, 2001
505
0
0
37
dot NL
2cool.free.fr
by Monday :B. Well you'll need to start writing your own dll for UT. UnrealScript has no standard support for ActiveX/COM/OLE or what ever you want to communicate with
 

Kaoh

MP_Clan member
Sep 16, 2000
185
0
0
Holland
www.kaoh.nl
Dont worry about the DLL

Ok, i write the DLL tonight, and then how do i use it from UT on a i get hit event, sounds easy, well should be... you have an example?

I will start really looking at UTscript later now i first want this fast and easy :B

and there is nothing young about me, just impatient :)
 

Papapishu

我是康
Jun 18, 2001
2,043
0
0
43
void
www.vovoid.com
Is is fake because it's written in VB?
It's an executable anyway right?
Make a program that has an accessible function, say GetLogString(string...) or something.
Compile it to a dll (I guess you know how to do.
The uscript part is that you declare a native function, like thisone:
Code:
native function GetLogString( string Text );
I don't know if you need to specify dll and so, acctually I have never done this, so I dunno much about it...
But this is the way uscript comunicates with the dlls...
These functions can then be subclassed to take care of the code the way you want it..
If you're using it in the same class, just call the function from the place where you get the text you want to log, like:

Code:
GetLogString("Hello there!");

And your dll should kick in and take care of this string...
I dunno how dlls are handled, like loading and unloading and so, but maybe there are some tutorials on this?