Hey guys, I just finished my beta version of a mansion map. Its an obj where the object is to steal 4 documents placed throughout the house. All the scripting is done and working, no problems whith the dry runs on my own computer-based server. When i load it up, and the round ends, a new round starts no prob. But when we put it on the clan server (and by we i mean one of the other clan admins) it doesn't run smooth. After the round completes, the server restarts, dumping everyone in it, andgoing back to the first map on the rotation. Any clue why it doesnt work on the server box, but it will run off a pc? below is a copy of the scr file, let me know if the error could be in there. Thanks.
// Mansion
// Created by URC-Special
// E-Mail: everdrummin@comcast.net
main:
setcvar "g_obj_alliedtext1" "Prevent the Axis"
setcvar "g_obj_alliedtext2" "From Stealing"
setcvar "g_obj_alliedtext3" "Your Documents"
setcvar "g_obj_axistext1" " Get Those Papers!"
setcvar "g_obj_axistext2" "If it Flashes Red, hit the"
setcvar "g_obj_axistext3" "'Use' Key to Snatch it."
setcvar "g_scoreboardpic" "Mansion.tga"
level waittill prespawn
exec global/DMprecache.scr
level.script = maps/obj/mansion.scr
exec global/ambient.scr mohdm4
level waittill spawn
level.targets_to_destroy = 4
level.dmrespawning = 1
level.dmroundlimit = 5
level.clockside = allies
level waittill roundstart
$documents_trigger thread desk_document_check
$documents2_trigger thread desk_document2_check
$documents3_trigger thread desk_document3_check
$documents4_trigger thread desk_document4_check
thread axis_win_bomb
thread allies_win_timer
end
axis_win_bomb:
while(level.targets_destroyed < level.targets_to_destroy)
waitframe
teamwin axis
end
allies_win_timer:
level waittill allieswin
end
desk_document_check:
while(1) {
$documents_trigger waittill trigger
if(parm.other.dmteam == axis)
{
$documents hide
level.targets_destroyed ++
break
}
waitframe
}
end
desk_document2_check:
while(1) {
$documents2_trigger waittill trigger
if(parm.other.dmteam == axis)
{
$documents2 hide
level.targets_destroyed ++
break
}
waitframe
}
end
desk_document3_check:
while(1) {
$documents3_trigger waittill trigger
if(parm.other.dmteam == axis)
{
$documents3 hide
level.targets_destroyed ++
break
}
waitframe
}
end
desk_document4_check:
while(1) {
$documents4_trigger waittill trigger
if(parm.other.dmteam == axis)
{
$documents4 hide
level.targets_destroyed ++
break
}
waitframe
}
end
ps if anyone wants to have a copy of the map let me know, email - pandrewmcguiness@hotmail.com I hand made a pool table, with all croping, whose pockets catch your grenades (a fun little side game) and i functioned some walls like windows, so you can blast your way through them. I can give you map and bak files, especially if you wanna use the pool table in any of your maps.
Great new map that wont restart
Moderator: Moderators
The script looks ok to me as well, but I would modify your document threads a little for some feedback to the player and disable the triggers.
As for the server crashing, that's an unkown..
Grassy
As for the server crashing, that's an unkown..
Code: Select all
desk_document4_check:
while(1)
{
$documents4_trigger waittill trigger
if(parm.other.dmteam == axis)
{
parm.other iprint "You have the documents"
$documents4 hide
level.targets_destroyed ++
$documents4_trigger nottriggerable
}
waitframe
}
end An ambiguous question will get a similar answer...
-
Bjarne BZR
- Site Admin
- Posts: 3298
- Joined: Wed Feb 05, 2003 2:04 pm
- Location: Sweden
- Contact:
Re: Great new map that wont restart
Welcome to .Map urc-special 

( You can nade in those pockets as well
If you like billiards tables, you can also use mine from Vemork factory:urc-special wrote:I can give you map and bak files, especially if you wanna use the pool table in any of your maps.

( You can nade in those pockets as well
Re: Great new map that wont restart
I'm still missing the weapons mod to finally get a useable queueBjarne BZR wrote:If you like billiards tables, you can also use mine from Vemork factory (You can nade in those pockets as wellurc-special wrote:I can give you map and bak files, especially if you wanna use the pool table in any of your maps.
-
urc-special
- Private
- Posts: 6
- Joined: Wed Apr 13, 2005 3:26 am
Now working queus and rolling balls, that would be somethin, lol, but thanks for the feedback guys, I will infact put that extra line in there, I also realised I had just absent mindedly put all of the MBuilder files in the pk3, as opposed to just the .bsp and .min... Would that cause the error? That is, having the .map .bak .lin and .vis in the file as well? Idont think so, but yah never know. Also, does the message go to all? if not how would i change that line so that everyone sees that a document has been stolen, there are four in fact it would be very usefull to the allies. You may notice i am not much of a scripter, that .scr was all done off of this site's tutorials.
-
urc-special
- Private
- Posts: 6
- Joined: Wed Apr 13, 2005 3:26 am
Well, i just tried my newest version on my own computer.. and at the end of the round it crashed my game, and my freind who was connected to me. So there was a mistake made inbetween the time that i played it on my own server origionally and it worked, and the next version that i sent to my clanmates to put on the clan server... do i need a line in the scr to restart the loop, so that it starts over or anything like that? Also im still interested in getting text to show to everyone after a document is stolen.

