Garry's Mod

Garry's Mod

[vFire] Simfphys Support
 This topic has been pinned, so it's probably important
NotAKid  [developer] 9 Apr, 2020 @ 3:10am
Found a Bug or Error?
Please report bugs in this thread. I will take a look as soon as possible.

  • Provide the error given in console if possible.
  • Provide the addon causing errors (a link if you are nice).
  • Provide the Simfphys vehicle that refuses to work.
If none of those fit your issue then try to explain below!

-- Snippet from the Description --
Originally posted by NotAKid in the Description of the addon:
vfire_simfphys_compatibilitymode 0-1
Set to 1 in console to not overide the SetOnFire() function. Use if getting errors with other addons!
(requires restart when enabling, not disabling)

The SetOnFire() function is overwritten to stop Simfphys from spawning the client fire along with vFire, but as both are fire it doesn't really matter. It will only be there for a second anyways with compatibility mode enabled.
Set to 1 if you get an error due to missing function from another addon.
Last edited by NotAKid; 9 Apr, 2020 @ 3:12am
< >
Showing 1-13 of 13 comments
NotAKid  [developer] 9 Apr, 2020 @ 3:14am 
Fixed Bugs
  • IsInitialized Error [4/9/2020]
    Caused by the addon loading before Simfphys was loaded but after vFire loaded.
    Fixed by making the addon run the hook at Server Initialized.

    Originally posted by {kor}Nicholas P. Wilde:
    [ERROR] lua/autorun/vfire_simfphys.lua:38: attempt to call method 'IsInitialized' (a nil value)
    1. fn - lua/autorun/vfire_simfphys.lua:38
    2. unknown - lua/ulib/shared/hook.lua:109

    Originally posted by SleepyNotDead:
    When a car is spawned i get non-stop errors, going into the console reveals this:

    [[vFire] Simfphys Support] lua/autorun/vfire_simfphys.lua:38: attempt to call method 'IsInitialized' (a nil value)
    1. v - lua/autorun/vfire_simfphys.lua:38
    2. unknown - lua/includes/modules/hook.lua:84

  • Dupe & (possibly) Save Immediate Combustion [4/10/2020]
    Caused by the default duplicator tool setting the health of the vehicle to 0 for <0.5 seconds.
    Fixed by making a check if the vehicles health was returned to above 0 after 0.5 seconds before executing explosion timer.

    Originally posted by NotAKid on YouTube (unlisted):
    Video available here. Only affected the normal duplicator and not AdvDupe nor Simfphys Vehicle Duplicator

  • Constant Engine Stalling & Backfire [4/14/2020]
    Caused due to the fire effects being updated yesterday in Simfphys
    Fixed by undoing my previous fix that spammed the SetOnFire() function false

    Originally posted by NotAKid:
    This bug would have most likely gone unnoticed if I had not broken the compatibility convar with the dupe fix. It did nothing when set to 0 or 1 which made my SetOnFire(false) fix activate. Now the convar works and it only overwrites the function on that one vehicle. There is no more hacky spam nor overriding anything globaly. This means no possible addon could conflict with this other than Simfphys if it updates its fire again, and even if it did conflict toggling the convar will fix it. A working failsafe. Yay.
    You can enable or disable the convar and only need to respawn your vehicle when it is disabled instead of having to restart your game completely. Much much better.

  • Vehicle sets on fire once fully repaired [6/29/2020]
    Caused due to Simfphys calling SetOnFire when the health hits 100%
    Fixed by not running the fire code if the health is above 30% of its max

    Originally posted by NotAKid:
    Simfphys can be wack sometimes I guess...?
Last edited by NotAKid; 29 Jun, 2020 @ 5:41pm
>KB> >KEKSQUAD 20 Apr, 2020 @ 5:08pm 
[[vFire] Simfphys Support] lua/autorun/vfire_simfphys.lua:38: attempt to index local 'ent' (a number value)
1. fn - lua/autorun/vfire_simfphys.lua:38
2. unknown - addons/ulib/lua/ulib/shared/hook.lua:109

This seems to come out of nowhere.
NotAKid  [developer] 20 Apr, 2020 @ 5:14pm 
Nothing done before/after? No actions that you think could lead to the error?

I’ll take a look quick. It should not be using ent as a number ;~;
Wolƒe Strider 2 May, 2020 @ 11:43am 
I don't know if this is really a bug or not but I love this addon but I can't use it because it takes off 15 fps just while I'm doing nothing on a fresh map. It seems there's code running in the background when it shouldn't be. Specifically ents.Get All
NotAKid  [developer] 2 May, 2020 @ 3:10pm 
Thats how the addon works. It is a hook that checks for simfphys cars and if they are damaged. I can optimize it a ♥♥♥♥♥♥♥ though hopefully soon because I just thought of 2 new ideas to approach this addon, both which would get rid of any Tick hooks if not all hooks.
King Henry 31 May, 2020 @ 6:44am 
there is no in the simfphy cars
NotAKid  [developer] 27 Jun, 2020 @ 10:23am 
@Wolƒe Strider Shoσter the Think hook was removed so FPS should not be really affected anymore.
@King Henry Not really sure what that means.
Vnom 29 Jun, 2020 @ 4:42pm 
When my vehicle gets damaged slightly and I go to repair it, as soon as it's full health it catches on fire again.
NotAKid  [developer] 29 Jun, 2020 @ 5:33pm 
oh no
NotAKid  [developer] 29 Jun, 2020 @ 5:39pm 
fixed
ralsei gaming 24 Sep, 2022 @ 9:14am 
tried using vfire for simfphys, i try to get my car to catch on fire but it doesn't work, instead of using vfire for simfphys, it uses the default simfphys fire texture and no vfire so some reason, no error messages appear for the addon so idk whats wrong with it.
aydro 21 Feb, 2023 @ 6:28pm 
whenever I dupe my vehicle it works fine, but when I start a new game and load the dupe the vehicle doesnt work?
Casper 16 Aug, 2023 @ 8:40am 
I was using military vehicles like gredwitchs pack, it got caught on fire but the vehicle never exploded i waited for it to explode like 20 minute, can you make an command that multiplies the vehicle damage pls?
< >
Showing 1-13 of 13 comments
Per page: 1530 50