Looking for some help with coding windows

The best and quickest support by a group of top-notch editing specialists, guaranteed!

Moderator: Forum Guards

Looking for some help with coding windows

Postby Ayleth » Sun Mar 04, 07 3:11 am

this is a cross post from the scripting society.

"basically, i want to make a window for my admintool project... right now its using an akward combination of clicks and keys to access the different functions, but now that i think about it, a nicely organised window created via "mutate admin" or some jazz like that would be 100% better. I took a look at the viewable source from the dxmapvote mutator, but all the UnknownFunction119's etc, are all throwing me for a loop. does anyone have an idea what to do? Thx."

Here is my latest plan:

Code: Select all
Categories:
----------------------
Player Info
-To select player: Enter ID, press LOAD PLAYER, press UPDATE PLAYER to save changes
-To be displayed: Current Name, ID, IP, Scores, Team, PlayerList incl ID
-To be acted out: Kill, Ban, Kick, Summon Player to Owner, Teleport to Player,
        Toggle AutoAdmin and AdminCPanel Access, Reset Scores
-To be changable: Name, Team, Scores

Server Info
-To be displayed: Current Augs, Speed, Players Incl Teams
-To be acted out: Reset All Scores, Make Global Announcement, Make All 1 Team,
        Randomise Teams, Reload Map
-To be changable: Augs, Speed  >> Saved by UPDATE SERVER button

Buttons needed:
----------------------
Player Info
-Load Player
-Update Player
-Kill
-Ban
-Kick
-Summon Player
-Tele to Player
-Toggle AutoAdmin
-Toggle AdminCPanel
-Reset Scores

Server Info
-Refresh
-Reset All Scores
-Send Announcement
-Unify Teams
-Randomise Teams
-Reload Map
-Update Server

Text boxes needed:
----------------------
Player Info
-ID (to load player)
-Kills
-Deaths
-Streak

Server Info
-Initial Augs
-Augs per Kill
-Server Speed
-Announcement Text
¨‘°ºMåsåmµñ£º°‘¨
˙•●●ĊђασsΪηcǻяйαѓε●●•˙
jason.unger@gmail.com
User avatar
Ayleth
Regular
 
Posts: 313
Joined: Sun Jul 09, 06 7:27 pm
Location: 6 feet under. and trying to get out!

Postby Ayleth » Sun Mar 11, 07 7:25 am

So no one can/wants to help? Guys, im REALLY feeling unloved here. And a lil pissed off too. At LEAST POST something.
¨‘°ºMåsåmµñ£º°‘¨
˙•●●ĊђασsΪηcǻяйαѓε●●•˙
jason.unger@gmail.com
User avatar
Ayleth
Regular
 
Posts: 313
Joined: Sun Jul 09, 06 7:27 pm
Location: 6 feet under. and trying to get out!

Postby VodunLoas » Sun Mar 11, 07 8:45 am

Well I don't think anyone here is good at doing windows. It is one of the hardest things to code.
User avatar
VodunLoas
Alpha
 
Posts: 677
Joined: Thu Apr 22, 04 7:16 am

Postby Ayleth » Sun Mar 11, 07 8:52 am

LOL... ok i feel a lil better now that ppl actually READ what i post. Thing is, im told Daedalus, MainMan, and others (not to mention Allan did windowing in his TempBan Mut) know a lil of Windowing... ive pmed/talked with them, and Dae never seems to have time, Nobody either, and MM and Allan, they haven't responded to PMs. -.-
¨‘°ºMåsåmµñ£º°‘¨
˙•●●ĊђασsΪηcǻяйαѓε●●•˙
jason.unger@gmail.com
User avatar
Ayleth
Regular
 
Posts: 313
Joined: Sun Jul 09, 06 7:27 pm
Location: 6 feet under. and trying to get out!

Postby Allan » Sun Mar 11, 07 9:47 am

{M}asamune wrote:LOL... ok i feel a lil better now that ppl actually READ what i post. Thing is, im told Daedalus, MainMan, and others (not to mention Allan did windowing in his TempBan Mut) know a lil of Windowing... ive pmed/talked with them, and Dae never seems to have time, Nobody either, and MM and Allan, they haven't responded to PMs. -.-
I'd be glad to help, but i've lost the source for MMTempBan... X_X

I guess I could have a look at how the main-menu screen is invoked, and do something based off of that.
User avatar
Allan
Alpha
 
Posts: 4545
Joined: Wed Dec 21, 05 1:41 pm
Location: Northamptonshire, England.

Postby Ayleth » Sun Mar 11, 07 9:53 am

i want it to be more of a mutator called window, not a window as i understand that may involve using a new gameclass?? Or am i wrong? anyway... I have a decompiled ver of your tempban, but has unknownfunctions in the spots where i don't need em. i figured a FEW out, but theres others i cant decode. will email upon request.
¨‘°ºMåsåmµñ£º°‘¨
˙•●●ĊђασsΪηcǻяйαѓε●●•˙
jason.unger@gmail.com
User avatar
Ayleth
Regular
 
Posts: 313
Joined: Sun Jul 09, 06 7:27 pm
Location: 6 feet under. and trying to get out!

Postby Alex » Sun Mar 11, 07 10:09 am

Getting the actual function out of UnknownFunction is easy. An UnknownFunction is a native function. It has a number, UnknownFunction[NUMBERHERE] right?

Well, look into the parent classes of the actor, and look for a native function like this:

native(NUMBER) function stuff.

We take a small example:

This is taken from MTLPlayer.uc
Code: Select all
event Possess ()
{
   local bool VAA;
   local DeusExRootWindow VAB;

   Super(PlayerPawn).Possess();
   NetPriority=Default.NetPriority;
   V89=True;
   UnknownFunction1052();


MTLPlayer extends Human, we look into Human.uc, search for "1052", and we find nothing.
Human extends DeusExPlayer, we look into DeusExPlayer.uc, search for "1052", and we find nothing.
DeusExPlayer extends PlayerPawnExt, we look into PlayerPawnExt.uc, search for "1052", and we find this:
Code: Select all
native(1052) final function InitRootWindow();


There we have our function!
Then, the example becomes this:

Code: Select all
event Possess ()
{
   local bool VAA;
   local DeusExRootWindow VAB;

   Super(PlayerPawn).Possess();
   NetPriority=Default.NetPriority;
   V89=True;
   InitRootWindow();
Alex
Alpha
 
Posts: 8067
Joined: Wed Nov 12, 03 4:51 pm

Postby Ayleth » Sun Mar 11, 07 10:20 am

ahhh... ok thx!
i had thought about that (about the number being back referanced, but not about it being defined natively) but to tell you the truth, i didn't look into it. Better trust my instincts from now on lol. THX
¨‘°ºMåsåmµñ£º°‘¨
˙•●●ĊђασsΪηcǻяйαѓε●●•˙
jason.unger@gmail.com
User avatar
Ayleth
Regular
 
Posts: 313
Joined: Sun Jul 09, 06 7:27 pm
Location: 6 feet under. and trying to get out!

Postby ~ô¿ô~Nobody~ » Tue Mar 13, 07 3:05 pm

hmm, i should make some unknown function replacer programm :lol:
Nobody is perfect...
------------------------------
Longc[A]t wrote:I still think Dae is a russian spambot.

~[A]Daedalus~ wrote:There will be a day when my patience goes away and you, along with all who rant with you, will get banned.

ô¿ô¥[GODZ]¥NOCHANC wrote:I can ban any one I want ANY time I want. You have no rights here.
User avatar
~ô¿ô~Nobody~
Alpha
 
Posts: 2520
Joined: Fri Dec 31, 04 3:20 pm
Location: Proclarush Taonas

Postby Ayleth » Tue Mar 13, 07 10:09 pm

Nobody, im sure many of us re-coders would worship you for that!!! Esp those of us who lose our source (randomly points finger).
¨‘°ºMåsåmµñ£º°‘¨
˙•●●ĊђασsΪηcǻяйαѓε●●•˙
jason.unger@gmail.com
User avatar
Ayleth
Regular
 
Posts: 313
Joined: Sun Jul 09, 06 7:27 pm
Location: 6 feet under. and trying to get out!


Return to Editing issues

Who is online

Users browsing this forum: No registered users and 55 guests