Skip to content

Commit 39b6f36

Browse files
authored
Updated 3.7.0
Save Avatar Cookie after Select - The save avatar cookie after the select avatar process was missing the number of days to save it. This made it disappear as it saved it. It has been corrected. Avatar ID Cookie Saving - When a random avatar is added, the setCookie function was not setting the number of days, so the cookie expired as it was written. We added 365 days and now it works. Pending Cookies Array - We added a global variable called WTW.pendingCookies as an array to store any cookies that would be written before the Allow Cookies prompt is answered. If answered to Allow, the array is processed and each cookie is saved. Either way you answer about the Allow or Deny Cookies, the array is cleared after. Set Cookie Prompt Protected - The setCookie function in wtw_utilities.js now checks the prompt response with the checkAllowCookies function. Get Cookie Prompt Protected - The getCookie function in wtw_utilities.js is now using the checkAllowCookies function before use. This has one exception, the allowcookies can be processed to see if it exists. Replaced Delete Cookie Function - The deleteCookie function was using the setCookie function, but now it has its own stand alone code. This is due to the changes to protect the set and get cookies functions. Added Check Allow Cookies Function - We added a checkAllowCookies function that will return a true or false depending on the prompt response and possible cookie to remember the setting if cookies were allowed. Camera Distance Cookie - The Camera Distance cookie was being set before it was being read. This caused it to reset every time the page reopened. We removed the unnecessary set cookie in the init camera function. Avatar for Edit Code Update - When opening an avatar for edit, the scaleold node was not setting the position and rotation. The code lines were copied from the avatarscaling, showing as a duplicate, but the avatarscalingold node needed to be set. This has been corrected. Avatar Transition Scaling Corrected - When switching avatars, the old avatar stays until the new avatar is completely loaded. The issue was that the new avatar was resetting the scaling of the old avatar (scaleold transform node), making the avatar jump in size during the transition before it is deleted. We removed the scaling for the scaleold node when the new avatar is being added. This allows it to preserve the scaling of the old avatar while the new avatar loads. Parent During Avatar Transition - When switching avatars, the child elements of an avatar get set to an alternate parent (-scaleold) for a short time. The code was reparenting all items, but we needed it to only parent items that are part of the current scale parent. This change preserves the sub parent structure. Allow Cookies Prompt in Sequence - The Allow Cookies prompt has been added to the load sequence. This will make sure it is prompted before any cookies are written from the JavaScript (client) side. Select Avatar Display Name - When viewing the select avatar 3D Form, The display name was throwing an error when you are set as anonymous. We added a condition to check if the display name or default display name is null to correct the issue. The results will now show Anonymous as the display name when the JSON call returns a null value. Allow Cookies Prompt Added - We are now asking if the user allows cookies. The menu will show on first use, if the user selects allow cookies, cookies will be used to save user settings and preferences including this allow setting (no longer get the prompt on each visit). If the user selects deny cookies, it will not save cookies, any existing cookies will be removed, and the user will be prompted each time they visit the site. Remember that cookies include the avatar selection, instance number of the user (gives an anonymous user an identity), logins, avatar customizations, and other preferences. This update includes: new menu in class_wtwmenu.php, global variable in wtw_constructor.js, allow cookie functions in wtw_utilities.js, and calls to add the cookie menu in index.php and admin.php. Avatar Animations Menu Size - When you long click your avatar, the optional animations horizontal scroll is shown with the animations you can play by holding one of the icons. This horizontal scroll was too wide for mobile devices. It is now properly scaling to fit your screen and you can see the close button. Mobile Browse Menu Height - When using a mobile device in landscape orientation the browse menu was too tall for the screen causing you to not be able to close the menu. We corrected it by adding a div with a vertical overflow scrollbar and set the height when opening. Enter Zone Process - The Enter Zone process used by the multiplayer was executing 2 times on entry of a load zone. It now uses the status to determine if it needs to run. First time it is status 0 and all following times the status is 2. 3D Avatar Required Plugins - When editing a 3D Avatar, under options and settings - ratings and requirements, the requirements section was not set to open for avatars. This section lets you set any required or optional plugins that will be used when your avatar loads. We added the condition to allow it for avatars. Now this section is available. Animation Modes Hiding Animations - When selecting Fight Mode or returning to Normal Mode of Avatar movement (after slow click on your avatar), the list of animations to choose from were not hiding the extra animations. An OR clause was added to the avatarAnimationMode function to hide or show the appropriate animations when selected. Avatar Animation Transitions are Faster - When an avatar changes from one movement to another there is a transition speed set by an increment that determines how fast the animation stops and the new one starts. Previously the increment was 0.2, now it is 0.5. This means that the transitions are now completing 2.5 times faster. This makes the avatar a lot more responsive to changes in direction and movement. Avatar Walk to Position - The avatar walk to position function has been updated to watch for lack of movement as a method to cancel the walking. We also cleaned up the code by using the cancelWalkToPosition function instead of individual repeated lines of code. Avatar Walk to Decal - When you click the ground, a decal is added to the ground and the avatar walks to it. The decal was not showing because of the rendering group. It has been corrected. Added Cancel to Select Avatar 3D Form - We added a Cancel button to the select avatar 3D Form. This also includes the animation code, hover, and action to close the select avatar 3D Form when selected. Table Character Set Updated - When creating the tables, the utf8 characterset has been updated to UTF8MB4 by a recommendation of MySQL. This change occurred in the main WalkTheWeb tables and all plugins maintained by WalkTheWeb. Avatar in Groups Table Comma Issue - The avataringroups table was not being created because of a missing comma after the primary key line. This has been corrected and tested. Avatars in Groups Table - The avatarsingroups table was not being created because of a typo in the varchar size. It said 416 when it should be 16. Initial Install Download Size Reduction - We reduced the install file size by eliminating the duplicate avatar animation files. Therefore, in the install we now have a process that copies the animations to each of the avatar folders while respecting the unique animations for that avatar. Mostly, the onwait and dances are different per avatar and the male and female walks are also separate selections. New Install Avatars - During the new install of WalkTheWeb, the avatars are now the latest 1.0.1 or 1.1.1 versions of the avatars consisting of 131 animations each. If you already installed, these are the same avatars you get when you update the avatars in your admin mode. Content System Avatars folder removed - The /content/system/avatars folder has been removed. The installed avatars are now in the /content/uploads/avatars folder with other downloaded avatars. Default Avatar Path Updated - The default avatar path has been updated to the unanimous male avatar. Community Name loading - On occasions, the community name would error while loading. This depended on if the mobile or desktop version of the menu is being used. It now checks the availability of the element before setting the inner HTML value.
1 parent 2dead77 commit 39b6f36

File tree

0 file changed

+0
-0
lines changed

    0 file changed

    +0
    -0
    lines changed

    0 commit comments

    Comments
     (0)