Giter VIP home page Giter VIP logo

momsurffix's Introduction

MomSurfFix

Momentum mod surf/ramp fix ported to CSGO and CSS.

TF2 support is currently available under this fork (https://github.com/JoinedSenses/MomSurfFix/tree/TF2-Fork).

About

That fix modifies CGameMovement::TryPlayerMove() function to behave like momentum mod ones. Whole function was recreated on sourcepawn and replaced default CGameMovement::TryPlayerMove(). By modifying that function and applying all fixes that momentum mod team has done, you'll get quite good surf/ramp glitch fix.

Requirements

  • SourceMod 1.11.0.6711 or higher.

Available cvars

  • momsurffix_ramp_bumpcount - Left from original momentum mods function, helps with fixing surf/ramp bugs;
  • momsurffix_ramp_initial_retrace_length - Left from original momentum mods function, amount of units used in offset for retraces;
  • momsurffix_enable_noclip_workaround - Enables workaround to prevent issue #1.

Special thanks to

momsurffix's People

Contributors

gamechaos avatar gammacase avatar nyano1337 avatar pixelinc avatar t5mat avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

momsurffix's Issues

CGameMovement::TryPlayerMove error

hey,
it seems like the gamedata update was not successful for linux
d71605a#diff-a3c49ac944e0de4d601db861785572e1723dc40fc13e58d20c39c892fd389564R360

[SM] Exception reported: [momsurffix2] Can't find start of the "CGameMovement::TryPlayerMove" function. L 02/26/2023 - 00:41:48: [SM] Blaming: momsurffix2.smx L 02/26/2023 - 00:41:48: [SM] Call stack trace: L 02/26/2023 - 00:41:48: [SM] [0] SetFailState L 02/26/2023 - 00:41:48: [SM] [1] Line 663, momsurffix2.sp::SetFailStateCustom L 02/26/2023 - 00:41:48: [SM] [2] Line 199, momsurffix2.sp::SetupASMOptimizations L 02/26/2023 - 00:41:48: [SM] [3] Line 105, momsurffix2.sp::OnPluginStart L 02/26/2023 - 00:41:48: [SM] Unable to load plugin "momsurffix2.smx": Error detected in plugin startup (see error logs)

running latest dev sm / mm

Terrible performance when noclip is off outside map boundaries. [CSGO/CSS]

Leaving noclip outside of the map boundaries makes server unplayable due to terrible performance.
Currently tested in csgo and css [win]. It happens due to z speed is equal to -6.25 for some reason, when it should be 0.0 and plugin trying to resolve your stuck position by using expensive part of the code each time TryPlayerMove() is called.

Load Error

L 10/01/2022 - 01:20:35: [SM] Exception reported: [momsurffix2] Can't get "g_pMemAlloc" address from gamedata.
L 10/01/2022 - 01:20:35: [SM] Blaming: momsurffix2.smx
L 10/01/2022 - 01:20:35: [SM] Call stack trace:
L 10/01/2022 - 01:20:35: [SM] [0] SetFailState
L 10/01/2022 - 01:20:35: [SM] [1] Line 656, momsurffix2.sp::SetFailStateCustom
L 10/01/2022 - 01:20:35: [SM] [2] Line 152, momsurffix/utils.sp::InitUtils
L 10/01/2022 - 01:20:35: [SM] [3] Line 98, momsurffix2.sp::OnPluginStart
L 10/01/2022 - 01:20:35: [SM] Unable to load plugin "momsurffix2.smx": Error detected in plugin startup (see error logs)

Not sure why I'm getting this error.

Game TF2

OS Windows

Addons MetaMod v1.11.0-dev+1148V SourceMod v1.11.0.6911

] sm exts list
[SM] Displaying 20 extensions:
[01] Automatic Updater (1.11.0.6911): Updates SourceMod gamedata files
[02] Webternet (1.11.0.6911): Extension for interacting with URLs
[03] Accelerator (2.5.0): SRCDS Crash Handler
[04] TF2Items (1.6.4): TF2 Item Modifier
[05] TF2 Tools (1.11.0.6911): TF2 extended functionality
[06] BinTools (1.11.0.6911): Low-level C/C++ Calling API
[07] SDK Hooks (1.11.0.6911): Source SDK Hooks
[08] SDK Tools (1.11.0.6911): Source SDK Tools
[09] Top Menus (1.11.0.6911): Creates sorted nested menus
[10] Regex (1.11.0.6911): Provides regex natives for plugins
[11] GeoIP (1.11.0.6911): Geographical IP information
[12] Client Preferences (1.11.0.6911): Saves client preference settings
[13] SQLite (1.11.0.6911): SQLite Driver
[14] file "geoipcity.ext.dll": The specified module could not be found.

[15] SteamWorks Extension (1.2.2): Exposes SteamWorks functions to Developers
[16] Socket (3.0.1): Socket extension for SourceMod
[17] DHooks (1.11.0.6911): Dynamic Hooks
[18] MySQL-DBI (1.11.0.6911): MySQL driver implementation for DBI
[19] Connect (1.2.1): Forward for early connection
[20] MessageBot (2.0): MessageBot Extension

Exception reported: Invalid address 0xb09f is pointing to reserved memory

Иногда мелькает в логах:
L 08/25/2020 - 19:12:31: [SM] Exception reported: Invalid address 0xb09f is pointing to reserved memory.
L 08/25/2020 - 19:12:31: [SM] Blaming: momsurffix2.smx
L 08/25/2020 - 19:12:31: [SM] Call stack trace:
L 08/25/2020 - 19:12:31: [SM] [0] LoadFromAddress
L 08/25/2020 - 19:12:31: [SM] [1] Line 154, momsurffix/gametrace.sp::CGameTrace.startsolid.get
L 08/25/2020 - 19:12:31: [SM] [2] Line 472, D:\Utilites\SteamCMD\aimservcsgo\csgo\addons\sourcemod\scripting\momsurffix2.sp::TryPlayerMove
L 08/25/2020 - 19:12:31: [SM] [3] Line 259, D:\Utilites\SteamCMD\aimservcsgo\csgo\addons\sourcemod\scripting\momsurffix2.sp::TryPlayerMove_Dhook

Версия игры:
Protocol version 13765 [1177/1177]
Exe version 1.37.6.5 (csgo)
Exe build: 20:50:28 Aug 17 2020 (7929) (730)
Плагины:
SourceMod (1.10.0.6492) by AlliedModders LLC & Metamod:Source 1.11.0-dev+1128
Momentum surf fix '2" (1.1.3) by GAMMA CASE

sm 1.11 errors

After updating to version 1.11, I have the following errors

L 07/22/2022 - 16:31:22: [SM] Exception reported: Pass flags are only supported for virtual hooks.
L 07/22/2022 - 16:31:22: [SM] Blaming: momsurffix2.smx
L 07/22/2022 - 16:31:22: [SM] Call stack trace:
L 07/22/2022 - 16:31:22: [SM] [0] DHookAddParam
L 07/22/2022 - 16:31:22: [SM] [1] Line 159, momsurffix/gamemovement.sp::InitGameMovement
L 07/22/2022 - 16:31:22: [SM] [2] Line 102, D:__TEST__OTHER\cstrike\addons\sourcemod\scripting\momsurffix2.sp::OnPluginStart
L 07/22/2022 - 16:31:22: [SM] Unable to load plugin "momsurffix2.smx": Error detected in plugin startup (see error logs)

Is there any solution?

Unsupported feature set; code is too new - SourceMod 1.11.0.6775

I've tried installing MomSurfFix on my older server which has SourceMod 1.11.0.6775

As your Readme states SourceMod 1.11.0.6711 or higher is required - which I technically have, but once the plugin is tried to be loaded I get an error Unsupported feature set; code is too new

Which SourceMod version is actually required for Momentum Surf Fix v2 [1.1.5] ?

Crashes since #5

The plugin causes crashes with #5 on Windows servers. Linux appears to do just fine, but Windows does not like the change. No error logs.

SM Version: 1.10.0.6492
CS:GO Version: 1.37.7.0
Dhooks Detours Versions tested: detours9, detours15

No error logs are produced, however I do have several accelerator links that are fairly unhelpful as far as I can tell:
https://crash.limetech.org/m4ncxggmmvzz
https://crash.limetech.org/7k5qdsudjj72
https://crash.limetech.org/zmvqcz3frecl
https://crash.limetech.org/247c7a7e3h7m

Issue seems to be pretty widely confirmed within the KZ community after the recent adoption of this plugin. Rolling back to 4037f73 stops the crashes.

Error Can't get "g_pMemAlloc" address from gamedata.

L 02/28/2023 - 21:14:51: SourceMod error session started
L 02/28/2023 - 21:14:51: Info (map "de_dust2") (file "/srv/csgo/addons/sourcemod/logs/errors_20230228.log")
L 02/28/2023 - 21:14:51: [SM] Exception reported: [momsurffix2] Can't get "g_pMemAlloc" address from gamedata.
L 02/28/2023 - 21:14:51: [SM] Blaming: fixgame/momsurffix2.smx
L 02/28/2023 - 21:14:51: [SM] Call stack trace:
L 02/28/2023 - 21:14:51: [SM] [0] SetFailState
L 02/28/2023 - 21:14:51: [SM] [1] Line 663, C:\SourceMod_1.10_6545\scripting\momsurffix2.sp::SetFailStateCustom
L 02/28/2023 - 21:14:51: [SM] [2] Line 152, momsurffix/utils.sp::InitUtils
L 02/28/2023 - 21:14:51: [SM] [3] Line 99, C:\SourceMod_1.10_6545\scripting\momsurffix2.sp::OnPluginStart
L 02/28/2023 - 21:14:51: [SM] Unable to load plugin "fixgame/momsurffix2.smx": Error detected in plugin startup (see error logs)
L 02/28/2023 - 21:14:57: Error log file session closed.

Error

L 01/12/2022 - 06:42:37: [SM] Exception reported: [momsurffix2] Can't get "sm_pSingleton" address from gamedata. L 01/12/2022 - 06:42:37: [SM] Blaming: momsurffix2.smx L 01/12/2022 - 06:42:37: [SM] Call stack trace: L 01/12/2022 - 06:42:37: [SM] [0] SetFailState L 01/12/2022 - 06:42:37: [SM] [1] Line 660, D:\Utilites\SteamCMD\aimservcsgo\csgo\addons\sourcemod\scripting\momsurffix2.sp::SetFailStateCustom L 01/12/2022 - 06:42:37: [SM] [2] Line 149, momsurffix/gamemovement.sp::InitGameMovement L 01/12/2022 - 06:42:37: [SM] [3] Line 99, D:\Utilites\SteamCMD\aimservcsgo\csgo\addons\sourcemod\scripting\momsurffix2.sp::OnPluginStart L 01/12/2022 - 06:42:37: [SM] Unable to load plugin "momsurffix2.smx": Error detected in plugin startup (see error logs)

As far as I can tell, no issues in-game. (CSGO)

Plugin broken after latest update

CSGO changed the signature so momsurffix no longer loads

sm plugins reload momsurffix2
L 11/10/2021 - 01:26:45: [SM] Exception reported: [momsurffix2] Can't get "sm_pSingleton" address from gamedata.
L 11/10/2021 - 01:26:45: [SM] Blaming: momsurffix2.smx
L 11/10/2021 - 01:26:45: [SM] Call stack trace:
L 11/10/2021 - 01:26:45: [SM] [0] SetFailState
L 11/10/2021 - 01:26:45: [SM] [1] Line 660, D:\Utilites\SteamCMD\aimservcsgo\csgo\addons\sourcemod\scripting\momsurffix2.sp::SetFailStateCustom
L 11/10/2021 - 01:26:45: [SM] [2] Line 149, momsurffix/gamemovement.sp::InitGameMovement
L 11/10/2021 - 01:26:45: [SM] [3] Line 99, D:\Utilites\SteamCMD\aimservcsgo\csgo\addons\sourcemod\scripting\momsurffix2.sp::OnPluginStart
[SM] Plugin momsurffix2.smx failed to reload: Error detected in plugin startup (see error logs).

Can't get "sm_pSingleton" address from gamedata. after latest csgo update

L 10/22/2022 - 16:59:11: [SM] Exception reported: [momsurffix2] Can't get "sm_pSingleton" address from gamedata.
L 10/22/2022 - 16:59:11: [SM] Blaming: momsurffix2.smx
L 10/22/2022 - 16:59:11: [SM] Call stack trace:
L 10/22/2022 - 16:59:11: [SM] [0] SetFailState
L 10/22/2022 - 16:59:12: [SM] [1] Line 660, D:\Utilites\SteamCMD\aimservcsgo\csgo\addons\sourcemod\scripting\momsurffix2.sp::SetFailStateCustom
L 10/22/2022 - 16:59:12: [SM] [2] Line 149, momsurffix/gamemovement.sp::InitGameMovement
L 10/22/2022 - 16:59:12: [SM] [3] Line 99, D:\Utilites\SteamCMD\aimservcsgo\csgo\addons\sourcemod\scripting\momsurffix2.sp::OnPluginStart
L 10/22/2022 - 16:59:12: [SM] Unable to load plugin "momsurffix2.smx": Error detected in plugin startup (see error logs)

sm 6913 windows

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.