Hyper.nl Unreal Services Forum Index Hyper.nl Unreal Services
The forum of Hyper.nl Unreal Services and the semi-offical resource for Winged Unicorn's Unreal mods
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Console: can they just be destroyed/created

 
Post new topic   Reply to topic    Hyper.nl Unreal Services Forum Index -> HelpDesk
View previous topic :: View next topic  
Author Message
SoulReaver



Joined: 15 May 2004
Posts: 162

PostPosted: Sat Oct 21, 2006 6:24 pm    Post subject: Console: can they just be destroyed/created Reply with quote

Hello,

This is mainly a question. Ingame, can you jsut destroy a console owned by a player when you feel for it, like wouldnt it hurt if i destroy a console and replace it with another (or even a couple of times in the same map)?

Regards,
-SR
_________________
Before asking, try the Unreal wiki here.
------------------------------
New UT3 Community site.
Back to top
View user's profile Send private message
SoulReaver



Joined: 15 May 2004
Posts: 162

PostPosted: Tue Oct 24, 2006 8:36 pm    Post subject: Reply with quote

Does nobody have an answer for this? well ill test it out if i dont get a replie within some days.

Regards,
-SR
_________________
Before asking, try the Unreal wiki here.
------------------------------
New UT3 Community site.
Back to top
View user's profile Send private message
Zelk0wy[PL]



Joined: 19 Apr 2006
Posts: 110
Location: War Saw, Poland

PostPosted: Wed Oct 25, 2006 3:19 pm    Post subject: Reply with quote

I'm not a specialist in this. ( :p ) but I don't think so.

Each user has a specified console - it's specified in his Unreal.ini file.

Code:
[Engine.Engine]
GameRenderDevice=SoftDrv.SoftwareRenderDevice
AudioDevice=Galaxy.GalaxyAudioSubsystem
NetworkDevice=IpDrv.TcpNetDriver
Console=Engine.Console
Language=int
GameEngine=Engine.GameEngine


It seems to me that the only way to change the console is to edit the Unreal.ini file of the player to change the console specification.
It's seems not to be an object that you can just destroy in game.
_________________
Beware the lollipop of mediocrity - lick it once and you suck forever.

Back to top
View user's profile Send private message MSN Messenger
SoulReaver



Joined: 15 May 2004
Posts: 162

PostPosted: Wed Oct 25, 2006 6:36 pm    Post subject: Reply with quote

Not exactly,

A console is created on playerpawn.player.console, but its an object, not an actor.

So destroy() will not work, neither will spawn().

I think changing it ingame is possible.

Regards,
-SR
_________________
Before asking, try the Unreal wiki here.
------------------------------
New UT3 Community site.
Back to top
View user's profile Send private message
Hyper



Joined: 24 Jan 2004
Posts: 1227
Location: Middelburg, The Netherlands

PostPosted: Thu Oct 26, 2006 9:11 am    Post subject: Reply with quote

I don't know how, but I do know this is a tricky operation. You might want to ask Smartball / Zombie. But whatever you do, please respect the players Unreal client. I've seen more servers that tamper with consoles and other client-side objects. Smartball and Zombie (EDM5 and JCoopZ) can now successfully replace the console, but in the beginning EDM caused me headache with a buggy console replacement.

Destroying a console is not a good thing because it is quite essential for gameplay, especially in coop.

So what do you actually plan to perform?
_________________
Alter your reality...forever.
Hyper.nl Unreal Services
unreal://hypercoop.tk
Back to top
View user's profile Send private message Visit poster's website
Zelk0wy[PL]



Joined: 19 Apr 2006
Posts: 110
Location: War Saw, Poland

PostPosted: Thu Oct 26, 2006 1:27 pm    Post subject: Reply with quote

If you want to get rid of a player using an unwanted console u can just get him auto-kicked if package veryfier detects the console's file in his client.
_________________
Beware the lollipop of mediocrity - lick it once and you suck forever.

Back to top
View user's profile Send private message MSN Messenger
SoulReaver



Joined: 15 May 2004
Posts: 162

PostPosted: Thu Oct 26, 2006 3:59 pm    Post subject: Reply with quote

This is mainly a test, i do not have any plans with it futher (yet?), but.

I know replace consoles i tricky. but if you would look at a bit on this side:

Create new console,
Set new console to player,
Destroy old one.

In codeform.

Code:
newcon = New() 'Newconsole.newconsole';
oldcon = playerpawn.player.console;
Playerpawn.player.console=newcon;


Somewhere in the style of this. And yes i know above code wont work.

I already considered asking Smartball or Zombie, but i know Zombie is active here so i tought he would respond sooner or later.

And it doesnt seem Smartball is very active on his forum lately, if Zombie wont respond then ill email Smartball. I know him from the past. :p

Regards,
-SR
_________________
Before asking, try the Unreal wiki here.
------------------------------
New UT3 Community site.
Back to top
View user's profile Send private message
Bane



Joined: 10 Sep 2006
Posts: 3

PostPosted: Mon Oct 30, 2006 3:37 pm    Post subject: Reply with quote

// The actor this player controls.
var transient const playerpawn Actor;
var transient const console Console;

Thats in Player.uc, and thats your problem right there. You can't assign const variables in UScript. If you could, however, all you need to do to destroy the console is remove ALL object references to it. Just changing the player console might do it, I can't think of any other places where it would be referenced.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Hyper.nl Unreal Services Forum Index -> HelpDesk All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group