You are an unregistered user, you can register here
Navigation

Information

Site

Donations
If you wish to make a donation you can by clicking the image below.


 
Go Back   The Unreal Admins Page > Forums > Hosted Forums > UTPure > Dr. SiN's Mods > Visual UC++

Reply
Thread Tools Display Modes
  #1  
Unread 6th August, 2002, 04:41 PM
raphidae
 
Posts: n/a
Default

Hello,

I've bumped into a rather harmless but annoying bug in UT. As my girlfriend plays UT on my machine occasionally I wanted to setup keybinds to change playername quickly.

The problem is that my nick is ¤{tmp//®åþhïdæ}¤, and while this goes fine when I set it as nick normally, when using 'name' or 'setname' somthing fucks up and sees the '//' in the nick as a comment start. So when doing 'setname ¤{tmp//®åþhïdæ}¤' it results in the nick being '¤{tmp'. (Already tried things like 'setname ¤{tmp2F/®åþhïdæ}¤' and 'setname ¤{tmp2F2F®åþhïdæ}¤', but that doesn't help. Also inserting useless escape sequences like a and n between the slashes doesn't help.)

So I thought I'd fix this with a small .u file with the nick hardcoded in, but this proved a bit more difficult.

I downloaded VUC++ and found that the command that changes the nick is located in Engine.Pawn.PlayerPawn -> 'exec function SetName'. Now I read lots of tutorials and I deduced from them that a function prefixed with exec is executable from the console and that subclasses inherit everything from the parent class. With this info I created this:

Code:
//package namefix



class NameFix expands PlayerPawn;



exec function name1()

{

	ChangeName("nick1");

	UpdateURL("Name", "nick1", true);

	SaveConfig();

}



exec function name2()

{

	ChangeName("nick2");

	UpdateURL("Name", "nick2", true);

	SaveConfig();

}
This compiled great and then I had a namefix.u in my system dir. Now, this file didn't do jack shit, because the console commands were not working.

After some more digging around I figured I needed a namefix.int to get the .u loaded... But I can't find anything about it and I haven't got a clue what to put in it. I tried stealing from my specfix.int and tried the following in the .int:

Code:
[Public]

Object=(Name=namefix.namefix,Class=Class,MetaClass=Pawn.PlayerPawn)



[Public]

Object=(Name=namefix.namefix,Class=Class,MetaClass=Engine.PlayerPawn)



[Public]

Object=(Name=namefix.namefix,Class=Class,MetaClass=Engine.Pawn)



[Public]

Object=(Name=namefix.namefix,Class=Class,MetaClass=Engine.Console)
But none of this does anything. I can't find anything related to 'namefix' in the unrealtournament.log either

Could someone here be so kind as to kick me in the right direction? Because I've been at it for hours now and I'm at the point that this _HAS_ to work and that just changing my nick would be too easy.

Thanks in advance.
Reply With Quote
  #2  
Unread 10th August, 2002, 02:48 AM
raphidae
 
Posts: n/a
Default

No 1337 coder that can help me out here?
Reply With Quote
  #3  
Unread 10th August, 2002, 04:45 AM
DarkByte
 
Posts: n/a
Default

have you tried:

setname "my//new//name"

?
Reply With Quote
  #4  
Unread 10th August, 2002, 06:20 AM
raphidae
 
Posts: n/a
Default

Quote:
Originally posted by DarkByte
have you tried:

setname "my//new//name"

?
Yes I have. This results in my nick being set correctly, but with the "-s.
Reply With Quote
  #5  
Unread 15th August, 2002, 06:58 PM
The Undertaker
 
Posts: n/a
Default

Without "-s?
Reply With Quote
  #6  
Unread 15th August, 2002, 07:46 PM
raphidae
 
Posts: n/a
Default

Quote:
Originally posted by The Undertaker
Without "-s?
Ehhh, what?
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 09:24 AM.


 

All pages are copyright The Unreal Admins Page.
You may not copy any pages without our express permission.