BYOND 5.0 Version 515 Release Notes
Build 515.1602
Fixes (More Info)
Dream Maker
- The compiler wasn't throwing duplicate definition errors for duplicated var names. (Spevacus)
Dream Seeker
- Embedded wingets didn't work correctly with command prefixes in input controls. (Ter13)
Features (More Info)
DM Language
- fexists() can now be used inside of an #if preprocessor conditional expression.
- Individual compiler warnings can be suppressed, or elevated to errors, through the use of new #pragma directives as well as command-line switches.
- A new preprocessor directive, #pragma multiple, will allow a file to be included more than once.
- Two new pseudo-macros, __TYPE__ and __PROC__, have been added. __TYPE__ compiles as the current type path, or as null within a global proc. __PROC__ compiles as a reference to the current proc, which will pair well with nameof().
Dream Daemon
- When calling new() with an instantiated object instead of a type path, the error message was confusing because it printed out the type path of the object. The error message has been improved for these cases.
Dream Maker
- The default compiler error limit has been increased from a paltry 100 to 10K.
Build 515.1601
Fixes (More Info)
Dream Maker
- Segments in the map editor weren't respecting their minimum sizes, which was causing the world preview to turn black if it got too small. (Khunkurisu)
- The first time Dream Maker was opened, the map editor's layout was proportioned incorrectly with most controls at a zero size. (Khunkurisu)
Features (More Info)
Dream Seeker
- The client could stutter when loading icons with a large number of frames. This has been improved (but not eliminated) by adding threading support.
Build 515.1600
Fixes (More Info)
Dream Daemon
- json_decode() was allocating way too much space for strings, which was more apparent with large files. (AffectedArc07)
Dream Maker
- The map editor would crash when in classic instance editing mode, if you selected a turf type that existed twice in the same tile anywhere on the map. (Higoten)
- Expanding the map in the editor didn't set the default turfs/areas properly so they were not selectable. (Higoten)
- When the map editor's properties pane was hidden by default, clicking an atom could cause the map to shift because of the pane briefly appearing. (Higoten)
- Positioning the map editor toolbar in certain places could cause most editor elements not to be redrawn properly. (Higoten)
- In classic instance editing mode, selecting a different turf with the same instance as one that's already selected would do nothing. (Higoten)
- Range cases in switch() didn't throw a compiler error when given non-constant or non-numeric values. (Ike709)
Build 515.1599
Fixes (More Info)
Dream Daemon
- Internal savefile indices were thought to still exist in some cases where they didn't, causing read/write failures. (Depressedmistake)
- The -trusted flag didn't work with the Windows command-line version of Dream Daemon (dd.exe). (AffectedArc07)
Dream Maker
- The map editor didn't visually update immediately when deleting atoms. (Vallat)
- Nudging an atom on the map with the arrow keys didn't visually update immediately. (Penot1971)
- The nameof() operator didn't work correctly for vars that weren't built in. (WorkersOfTheWorld)
Dream Seeker
- Several longstanding causes of poor statpanel performance have been addressed and improved. (Luber)
- Certain maps could cause the topological sort in SIDE_MAP mode to go berserk, resulting in an out-of-memory condition. This occurred in the new map editor as well. (Khunkurisu)
- Some text in statpanels wrapped onto two lines when it shouldn't have. (Lummox JR)
- On the default BYOND game skin, the browser pane appeared by default and covered up most of the buttons. This was due to a problem with conditional winset interpretation. (Depressedmistake)
Features (More Info)
Dream Maker
- The map editor has a new layout mode where you can rearrange major parts of the interface, as well as the ability to hide the world preview and auto-hide the properties pane.
Build 515.1598
Fixes (More Info)
Dream Daemon
- The world.Profile() proc was not behaving correctly, resulting in runtime errors. (Jaredfogle)
- In certain types of assign-with-side-effect operations, the chained dot and null-conditional dot operators would result in the wrong values being accessed. (Amylizzlep)
Dream Maker
- The object palette in the map editor didn't update its icons after recompiling. (Ter13)
- Atoms' physical bounds were not set correctly in the map editor, resulting in major sorting errors that made certain icons disappear. (Magicbeast20)
- When an atom used an icon that had no default state, and did not define an icon_state of its own, the map editor fell back on displaying the first state in the file rather than showing nothing. (Higoten)
Dream Seeker
- The [[x]] and [[y]] embedded wingets for GamepadLeftAnalog and GamepadRightAnalog macros were not correctly marked as numbers, impacting how they were expanded in the command by default. (Ter13)
- Physical bounds for objects on the client were not properly set when they were outside the normal map area, confusing the sort for SIDE_MAP and ISOMETRIC_MAP. (NSBR)
- Links in maptext were not working. (James)
- Closing popup browser windows with the "window" parameter in browse() could accidentally also close the default browser control in the skin. (Comicao1)
- Maptext whose atom had a color value would swap red and blue channels in certain situations. (Rotem12)
- Particles only displayed on every other frame. (Cadis E. Di Raizel)
Features (More Info)
Dream Daemon
- A command-line version of Dream Daemon is now available for Windows. This includes a limited console where some commands can be entered (e.g., to get a memory report or reboot). In the future the console's capabilities will be expanded.
Dream Maker
- The first iteration of the map editor overhaul was helpful in some ways to some users, but detrimental in others. Multiple changes have been made so far to address those shortcomings.
- There is a new menu option for classic editing where altering an instance alters all copies of that instance.
- The first tab in the palette control is a Variants tab for known variations on the selected type (e.g., other icon states).
- Palette autofill has been removed.
- Palette tabs have been changed from primitive types to customizable.
- The pop palette is global across all map windows and persists between sessions. It is saved in a human-readable .dmm-pal file.
- Drawing movable atoms will continue painting more of them unless you use a modifier key such as Shift or Ctrl to place it in an exact spot.
- The map can be zoomed with Ctrl+wheel.
Build 515.1597
Fixes (More Info)
Dream Daemon
- rgb2num() did not allow null to be used as a color, even though that may be returned by atom.color. (Pali6)
- The server was not sending missile messages correctly in most cases. (Higoten)
- Non-zero blend_mode values couldn't be changed. (Exxion)
Dream Maker
- Changing an atom's icon, icon_state or other appearance-impacting vars in the properties pane of the map editor did not necessarily show the change right away on the map. (Lummox JR)
- Atoms' icon var couldn't be changed to null in the map editor. (Higoten)
- Trying to load a map with invalid variables would result in a crash. (Higoten)
- Mouse coordinates were not properly sanitized to stay within the map editor's bounds if the map was wider than it was tall, resulting in really strange bugs with the rectangular selection tool. (Higoten)
- Changing type paths of movables on the map could cause the map editor to crash after making post-compile corrections. (Higoten)
- The auto-scroll behavior when a partially visible tile was clicked was too aggressive, resulting in unintended dragging of turfs. (Higoten)
- When turfs were made invisible via the Layers menu of the map editor, underlays still appeared. (Higoten)
- Using the Find and Replace dialog in the map editor and clicking Find Next did not find any instances beyond the first two matches. (Higoten)
- The "Add to Palette" option in the right-click popup for the map editor has been removed, and "Make Active Object" now selects the atom in the palette. (Zagros5000)
Dream Seeker
- Images added to areas before the areas were known to the client never properly resolved. (Higoten)
- Plane masters interacted weirdly with RenderIcon(). (Exxion)
Features (More Info)
Dream Maker
- The command-line compiler now has a -D switch to inline #define, as -DMYDEFINE or -DMYDEFINE=MYVAL.
Build 515.1596
Fixes (More Info)
Dream Maker
- The grid space allotted for text in the properties pane was incorrect for some values. (Ter13)
- The "delete topmost turf" option in the map editor caused a hang. (Higoten)
- When a turf replaced another turf in the map editor, the undo action was sometimes incorrect, restoring the default world.turf instead. (Higoten)
- Find and replace didn't work corectly in some cases when using the single Replace instead of Replace All option. (Higoten)
- Rectangular selections that were deleted set the area and turf info in the old region incorrectly, which resulted in weird behavior when adding turfs over that region. (Higoten)
- Pasting a rectangular selection in the map editor couldn't be undone. (Higoten)
- Compiling while a turf or area was open for editing in the map editor's properties pane could cause a crash when selecting a tile after compilation. (Higoten)
- Doing a Find All in the map editor on any scope broader than the current file would hang Dream Maker. (Higoten)
- The compiler sometimes compiled with a minimum world version that was incorrect if it also did not require that client version. (Anturke)
- Attempting to reconcile path changes to a map after a compilation with errors brought up the "Pending Map Errors" dialog could cause a crash. (Higoten)
- Changing a movable's pixel or step offsets in the properties pane of the map editor offset it by the new value instead of using that value directly. (Depressedmistake)
- The eraser tool didn't work on movables in the map editor. (Higoten)
- Find and replace didn't work correctly for movables in the map editor. (Higoten)
- Adding movables to the map could give them incorrect pixel/step offsets, and outright crash if clicking on a part of the map where only the background shows through. (Higoten)
Dream Seeker
- Objects with big icons would sometimes disappear if the turf they were on was only just barely out of view to the north or east. (Zagros5000)
- The black tiles for SEE_PIXELS and SEE_BLACKNESS were on the wrong plane and at the wrong position. (Exxion)
Build 515.1595
Fixes (More Info)
Dream Daemon
- The built-in pathfinding had some strange behavior directly next to the target, which wasn't apparent until get_steps_to() was added. (Kozuma3)
Dream Maker
- New optimizations for for(atom in range()) and similar procs were compiling incorrectly. (Anturke)
- Deleting a rectangular selection and then compiling caused a crash. (Higoten)
- Using find and replace in the map editor could sometimes cause a hang. (Higoten)
Dream Seeker
- Text-mode map display was messed up. (Kozuma3)
- Trying to use RenderIcon() or its related features with mapless interfaces caused a crash. (Kozuma3)
Build 515.1594
Fixes (More Info)
Dream Daemon
- Turf changes on the eastern or northern edges of a player's turf view range did not send any appearance changes to the client. (Taitz)
- Calling gradient(list, index) with a non-constant list as the first argument resulted in a "bad gradient" runtime error. (Lummox JR)
- Gradients in hue-based color spaces were calculated incorrectly. (Redmooogle)
- The server did not properly recognize when an object ID had been reused in RenderIcon(), causing old information to be used in some cases. (Kozuma3)
Dream Maker
- Find and replace could hang or crash the map editor. (RootAbyss)
Features (More Info)
DM Language
- A new nameof() proc, operating only at compile-time, can be used to convert a proc reference into the name of the proc, solving a dilemma faced by multiple Space Station 13 codebases.
Build 515.1593
Fixes (More Info)
Dream Daemon
- Another hang issue similar to the one fixed in the last build occurred when a movable overlapped the east edge of the map, instead of the north edge. (RootAbyss)
Dream Maker
- An expression *varname could compile incorrectly in certain cases, causing an implied src prefix before the var to be lost and resulting in runtime errors. (Niezan)
- Deleting a rectangular selection did not create a correct undo action. Additionally, dragging a turf that was not previously selected did not create an undo action. (RootAbyss)
- Compiling while an object was selected in the map editor's palette could cause a crash. (RootAbyss)
- Actions that caused the DirectX device to be lost, such as hitting Ctrl+Alt+Del, would prevent the world preview in the map editor from redrawing correctly. (RootAbyss)
Dream Seeker
- Atoms drawn to a render target drew in an incorrect position within the slate if they had a screen_loc with one of the screen-edge keywords (e.g. LEFT, BOTTOM). (Ter13)
- RenderIcon() kept the results of previous renders visible instead of clearing them, causing transparent pixels in the second image to show the previous image. (Anturke)
Build 515.1592
Fixes (More Info)
Dream Daemon
- Movable atoms with icons bigger than the world tile size could hang the server when their top edge overhung the northern edge of the map. (Lummox JR)
- Trying to read from a prototype's vars list caused a crash instead of a runtime error or null. (Luber)
- Bounding box calculations for the turf map were incorrect near the north and east edges of the map. (RootAbyss)
Dream Maker
- Undo levels in the map editor were being cleared by compiling. (Lummox JR)
- Resizing the map could crash the editor. (RootAbyss)
- Sometimes icons in the icon editor did not show their changes visually until leaving the pixel editor screen or doing some operations such as deleting a pixel with the select tool. (RootAbyss)
- Deleting atoms from the map and then re-compiling did not remove them. (RootAbyss)
Dream Seeker
- Stopping a sound on a channel that wasn't playing anything crashed the client. (S34N_W)
Build 515.1591
Fixes (More Info)
Dream Maker
- The Undo command in the map editor didn't repaint correctly after fully replacing turfs. (Lummox JR)
- Trying to generate instances from an icon states or directions in the map editor from an object without an icon could cause a crash. (Rickoshay)
- Implicit return types in procs such as operator+= could be incorrect in some situations, intermittently spitting out errors about undefined vars. (Niezan)
- Map files were being read with underlay turfs displaying in the reverse order, and saving also reversed the order of underlay turfs. (Hydrugen)
- After a failed compilation, checking or unchecking files in the file tree didn't update the .dme file on subsequent compilations. (Niezan)
- Mouse wheel events weren't handled properly in the map editor. (Francinum)
Dream Seeker
- Flicked icons could appear in the wrong place if they weren't the same size as the default. (RootAbyss)
- Replacing reference strings with images in browser and output controls was done too aggressively, mangling some attributes like links. (Exxion)
- Browser handling of CSS files was incorrect, causing CSS not to load in some situations. (Anturke)
- mouse_opacity was incorrectly set for objects in visual contents outside of a KEEP_TOGETHER group. (Kozuma3)
- A change to the pre-render step messed up some map gliding calculations. (Hydrugen)
Build 515.1590
Fixes (More Info)
Dream Daemon
- Attempting to access an invalid var for lists at runtime will now throw an error, whereas in the past it failed silently. This applies only to worlds compiled in version 515 or later. (DamianQ)
- Attempting to access an invalid var under world at runtime will now throw an error, whereas in the past it failed silently. This applies only to worlds compiled in version 515 or later. (DamianQ)
Dream Maker
- The compiler will now correctly throw an error when trying to access proc-local vars such as src or usr inside of a static var declaration. This is because the related bug id:2798255 caused world.init to throw runtime errors. (This is a breaking change for some games, especially several variants of Space Station 13. For cases where this is being done to confirm a var is valid, use type::varname (the literal word "type") instead.) (DamianQ)
Features (More Info)
DM Language
- json_encode() and json_decode() now have a second argument for flags that influence their behavior. This can be used to produce pretty-printed JSON as well as decide how string decoding needs to be.
- Savefiles now have byond_version and byond_build vars that can be used for maintaining compatibility. This can be defined at compile-time as a default for all savefiles. New functionality has also been added to savefiles for saving appearances and matrices in a better way. If you want to avoid savefiles updating to the new version during beta testing, you can set savefile/byond_version=514 for the time being.
- Prior to maps being sent to clients on every tick, the server will now call an optional user-defined world.Tick() proc. This can be used for various housekeeping needs.
- call_ext() is now used for all external library calls, in place of call(), to clarify the difference between calling DM code and calling external code. This is a breaking change for some games, although it won't have any impact on games compiled prior to BYOND 515. Trying to call() an external library will either produce a compiler warning if the library name is a constant string, or a runtime error otherwise.
- A new %% operator, and %%= as its companion, allows modulo to be done with fractional operands. The old % operator always truncates the operands to integers, and that behavior remains the same for backwards compatibility.
- A new scope :: operator has been added. This has many uses:
- ::varname and ::procname(...) can be used as a shorthand for global.varname and global.procname(...), respectively.
- /thing::staticvar can be used to disambiguate var names when a static and local var have the same name.
- Most commonly, A::B is a shorthand for initial(A.B), but can be used where A is a constant type path, e.g. /foo::bar.
- In an object's var declarations, and static var declarations, type::varname and parent_type::varname are valid, so an expression like HP = parent_type::HP + 20 is allowed.
- /mytype::procname() can provide a reference to a specific proc for use with call().
- The operations x**2, x**-1, and x*x have been optimized with new instructions that should be moderately faster. In this case, x is any expression that doesn't have a side effect (no proc calls, no ++ operator, etc.). Therefore an expression like (x1-x2)*(x1-x2) gets compiled as a faster form of (x1-x2)**2 which also has the advantage of not having to calculate x1-x2 twice.
- A new syntax for block() is available that avoids the need for calling locate(). This syntax is block(x1,y1,z1, x2=x1,y2=y1,z2=z1). This will also alleviate the need to try to trim the x,y values to valid values.
- trimtext() returns a copy of a string with any leading or trailing space characters removed.
- An expected return type can be specified when you define a proc, by following the proc declaration with "as /mytype", "as num", "as list", etc. The main purpose of this is to allow the . operator to check for the validity of vars and procs after a proc call in an expression such as myproc().foo = bar.
- "Pointers" are now supported in the DM language. Preceding any writable var, list item, etc. with the & operator will create a pointer, and that pointer can be read and written to by preceding it with the * operator. Proc-local vars are allowed to be used as pointer targets, so a sleeping proc's values can be altered in this way.
- In order to make animations simpler to manage, a new ANIMATION_CONTINUE flag has been added to animate(). With this flag, the object argument does not have to be omitted to continue an animation chain. This should make it easier to build animations with soft code.
- The sound datum now has a pitch var that can be used to shift the pitch of a sound up or down (currently limited to 3 octaves of change). This also allows a sound to be time-stretched by setting frequency to the inverse of pitch.
- refcount() has been added to the language, which will return the number of references for a given object. If that object does not use reference counting, the result is zero.
- ftime() can be used to check the creation or modification time of a file on the server.
- get_steps_to() uses the built-in pathfinding to return a list of directions to follow for the entire path. In this way, a movable atom can cache its pathfinding and call get_step_to() less often.
- Several new math procs have been added:
- floor(x): the value of x, rounded down to the nearest integer; this is an alias for round(x) with no second argument
- ceil(x): the value of x, rounded up to the nearest integer
- trunc(x): the value of x rounded toward zero to an integer; that is, the integer part of the number
- fract(x): the fractional part of x
- isnan(x): true of x is a numeric type but is an invalid number (NaN)
- isinf(x): true if x is a positive or negative infinity
- The read-only world.process var returns the process ID in the operating system of the current server.
- noise_hash() has been introduced, allowing a built-in way to get procedural noise.
- Two new features have been added to animate() to simplify the construction of more complex animations and to preview them. First, a delay argument has been added, so the first step in a sequence can be pushed forward or back in time, relative to when animate() is called; this for instance allows a later animation sequence to happen without having to sleep(). Additionally, a new ANIMATION_SLICE flag has been added for previewing a portion of an animation; see the reference for more details.
- list.RemoveAll() has been added. This is basically a faster version of while(list.Remove(item)); that won't choke on huge lists when the number of removals is relatively high.
- A new sound.params var can be used to set up skin-related interactions with the sound. Currently the only parameter supported is on-end, which can call a command when a sound is finished.
- A special proc called operator"" can be defined for objects, altering how they get converted to text when embedded in a string via brackets. It is important to note this will NOT affect how the object is seen by clients.
- client.RenderIcon() can now be used to create an icon file from an appearance, leveraging the client's rendering capabilities. Additionally, appearance reference strings (from the ref() proc or \ref operator) should be usable in outputs and browser controls.
- The sound datum's offset var can now be used to specify a start time (in seconds), or to change the sound's position when using the SOUND_UPDATE flag.
Dream Daemon
- for(thing in list) loops are now optimized to better handle cases where the list is range, orange, viewers, oviewers, hearers, or ohearers. Previously view() and block() were the only lists that were optimized in this way.
Dream Maker
- The map editor has undergone a huge overhaul, making editing easier going forward. (Those who didn't work with the alpha builds are encouraged to make backup copies of their maps.)
- Rendering is now done using the same engine Dream Seeker uses, which allows effects to appear that couldn't before and also should make everything draw faster.
- The object palette is much more useful than before.
- Objects on the map can be live-edited with a new properties pane on the right-hand side of the editor window.
- Atom vars are sorted by their depth in the type tree, making it easier to find the properties you want to change. These levels are also collapsible.
- The editor tools and shortcuts have been revamped for improved ease of use.
Dream Seeker
- num-lock, caps-lock, and scroll-lock are now valid in commands using the double-bracket embedded winget syntax.
514 Release Notes | View All