Raised This Month: $32 Target: $400
 8% 

[L4D2] Objects Spawner [2.0 Reloaded] v2.0.6 (Save Objects Supported)


Post New Thread Reply   
 
Thread Tools Display Modes
Hawkins
Senior Member
Join Date: Jul 2021
Old 11-07-2022 , 13:05   Re: [L4D2] Objects Spawner [2.0 Reloaded] v2.0.6 (Save Objects Supported)
Reply With Quote #271

Those errors were from the file you sent. Thought they would pop up only on newer compiler.
Anyway, here you go:
Attached Files
File Type: sp Get Plugin or Get Source (l4d2_spawn_props.sp - 48 views - 132.5 KB)

Last edited by Hawkins; 11-08-2022 at 13:40.
Hawkins is offline
Iciaria
Member
Join Date: Aug 2022
Old 11-08-2022 , 12:58   Re: [L4D2] Objects Spawner [2.0 Reloaded] v2.0.6 (Save Objects Supported)
Reply With Quote #272

Quote:
Originally Posted by Hawkins View Post
Those errors were from the file you sent. Thought they would pop up only on newer compiler.
Anyway, here you go:
Sorry, I may have messed up the source code during the test.
Attached Files
File Type: sp Get Plugin or Get Source (l4d2_spawn_props.sp - 112 views - 131.3 KB)

Last edited by Iciaria; 11-08-2022 at 13:24. Reason: add
Iciaria is offline
King_OXO
Senior Member
Join Date: Dec 2020
Location: Brazil
Old 07-11-2023 , 15:42   Re: [L4D2] Objects Spawner [2.0 Reloaded] v2.0.6 (Save Objects Supported)
Reply With Quote #273

Quote:
Originally Posted by HarryPotter View Post
I don't know where to post, so I post here.
I made my own l4d2_spawn_props plugin.
And use it to make the Unlimited Map C8.


Based on Sky cfgSparta maps and Zonemod

Now I share my private work here
Latest version always here
it would be nice if you put the grab and release function, but I'm doing it for myself XD
__________________
My Noob Plugins

Discord:WhiteFire#1301
Steam:WhiteFire
Youtube
King_OXO is offline
DonnyAllen
Junior Member
Join Date: Oct 2018
Location: USA
Old 07-28-2023 , 00:13   Re: [L4D2] Objects Spawner [2.0 Reloaded] v2.0.6 (Save Objects Supported)
Reply With Quote #274

Quote:
Originally Posted by Iciaria View Post
Sorry, my English is not good.

I use the version of Harry Potter0, and the splitter is Linux version 1.2.2.
Code:
sm_cvar stripper_version
[SM] Value of cvar "stripper_version": "1.2.2"
sm plugins info l4d2_spawn_props
  Filename: l4d2_spawn_props.smx
  Title: [L4D1/2] Objects Spawner (Let admins spawn any kind of objects)
  Author: honorcode23 & $atanic $pirit & HarryPotter
  Version: 3.7
  URL: http://forums.alliedmods.net/showthread.php?p=1186503
  Status: running
  Timestamp: 09/27/2022 21:23:14
  Hash: 665b615f6c2cb09a3d82a7b8366fc718
There is an error on the c12m5 map. I will put it here because I notice that other maps also seem to have this problem.
The. cfg file generated by the c12m5 stripper will be C12m5 * *, which will cause the configuration file to fail to load. You need to add the following to the server.cfg file:
Code:
//This would seem to force the stripper to use lowercase
sm_cvar stripper_file_lowercase 1
Change C12m5 * in the/addons/stripper/maps path to c12m5 *, and the stripper will work normally.


Objects Spawner error:

When l4d2_spawn_props_autoload = 1 (If I do not set this, the configuration file may not be loaded at all).
An error will be thrown on the c12m5 map:
Code:
L 11/03/2022 - 01:46:32: SourceMod error session started
L 11/03/2022 - 01:46:32: Info (map "c12m5_cornfield") (file "xxxxx/left4dead2/addons/sourcemod/logs/errors_20221103.log")
L 11/03/2022 - 01:46:32: [l4d2_spawn_props.smx] Unable to find the init file!
L 11/03/2022 - 01:46:32: [l4d2_spawn_props.smx] Attempted to load an object file which does not exist (addons/sourcemod/../stripper/plugin_cache/invalid.txt)
I try addons/stripper/plugin_ The cache creates a. txt configuration file.
Every time I enter the c12m5 map from the end of the c12m4 terminal safe house, an error is thrown:
Code:
L 11/03/2022 - 01:58:58: SourceMod error session started
L 11/03/2022 - 01:58:58: Info (map "c12m5_cornfield") (file "XXXXX/left4dead2/addons/sourcemod/logs/errors_20221103.log")
L 11/03/2022 - 01:58:58: [SM] Exception reported: Cannot create new entity when no map is running
L 11/03/2022 - 01:58:58: [SM] Blaming: l4d2_spawn_props.smx
L 11/03/2022 - 01:58:58: [SM] Call stack trace:
L 11/03/2022 - 01:58:58: [SM]   [0] CreateEntityByName
L 11/03/2022 - 01:58:58: [SM]   [1] Line 4052, l4d2_spawn_props.sp::SpawnObjects
L 11/03/2022 - 01:58:58: [SM]   [2] Line 435, l4d2_spawn_props.sp::Event_RoundStart
Unless all players die on this map and start again, the configuration will not be loaded and an error will be thrown.
This also happens in the routing configuration of c9m1. Incomplete configuration will be loaded when entering the map for the first time(Specify from the command line +map c9m1_alleys ,Start server):
The first half of the map will not be generated, while the second half will be generated normally.

I got the same result on the completely reinstalled Linux server, and hard restarted my server during the test.
I am having the same issues as well, i've noticed so far its only on default campaigns, second level at the saferooms, items will save to the cfg but never spawn in, i did get an mp5 to spawn in on dark carnival outside the saferoom 2nd level in the ticket booth area i think... and im also having trouble with spawning objects in decorative and exterior, when pushed either button, it closes the admin panel out.

Quote:
Originally Posted by Hawkins View Post
Those errors were from the file you sent. Thought they would pop up only on newer compiler.
Anyway, here you go:
The smx file cannot be downloaded and when downloading sp and trying to compile too, it gives same error as trying to download the smx, "Your plugin failed to compile! Read the errors below:
SourcePawn Compiler 1.11
Copyright (c) 1997-2006 ITB CompuPhase
Copyright (c) 2004-2021 AlliedModders LLC

/home/groups/sourcemod/upload_tmp/phpy9eMmN.sp( : error 417: cannot read from file: "left4dhooks"

1 Error."
DonnyAllen is offline
Hawkins
Senior Member
Join Date: Jul 2021
Old 07-28-2023 , 11:37   Re: [L4D2] Objects Spawner [2.0 Reloaded] v2.0.6 (Save Objects Supported)
Reply With Quote #275

@DonnyAllen As stated in the error logs, you need Left4DHooks for it to compile and to work.

Quote:
[SM] Exception reported: Cannot create new entity when no map is running
This issue can be solved by using ReQuestFrame function.

PHP Code:
public void OnMapStart()
{
    
g_bLoaded false;
    
HookEvent("round_start"OnRoundStartEventHookMode_PostNoCopy);
    
RequestFrame(LoadModels);
}

public 
void OnRoundStart(Event event, const char[] namebool dontbroadcast)
{
    
ResetPlugin();
    
g_bLoaded false;
    
RequestFrame(LoadModels);
}

void LoadModels()
{
    ... 
Hawkins is offline
LN5005
Member
Join Date: Oct 2022
Location: Mad Universe
Old 12-15-2023 , 18:37   Re: [L4D2] Objects Spawner [2.0 Reloaded] v2.0.6 (Save Objects Supported)
Reply With Quote #276

I modified harry's l4d2_spawn_props to spawn&save entities as VScript's SpawnEntityFromTable. here: https://forums.alliedmods.net/showpo...&postcount=228
LN5005 is offline
mati13372
Junior Member
Join Date: Jan 2024
Old 01-26-2024 , 15:28   Re: [L4D2] Objects Spawner [2.0 Reloaded] v2.0.6 (Save Objects Supported)
Reply With Quote #277

1) i have a problem, anytime i spawn a prop, the whole list comes back to the first 7 items and is so anoying to have to press 9 and search in the list the same prop again
2) anytime i type !savemap it "works" because it creates the .cfg in stripper folder BUT when i start the map again the objects just doesn't spawn, i don't know why, i checked inside the .cfg and everuthing is allright

Last edited by mati13372; 01-26-2024 at 15:43. Reason: added info
mati13372 is offline
HarryPotter
Veteran Member
Join Date: Sep 2017
Location: Taiwan, Asia
Old 01-26-2024 , 15:51   Re: [L4D2] Objects Spawner [2.0 Reloaded] v2.0.6 (Save Objects Supported)
Reply With Quote #278

Quote:
Originally Posted by mati13372 View Post
1) i have a problem, anytime i spawn a prop, the whole list comes back to the first 7 items and is so anoying to have to press 9 and search in the list the same prop again
2) anytime i type !savemap it "works" because it creates the .cfg in stripper folder BUT when i start the map again the objects just doesn't spawn, i don't know why, i checked inside the .cfg and everuthing is allright
Try use my version
https://github.com/fbef0102/L4D1_2-P...d2_spawn_props

Quote:
Originally Posted by mati13372 View Post

Quote:
Originally Posted by HarryPotter View Post
If want to create more objects with sourcemod stripper
https://github.com/fbef0102/L4D1_2-P...d2_spawn_props
already have it! thanks!
__________________

Last edited by HarryPotter; 01-26-2024 at 15:54.
HarryPotter 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 04:59.


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