ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools


new:changelog

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
new:changelog [2018/02/17 14:37]
korshun
new:changelog [2018/02/27 22:05] (current)
korshun
Line 1: Line 1:
 ====== Changelog ====== ====== Changelog ======
 +
 +===== 1.8.2 =====
 +
 +  * Removed all uses of local arrays as they are not supported in Zandronum 3.0.
 +  * Added ''getNumDigits''.
 +  * Removed broken ''bitlog2'' that returned 0 for numbers greater than 15.
 +  * Added ''flag2index'' as a replacement for ''bitlog2''.
 +  * Added ''GetActorVelocityXY'' alias for ''GetActorXYVelocity''.
 +  * Added ''HudSetAlign*'' aliases for ''HudSetAlignment*''.
 +
 +==== Porting guide ====
 +
 +Replace uses of ''bitlog2'' with ''flag2index''.
 +
 +===== 1.8.1 =====
 +
 +Fixed ''AngleDiff'' outputting wrong results for some angles.
 +
 +==== Porting guide ====
 +
 +No changes needed.
 +
 +
 +===== 1.8 ======
 +  * Added [[array|array sorting and shuffling]]
 +  * Added [[sync|server-to-client variable synchronization]] functions.
 +  * Moved all decorate to ''decorate.acsutils''.
 +  * ''RotateVector'' no longer multiplies rotation angle by -1.
 +  * Changed ''RotateVectorSC'' to ''RotateVectorCS'' (different argument order)
 +  * Added ''byte2ang'' and ''ang2byte''
 +  * Added ''HudX1'' ''HudX2'' ''HudY1'' ''HudY2'' aliases for [[widescreen]] functions.
 +
 +==== Porting guide ====
 +
 +  * Change all ''RotateVector(x, y, angle)'' calls to ''RotateVector(x, y, -angle)''
 +  * Change all ''RotateVectorSC(x, y, s, c)'' calls to ''RotateVectorCS(x, y, c, s)''
 +  * Delete ''decorate/changeflag.txt'' and copy ''decorate.acsutils'' to your project.
 +
 +===== 1.7 =====
 +
 +  * **Changed ''PackShorts'' format to fix ''SHORT_MIN'' getting turned into 0**
 +  * Fixed ''trunc'' and ''itrunc'' returning X - 1 for integer Xs.
 +  * Renamed [[HUD Library]] TextOrigin property to Alignment.
 +  * Added ''RotateVectorSC''
 +  * Added ''AnglesToVector''
 +  * Added ''AngleDiff''
 +  * Added ''randint''
 +  * Removed ''length2d'' and ''length3d'' aliases
 +  * [[error|Errors]] are logged to serverside console even when ''acsutils_noerrors'' is 1.
 +
 +==== Porting guide ====
 +
 +  - Replace ''length2d'' and ''length3d'' with [[zdoom>VectorLength]] and ''VectorLength3D'' respectively.
 +  - Replace ''HudSetTextOrigin'' with ''HudSetAlignment'' and ''HUD_TEXTORIGIN_*'' with ''HUD_ALIGN_*''.
 +  - If you store ''PackShorts'' output in database or cvars, copy broken ''UnpackShorts'' implementation from previous version of ACSUtils and implement backwards compatibility.
 +
 +
 +===== 1.6.2 =====
 +
 +This is a hotfix release to fix broken 3D HudMessages in [[HUD Library]].
 +
 +==== Porting guide ====
 +
 +No changes needed.
  
 ===== 1.6.1 ===== ===== 1.6.1 =====
Line 23: Line 87:
   * **[[Actor properties|Added wrapper functions for all actor properties]]**    * **[[Actor properties|Added wrapper functions for all actor properties]]** 
   * All variables and constants not meant to be used by ACSUtils users are now prefixed to avoid namespace pollution.   * All variables and constants not meant to be used by ACSUtils users are now prefixed to avoid namespace pollution.
-  * Fixed [[functions:StrRepeat]] having wrong argument type. +  * Fixed ''StrRepeat'' having wrong argument type. 
-  * Fixed [[functions:HasColorCodes]] and [[functions:SkipColorCodeAt]] interpreting literal ''%%"\\c"%%'' as a colorcode beginning. +  * Fixed ''HasColorCodes'' and ''SkipColorCodeAt'' interpreting literal ''%%"\\c"%%'' as a colorcode beginning. 
-  * [[functions:rad2deg]] and [[functions:deg2rad]] should now be more accurate and faster. +  * ''rad2deg'' and ''deg2rad'' should now be more accurate and faster. 
-  * [[functions:IsAlive]] now checks that the activator is in game.+  * ''IsAlive'' now checks that the activator is in game.
   * Rewritten [[number parsing]].   * Rewritten [[number parsing]].
   * Added new functions:   * Added new functions:
     * Input:     * Input:
-      * [[functions:KeyBound]] +      * ''KeyBound'' 
-      * [[functions:KeyToggled]] +      * ''KeyToggled'' 
-      * [[functions:KeyToggledAny]] +      * ''KeyToggledAny'' 
-      * [[functions:PlayerKeyToggled]] +      * ''PlayerKeyToggled'' 
-      * [[functions:PlayerKeyToggledAny]]+      * ''PlayerKeyToggledAny''
     * Bit operations:     * Bit operations:
-      * [[functions:getbit]] +      * ''getbit'' 
-      * [[functions:setbit]] +      * ''setbit'' 
-      * [[functions:clrbit]] +      * ''clrbit'' 
-      * [[functions:tglbit]] +      * ''tglbit'' 
-      * [[functions:notflag]]+      * ''notflag''
     * Math:     * Math:
-      * [[functions:fract]] +      * ''fract'' 
-      * [[functions:bitlog2]] +      * ''bitlog2'' 
-      * [[functions:condTrue]] +      * ''condTrue'' 
-      * [[functions:condFalse]]+      * ''condFalse''
     * Random:     * Random:
-      * [[functions:randbool]] +      * ''randbool'' 
-      * [[functions:randsign]] +      * ''randsign'' 
-      * [[functions:RandomPick]]+      * ''RandomPick''
     * Strings:     * Strings:
-      * [[functions:StrIEquals]]+      * ''StrIEquals''
       * **Case-insensitive versions of all string functions**       * **Case-insensitive versions of all string functions**
-      * [[functions:StrContains]] +      * ''StrContains'' 
-      * [[functions:LeftPad]] +      * ''LeftPad'' 
-      * [[functions:RightPad]] +      * ''RightPad'' 
-      * [[functions:StrIsInt]] +      * ''StrIsInt'' 
-      * [[functions:StrIsFixed]]+      * ''StrIsFixed''
     * Player:     * Player:
-      * [[functions:SetActivatorToPlayer2]] +      * ''SetActivatorToPlayer2'' 
-      * [[functions:ConsolePlayerInGame]] +      * ''ConsolePlayerInGame'' 
-      * [[functions:ConsolePlayerName]] +      * ''ConsolePlayerName'' 
-      * [[functions:ConsolePlayerTeam]] +      * ''ConsolePlayerTeam'' 
-      * [[functions:SetActivatorToConsolePlayer]]+      * ''SetActivatorToConsolePlayer''
     * Dead spectator support:     * Dead spectator support:
-      * [[functions:PlayerIsDeadSpectator]] +      * ''PlayerIsDeadSpectator'' 
-      * [[functions:PickRandomDeadSpectator]] +      * ''PickRandomDeadSpectator'' 
-      * [[functions:DeadSpectatorCount]]+      * ''DeadSpectatorCount''
     * Teams:     * Teams:
-      * [[functions:GetPlayerTeam]] +      * ''GetPlayerTeam'' 
-      * [[functions:PickRandomTeamPlayer]] +      * ''PickRandomTeamPlayer'' 
-      * [[functions:TeamPlayerCount]]+      * ''TeamPlayerCount''
     * ZDoom:     * ZDoom:
-      * [[functions:GetUserCVarFixed]] +      * ''GetUserCVarFixed'' 
-      * [[functions:ToggleActorInventory]] +      * ''ToggleActorInventory'' 
-      * [[functions:IsServerOnly]] +      * ''IsServerOnly'' 
-      * [[functions:IsClientOnly]] +      * ''IsClientOnly'' 
-      * [[functions:GetGravityG]] +      * ''GetGravityG'' 
-      * [[functions:SetGravityG]] +      * ''SetGravityG'' 
-      * [[functions:jumpz2height]] +      * ''jumpz2height'' 
-      * [[functions:height2jumpz]]+      * ''height2jumpz''
   * Added new constants:   * Added new constants:
-    * [[constants:TAU]] (see http://tauday.com/tau-manifesto) +    * ''TAU'' (see http://tauday.com/tau-manifesto) 
-    * [[constants:USHORT_MAX]] +    * ''USHORT_MAX'' 
-    * [[constants:SBYTE_MAX]] +    * ''SBYTE_MAX'' 
-    * [[constants:SBYTE_MIN]] +    * ''SBYTE_MIN'' 
-    * [[constants:UBYTE_MAX]] +    * ''UBYTE_MAX'' 
-    * [[constants:MAX_PLAYERS_ZDOOM]] +    * ''MAX_PLAYERS_ZDOOM'' 
-    * [[constants:TEAM_NONE]] +    * ''TEAM_NONE'' 
-    * [[constants:HUDTIC]] +    * ''HUDTIC'' 
-    * [[constants:COLORCODE]]+    * ''COLORCODE''
              
 ==== Porting guide ==== ==== Porting guide ====
Line 111: Line 175:
  
 ^ Original name ^ New name ^ ^ Original name ^ New name ^
-| GetActorCurrentSpeed | [[functions:GetActorVelocity]] +| GetActorCurrentSpeed | ''GetActorVelocity'' 
-| GetActorCurrentSpeed2D | [[functions:GetActorXYVelocity]] +| GetActorCurrentSpeed2D | ''GetActorXYVelocity'' 
-| StrTimes | [[functions:StrRepeat]] +| StrTimes | ''StrRepeat'' 
-| StrMidRange | [[functions:StrSlice]] +| StrMidRange | ''StrSlice'' 
-| HasRoom | [[functions:HasRoomFor]] +| HasRoom | ''HasRoomFor'' 
-| StatusBarShown | [[functions:StatusBarVisible]] +| StatusBarShown | ''StatusBarVisible'' 
-| TakeAllInventory | [[functions:TakeMaxInventory]] +| TakeAllInventory | ''TakeMaxInventory'' 
-| TakeAllActorInventory | [[functions:TakeMaxActorInventory]] |+| TakeAllActorInventory | ''TakeMaxActorInventory'' |
  
 4. Replace all uses of SwapActivator and RestoreActivator with ACS_NamedExecuteWithResult. 4. Replace all uses of SwapActivator and RestoreActivator with ACS_NamedExecuteWithResult.
Line 129: Line 193:
 This is a bugfix release. It now uses the MIT license. This is a bugfix release. It now uses the MIT license.
  
-  * Fixed [[functions:GetCVarFixed]] crashing ZDoom when trying to access a nonexistent CVar. Now it returns 0. +  * Fixed ''GetCVarFixed'' crashing ZDoom when trying to access a nonexistent CVar. Now it returns 0. 
-  * Fixed an off-by-one error in [[functions:mod]].+  * Fixed an off-by-one error in ''mod''.
   * Fixed some constants not using ''#libdefine''.   * Fixed some constants not using ''#libdefine''.
   * Fixed additive blending not working in [[HUD Library]] when alpha is set to 1.0.   * Fixed additive blending not working in [[HUD Library]] when alpha is set to 1.0.
-  * [[functions:ChangeFlag]] now support short flag names (e.g. ''%%"NOAUTOFIRE"%%'' instead of ''%%"WEAPON.NOAUTOFIRE"%%''). Update ''decorate/changeflag.txt'' to use this. (Thanks to The Zombie Killer.) +  * ''ChangeFlag'' now support short flag names (e.g. ''%%"NOAUTOFIRE"%%'' instead of ''%%"WEAPON.NOAUTOFIRE"%%''). Update ''decorate/changeflag.txt'' to use this. (Thanks to The Zombie Killer.) 
-  * [[functions:GetAspectRatio]] updated to a newer version.+  * ''GetAspectRatio'' updated to a newer version.
  
 ==== Porting guide ==== ==== Porting guide ====
Line 146: Line 210:
 SendString! SendString!
  
-  * **Added [[.archive:sendstring|ACS_SendString() and ACS_NamedSendString()]] to send strings from server to client.**+  * **Added [[sendstring|ACS_SendString() and ACS_NamedSendString()]] to send strings from server to client.**
   * Added ''IsZandronum212()''   * Added ''IsZandronum212()''
   * ''GetAspectRatio()'' now triggers a ProgramError when used serverside.   * ''GetAspectRatio()'' now triggers a ProgramError when used serverside.
Line 164: Line 228:
   * **Mouse cursor now supports widescreen!**   * **Mouse cursor now supports widescreen!**
   * Added ''GetAspectRatio()''.   * Added ''GetAspectRatio()''.
-  * Added widescreen hud size functions (in [[.archive:widescreen|widescreen]] module and [[.archive:hudlib|hudlib]]).+  * Added widescreen hud size functions (in [[widescreen|widescreen]] module and [[HUD Library]]).
  
 ==== Porting guide ==== ==== Porting guide ====
new/changelog.1518871064.txt.gz · Last modified: 2018/02/17 14:37 by korshun