ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools


changelog

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
changelog [2016/10/05 01:27] – [1.4] korshunchangelog [2018/02/20 18:56] (current) korshun
Line 1: Line 1:
 ====== Changelog ====== ====== Changelog ======
 +~~REDIRECT>new:changelog~~
 +
 +===== 1.6.1 =====
 +  * Added [[BCSUtils]]
 +  * Added [[constants:FIXED_MIN]] and [[constants:FIXED_MAX]] constants for BCSUtils.
 +  * Fixed misc. bugs in error messages.
 +
 +==== Porting guide ====
 +
 +No changes needed.
 +
 +===== 1.6.0 =====
 +This release breaks backwards compatibility. Be sure to update your code accordingly.
 +
 +  * Removed or renamed a number of functions. Read the porting guide for a complete equivalence table.
 +  * **Removed Zandronum 2.1.2 compatibility.**
 +  * Removed NewTid system.
 +  * Removed SwapActivator and RestoreActivator system.
 +  * Removed ACSUtils settings.
 +  * ACSUtils error handler is now for ACSUtils only. Display of errors can be toggled using ''acsutils_noerrors'' cvar. ''ACSUtilsErrorHandler'' is **ignored**.
 +
 +  * **Completely removed SendString as it was broken and was using the wrong approach.**
 +  * **[[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.
 +  * Fixed [[functions:StrRepeat]] having wrong argument type.
 +  * Fixed [[functions:HasColorCodes]] and [[functions:SkipColorCodeAt]] interpreting literal ''%%"\\c"%%'' as a colorcode beginning.
 +  * [[functions:rad2deg]] and [[functions:deg2rad]] should now be more accurate and faster.
 +  * [[functions:IsAlive]] now checks that the activator is in game.
 +  * Rewritten [[number parsing]].
 +  * Added new functions:
 +    * Input:
 +      * [[functions:KeyBound]]
 +      * [[functions:KeyToggled]]
 +      * [[functions:KeyToggledAny]]
 +      * [[functions:PlayerKeyToggled]]
 +      * [[functions:PlayerKeyToggledAny]]
 +    * Bit operations:
 +      * [[functions:getbit]]
 +      * [[functions:setbit]]
 +      * [[functions:clrbit]]
 +      * [[functions:tglbit]]
 +      * [[functions:notflag]]
 +    * Math:
 +      * [[functions:fract]]
 +      * [[functions:bitlog2]]
 +      * [[functions:condTrue]]
 +      * [[functions:condFalse]]
 +    * Random:
 +      * [[functions:randbool]]
 +      * [[functions:randsign]]
 +      * [[functions:RandomPick]]
 +    * Strings:
 +      * [[functions:StrIEquals]]
 +      * **Case-insensitive versions of all string functions**
 +      * [[functions:StrContains]]
 +      * [[functions:LeftPad]]
 +      * [[functions:RightPad]]
 +      * [[functions:StrIsInt]]
 +      * [[functions:StrIsFixed]]
 +    * Player:
 +      * [[functions:SetActivatorToPlayer2]]
 +      * [[functions:ConsolePlayerInGame]]
 +      * [[functions:ConsolePlayerName]]
 +      * [[functions:ConsolePlayerTeam]]
 +      * [[functions:SetActivatorToConsolePlayer]]
 +    * Dead spectator support:
 +      * [[functions:PlayerIsDeadSpectator]]
 +      * [[functions:PickRandomDeadSpectator]]
 +      * [[functions:DeadSpectatorCount]]
 +    * Teams:
 +      * [[functions:GetPlayerTeam]]
 +      * [[functions:PickRandomTeamPlayer]]
 +      * [[functions:TeamPlayerCount]]
 +    * ZDoom:
 +      * [[functions:GetUserCVarFixed]]
 +      * [[functions:ToggleActorInventory]]
 +      * [[functions:IsServerOnly]]
 +      * [[functions:IsClientOnly]]
 +      * [[functions:GetGravityG]]
 +      * [[functions:SetGravityG]]
 +      * [[functions:jumpz2height]]
 +      * [[functions:height2jumpz]]
 +  * Added new constants:
 +    * [[constants:TAU]] (see http://tauday.com/tau-manifesto)
 +    * [[constants:USHORT_MAX]]
 +    * [[constants:SBYTE_MAX]]
 +    * [[constants:SBYTE_MIN]]
 +    * [[constants:UBYTE_MAX]]
 +    * [[constants:MAX_PLAYERS_ZDOOM]]
 +    * [[constants:TEAM_NONE]]
 +    * [[constants:HUDTIC]]
 +    * [[constants:COLORCODE]]
 +      
 +==== Porting guide ====
 +
 +1. Remove ''ACSUTILS_HUDLIB_SAVEDSTATES'' and ''ACSUtilsErrorHandler'' from your project.
 +
 +2. Replace any uses of removed functions according to the table:
 +
 +
 +^ Name ^ Original ^ Replacement ^
 +^ AngleDistCCW | ''AngleDistCCW(a, b)'' | ''abs(a - b)'' |
 +^ AngleDistCW | ''AngleDistCW(a, b)'' | ''(1.0 - abs(a - b))'' |
 +^ itof | ''itof(x)'' | ''%%(x << 16)%%'' |
 +^ lang | ''lang(s)'' | ''StrParam(l:s)'' |
 +^ byte2ang | ''byte2ang(x)'' | ''(x * 256)'' |
 +^ ang2byte | ''ang2byte(x)'' | ''(x / 256)'' |
 +^ GetCVarPercentage | ''GetCVarPercentage(name)'' | ''%%((GetCVar(name)<<16) / 100)%%'' |
 +
 +3. Rename the following functions:
 +
 +^ Original name ^ New name ^
 +| GetActorCurrentSpeed | [[functions:GetActorVelocity]] |
 +| GetActorCurrentSpeed2D | [[functions:GetActorXYVelocity]] |
 +| StrTimes | [[functions:StrRepeat]] |
 +| StrMidRange | [[functions:StrSlice]] |
 +| HasRoom | [[functions:HasRoomFor]] |
 +| StatusBarShown | [[functions:StatusBarVisible]] |
 +| TakeAllInventory | [[functions:TakeMaxInventory]] |
 +| TakeAllActorInventory | [[functions:TakeMaxActorInventory]] |
 +
 +4. Replace all uses of SwapActivator and RestoreActivator with ACS_NamedExecuteWithResult.
 +
 +5. Recompile all script objects linked to ACSUtils to suppress warnings about renamed internal arrays.
 +
 +
 +===== 1.5.1 =====
 +
 +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 an off-by-one error in [[functions:mod]].
 +  * Fixed some constants not using ''#libdefine''.
 +  * 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.)
 +  * [[functions:GetAspectRatio]] updated to a newer version.
 +
 +==== Porting guide ====
 +
 +  - Update ''decorate/changeflag.txt''.
 +  - If you are using additive HudMessages in [[HUD Library]], make sure that none of the non-additive messages in your mod became additive.
 +
 +
 +===== 1.5 =====
 +
 +SendString!
 +
 +  * **Added [[.archive:sendstring|ACS_SendString() and ACS_NamedSendString()]] to send strings from server to client.**
 +  * Added ''IsZandronum212()''
 +  * ''GetAspectRatio()'' now triggers a ProgramError when used serverside.
 +  * Fixed ''ChangeFlag'' not working with ''INVENTORY.NOTELEPORTFREEZE''.
 +  * All internal functions now use ''ACSUtils_'' prefix.
 +  * Removed ''ScreenWidth()'', ''ScreenHeight()'', and ''AspectRatio()''.
 +
 +==== Porting guide ====
 +
 +  - Replace all uses of ''ScreenWidth()'' and ''ScreenHeight()'' with ZDoom functions ''[[zdoom>GetScreenWidth]]'' and ''[[zdoom>GetScreenHeight]]''.
 +  - Replace all uses of ''AspectRatio()'' with ''IntDiv(GetScreenWidth(), GetScreenHeight())''.
  
 ===== 1.4 ===== ===== 1.4 =====
Line 7: Line 165:
   * **Mouse cursor now supports widescreen!**   * **Mouse cursor now supports widescreen!**
   * Added ''GetAspectRatio()''.   * Added ''GetAspectRatio()''.
-  * Added widescreen hud size functions (''[[.functions:widescreen|widescreen]]'' module and to hudlib).+  * Added widescreen hud size functions (in [[.archive:widescreen|widescreen]] module and [[.archive:hudlib|hudlib]])
 + 
 +==== Porting guide ==== 
 + 
 +  * Make sure that your cursor code supports widescreen cursor coordinates.
  
 ===== 1.3.2 ===== ===== 1.3.2 =====
changelog.1475620071.txt.gz · Last modified: 2016/10/05 01:27 by korshun