SphereCommunity
World Background Spawner - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Submissions (/Forum-Script-Submissions)
+--- Thread: World Background Spawner (/Thread-World-Background-Spawner)

Pages: 1 2 3 4


RE: World Background Spawner - Mordaunt - 12-18-2012 12:37 PM

v1.9 Uploaded:

NEW: "Red Spawns" script will now randomly place monster spawn groups according to terrain and % chance set in defs
"Graveyard Spawning" script will now place undead spawns in graveyards according to settings in defs


RE: World Background Spawner - htid4life - 12-19-2012 01:48 AM

So i think you should do dungeons now get off your backside n do it !!!


RE: World Background Spawner - Mordaunt - 01-05-2013 08:19 AM

v1.9a
Updated instructions for use with SCP


RE: World Background Spawner - oONautilusOo - 01-25-2013 10:37 PM

Hi Mordaunt,

I'm currently setting up this awesome tool! I can see how the basics of it work. In the instructions you mention

"Overwrite default sphere_types.scp file with the one containing t_forest & t_jungle (requires server restart)"

Where would i get the new sphere_types.scp i downloaded the community pack for ease of use. have edited all the string names to fit. however cannot find this file.

Also you have "gembit_gap 20 //gap between gembits (suggested: water ~200, forest & grass ~75, town & jungle ~50, sand, snow & swamp ~40, dirt ~30, GY 20)"

Is there a way to set this for each area or is the 1 option here the only one available. If possible could you advise me how to do each individual area?

Thanks for your time in advance Smile


RE: World Background Spawner - Mordaunt - 01-26-2013 12:01 AM

the sphere_types.scp file is in your scripts folder, however if when you originally installed sphere you also grabbed and installed the base script package that is listed alongside the download, then that file already contains those types as I submitted them for inclusion since they would benefit the server as a whole.

I have been trying to come up with a way to have the server spawn all the terrrain types as once without it having to loop over the map multiple times to do so, as I think that may be a little too much and cause the server to hang. However as of the last time I had a go at it it was unsuccessful.
So in order to spawn terrains with different gembit gaps, unfortunately, what you have to do is turn on the ones you want in the defs, turn off the others, set the gembit gap, save, resync, do the function and then repeat. A bit of a hassle yes, but still like a thousand times faster than having to go and spawn the world manually.

water ~200, forest & grass ~75, town & jungle ~50, sand, snow & swamp ~40, dirt ~30, GY 20

Those numbers are the gaps I came up with that seemed to work best (for me I must add) so if yuo were to follow them you would only have to tweak and run the function 6 times, assuming that you are spawning water.


RE: World Background Spawner - Soulless - 03-02-2013 11:11 PM

just wanted to say this is brilliant, though i dont need it Sad sad days. ive had the same world map for 8 years.


RE: World Background Spawner - Xan - 05-10-2013 09:53 AM

OK, so the past few days I've been wracking my brain trying to solve this on my own but alas, I have to ask...

How do you spawn the other facets? I see in the installation instructions you have .spawnbackground <mapplane> but what exactly should I be using for <mapplane>? I've tried .spawnbackground map2, .spawnbackground map 2, .spawnbackground Malas, (and all other combinations for the various facets). and the only thing that happens is a message to my client saying that "Spawning for Map: 0 Complete!" and on the server a message that says 19:49:(function_spawnbackground.scp,184)Spawning Mapplane 0.

I know there's gotta be something painfully obvious that I'm missing here to get this to work.

I must say though, awesome script (even if I can only get it working for the first map Tongue)


RE: World Background Spawner - Mordaunt - 05-10-2013 11:02 AM

Yeah it's simpler than you think <mapplane> is just the number of the map you want to spawn.

.spawnbackground
.spawnbackground 1
.spawnbackground 2
.spawnbackground 3
.spawnbackground 4
.spawnbackground 5

No longer needed in gumped version


RE: World Background Spawner - Xan - 05-10-2013 12:38 PM

LOL, yep that did it! Thanks Mordaunt. It was starting to drive me crazy.


RE: World Background Spawner - Mordaunt - 05-10-2013 08:55 PM

np Wink