Forum

> > CS2D > Scripts > Script crashes randomly, random people ?
Forums overviewCS2D overview Scripts overviewLog in to reply

English Script crashes randomly, random people ?

3 replies
To the start Previous 1 Next To the start

old Script crashes randomly, random people ?

Rainoth
Moderator Off Offline

Quote
I've made (and still updating) a script that works similar to "HC// Fun" server script. And of course, I added a lot more and more interesting rounds. The thing is, although it works, it sometimes crashes people. Randomly. Sometimes it crashes 10/10 people, sometimes 7/10 sometimes few less, sometimes it doesn't crash people and they play normally. The "crash" occurs in a sense that round ends and new round is supposed to begin, but it doesn't cause you've crashed. On prespawn, a variable is picked randomly and put to decide the current round (if you've playd in HC, you'll know what I'm talking about). Then, on round start, the arena (as in de_dust map) is set up. All kinds of buildings (depending on settings of round) are placed, people are spawned randomly or not etc. etc. At first I thought that the server can't handle the amount of buildings placed at the same time, but it's not the case unfortunately. I have no clue so as to why this happens as I don't get any errors either.

I don't really want to post the code before hand, except send it privately if you're skilled and willing to help. I'll release it quite soon anyway when the time comes and I don't want to do it before that time.

Hope you have any idea why people might crash and can tell me about it. Thanks in advance

old Re: Script crashes randomly, random people ?

VADemon
User Off Offline

Quote
You know that CS2D crashes when there're no spawnpoints to spawn at. If you spawn players manually (with the script) it may be possible for players with high ping not to receive the command to spawn before their CS2D decides to spawn them in the vanilla-way. That's what I understood from your description

old Re: Script crashes randomly, random people ?

Rainoth
Moderator Off Offline

Quote
@user Infinite Rain: I will. I asked Happy Camper about it, long ago. I find the current HC script fun but definitely not to it's maximum potential. I've got unique ideas and I get other people to suggest things that could be cool. I'm original.

@user VADemon: That is not the case.
Prespawn > Spawn > Startround

I use cs2d cmd setpos to place the people. And it's not the case either cause crashes happen on rounds where the round doesn't require me to move the players (so they spawn at original de_dust spawns like always but aren't moved)
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview