Currently the developers are putting their own money into JC2-MP to keep the servers online.

Please take a few seconds of your time and disable your AdBlock plugin for our website.

Ad revenue is not going to developers, it is used purely for covering our hosting costs.

 

You are also free to donate, which removes all ads from our website!

RT @NOdab88: Just Cause Pro Skater 2... has it been 3 years already? #THPS #JustCause @tonyhawk @justcause @PlayStation @jc2mpdev https://t…

4 months ago

February 25, 2017, 02:31:13 pm

Author Topic: 0.2 Released!  (Read 58123 times)

Fkids

  • Developer
  • Sr. Member
  • *****
  • Posts: 289
    • View Profile
0.2 Released!
« on: November 08, 2015, 04:50:24 pm »
0.2 Released!

Available now on Steam


Welcome to our biggest, baddest, most awesome update yet! We've toiled extensively to bring you fantastic new features and much-needed bug fixes. Check out the full list below!

We've spent several days investigating the rendering issue on AMD graphics cards. Thanks to Jason_Valkyrie, we've been able to narrow it down and create a legacy renderer option that can be used as a workaround for rendering issues. If you experience such issues, you can enable the legacy renderer under Display tab of JC2-MP settings window.



Key Information

Scriptable Client Actors
Scripters can now create their own client-side NPC's!


Civilian Model Support
All civilian models are now available to use!



Depth-Tested Rendering
Render inside of the game world!



Basic Unicode Support
Allowing use of more languages.



Main Menu Overhaul
Convenient access to your favorite servers.



Steam Achievements
Unlock them by completing tasks with players.



Other Major Features:
  • Major sync improvement to vehicles and on-foot weapons
  • Implementation of following classes, which greatly improve client/server communication:
    • SharedObject
    • NetworkObject
    • WorldNetworkObject
  • Extended ability to store values from player-only to all entities
  • Fixed major bug causing random models/effects to become invisible


Example Scripts





0.2 Changelog

New Features

    Shared
  • Added support for all of the previously unsupported civilian models
  • Added Steam achievements
  • Added SharedObject class
  • Added NetworkObject class
  • Added WorldNetworkObject class
  • Added basic UTF-8 support to Lua strings
  • Added SetUnicode(boolean) global function
  • Added storage to all entities, not just Players
  • Deprecated PlayerValueChange and PlayerNetworkValueChange events
  • Refactored Chat class functions to support multiple colours in a single message
  • Added Vehicle.GetClassByModelId
  • Added Vehicle:GetClass
  • Added VehicleClass enum
  • Improved Lua errors with event argument printout
  • Added delta argument to PreTick/PostTick and Render/PostRender
  • Added Angle.Delta
  • Added Vector2.Reflect and Vector3.Reflect
  • Added ComponentMultiply method to Vector2 and Vector3
  • Added Weapon equality operator

    Server
  • Added module metadata
  • Added Player:Damage
  • Added Vehicle:SetStreamPosition and Vehicle:SetStreamAngle
  • Added Vehicle:Get/SetSpawnPosition and Vehicle:Get/SetSpawnAngle
  • Can now disable collisions between two different types with Player/Server functions EnableCollision/DisableCollision
  • Added ClientModulesLoad event
  • Added Player:RequestGroupMembership(groupId, callback)
  • Added StreamableObject:GetStreamedPlayers
  • Added SLED debugger support
  • Added suppressible PlayerAchievementUnlock event
  • Added Server:GetFrameTime
  • Added SendAutorunWhenEmpty config variable, default as false, to control whether autorun scripts are sent for empty modules
  • Added netstat command

    Client
  • Added ClientActor class which provides a basic client-side NPC interface
  • Added GameRender event for depth-tested rendering in the game world
  • Main menu overhaul
  • Added support for streaming image resources with AssetLocation.Resource
  • Added support for Unicode characters in CharPress
  • Vastly improved the chat window with word wrap and chat history
  • Added LocalPlayer:SetLinearVelocity
  • Added Character class, common to Player and ClientActor
  • Added Character:Get/SetLeftArmState
  • Added Character:GetSeat
  • Added Vehicle:Set(Linear/Angular)Velocity
  • Added VehicleTransmission, with methods Get/SetGear, Get/SetClutchDelayTime and more
  • Added VehicleSuspension, with methods Get/SetChassisDirection, Get/SetStrength and more
  • Added VehicleAerodynamics for land vehicles, with methods Get/SetAirDensity, Get/SetDragCoefficient and more
  • Added Vehicle:GetTransmission, Vehicle:GetSuspension and Vehicle:GetAerodynamics
  • Added Vehicle:GetTorque, Vehicle:GetWheelCount, Vehicle:GetRPM, Vehicle:GetMaxRPM and Vehicle:GetTopSpeed
  • Added GetClimateZone method to streamed and client entities
  • Added ClimateZone enum
  • Added ShapeTrigger with events ShapeTriggerEnter and ShapeTriggerExit
  • Added TriggerType enum
  • Added VehicleTriggerType enum
  • Added Player:GetAvatar
  • Added AvatarSize enum
  • Added Featured tab to the server browser
  • Added description field to the server browser
  • Server browser filters are now consistent between restarts
  • Added Camera functions SetFOV and GetFOV
  • Added LocalPlayerEjectVehicle event
  • Added 'entity' and 'impulse' arguments to VehicleCollide event
  • Added LocalPlayer functions SetOxygen and GetOxygen
  • Added LocalPlayer:IsFriend(steamid/player)
  • Added Client:GetFrameTime
  • Added Game:GetWeatherSeverity
  • Added ClientStreamableObject as a base class to Vehicle/Player
  • Added an optional boolean parameter to Physics:Raycast to disable the raycast filter
  • LocalPlayerBulletHit event now contains a bone argument
  • Added a setting to toggle vehicle camera snap and adjust timeout
  • Added a setting to toggle vehicle stunt camera
  • Added chat key and chat toggle key settings
  • Removed apostrophe keybind opening console, added a setting to configure console keybind
  • Added support for correctly rendering the tab character in text
  • Added Render:GetDepthEnabled
  • Added CursorType enum
  • Added Mouse:SetCursor
  • Added FontAwesome and League Gothic fonts to resources
  • Added ability to navigate through TextBox history using Up and Down arrow keys
  • Added Ctrl-Left/Ctrl-Right hotkeys to TextBox to facilitate moving the cursor word by word
  • Added Label:SetLineSpacing
  • Added TextBoxNumeric:Get/SetNegativeAllowed
  • Added gui_show_netstat console command
  • Added window position and size launch parameters

Bug Fixes

    Shared
  • General sync improvement
  • Luabind now checks parent classes when looking up class members (class("MyDerived")(MyBase) in _init.lua works now)
  • Scripts are now loaded in alphabetical order on all platforms
  • Fixed script profiler not counting network events
  • The marshaller now accepts table keys of any type
  • Angles sent over the network no longer lose precision from compression
  • Vector2/Vector3/Color statics can no longer be edited
  • Comparing any API class with '==' should now work
  • Fixed random number generator not being seeded at startup
  • Improved Timer precision
  • Fixed issue where IsValid would raise an exception for non-table/userdata types

    Server
  • Fixed issue with server memory not being freed on entity removal
  • Cleaned up streamer code, hopefully reducing amount of server crashes
  • Fixed issue with world iterators not working correctly
  • Fixed a bug where scripts would still be run even if the server failed to start
  • Fixed SteamId outputting the community id when printed on Windows

    Client
  • Fixed bones returning the wrong position for smaller models (Breaking change)
  • Fixed very long-standing issue with on-foot weapons often not firing for other clients
  • Vastly improved vehicle sync, also allows players to stand on vehicles as in singleplayer
  • Hopefully fixed archive bug that caused models/effects to fail to load
  • Fixed static objects not responding to the biome (snow / dust)
  • Fixed an extremely prevalent crash during entity collision listener removal
  • General renderer improvements
  • Refactored Mounted Gun sync, resulting in better aim accuracy
  • Reduced memory usage by preventing entire archives from being loaded at once
  • Fixed issue where requested models could sometimes be wiped out by the loading screen process
  • Fixed a bug where vehicle colors were darker than the requested colors
  • Fixed issue with vehicle colors not being applied to some turret parts
  • Fixed input sometimes going crazy when in a menu
  • Fixed settings window not preserving game resolution upon resize
  • Improved precision of Input:GetValue return value
  • Fixed being stuck in the air when EnterVehicle is called while grappling
  • Things drawn in 3D (and Render:WorldToScreen) no longer appear to be ahead by one frame
  • Fixed character model not changing if gui hidden or in a menu
  • Removed highlighted servers from the server browser
  • Character models are now reset on disconnect
  • Hopefully fixed issue with Rico model being invisible
  • Fixed the sound pop issue on Windows 10, courtesy of emoose from ElDewrito
  • Fixed PlayerEnterVehicle missing old_driver arg
  • Fixed issue with default player state being PlayerState.None instead of PlayerState.OnFoot
  • Some client entities now inherit from ClientStreamableObject to mirror the server classes
  • Added parameters argument to ClientSound.Create
  • Removed palaver, as its implementation burden outweighed the value it provided
  • ImagePanel:SetImage now takes an Image instead of a path
  • ReturnPressed event of a TextBox is now triggered on key down, instead of key up
  • Disabled Tab behaviour of the Enter key in TextBox as it moves to next control in the entire scene
  • Fixed HSVColorPicker issues
  • Fixed SortedList header being offset when it has a scrollbar
  • Fixed crash with SortedList:Clear
  • Fixed issue with SortedList sizing

Note: a running changelog for each new version is maintained on the wiki, see here.
« Last Edit: November 22, 2015, 11:16:55 pm by Woet »

Trix

  • Developer
  • Full Member
  • *****
  • Posts: 214
    • View Profile
Re: 0.2 Release Date
« Reply #1 on: November 08, 2015, 04:46:42 pm »

Dev_34

  • Full Member
  • ***
  • Posts: 146
    • View Profile
Re: 0.2 Release Date
« Reply #2 on: November 08, 2015, 05:25:30 pm »
I've said it before, but, awesome work guys  :)

Lord_Farquaad

  • Full Member
  • ***
  • Posts: 209
    • View Profile
Re: 0.2 Release Date
« Reply #3 on: November 08, 2015, 06:30:47 pm »
This is amazing!  Thanks for your continued hard work and support for this mod!

SubZer0

  • Sr. Member
  • ****
  • Posts: 389
    • View Profile
Re: 0.2 Release Date
« Reply #4 on: November 08, 2015, 06:33:40 pm »
Yessss! Just in time to prepare for JC3 :D

JasonMRC

  • Donator
  • Hero Member
  • *****
  • Posts: 603
    • View Profile
Re: 0.2 Release Date
« Reply #5 on: November 08, 2015, 06:38:40 pm »
Thank you for the notice, although more than 3 days would've been nice.

__init__

  • Donator
  • Newbie
  • *****
  • Posts: 43
    • View Profile
Re: 0.2 Release Date
« Reply #6 on: November 08, 2015, 07:19:33 pm »
Thanks, Devs! Quick question: Does == just compare pointers? For example, for an anti-cheat script, I need to know if two guns are the same over different frames. Will comparing one saved in a variable with a new one gotten with :GetEquippedWeapon return true if it indeed has not been respawned? Thanks!

Trix

  • Developer
  • Full Member
  • *****
  • Posts: 214
    • View Profile
Re: 0.2 Release Date
« Reply #7 on: November 08, 2015, 07:34:05 pm »
Thanks, Devs! Quick question: Does == just compare pointers? For example, for an anti-cheat script, I need to know if two guns are the same over different frames. Will comparing one saved in a variable with a new one gotten with :GetEquippedWeapon return true if it indeed has not been respawned? Thanks!

It doesn't right now, but I just committed a fix that adds equality operators to Weapon objects that will check the Weapon ID. It should end up on Steam today/tomorrow.

__init__

  • Donator
  • Newbie
  • *****
  • Posts: 43
    • View Profile
Re: 0.2 Release Date
« Reply #8 on: November 08, 2015, 10:02:36 pm »
It doesn't right now, but I just committed a fix that adds equality operators to Weapon objects that will check the Weapon ID. It should end up on Steam today/tomorrow.

Wow, thanks! This'll help out a lot.

dab88

  • Donator
  • Hero Member
  • *****
  • Posts: 655
    • View Profile
Re: 0.2 Release Date
« Reply #9 on: November 08, 2015, 10:49:10 pm »
Amazing! Really fucking amazing. So much work. So much time. It truly is appreciated!

JasonMRC

  • Donator
  • Hero Member
  • *****
  • Posts: 603
    • View Profile
Re: 0.2 Release Date
« Reply #10 on: November 09, 2015, 04:09:09 am »
Did world:GetName(), world:GetValue(), and Server:GetWorlds() make it into this? (Suggestion here)

SinisterRectus

  • JC2-MP Betatester
  • Sr. Member
  • *****
  • Posts: 445
    • View Profile
Re: 0.2 Release Date
« Reply #11 on: November 09, 2015, 05:01:43 am »
Did world:GetName(), world:GetValue(), and Server:GetWorlds() make it into this? (Suggestion here)
Unfortunately not. It's a nice idea, but it would have further delayed the release.

Jman100

  • JC2-MP Betatester
  • Sr. Member
  • *****
  • Posts: 324
    • View Profile
Re: 0.2 Release Date
« Reply #12 on: November 09, 2015, 09:02:48 am »
Did world:GetName(), world:GetValue(), and Server:GetWorlds() make it into this? (Suggestion here)

This will probably make it into a patch at a later date. No estimates at this time.

JasonMRC

  • Donator
  • Hero Member
  • *****
  • Posts: 603
    • View Profile
Re: 0.2 Release Date
« Reply #13 on: November 09, 2015, 10:40:57 am »
Did world:GetName(), world:GetValue(), and Server:GetWorlds() make it into this? (Suggestion here)
Unfortunately not. It's a nice idea, but it would have further delayed the release.
Understandable.
Did world:GetName(), world:GetValue(), and Server:GetWorlds() make it into this? (Suggestion here)
This will probably make it into a patch at a later date. No estimates at this time.
I hope so. It would make working with Worlds much easier I think.

tally

  • Full Member
  • ***
  • Posts: 121
    • View Profile
Re: 0.2 Release Date
« Reply #14 on: November 09, 2015, 11:01:44 am »
Are you ready?

Cheers guys :)