logo
Page Index Toggle Pages: 1 2 [3] 4 5 ... 19 Send TopicPrint
Very Hot Topic (More than 25 Replies) New commands and functions in 227 (Read 19087 times)
.:..:
Board Moderator
Developer Team
*****
Offline



Posts: 1534
Location: Finland
Joined: Aug 16th, 2005
Gender: Male
Re: New commands and functions in 227
Reply #30 - Jun 20th, 2008 at 11:39pm
Print Post  
I wrote some new native functions to enhance UScripting:
Code
Select All
/Object:
native(1700) final function Object FindObject( Class<Object> ObjClass, string ObjectName );
/Find an object based on object name/class.
native(1701) final function Class<Object> GetParentClass( Class<Object> ObjClass );
/Get Parent class of a desired class.
native(1702) final iterator function AllObjects( class<Object> BaseClass, out Object Obj );
/Iterate through all objects in game.
native(1723) final iterator function AllFiles( string FileExtension, string FilePrefix, out string FileName );
/Iterate through all Unreal Package files (u, umx, utx, uax...).

/Actor:
native(1714) final function Actor SpawnAct( Class<Actor> ActClass, vector Loc, optional rotator Rota, optional name ActName, optional Actor Own, optional Pawn Instigat, optional Actor Template, optional bool bMayColFail );
/Spawn an actor class with some additional parameters.
native(1722) final function bool CanReachPoint( vector Start, vector End, float ColRadius, float ColHeight, float JumpZ, float XYSpeed );
/A point reachability function for AI use.
static native(1713) final function NativeExec( string Cmd );
/Pretty much same as 'ConsoleCommand' except it's static function.

/LevelInfo:
static native(1703) final function byte GetConState( NetConnection Other );
/Get connection state out of a net connection.
static native(1704) final function string GetConIP( NetConnection Other, out int Port );
/Get net connection IP aswell as Port.
static native(1705) final function string GetConOpts( NetConnection Other );
/Get net connection options (?Name=Bla?Class=Bla?etc...).
native(1706) final function bool HasDownloaders();
/Fast check if current game has some downloaders.
native(1707) final iterator function AllConnections( out NetConnection Connect );
/Iterate through all connections currently on server.
native(1708) final iterator function AllDownloaders( out NetConnection Connect, out string File, out int Sent, out int TotalSz );
/Iterate through all downloaders on server.
native(1712) final function PointRegion GetLocZone( vector Pos );
/Get the zone out of a desired location.
native(1720) final function Object AllocateObj( Class<Object> ObjClass );
native(1721) final function FreeObject( Object Obj );
/For storing temporarly objects/actors that can be reused later.

/NavigationPoint:
native(1709) final function int GenReachSpec( Actor Start, Actor End, int Dist, int ColR, int ColH, int RchFlgs, bool bPruned );
/Generate reachspec for current map.
native(1710) final function bool EditReach( int Idx, optional Actor Start, optional Actor End, optional int Dist, optional int ColR,
 optional int ColH, optional int RchFlgs, optional bool bPruned );
/Edit an excisting reachspec in current map.
native(1711) final function bool RemoveReachSpec( int Idx );
/Remove a reachspec from the current map.

/Canvas:
native(1715) final function Draw2DLine( Color Col, vector Start, vector End );
/Draw a 2D line on the screen.
native(1716) final function Draw3DLine( Color Col, vector Start, vector End );
/Draw a 3D line in world.
native(1717) final function vector WorldToScreen( vector WorldPos );
/Convert world coordinates to screen coordinates.
native(1718) final function vector ScreenToWorld( vector ScreenPos );
/Convert screen coordinates to world coordinates.
native(1719) final function DrawPathNetwork( bool bOnlyWalkable );
/Render current map's path network (with 3D lines).
native(1724) final function coords GetCameraCoords();
/Get the current camera location and rotation. 

  

Shivaxi wrote on Jul 25th, 2013 at 12:50pm:
...and now im stuck trying to fix everything you broke for the next 227 release xD Tongue

(ಠ_ಠ)
Back to top
IP Logged
 
Age
God Member
*****
Offline



Posts: 846
Joined: Dec 29th, 2007
Gender: Male
Re: New commands and functions in 227
Reply #31 - Jun 21st, 2008 at 7:51am
Print Post  
There is function that tells if downloader fail downloading and reason for it?
There is function that tells reason why someone left from server (disconnect, exit, crash etc...) ?
  
Back to top
 
IP Logged
 
[]KAOS[]Casey
Ex Member


nedm

Gender: Male
Re: New commands and functions in 227
Reply #32 - Jun 21st, 2008 at 8:52am
Print Post  
Age wrote on Jun 21st, 2008 at 7:51am:
There is function that tells if downloader fail downloading and reason for it?
There is function that tells reason why someone left from server (disconnect, exit, crash etc...) ?


a download "fail" catch would be pretty weird..

disconnect/crash would report the same to a server{sudden loss of connection}, and exit may have false positives on disconnection too..

If dots and i had the full source we could easily add in something to tell if someone timed out.. but we don't.. this is the best we're getting for now i'm afraid. and hey. Its a hell of alot better than nothing.
  
Back to top
 
IP Logged
 
Smirftsch
Forum Administrator
*****
Offline



Posts: 8100
Location: at home
Joined: Apr 30th, 1998
Gender: Male
Re: New commands and functions in 227
Reply #33 - Jun 21st, 2008 at 11:17am
Print Post  
Age wrote on Jun 21st, 2008 at 7:51am:
There is function that tells if downloader fail downloading and reason for it?
There is function that tells reason why someone left from server (disconnect, exit, crash etc...) ?


while already the report what and if someone is downloading is completely useless (there were already enough indications if someone is downloading and what this one is downloading is of no use either), such an information is of no use at all too, absolutely pointless to delay 227 because of something like that.
We only put the download report in because some admins seem to be curious about it, for whatever reason.
  

Sometimes you have to lose a fight to win the war.
Back to top
WWWICQ  
IP Logged
 
GreatEmerald
Oldunreal MasterPoster
*
Offline


The Great Emerald

Posts: 5361
Location: Vilnius, Lithuania
Joined: May 21st, 2007
Gender: Male
Re: New commands and functions in 227
Reply #34 - Jun 21st, 2008 at 11:34am
Print Post  
That function is good for listen servers, as you can see if your listen server is simply unpopular or if it just takes some time for the clients to connect...
  
Back to top
WWW  
IP Logged
 
Smirftsch
Forum Administrator
*****
Offline



Posts: 8100
Location: at home
Joined: Apr 30th, 1998
Gender: Male
Re: New commands and functions in 227
Reply #35 - Jun 21st, 2008 at 12:34pm
Print Post  
no real argument, you could look this up easily in the logs as well...
  

Sometimes you have to lose a fight to win the war.
Back to top
WWWICQ  
IP Logged
 
Age
God Member
*****
Offline



Posts: 846
Joined: Dec 29th, 2007
Gender: Male
Re: New commands and functions in 227
Reply #36 - Jun 21st, 2008 at 1:00pm
Print Post  
[]KAOS[]Casey wrote on Jun 21st, 2008 at 8:52am:
a download "fail" catch would be pretty weird..

Same as version mismacht.

Some "name remember system" would be good too. Like nepthys does.
  
Back to top
 
IP Logged
 
Smirftsch
Forum Administrator
*****
Offline



Posts: 8100
Location: at home
Joined: Apr 30th, 1998
Gender: Male
Re: New commands and functions in 227
Reply #37 - Jun 21st, 2008 at 1:03pm
Print Post  
Age wrote on Jun 21st, 2008 at 1:00pm:
[]KAOS[]Casey wrote on Jun 21st, 2008 at 8:52am:
a download "fail" catch would be pretty weird..

Same as version mismacht.

Some "name remember system" would be good too. Like nepthys does.


something like that is indeed already in. Was another server admin request Smiley
Dots, docs? Tongue
  

Sometimes you have to lose a fight to win the war.
Back to top
WWWICQ  
IP Logged
 
.:..:
Board Moderator
Developer Team
*****
Offline



Posts: 1534
Location: Finland
Joined: Aug 16th, 2005
Gender: Male
Re: New commands and functions in 227
Reply #38 - Jun 21st, 2008 at 6:16pm
Print Post  
Added in for ALAudio and FMod to support Stream Musics, in other words: You can now import Ogg/MP3 or whatsoever music files on Music browser and play them just fine (as long as you don't use GalaxyAudio system, but who would use it?).
  

Shivaxi wrote on Jul 25th, 2013 at 12:50pm:
...and now im stuck trying to fix everything you broke for the next 227 release xD Tongue

(ಠ_ಠ)
Back to top
IP Logged
 
[]KAOS[]Casey
Ex Member


nedm

Gender: Male
Re: New commands and functions in 227
Reply #39 - Jun 21st, 2008 at 7:02pm
Print Post  
Age wrote on Jun 21st, 2008 at 1:00pm:
[]KAOS[]Casey wrote on Jun 21st, 2008 at 8:52am:
a download "fail" catch would be pretty weird..

Same as version mismacht.

Some "name remember system" would be good too. Like nepthys does.


i'm not even sure if the server _can_ know if there's a mismatch..

the name system can be implemented via a mod on a gametype, i didn't want to add anything that fancy quite yet.. especially when i cant use dynamic arrays..
  
Back to top
 
IP Logged
 
.:..:
Board Moderator
Developer Team
*****
Offline



Posts: 1534
Location: Finland
Joined: Aug 16th, 2005
Gender: Male
Re: New commands and functions in 227
Reply #40 - Jun 28th, 2008 at 12:36pm
Print Post  
Game:
-Added in an IP/Name/ID logger for 227e clients, and messaging it for server admin's/server log if GameInfo bMessageAdminsAliases/bLogNewPlayerAliases are true.
-Built-in ban manager has been changed to save all ban's in a new file called "Security.ini" (as well as IPLog will be stored in there).
-Added in an "OverridePrelogin" function for GameRules to modify prelogin allowance or something (its called directly after GameInfo Prelogin).
-Added in a new class 'PlayerClassManager' which allows custom mods to temporarly adding in to player settings some new player classes/skins for that game only.
Actor:
-Added a new variable "bNetNotify" and a new event "PostNetReceive", can be used by mod authors for notifing whenever a replicated variable has been changed on client (whenever bNetNotify is True).
UBrowser:
-Added in a config option to set initial startup page (Advanced Options > Networking > UBrowser > InitialPage).
FMod:
-Added in ALAudio alike "AStat Audio" and "AStat Detail" commands.
-Fixed the reveb issue with maps like QueenEnd.
-Added in a new option to enable Sound Attenuate (sounds that are played behind walls are heard in lower volume).
  

Shivaxi wrote on Jul 25th, 2013 at 12:50pm:
...and now im stuck trying to fix everything you broke for the next 227 release xD Tongue

(ಠ_ಠ)
Back to top
IP Logged
 
.:..:
Board Moderator
Developer Team
*****
Offline



Posts: 1534
Location: Finland
Joined: Aug 16th, 2005
Gender: Male
Re: New commands and functions in 227
Reply #41 - Jun 28th, 2008 at 6:58pm
Print Post  
Added in a new emitter particle system (Emitter.u/Emitter.dll) which is handeled 99 % in C++ scripts (giving a huge speed boost), currently it supports:
-Normal sprite emitter
-Sheet sprite emitter
-Mesh emitter
-Beam emitter
-Weather emitter

Full variables explanation:
XEmitter:
Quote:
EmGeneral:
bDisabled - Emitter is disable, no more spawning new particles.
bRespawnParticles - Respawn particles that have died.
bAutoDestroy - Auto-destroy emitter actor after all particles have died (can be used for temp effects).
bAutoReset - Auto-reset emitter after all particles have died and AutoResetTime has passed.
bSpawnInitParticles - Spawn initial particles, or else wait for possible auto-reset (only when bRespawnParticles is false).
bStasisEmitter - Smilar to Actor bStasis, but stop updating particles once player isnt seeing the emitter zone.
MaxParticles - Maximum amount of particles.
ParticlesPerSec - Amount of particles to spawn per second (0 = auto assign the value).
LifetimeRange - How long time particles should live.

EmRevolution:
bRevolutionEnabled - Particle revolving should be enabled.
RevolutionOffset - Revolving offset