Announcement

Collapse
No announcement yet.

Onset 1.0.2

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Onset 1.0.2

    Onset 1.0.2 (Protocol Compatibility 1)

    Client changes
    • Improve shotgun shooting animations.
    • A lot of data is now being loaded on demand which should improve game start time.
    • Lag fix for AMD-FX CPUs is now enabled by default.
    • Fix hit detection with sniper guns when shooting close targets.
    • Fix crash when closing the game.
    • Remove string limit from Base64* functions.
    • Default ZOrder for WebUIs is now 1 instead of 0.
    • Improvements to PICKAXE_SWING, CARRY_SHOULDER_SETDOWN and REVIVE animation.
    • Fix stopping of animations with SetPlayerAnimation, even if the player is in a vehicle.
    • Event OnPlayerStartEnterVehicle seat parameter now starts at 1 instead of 0.
    • Fix Random, RandomFloat with negative values.
    • Various map fixes.

    Winter Edition Event
    • Add snow overlay for grass layers. It can be enabled like this:
    SetLandscapeSnowAlpha(1.0)
    • Add snow particles:
    EnableSnowParticles(true)

    Both functions will be removed once the winter event ends.

    Click image for larger version  Name:	snow.png Views:	0 Size:	1,010.6 KB ID:	1542


    Server changes
    • Add SetNPCRespawnTime.
    • Remove respawn time limit for players.
    • Fix CreateExplosion not working if there are more than two players.
    • Fix Random, RandomFloat with negative values.
    Package Manager by 1B0Y now comes with the default server. (https://github.com/1B0Y/OnsetScripts)
    Usage:
    /start <package_name>
    /stop <package_name>
    /restart <package_name>

    #2
    Good one.

    Comment


      #3
      Nice!

      Those winter event functions should be left in though.

      Comment


        #4
        Nice update on x-mas. Thank you

        Comment


          #5
          good joob

          Comment


            #6
            wintah

            Comment


              #7
              Nicee

              Comment


                #8
                finally start, restart, stop, thanks you for this.
                Any plan on making mariadb user firendly?

                Comment


                • Logic_
                  Logic_ commented
                  Editing a comment
                  How more friendly would you like to see it?

                #9
                Originally posted by stking View Post
                Nice!

                Those winter event functions should be left in though.
                I agree, it shouldn't been just for the event.
                SA-MP Developer of Fallout Apocalypse Roleplay
                SA-MP Developer of Wild West Roleplay

                Comment


                  #10
                  Logic_ Hi Logic, you asked me how more user friendly I'd like to see it.

                  Let's look at my wrapper for now:
                  Code:
                  local function handleMariaDBError(cb, cbParameters)
                      local errorNumber = mariadb_errno(db)
                      if (errorNumber ~= 0) then
                          print("MariaDB Error.")
                          print(mariadb_error(db))
                      end
                  
                      if (cb ~= nil) then
                          local rowsCount = mariadb_get_row_count()
                  
                          if (rowsCount == nil) then return cb(nil, table.unpack(cbParameters)) end
                  
                          local rows = {}
                          for i = 1, rowsCount do
                              local test = mariadb_get_assoc(i)
                              table.insert(rows, test)
                          end
                          return cb(rows, table.unpack(cbParameters))
                      end
                  end
                  
                  function query(expression, args, cb, cbParameters)
                      if (not(db)) then
                          AddEvent("mariadb:connected", function()
                              query(expression, args, cb, cbParameters)
                          end)
                      else
                          local query = mariadb_prepare(db, expression, table.unpack(args))
                  
                          mariadb_query(db, query, handleMariaDBError, cb, cbParameters)
                      end
                  end
                  Many lacks in this, if row types are integer, it returns as string. I expect a function to retrieve all results as they live in the database. Like mine but more efficient (C++ way).
                  Also, any plan on making MariaDB plugin open source so we can help you?

                  Another lack is the callback hell. I mean, we have to create many many and many function if we have 3 db calls to do. It's a hell when dealing with data a lot.

                  I have no ultimate solution for now, so I'm just saying that if we can have a function that returns the bulk result, it would be amazing.

                  Comment

                  Working...
                  X