Make sure you did what tltrude said GARRAPIGNADO.
A BOX DROPPED IN YOUR HEAD
Moderator: Moderators
- MasterMind
- Major
- Posts: 316
- Joined: Thu Jul 15, 2004 12:10 am
- GARRAPIGNADO
- Corporal
- Posts: 49
- Joined: Mon Aug 09, 2004 5:43 pm
- Contact:
Hi again.
I have some news: I have a problem to run the script.
I put the bsp and the scr into a working pk3 (with another map inside it). The mapa_base script didnt load, but the other did.
I believe that there's no problem with the names, cause they are very simple!!!
I test the script with
setcvar "g_obj_alliedtext1" "TEST"
but it didnt work, so, there is a basic problem of scripting, not in your methods.
It must be so basic that I'm can't find it
I tried including
level.script = maps/dm/mapa_base.scr
but it doesnt work.
I surrender. It's silly, but I can't find it
If anyone wants to help me, mailme to garrapignado@hotmail.com, and I'll send him the pk3. It's around 5kb, not big, jejejeje.
But I repit: only if want.
Thanks all. I'll keep asking and answering if I can!

I have some news: I have a problem to run the script.
I put the bsp and the scr into a working pk3 (with another map inside it). The mapa_base script didnt load, but the other did.
I believe that there's no problem with the names, cause they are very simple!!!
I test the script with
setcvar "g_obj_alliedtext1" "TEST"
but it didnt work, so, there is a basic problem of scripting, not in your methods.
It must be so basic that I'm can't find it
I tried including
level.script = maps/dm/mapa_base.scr
but it doesnt work.
I surrender. It's silly, but I can't find it
If anyone wants to help me, mailme to garrapignado@hotmail.com, and I'll send him the pk3. It's around 5kb, not big, jejejeje.
But I repit: only if want.
Thanks all. I'll keep asking and answering if I can!
- MasterMind
- Major
- Posts: 316
- Joined: Thu Jul 15, 2004 12:10 am
- GARRAPIGNADO
- Corporal
- Posts: 49
- Joined: Mon Aug 09, 2004 5:43 pm
- Contact:
- MasterMind
- Major
- Posts: 316
- Joined: Thu Jul 15, 2004 12:10 am
- GARRAPIGNADO
- Corporal
- Posts: 49
- Joined: Mon Aug 09, 2004 5:43 pm
- Contact:
- MasterMind
- Major
- Posts: 316
- Joined: Thu Jul 15, 2004 12:10 am
- MasterMind
- Major
- Posts: 316
- Joined: Thu Jul 15, 2004 12:10 am
- GARRAPIGNADO
- Corporal
- Posts: 49
- Joined: Mon Aug 09, 2004 5:43 pm
- Contact:
Yes, I have done the logfile 1, but there isn't any visible error.
All the lines are about ubersound and precache.
Only a strange line: R_LevelMarksLoad: maps/dm/mapa_base.dcl not found
But I don't knows what it is.
The problem is that I have other scripts made by me and running well. And this one, worked with other things (a plane, for example), but now not.
All the lines are about ubersound and precache.
Only a strange line: R_LevelMarksLoad: maps/dm/mapa_base.dcl not found
But I don't knows what it is.
The problem is that I have other scripts made by me and running well. And this one, worked with other things (a plane, for example), but now not.
- GARRAPIGNADO
- Corporal
- Posts: 49
- Joined: Mon Aug 09, 2004 5:43 pm
- Contact:
Hey guys!!! I've found something. This code doesn't work (the message doesn't show):
But this one, shows the message:
So, the problem is in the dealing of the boxDrop subrutine. I tried with the three you gave me.
(We're near the solution)

Note: anyone of my other scripts uses threads
Code: Select all
main:
setcvar "g_obj_alliedtext1" "SCRIPT TEST"
level waittill spawn
thread boxDrop
end
boxDrop:
$switch wattill trigger
$switch nottriggerable
$box physics_on
$box waittill touch
$box explode 100 // or use radiusdamage
endCode: Select all
//TEST MAP
//BY GARRAPIGNADO[&Co]
//
main:
setcvar "g_obj_alliedtext1" "SCRIPT TEST"
level waittill spawn
endSo, the problem is in the dealing of the boxDrop subrutine. I tried with the three you gave me.
(We're near the solution)
Note: anyone of my other scripts uses threads
- GARRAPIGNADO
- Corporal
- Posts: 49
- Joined: Mon Aug 09, 2004 5:43 pm
- Contact:
A silly question:
Is the same if I write in this two ways??
And:
It's only a visual thing, isn't it??
Is the same if I write in this two ways??
Code: Select all
main:
setcvar "g_obj_alliedtext1" "SCRIPT TEST"
level waittill spawn
thread boxDrop
end
boxDrop:
$switch wattill trigger
$switch nottriggerable
$box physics_on
$box waittill touch
$box explode 100 // or use radiusdamage
endCode: Select all
main:
setcvar "g_obj_alliedtext1" "SCRIPT TEST"
level waittill spawn
thread boxDrop
end
boxDrop:
$switch wattill trigger
$switch nottriggerable
$box physics_on
$box waittill touch
$box explode 100 // or use radiusdamage
end- MasterMind
- Major
- Posts: 316
- Joined: Thu Jul 15, 2004 12:10 am
- GARRAPIGNADO
- Corporal
- Posts: 49
- Joined: Mon Aug 09, 2004 5:43 pm
- Contact:
Oh, thanks bdbodger, that's one of the mistakes, but not the only one
See this. I have disconnected the lines (with //) and then, I have delete a // each time and test the map.
With this code, it show the text:
But, with this one, doesn't show:
The solution is a bit nearest thanks to your help!!!

See this. I have disconnected the lines (with //) and then, I have delete a // each time and test the map.
With this code, it show the text:
Code: Select all
main:
setcvar "g_obj_alliedtext1" "SCRIPT TEST"
level waittill spawn
thread box_drop
end
box_drop:
// $switch waittill trigger
// $switch nottriggerable
// $box physics_on
// $box waittill touch
// $box explode 100 // or use radiusdamage
endCode: Select all
main:
setcvar "g_obj_alliedtext1" "SCRIPT TEST"
level waittill spawn
thread box_drop
end
box_drop:
$switch waittill trigger <----see this line
// $switch nottriggerable
// $box physics_on
// $box waittill touch
// $box explode 100 // or use radiusdamage
end
