AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [L4D2] Objects Spawner [2.0 Reloaded] v2.0.6 (Save Objects Supported) (https://forums.alliedmods.net/showthread.php?t=127418)

Hawkins 11-07-2022 13:05

Re: [L4D2] Objects Spawner [2.0 Reloaded] v2.0.6 (Save Objects Supported)
 
2 Attachment(s)
Those errors were from the file you sent. Thought they would pop up only on newer compiler.
Anyway, here you go:

Iciaria 11-08-2022 12:58

Re: [L4D2] Objects Spawner [2.0 Reloaded] v2.0.6 (Save Objects Supported)
 
1 Attachment(s)
Quote:

Originally Posted by Hawkins (Post 2792342)
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.

King_OXO 07-11-2023 15:42

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

Originally Posted by HarryPotter (Post 2744432)
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

DonnyAllen 07-28-2023 00:13

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

Originally Posted by Iciaria (Post 2792034)
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 (Post 2792342)
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(8) : error 417: cannot read from file: "left4dhooks"

1 Error."

Hawkins 07-28-2023 11:37

Re: [L4D2] Objects Spawner [2.0 Reloaded] v2.0.6 (Save Objects Supported)
 
@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()
{
    ... 


LN5005 12-15-2023 18:37

Re: [L4D2] Objects Spawner [2.0 Reloaded] v2.0.6 (Save Objects Supported)
 
I modified harry's l4d2_spawn_props to spawn&save entities as VScript's SpawnEntityFromTable. here: https://forums.alliedmods.net/showpo...&postcount=228

mati13372 01-26-2024 15:28

Re: [L4D2] Objects Spawner [2.0 Reloaded] v2.0.6 (Save Objects Supported)
 
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

HarryPotter 01-26-2024 15:51

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

Originally Posted by mati13372 (Post 2816731)
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 (Post 2816723)

Quote:

Originally Posted by HarryPotter (Post 2816576)
If want to create more objects with sourcemod stripper
https://github.com/fbef0102/L4D1_2-P...d2_spawn_props

already have it! thanks!



All times are GMT -4. The time now is 02:29.

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