PDA

View Full Version : Save entities spawned with e_spawnprop



Nightmare
Nov 18, 2007, 01:03 PM
I finally got SourceOP running with Sourceforts and it is fun to spawn entities with e_spawnprop.
The problem is: they dissapear for other players if you disconnect (like the command e_removespawned).

There should be an option to save them until the map is over (even if you disconnect) or better to save them to a file.
Cool would be also if you can optionally auto-load the saved file if you play the map again.

OmegaZero_Alpha
Nov 18, 2007, 07:33 PM
"Cool would be also if you can optionally auto-load the saved file if you play the map again."

Don't we have this? I know that Dark Fox had this on every map on his server with the first AdminOP, if we don't have it we will probably implement it.

Naquadria
Nov 18, 2007, 07:50 PM
It's on the list for sourceop but it hasn't been done as of yet.

Drunken F00l
Nov 20, 2007, 12:32 AM
The fact that the entities dissapear when you disconnect is by design. I can add a CVAR or something that will allow you to disable this. Saving them to a file is a little more complicated, but it is something that I am working on.

Can you post what you did to get SourceOP working for SourceForts in another thread in case other people are interested?

DaftMink
Apr 06, 2008, 12:41 PM
I can see where objects disappearing would be a good idea, but i have problems with it.

I have a problem with admins deleting vital map objects and remaking them to look and function better, but when they disconnect it vanishes. I would love if you could make a cvar to keep them till the map changes.

Drunken F00l
Apr 06, 2008, 02:18 PM
I've added a CVAR called DF_spawn_removeondisconnect for the next version. The next version will be released for games on the Orange Box engine only. Valve will be porting their games (CSS, HL2DM, etc.) to the Orange Box engine, it's just unknown when that will be completed.

If this feature would really help you out and you need it now, I could post a special version of SourceOP with this feature added.

DaftMink
Apr 06, 2008, 03:47 PM
I would greatly appreciate it.

Also if you could include a cvar to make 100 frags at once credit worthy that would be great. :)

Drunken F00l
Apr 06, 2008, 06:42 PM
OK, here is a DLL with added CVARs DF_credits_maxpointsatonce and DF_spawn_removeondisconnect. For you, set DF_credits_maxpointsatonce to at least 100 and DF_spawn_removeondisconnect to 0.

Download:
http://www.sourceop.com/downloads/SourceOP/special_r147/sourceop.dll

DaftMink
Apr 06, 2008, 08:00 PM
Hmm i tried it and it didn't seem to work.

I extract it to my addons folder, if it doesn't go there can you please provide a path to the file.

I just wanted to say I'm running a linux server, hope that doesn't mess any thing up.

Drunken F00l
Apr 06, 2008, 10:19 PM
Oh, Linux. That means I would have to compile it in Linux. The DLL I gave you is for Windows.

The_Ghost
Apr 07, 2008, 06:18 AM
So did you fix it so that the props and other stuff would stay after you leave cause that would be great.

DaftMink
Apr 07, 2008, 07:41 AM
Oh, Linux. That means I would have to compile it in Linux. The DLL I gave you is for Windows.
Ahh i was wondering why i couldn't use it.

Do you think you can get me a linux version by the end of today ?.

Drunken F00l
Apr 07, 2008, 02:51 PM
http://www.sourceop.com/downloads/SourceOP/special_r147/sourceop_i486.so

replace your existing sourceop_i486.so file with this one here.

The_Ghost
Apr 07, 2008, 04:10 PM
I downloaded that file that you have posted is it for a windows server and where is that file located.

Thanks :D

DaftMink
Apr 07, 2008, 04:34 PM
If your looking for the window file you should refer back to this post.


OK, here is a DLL with added CVARs DF_credits_maxpointsatonce and DF_spawn_removeondisconnect. For you, set DF_credits_maxpointsatonce to at least 100 and DF_spawn_removeondisconnect to 0.

Download:
http://www.sourceop.com/downloads/SourceOP/special_r147/sourceop.dll
I believe that file goes in the addons folder, I'm not quite sure tho.

Also thanks so much Drunken_F00l :)

Drunken F00l
Apr 07, 2008, 07:25 PM
The file replaces the old one. The old one is typically not in the addons folder but is in the <srcds root>\bin folder. By srcds root I mean the folder that srcds.exe is in. From there go to the bin folder and you should see the sourceop.dll or sourceop_i486.so file.

The_Ghost
Apr 08, 2008, 06:04 AM
OK I replaced that dll file, what else do I do.

Drunken F00l
Apr 08, 2008, 12:23 PM
You're done. The new DLL has the two new CVARs mentioned earlier. Add them and the desired value to addons\cfg\sourceop.cfg.

The_Ghost
Apr 08, 2008, 03:29 PM
when you say them what. I put the file in do i need to make the text documents to. If I do what does in them.

DaftMink
Apr 08, 2008, 04:31 PM
The SourceOp.cfg is located here.


addons\cfg\SoucreOp\sourceop.cfg
Tho i just find it easier to enable them all in my server.cfg. :?

Also thanks alot Drunk, I had no idea e_spawnjeep was enabled in this new .so file, buggy tho it may be. :?

The_Ghost
Apr 08, 2008, 06:20 PM
What do I put??

Drunken F00l
Apr 09, 2008, 02:19 AM
Add:



DF_spawn_removeondisconnect 0

The_Ghost
Apr 09, 2008, 06:04 AM
I put the file in and everything but I did some thing wrong cause it's not working for me. I dont think I have the dll file in the right place.

Drunken F00l
Apr 09, 2008, 11:35 AM
I told you just to overwrite the old one. The old one is located in your srcds\bin folder. If you can't figure it out from that then I'm sorry. I don't know what else to tell you.

The_Ghost
Apr 09, 2008, 09:51 PM
I put the dll file in the folder and let it overwrite. For the DF_spawn_removeondisconnect do I just make a text file and call it that name and put 0 inside of it?

Sorry to be a bother.

Thanks :D

Drunken F00l
Apr 09, 2008, 11:04 PM
No, you put what I said in the "Code:" box above either into your server.cfg or sourceop.cfg file.

dyuha
Jun 23, 2010, 04:33 AM
Can you add DF_spawn_removeondisconnect cvar in this version of SourceOP (0.9.0 Linux) http://www.sourceop.com/modules.php?name=Downloads&d_op=getit&lid=14
I would be very greatful if you will add cvar DF_thruster_removeondisconnect
becouse sometimes players disconnect and remove they thrusters.
Then they join again they can't use this thrusters. I wan't to have a cvar what allows players to use they thrusters again after they reconnected to the server.

P.S. Sorry for my English =).

Drunken F00l
Jun 23, 2010, 11:59 AM
I can't add a CVAR DF_thruster_removeondisconnect because the thrusters are tied to the player's slot number in the server. If the player disconnects and comes back later, there is no guarantee they will have the same slot.

dyuha
Jun 23, 2010, 01:04 PM
Ok, can you just add DF_spawn_removeondisconnect in this version of SourceOP ? (Linux)

dyuha
Jun 23, 2010, 04:52 PM
I tried this version http://www.sourceop.com/downloads/SourceOP/special_r147/sourceop_i486.so but if you create a door it will crash a server (I made doors using my own plugin on eventscripts,it's just use Ent_fire command with sv_cheats 0)
In version 0.9.0 ( http://www.sourceop.com/modules.php?.9.0 http://www.sourceop.com/modules.php? ) I can create working doors .

And size of 0.9.0 is much bigger than version of plugin in this thread I think it means something

Another problem is then somebody gets in airboat it makes all players look in specific point (it sets they angle)

I tried to fix it using eventscripts but I don't know how to detect airboat. There aren't command in eventscripts to get model path or something like this. There are way to get it in source pawn but I don't know source pawn such good as eventscripts.

If you will not help me with airboat I
think I'll just try this:
Then somebody gets in the airboat plugin will get angles of each player and then sets it again. ( airboat changes player's angles in few
seconds after someone gets in and there are time to reset players angles)
Again,
Sorry for my English

Drunken F00l
Jun 24, 2010, 11:21 AM
I tried this version http://www.sourceop.com/downloads/SourceOP/special_r147/sourceop_i486.so but if you create a door it will crash a server (I made doors using my own plugin on eventscripts,it's just use Ent_fire command with sv_cheats 0)
In version 0.9.0 ( http://www.sourceop.com/modules.php?.9.0 http://www.sourceop.com/modules.php? ) I can create working doors .
I can't really help unless you post a stack trace from the core dump. When the server crashes, it should make a new core file in the same folder as srcds_run. Do:
gdb ./srcds_i486 <name>
And then when gdb loads, type bt and copy and paste the output here.


And size of 0.9.0 is much bigger than version of plugin in this thread I think it means something
No.


Another problem is then somebody gets in airboat it makes all players look in specific point (it sets they angle)
This is a bug in the game, not any plugin. The airboat was only meant for single player.

dyuha
Jun 24, 2010, 02:03 PM
Soory, my hosting doesn't allow me to view this files (folder). But know, that version of SourceOP from downloads works pretty good and doesn't have this bug with doors.

Can you just add cvar DF_spawn_removeondisconnect in this version?

It will really helps me.

Now I have to create own autobuild plugin for every building to save it or create it very fast (few seconds).

But autobuild can works faster if I will use e_spawnprop and +copyent command.

But entitys spawned with e_spawnprop or +copyent then you disconnect.

Drunken F00l
Jun 24, 2010, 08:08 PM
Can you just add cvar DF_spawn_removeondisconnect in this version?
That's exactly what this is:
http://www.sourceop.com/downloads/SourceOP/special_r147/sourceop_i486.so

I don't know why spawning doors is suddenly crashing for you. Perhaps post what commands you are using and when it crashes and I will see if I can reproduce the problem.