From 0.0.24.x to 0.1.0 Beta 1
Guide for upgrading 0.0.24.x mods to Beta 1
This page lists all the changes that have been made from 0.0.24.x to 0.1.0 Beta 1. For upgrading your mods from 0.0.24.x directly to the 0.1.0 series, use the main upgrade page where it highlights the most important changes. We have made nine milestones prior to the first beta release.
From 0.0.24.x to Milestone 1
During Milestone 1's development, we have made the following breaking changes:
Moved events to KS.Kernel.Events
KS.Kernel.Events
All of the event-related code files are moved to KS.Kernel.Events
to separate these from the actual kernel code. However, because events are part of the kernel, we prefer to put it on KS.Kernel
namespace rather than KS.Misc
.
Moved PlatformDetector
to KS.Kernel.KernelPlatform
PlatformDetector
to KS.Kernel.KernelPlatform
It has come to the conclusion that PlatformDetector
is now promoted to the Kernel namespace under the name KernelPlatform
so you can access it under the KS.Kernel
namespace.
Separated the MOTD and MAL parsers
MOTD and MAL parsers were unified since early versions of Nitrocid KS. However, it didn't occur to us that we need to separate them for a very long time. We took actions to separate them, effectively removing the MessageType
enumeration.
Moved GetTerminal*
to KernelPlatform
GetTerminal*
to KernelPlatform
These two functions are actually part of the terminal, and they make use of the $TERM_PROGRAM
and $TERM
environment variables, which are dependent on the terminal.
Since these usually are undefined in Windows, we put these functions to KernelPlatform
to accommodate the change as platform-dependent, but we don't actually check for Linux to execute these functions, because some terminal emulators in Windows actually define these variables.
Moved shell common folders to KS.Shell.Shells
KS.Shell.Shells
This is to separate the shell code for each tool from their folders to a unified namespace, KS.Shell.Shells
. It houses every shell for every tool. This is to make creation of built-in shells easier.
Removed MakePermanent()
MakePermanent()
MakePermanent used to save all the colors to kernel configuration. This function was now removed as a result of recent configuration improvements.
We advice you to cease using this function.
Graduated Configuration
to KS.Kernel
Configuration
to KS.Kernel
This configuration logic was smart enough to be graduated, since it's the core function in the kernel. It's used everywhere, including the settings
command, which is an application that lets you adjust settings on the go.
Graduated FindSetting
and CheckSettingsVariables
FindSetting
and CheckSettingsVariables
These two functions were unrelated to the settings app, but FindSetting()
was what KS.Misc.Settings.SettingsApp
uses, and CheckSettingsVariables()
was renamed to CheckConfigVariables()
to accommodate with the graduation.
Moved power management functions to KS.Kernel.Power
KS.Kernel.Power
These power management functions were there in KernelTools
since the earliest version of KS. Now, they're relocated to KS.Kernel.Power
.
Removed InitPaths
in favor of properties
InitPaths
in favor of propertiesNow, we don't have to initialize paths every time we make an internal app that depends on Nitrocid KS's paths. The call to the function that gets the path, GetKernelPath
, however won't be removed because it's widely used and is unaffected.
Moved kernel update code to Kernel.Updates
Kernel.Updates
These power management functions were there in KernelTools
since the earliest version of KS. Now, they're relocated to KS.Kernel.Updates
.
From Milestone 1 to Milestone 2
During Milestone 2's development, we have made the following breaking changes:
Removed ListArgs
from ICommand
and IArgument
ListArgs
from ICommand
and IArgument
It seems that ListArgs
is now no longer a reliable way to check for arguments, as it could be null
when no argument is provided. While it contains a collection of switches and arguments, it's sequential. We have separated between switches and arguments as demonstrated in both the ListArgsOnly
and ListSwitchesOnly
arrays.
Moved GetEsc()
to Misc.Text.CharManager
GetEsc()
to Misc.Text.CharManager
GetEsc()
is now widely used for color manipulation, but we need to move it to a better place as migration to ColorSeq
is done.
We have deleted Color255
from KS.ConsoleBase
as a result of this migration.
From Milestone 2 to Milestone 3
During Milestone 3's development, we have made the following breaking changes:
Removed FullArgumentList
FullArgumentList
Following the removal of ListArgs()
, we can safely remove this property.
Removed ConsoleWriters.*.Write*Plain
in favor of the plain writers
ConsoleWriters.*.Write*Plain
in favor of the plain writersThe plain writer interfaces feel like they're a great addition to control the console writers.
Updated debug and notifications namespaces
We felt that moving debug-related functions to KS.Kernel
would be more convenient, so we moved these functions to it. Also, we've renamed the notifications namespace.
Merged ParseCmd
with ExecuteCommand
ParseCmd
with ExecuteCommand
It has come to the conclusion that ParseCmd
is now very similar to ExecuteCommand
with treating the remote debug shell specially. This is no longer needed as ProvidedCommandArgumentsInfo
has been provided the IP address of the target device, making ParseCmd
redundant.
Removed ExecuteRDAlias()
ExecuteRDAlias()
This function was not needed to execute aliases since there has been recent improvements to the executor in both 0.0.20.0 and 0.0.24.0.
From Milestone 3 to Milestone 4
During Milestone 4's development, we have made the following breaking changes:
Renamed debug writer function names
We needed to do the same thing as we've renamed W()
to Write()
, so we renamed the following:
Wdbg()
->WriteDebug()
WdbgConditional()
->WriteDebugConditional()
WdbgDevicesOnly()
->WriteDebugDevicesOnly()
WStkTrcConditional()
->WriteDebugStackTraceConditional()
WStkTrc()
->WriteDebugStackTrace()
Moved MAL and MOTD message to Misc.Probers.Motd
Misc.Probers.Motd
These have no relationship with the kernel directly.
Moved HostName
from Kernel to NetworkTools
HostName
from Kernel to NetworkTools
It has no relationship with the kernel either.
From Milestone 4 to Milestone 5
During Milestone 5's development, we have made the following breaking changes:
Renamed permissions to groups
We have renamed the permissions feature to groups
to avoid confusion. Later, it's been renamed to user flags in later development versions.
From Milestone 5 to Milestone 7
During Milestone 7's development, we have made the following breaking changes:
Made abstractions regarding the color management class
The color management used to define so many variables for just one color type. Now, it has been simplified to ease the making of the new color type. Color types are renamed to match all files that mention the color type.
As a result, we have removed all separate variables for each color type and merged them to simplify the declaration.
Also, we have added GetColor()
and SetColor()
functions to ColorTools
to perform operations on these color types.
Moved ConfigCategory
outside Config
class
ConfigCategory
outside Config
classWe have moved ConfigCategory
outside the Config class to better organize the enumerations relating to the configuration.
Use CommandArgumentInfo
in arguments
CommandArgumentInfo
in argumentsUsing CommandArgumentInfo
allows you to define argument information for commands. However, it's a powerful class for managing arguments for commands and kernel arguments themselves.
As a result, we've used CommandArgumentInfo
in ArgumentInfo
.
Removed SetColors
as they're no longer used
SetColors
as they're no longer usedWe have improved the color tools module, so SetColors is no longer used. We've removed it for this reason. Use SetColor()
instead.
Changed algorithm enum to EncryptionAlgorithms
As part of an ongoing change to the encryption driver, we've changed the algorithm enumeration to EncryptionAlgorithms
outside the Encryption
module.
From Milestone 7 to Milestone 8
During Milestone 8's development, we have made the following breaking changes:
Renamed two classes related to shell
We have renamed the below two shell-related classes to the ones that suit the narrative of the classes.
Moved TextLocation
to Misc.Text
TextLocation
to Misc.Text
This is a text-related enumeration of text vertical location (top, bottom). It's used by the splashes.
Moved GetCommands
to CommandManager
GetCommands
to CommandManager
This sub is more of a command management routine than the "getting command" module work itself.
Changed the entire event system
We have moved all the events to its own dedicated array containing all the available events that the kernel introduced, removing the giant Events class and its variable, KernelEventManager
, in the Kernel entry point class. This will reduce the need of importing the Kernel namespace and class everytime we need to directly manage the events.
Event firing and response functions are moved to the EventsManager class in one function, FireEvent
.
Moved NewLine
from Kernel
to CharManager
NewLine
from Kernel
to CharManager
This is actually a character management function and not a function directly to the kernel.
Moved KS.Login
to KS.Users.Login
KS.Login
to KS.Users.Login
This has to do with the user management namespace, so we moved it to that namespace.
Moved Kernel[Api]Version
to KernelTools
Kernel[Api]Version
to KernelTools
We didn't want the Kernel
class to be publicly accessible, since it has been planned back at 0.0.1 as the class responsible for being an entry point. As a result, these variables, KernelVersion
and KernelApiVersion
, were successfully moved to KernelTools
.
Removed ColoredShell
ColoredShell
The colors are now an essential part of KS, so we decided to take out support for uncolored shell.
Finally condensed TableColor
TableColor
We noticed that the code is repetitive for making tables, and we don't want to update six locations every bug fix, so we decided to condense it to a single code.
As a side-effect, we've changed the color signatures from foreground and background pairs to header, value, separator, and background colors. Consequently, we've removed the ConsoleColor
version of TableColor
as we found it irrelevant thanks to the enhanced Color
class found in the Terminaux library.
Tried to balance color support for writers
Migration from ConsoleColor
to ConsoleColors
is complete. This means that all the writers in the KS.Misc.*Writers
now have the ConsoleColors
support.
The latest ColorSeq version, 1.0.2, will be used to make it easier to achieve.
Added last argument support to auto completer
We've added support for the last argument written to aid the auto completer in completing the command according to the last argument written. This is to ensure completions in the right context.
From Milestone 8 to Milestone X
During Milestone X's development, we have made the following breaking changes:
Renamed command executor and base to reduce confusion
Base command class had the name of CommandExecutor
. However, it behaved like the base class for your mod commands, so we renamed it to BaseCommand
. This caused us to rename the command execution class to CommandExecutor
.
Renamed ConsoleSanityChecker
to ConsoleChecker
ConsoleSanityChecker
to ConsoleChecker
This class will be filled by many console checks, so renamed it according to the purpose.
WriteWherePlain
from TextWriterWhereColor
renamed
WriteWherePlain
from TextWriterWhereColor
renamedThis change is necessary to fit in with the rest of the ConsoleWriters
Removed Screensaver.colors
Screensaver.colors
This is to remove support for 255 colors in screensavers.
We advice you to cease using this function.
Moved KS.Network
classes to KS.Network.Base
KS.Network
classes to KS.Network.Base
These classes are believed to be the base classes for the networking. These classes are used for general networking purposes.
Condensed speed dial to KS.Network.SpeedDial
KS.Network.SpeedDial
The speed dial API wasn't touched for a long time, so we decided to condense the speed dial API to a single namespace to ease the addition of the speed dial feature to all the networking shells.
In consequence, the speed dial format has changed.
The username and FTP encryption mode is now moved to Options, which is an array of options that the networking shells use. To convert your speed dial entries, you have to manually open all FTP and SFTP speed dial JSON files and make changes to transition from the old format to the new format.
Moved network transfer functions to KS.Network.Base.Transfer
KS.Network.Base.Transfer
We've done that to the base network classes, so why not do the same to the network transfer functions?
Kernel exception handling changed
We have changed the way how the kernel exception handling works. We have simplified the code, merging all the exception classes to just one enumeration to help you filter kernel exceptions matching a specific exception.
This also helps us in making dynamic suggestions to specific error type in the future.
As a consequence, mods that use old handling now break, and should use this format to continue working as usual:
...where ErrorType
is an error type obtained from the KernelExceptionType
enumeration.
Changed GetFilteredPositions
to tuple
GetFilteredPositions
to tupleTo aid in simplicity of the function, we've replaced the two reference variables with the tuples in their respective orders of cursor left and top positions.
Internalized several kernel tools
These tools could be abused, so we decided to privatize these tools.
We advice you to cease using these functions.
Removed PrepareDict
PrepareDict
PrepareDict
used to populate the string dictionary with definitions to the localized string. Now, because the language management routine was remodeled, we've removed PrepareDict
as part of the change.
The language manager automatically does this each time your mod sets the language, so we advice you to cease using this function.
Removed network adapter querying
The network adapter querying functionality was implemented in 0.0.3. This functionality was no longer maintained as it wasn't tweaked.
We advice you to cease using this functionality.
Theme preview is no longer exclusive to theme studio
The theme preview routine used to depend on the theme studio to do its job, under the name of ThemeStudioTools.PreparePreview()
. However, because there were recent improvements to the theming system, we've finally condensed the preview routine to ThemeTools.PreviewTheme()
. You can no longer use the old method, because it also required loading the theme information to the theme studio itself. What if it was called in a context that has no relationship with the theme studio, such as in the case of themesel
?
Migrated kernel arguments
We used to provide two argument channels: one for the command-line kernel arguments, and one for the kernel arguments. The entry point has been provided the Args
variable to get all the arguments from the command line. Since it has undergone recent improvements to the system, we've decided to remove the kernel arguments channel, so we don't have to parse the passed arguments twice.
We also had to remove the arginj
command, one of the commands that made appearance in first-generation versions of KS.
Removed GetCompilerVars
GetCompilerVars
This was only useful in conditions where getting the compiler variables for determining the kernel milestone is needed, which was seldom needed by mods. We've removed it.
We advice you to cease using this function.
Migrated encryptors to Kernel Drivers
The kernel drivers are beneficial, so we decided to give the encryptors a chance to appear in kernel drivers. This caused us to remove EncryptionAlgorithms
and IEncryptor
and replace them with IEncryptionDriver
, handled by the kernel driver handler.
Removed TwoNewlines
argument from WriteLicense
TwoNewlines
argument from WriteLicense
This argument was unused, so we decided to remove it from WriteLicense()
.
We advice you to cease using this variable.
Renamed PartInfo
to ModPartInfo
PartInfo
to ModPartInfo
Add Mod
next to PartInfo
to clarify which module uses this.
Manual pages moved to Modifications
Modifications
These manual pages are used by mods to host documentation, so we moved it to KS.Modifications.ManPages
to reflect its purpose.
Changed Notifications
to NotificationManager
Notifications
to NotificationManager
We felt that both the Notification
and Notifications
classes are confusing for some people, so we decided to make these clearer by renaming the Notifications
class to NotificationManager
Removed getting property value in variable
VariableProperty is no longer used, so we decided to remove it. As a consequence, we also had to remove the PropertyManager.GetPropertyValueInVariable()
routine.
We advise you to cease using these functions.
From Milestone X to Beta 1
During Beta 1's development, we have made the following breaking changes:
Moved ColTypes
to KernelColorType
ColTypes
to KernelColorType
This is an enumeration which simply tells the difference of all the defined and known kernel color types. We have moved ColTypes to KernelColorType.
Removed ref
from conditional debug writers
ref
from conditional debug writersThe conditional debug writers didn't do anything to the boolean condition that caused it to change its state, so we decided to pass the boolean value by value and not by reference.
Removed GroupManagement
(a.k.a. PermissionManagement
)
GroupManagement
(a.k.a. PermissionManagement
)The GroupManagement
module was removed in preparation for the new permission system. The groups were moved outside in the users JSON file to become singular boolean variables, and the permission system was implemented under the KS.Users.Permissions
namespace.
Removed obsolete functions
ReadLineUntil()
, SleepNoBlock()
, and ConvertSpeedDialEntries()
were removed for being obsolete. The first function was removed in favor of ReadLine.Reboot and TermRead, the second function was removed for the absence of our usage of BackgroundWorker
, and the third function was removed as a result of huge improvements to the speed dial functionality that makes it incompatible with the older speed dial format.
We advice you to cease using these functions.
To sleep without blocking, convert all your BackgroundWorker
s to KernelThread
and use the appropriate SleepNoBlock
overload for your kernel thread. The below method signature is shown.
Argument auto-completion re-implemented
Command auto-completion used to be available on ReadLine.Reboot to automatically complete the command needed to run. However, ReadLine.Reboot has come to an end, so we decided to re-implement it to align with TermRead.
As a result, the auto completion facility in your shell, if it has one implemented in your CommandArgumentInfo
, will have to be re-implemented to parse the whole command passed to the auto-completion builder, AutoCompleter
, and generate suggestions based on that data.
Converted kernel exceptions
Previously, we've used the built-in .NET exceptions to catch appropriate exceptions based on the context of an error. Since KernelException
was implemented as part of the first development semester of Nitrocid KS 0.1.0, we decided to throw all the exceptions to KernelException
that dynamically provides extended information as to what's wrong, coupled together with possible suggestions and extra messages.
Removed decisive writers
We used to implement the decisive writers to decide whether to use the normal console writer or to use the remote debug connection according to the shell type. Over time, the remote debug shell was removed and later implemented as a standalone add-on for the remote debugger. This leads to us removing this decisive writer from the MiscWriters
namespace.
We advice you to cease using this function.
Moved PlaceParse
to KS.Misc.Probers.Placeholder
PlaceParse
to KS.Misc.Probers.Placeholder
This module used to statically replace all the text placeholders found within the text with their values. It used to exist in the KS.Misc.Probers
namespace, but we moved it to the KS.Misc.Probers.Placeholder
namespace to align with the latest Nitrocid KS API design. It also earned a new way to dynamically parse the placeholders.
Removed KernelColorType.Gray
KernelColorType.Gray
This color type was used as a special color type intended to indicate that the element highlighted is colorless. Since we already have ColorTools.GetGray()
to get the gray color according to the background color, and since this color type is just a wrapper to this function, we decided to remove this kernel color type.
Replaced GetVariables()
with Variables
property
GetVariables()
with Variables
propertyThis function used to return a list of available UESH variables. It's been replaced with a property that does exactly the same thing. It's to make your mod code related to UESH variables easier to read.
Removed remote-debug-related argument from ShowHelp()
ShowHelp()
Remote debug shell used to require the DebugDeviceSocket
parameter to be passed to ShowHelp
for DecisiveWriter
to decide what type of console is going to be written to. Since DecisiveWriter
got removed and the remote debug shell was re-implemented to be standalone, we decided to remove this parameter.
Renamed few classes
TimeDate
used to host all the time and date general properties and functions. However, its access required to reference the namespace and then the class, because both the namespace and the class have the same name. As a result, the TimeDate
class is renamed to TimeDateTools
for easier access.
Also, IScript
used to be the heart of the kernel modifications. It's renamed to IMod
since it doesn't have to do with the UESH scripts.
Your mods should change the implementation interface name of the mod, IScript
, to the new name, IMod
, as it's more fitting. This will break all mods.
For the time and date functions, use the new class name, TimeDateTools
.
Last updated