Raised This Month: $319 Target: $400
 79%   Almost there!

[L4D2]Random Tank Rock with props and explosion[v2.1.0]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
King_OXO
Member
Join Date: Dec 2020
Location: Brazil
Plugin ID:
7781
Plugin Version:
2.0.1
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Random Tank Rock with props and explosion
    Old 09-07-2021 , 15:20   [L4D2]Random Tank Rock with props and explosion[v2.1.0]
    Reply With Quote #1

    Description

    this plugin makes that when the tank throws rocks the rock catches fire and when it is destroyed it explodes and also when the tank throws the rock, can spawn a random props: Tree Trunk and Giant Rock

    Related Plugins

    [L4D1 & L4D2] Tank Rock Ignition [v1.1.0 | 17-April-2021] by Marttt

    [L4D1 & L4D2] Random Tank Rock [v1.1.0 | 18-April-2021] by Marttt

    Video:


    Notes


    Changelog


    Commands


    Cvars


    Updates
    Attached Files
    File Type: smx l4d_tank_props_rock.smx (8.4 KB, 5 views)
    File Type: sp Get Plugin or Get Source (l4d_tank_props_rock.sp - 21 views - 10.2 KB)

    Last edited by King_OXO; 10-13-2021 at 14:36. Reason: update
    King_OXO is offline
    Krufftys Killers
    Senior Member
    Join Date: Jan 2014
    Old 09-07-2021 , 20:13   Re: [L4D2]Random Tank Rock with props and explosion[v2.0.0]
    Reply With Quote #2

    Just installed it and getting is error

    SourceMod error session started
    L 09/08/2021 - 00:07:57: Info (map "c6m3_port") (file "/home/container/left4dead2/addons/sourcemod/logs/errors_20210908.log")
    L 09/08/2021 - 00:07:57: [SM] Exception reported: Invalid edict (2353 - -2107631311)
    L 09/08/2021 - 00:07:57: [SM] Blaming: l4d_tank_props_rock.smx
    L 09/08/2021 - 00:07:57: [SM] Call stack trace:
    L 09/08/2021 - 00:07:57: [SM] [0] GetEdictClassname
    L 09/08/2021 - 00:07:57: [SM] [1] Line 122, /home/forums/content/files/3/0/6/7/6/1/191240.attach::OnEntityDestroyed
    L 09/08/2021 - 00:07:57: [SM] Exception reported: Invalid edict (2354 - -2113005262)
    L 09/08/2021 - 00:07:57: [SM] Blaming: l4d_tank_props_rock.smx
    Krufftys Killers is offline
    King_OXO
    Member
    Join Date: Dec 2020
    Location: Brazil
    Old 09-08-2021 , 09:24   Re: [L4D2]Random Tank Rock with props and explosion[v2.0.0]
    Reply With Quote #3

    Quote:
    Originally Posted by Krufftys Killers View Post
    Just installed it and getting is error

    SourceMod error session started
    L 09/08/2021 - 00:07:57: Info (map "c6m3_port") (file "/home/container/left4dead2/addons/sourcemod/logs/errors_20210908.log")
    L 09/08/2021 - 00:07:57: [SM] Exception reported: Invalid edict (2353 - -2107631311)
    L 09/08/2021 - 00:07:57: [SM] Blaming: l4d_tank_props_rock.smx
    L 09/08/2021 - 00:07:57: [SM] Call stack trace:
    L 09/08/2021 - 00:07:57: [SM] [0] GetEdictClassname
    L 09/08/2021 - 00:07:57: [SM] [1] Line 122, /home/forums/content/files/3/0/6/7/6/1/191240.attach::OnEntityDestroyed
    L 09/08/2021 - 00:07:57: [SM] Exception reported: Invalid edict (2354 - -2113005262)
    L 09/08/2021 - 00:07:57: [SM] Blaming: l4d_tank_props_rock.smx
    FIXED
    King_OXO is offline
    Krufftys Killers
    Senior Member
    Join Date: Jan 2014
    Old 09-08-2021 , 12:49   Re: [L4D2]Random Tank Rock with props and explosion[v2.0.1]
    Reply With Quote #4

    now this error
    09/08/2021 - 14:070: SourceMod error session started
    L 09/08/2021 - 14:070: Info (map "c7m2_barge") (file "/home/container/left4dead2/addons/sourcemod/logs/errors_20210908.log")
    L 09/08/2021 - 14:070: [SM] Exception reported: Cannot create new entity when no map is running
    L 09/08/2021 - 14:070: [SM] Blaming: l4d_tank_props_rock.smx
    L 09/08/2021 - 14:070: [SM] Call stack trace:
    L 09/08/2021 - 14:070: [SM] [0] CreateEntityByName
    L 09/08/2021 - 14:070: [SM] [1] Line 124, /home/forums/content/files/3/0/6/7/6/1/191261.attach::OnEntityDestroyed
    L 09/08/2021 - 145:10: Error log file session closed.
    Krufftys Killers is offline
    King_OXO
    Member
    Join Date: Dec 2020
    Location: Brazil
    Old 09-08-2021 , 14:30   Re: [L4D2]Random Tank Rock with props and explosion[v2.0.1]
    Reply With Quote #5

    Quote:
    Originally Posted by Krufftys Killers View Post
    now this error
    09/08/2021 - 14:070: SourceMod error session started
    L 09/08/2021 - 14:070: Info (map "c7m2_barge") (file "/home/container/left4dead2/addons/sourcemod/logs/errors_20210908.log")
    L 09/08/2021 - 14:070: [SM] Exception reported: Cannot create new entity when no map is running
    L 09/08/2021 - 14:070: [SM] Blaming: l4d_tank_props_rock.smx
    L 09/08/2021 - 14:070: [SM] Call stack trace:
    L 09/08/2021 - 14:070: [SM] [0] CreateEntityByName
    L 09/08/2021 - 14:070: [SM] [1] Line 124, /home/forums/content/files/3/0/6/7/6/1/191261.attach::OnEntityDestroyed
    L 09/08/2021 - 145:10: Error log file session closed.
    it is normal, this appears when the map is started, after the map is loaded the plugin works correctly
    if the game or server crashes, let me know

    Last edited by King_OXO; 09-08-2021 at 14:30.
    King_OXO is offline
    Psyk0tik
    AlliedModders Donor
    Join Date: May 2012
    Location: Homeless
    Old 09-08-2021 , 15:32   Re: [L4D2]Random Tank Rock with props and explosion[v2.0.1]
    Reply With Quote #6

    Quote:
    Originally Posted by King_OXO View Post
    it is normal, this appears when the map is started, after the map is loaded the plugin works correctly
    if the game or server crashes, let me know
    Create a variable that is set to "true" inside OnMapStart() and only create new entities if that variable is "true". That's how you can fix the error. Just because it is normal doesn't mean you can ignore it. You still have to code your plugin properly to resolve simple errors like that.
    __________________
    AFK like JFK
    --
    Donate to Motivate
    --
    Get updated L4D/L4D2 gamedata signatures here.
    --
    PM me if you need help with finding signatures and/or offsets in the following games: L4D1&2/CSGO/TF2/NMRIH/INS/DODS/CSS/HL2DM
    Psyk0tik is offline
    King_OXO
    Member
    Join Date: Dec 2020
    Location: Brazil
    Old 10-13-2021 , 13:04   Re: [L4D2]Random Tank Rock with props and explosion[v2.0.1]
    Reply With Quote #7

    NEW UPDATE


    see the initial post to see what has changed

    Last edited by King_OXO; 10-13-2021 at 13:06.
    King_OXO is offline
    MasterMind420
    BANNED
    Join Date: Nov 2010
    Old 10-13-2021 , 13:39   Re: [L4D2]Random Tank Rock with props and explosion[v2.1.0]
    Reply With Quote #8

    You need to provide the source or a link to the source in order to post plugins on allied modders, this post will eventually get flagged otherwise...
    I am curious to look at the code to see what's going on with the errors...not sure why you are creating any entity when they cant be created which is what's causing the error.
    No entity should be created with this type of plugin until the tank actually throws the rock, u can do everything from there.

    Last edited by MasterMind420; 10-13-2021 at 13:43.
    MasterMind420 is offline
    MasterMind420
    BANNED
    Join Date: Nov 2010
    Old 10-13-2021 , 13:48   Re: [L4D2]Random Tank Rock with props and explosion[v2.1.0]
    Reply With Quote #9

    ok it looks like everything is good...except i'm curious if this is a oversight or not...
    line 126...CreateTimer(0.0, Car, entity, TIMER_REPEAT|TIMER_FLAG_NO_MAPCHANGE);
    the lowest possible timer thru createtimer is 0.1....i think 0.0 would just default to that but who knows.
    also for efficiency and to guarantee all netprops Datamaps are available from the tank rock i would use a spawnpost hook instead of nextframe.
    i've seen in some situations where next frame is too early after onentitycreated.
    Good luck...

    Last edited by MasterMind420; 10-13-2021 at 13:51.
    MasterMind420 is offline
    King_OXO
    Member
    Join Date: Dec 2020
    Location: Brazil
    Old 10-13-2021 , 14:05   Re: [L4D2]Random Tank Rock with props and explosion[v2.1.0]
    Reply With Quote #10

    Quote:
    Originally Posted by MasterMind420 View Post
    ok it looks like everything is good...except i'm curious if this is a oversight or not...
    line 126...CreateTimer(0.0, Car, entity, TIMER_REPEAT|TIMER_FLAG_NO_MAPCHANGE);
    the lowest possible timer thru createtimer is 0.1....i think 0.0 would just default to that but who knows.
    also for efficiency and to guarantee all netprops Datamaps are available from the tank rock i would use a spawnpost hook instead of nextframe.
    i've seen in some situations where next frame is too early after onentitycreated.
    Good luck...
    I'll leave it that way because I'm being very careful with the plugin, man.
    because I'm very new to sourcepawn
    King_OXO is offline
    Reply


    Thread Tools
    Display Modes

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 11:06.


    Powered by vBulletin®
    Copyright ©2000 - 2021, vBulletin Solutions, Inc.
    Theme made by Freecode