Jump to content

D J C

VIP
  • Posts

    1678
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by D J C

  1. 3 hours ago, TLG SyLvy said:

    Love the optimization of the mod, now it really works on any game assemble (or what other people call it "modpack).

     

    You can try uploading it as [LUA] here -> https://forum.b-zone.ro/files/ , and wait for approval. It's better than the old mod.

    image.thumb.png.ae8d1f660a23b13b2688dce4706b0b86.png

     

    Thanks for the kind words! I’m glad to hear you love the optimization. It’s awesome that it works well with various game assemblies now. ❤️
     

    I appreciate the suggestion to upload it to the forum’s file section. I’m still looking to get approval from higher staff first to ensure everything's in line with server rules. Once I have that, I’ll definitely consider sharing it with you guys!

  2. 19 hours ago, AdeM nWo said:

    Hello @ D J C ,

    thanks for your optimization, to be honest i didnt try them myself but from what i can see from your video it looks smooth and more realistic then the cleo one. Its Legal to use but i believe still bannable if you abuse it (exemple while running from cops) as it gives you more advantage like when making a U turn.

     

    Hey, thanks for the comment!

    I totally get where you're coming from. The goal behind the LUA version isn’t to create an unfair advantage, it's just to make the drifting smoother and more stable compared to the CLEO version and we already have in Forum, which has caused a lot of issues. of course, any mod can be abused if used in the wrong context, like during chases. I'm open to any suggestions on how we could be sure that it's only used for what it was intended and avoid situations where it could give players an edge in unfair scenarios.

     

     

    17 hours ago, Tupi said:

    What you did is something that already exists anyway, just in another language, I don't see the meaning being the same way just as in another language, for which you need other additional mods to work. The thing with the rotation is preferential depending on each one, there is no point in posting several modes with different values. We appreciate your work, but it is a matter of preference, not a major change


    I appreciate the feedback, but I think there's a misunderstanding. The purpose of my post wasn’t to compare preferences in car rotation or to spark a debate on which language is better for mods. which is already evident in the first YouTube video I included. The rotation I’ve improved in the Lua version eliminates the unnecessary and unrealistic movement that the CLEO mod creates.

    And let’s be real and of course not to offense, it’s 2024. People are moving to more modern and efficient solutions like LUA instead of sticking with older, less optimized options like CLEO. It’s not just about preference, it’s about improving stability and performance for everyone.

     

    I’m not looking to repost this mod on the forum for public use already. my goal was to get approval from higher staff to make sure it's fine to use on the server. The optimizations I’ve made might be subtle to some, but the real change is in how much smoother and crash-free it runs in LUA, as I include a YouTube video at the first place:
     


    I’d appreciate if we could keep the conversation focused on the title of the forum, not just personal preferences. Since you’re staff on the server, do you think this code is safe for server use or not? It would be great if we could involve higher staff to be sure we’re 100% sure about this.

  3. Hello @ Kelton , @ Tupi .
     

    I’ve optimized and converted the drift mod from CLEO to Lua, which is now smoother and more realistic in terms of car rotation and acceleration during drifts. It’s posted and also approved in B-Zone Rules and also Forum, and does the same thing as the original but with more logical handling and no unfair advantage.

     

    Please take a moment to check it out and compare it with the CLEO version. I’ve included a YouTube video showing the CLEO version that’s currently being used by a lot of players and the improvements in my Lua code. All I did was convert the CLEO code to Lua and lower a single variable, and it works perfectly without issues.

     

     

     

     

    require "lib.moonloader"
    
    local playerCar
    local carSpeed
    
    function main()
        if not isSampLoaded() and isSampAvailable() then return end
        while true do
            wait(0)
            if isCharInAnyCar(playerPed) then 
                playerCar = storeCarCharIsInNoSave(playerPed)
                carSpeed = getCarSpeed(playerCar)
                isCarInAirProper(playerCar)
                setCarCollision(playerCar, true)
            
                if isKeyDown(VK_LSHIFT) and isVehicleOnAllWheels(playerCar) and doesVehicleExist(playerCar) and carSpeed > 5.0 then
                    setCarCollision(playerCar, false)
                    if isCarInAirProper(playerCar) then
                        setCarCollision(playerCar, true)
                        if isKeyDown(VK_A) then 
                            addToCarRotationVelocity(playerCar, 0, 0, 0.05)  -- in Drift.cs this variable is 0.15
                        end
                        if isKeyDown(VK_D) then
                            addToCarRotationVelocity(playerCar, 0, 0, -0.05) -- in Drift.cs this variable is -0.15
                        end
                    end
                end
            end
        end
    end

     

     

    The CLEO drift mod (drift.cs) has caused numerous bugs and crashes for players due to its limitations and lack of optimization. In contrast, the Lua version resolves these issues, performing flawlessly thanks to its streamlined code and optimizations. By converting the mod to Lua, I was able to significantly reduce the resource usage, which not only improves performance but also stabilizes the mod on various setups:
     

     

    In short, Lua is superior to CLEO for this type of modification because it's more versatile, has a smaller footprint, and provides a more stable environment - leading to fewer bugs and crashes. Many players have reported issues with the CLEO version, while the Lua version runs perfectly without any problem.

     

    Looking forward to your feedback, and can I get a approval of using this. if not, I would love to hear your comment.
    Best regards. ❤️

  4. 4 hours ago, Tupi said:

    It's a common problem on this game, you have to understand that it's a 20-year-old game, and on today's PCs such problems can appear between the game and the user, you can't do much about it.

     

    Thanks for pointing out that GTA San Andreas is 20 years old, but it has also survived into the modern era where the players have mastered C-Bug and C-Shot on high-end setups. In itself, their existence shows players adapted the game far beyond the original design. I mean, I am not expecting a 2004 game to run like a 2024 one. At the very least, though, I'd expect that there are tweaks and solutions out there that can at least help minimize the input lag, if anyone else has advice that's not from the Stone Age, I'd appreciate it!

     

    This is exactly what I expect from my game, and just to clarify, here's a clip on YouTube as a sample:

    https://youtube.com/clip/Ugkxt5ioNkXHfRTrbcyY6hINORO-9CKbtqI7?si=oykqhS9GeEPJpxQt

     

     

    So far, it is @ SideLo VIP  who has the most helpful comment that may help in improving my situation but has not quite fixed it 100%.

  5. I have an enormous input lag while shooting in GTA: San Andreas, particularly with the C-Bug and C-Shot techniques. Now, I do use the Bloody L65 MAX, which is certainly one of the greatest mice around, so obviously, this should not happen that often. I have noticed some delay between pressing the shoot button and the actual weapon firing. It affects your aim and timing, making most advanced techniques hard to execute properly. I have tried many solutions ranging from adjusting the settings of the game itself to hardware troubleshooting, and that still didn't go away. I need advice on how best to tackle the problem so that my gameplay can get better.
     

     

  6. Hello @ Haruna Clemency , I hope you doing well.

     

     

    The qibla direction, if integrated into games, would really make for a cool layer of realism and inclusivity, especially for navigation- or adventure-based games. You can dynamically calculate the qibla direction using GPS according to the player's location or set any other fixed point in your game world—for example, Mecca. Now, imagine having a digital compass pointing toward the qibla inside a game that continuously changes its bearings; that could create all new kinds of challenges and make a game even more immersive.
     

    This feature not only shows respect and acknowledges the practices of Muslim players but is also a way to teach non-Muslim players a little about Islamic traditions. Seek out expert advice to ensure this representation is done accurately and respectfully. It will require a thoughtfully done qibla direction to open a richer, deeper experience, celebrate cultural diversity, and add meaningful depth into your game.

     

    To be more specific about the system, the following steps describe the mechanism for implementing qibla direction using GPS in your game: obtain the latitude and longitude of the player at his/her current position. Then, calculate the bearing from the player's location to the location of the Kaaba, 21.4225° N and 39.8262° E, by means of the Great Circle formula. Implement this formula into your code to return the qibla direction for use in in-game mechanics, like a compass.

     

    And what programming language or game engine to start working with, there would be another discussion that we can discuss in this Topic.

     

     

    Feel free to ask anything here, I would like to help you!

  7.  

  8. Hello!

     

    It would have been great if I could help you with CLEO, but unfortunately, I haven't been active in that field for several years. If you have any questions about LUA programming, I'm at your service, which it offers extensive libraries and is widely used in game development, providing more flexibility for various types of mods beyond just GTA SA and has a large and active community, providing extensive resources, tutorials, and support.

     

    CLEO, uses Sanny Builder and SCM language, which can be more complex and less intuitive for new programmers, performance can vary depending on the complexity of the scripts, and it may not be as optimized as LUA for certain tasks, and this is the reason why I moved to LUA programming.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.