View Full Version : Fraggle Script Is Driving Me Mad
Doom_Dude
June 1st, 2003, 08:46 AM
I can't seem to get a simple function to work in FS. I edited my doomcad .ini file to add the FS specific linetypes 272 through 279.
I tried to get FS to do a couple different things using the tutorials on Relliks site. So anyhow this is my simple code to try and get legacy to display a message when trodding over linetype 273..
<BLOCKQUOTE><font size="1" face="Trebuchet MS, Arial, Helvetica, serif">code:</font><hr width="100%" size="1" noshade><pre>
//Doom_Dudes Fraggle Jobby
script 22
{
timedtip(100, "Welcome To The SciComp Facility\n");
}</pre><hr width="100%" size="1" noshade></BLOCKQUOTE>
The line has a trigger tag of 22. I'm using notepad to make my script and I'm saving it as a .fs file. I'm inserting the .fs file in my wad with XWE and have it named FRAGS.FS in my wad which I'm placing above any and all markers in the .wad I tried to change the 100 to 200 and 300 and tried some other things but nothing works.
I tried to get this to work for over an hour. I looked in other wads to see how ppl's FS were set up. I tried changing the linetypes and tried merging my map.wad file with my resource.wad file because I thought maybe Legacy didn't like the FS file being in a secondary wad. Well that didn't work. I tried to do other FS stuff as well, like have it change the music at the levels start by using the startscript(22); at the end of my script... I have no idea what I'm doing wrong. It just isn't working and I've been in and out of my map about 50 times at least. Does anybody have any suggestions?
------------------
Vilecore@The Megawad (http://megawad.newdoom.com)
http://megawad.newdoom.com/sig/vilesig1.GIF
The NewdooM Community Project (http://megawad.newdoom.com/ndcp)
Pate
June 1st, 2003, 09:19 AM
Are you trying to add the fs as an independent lump? That won't work, because it has to be in the "level marker" lump. Just try adding it with add_fs.exe that comes with Legacy.
------------------
Tired of crappy Doom editors? So was I, that's why I'm coding my own (http://www.hut.fi/~jpakkane/why/).
Pate
June 1st, 2003, 09:22 AM
Also, you should have [Scripts] there somewhere before the actual scripts.
------------------
Tired of crappy Doom editors? So was I, that's why I'm coding my own (http://www.hut.fi/~jpakkane/why/).
Doom_Dude
June 1st, 2003, 09:52 AM
Thanx for the help Pate. Dos isn't agreeing with me at the moment so I'll try this again later. I suck at this dos crap and so I tried making a shortcut with all the BS in the shortcut but it crashed and I had to reboot. Bleagh.
------------------
Vilecore@The Megawad (http://megawad.newdoom.com)
http://megawad.newdoom.com/sig/vilesig1.GIF
The NewdooM Community Project (http://megawad.newdoom.com/ndcp)
DarkWolf
June 1st, 2003, 10:03 AM
Yeah the script has to be loaded into the MAPXX or EXMX lumps.
------------------
-DarkWolf
Hurdler
June 1st, 2003, 01:10 PM
we might compile add_fs as a DOS program rather than a win32 one. If any volunteer, you can send me it by e-mail for the next release.
------------------
Member of the DooM Legacy Team
Rellik_jmd
June 1st, 2003, 01:22 PM
Have you tried using the little widget that Alio made me? It's a windows frontend jobby where you put in the name of the wad and the name of the .fs file and hit run and it shits out the finished wad. http://forums.newdoom.com/UBB/smile.gif
------------------
DOOM Legacy Website Guy (http://legacy.newdoom.com/)
Webmaster The Legacy Editing Resource (http://legacy.newdoom.com/der/).
Webmaster Discharge! DeathMatch Level Reviews (http://www.telusplanet.net/public/daewoo/server/).
Pate
June 1st, 2003, 01:29 PM
You can also add FS easily using Why. Just use the "Import map info" button.
------------------
Tired of crappy Doom editors? So was I, that's why I'm coding my own (http://www.hut.fi/~jpakkane/why/).
DarkWolf
June 1st, 2003, 01:38 PM
NWT =D
------------------
-DarkWolf
iori
June 1st, 2003, 02:40 PM
I use the klassic "batch file" http://forums.newdoom.com/UBB/smilies/cwm4.gif
Doom_Dude
June 1st, 2003, 02:58 PM
<BLOCKQUOTE><font size="1" face="Trebuchet MS, Arial, Helvetica, serif">quote:</font><hr width="100%" size="1" noshade><font face="Trebuchet MS, Arial, Helvetica, serif" size="2">Have you tried using the little widget that Alio made me? It's a windows frontend jobby where you put in the name of the wad and the name of the .fs file and hit run and it shits out the finished wad.</font><hr width="100%" size="1" noshade></BLOCKQUOTE>
I thought Alio made you a jobby but I couldn't find it on your site. I'll look again because I definitely need it. DOS just makes me pissed off.
Anouther FS question. Should I be doing the FS bits when I'm done all the other work on my map? How do you guys do it?
<BLOCKQUOTE><font size="1" face="Trebuchet MS, Arial, Helvetica, serif">quote:</font><hr width="100%" size="1" noshade><font face="Trebuchet MS, Arial, Helvetica, serif" size="2">we might compile add_fs as a DOS program rather than a win32 one. If any volunteer, you can send me it by e-mail for the next release.</font><hr width="100%" size="1" noshade></BLOCKQUOTE>
Ummmmmmm as far as I could tell it IS a DOS program already. Isn't it? Or did I miss the Win version someplace? Cause that's what I need.
Ah well I'll get that Alio thing Rellik mentioned or go and find Pate's Why. Geez something gotta work. It's damned frustrating to spend hours trying to get one dumb message on the danged screen. :/
------------------
Vilecore@The Megawad (http://megawad.newdoom.com)
http://megawad.newdoom.com/sig/vilesig1.GIF
The NewdooM Community Project (http://megawad.newdoom.com/ndcp)
DarkWolf
June 1st, 2003, 03:00 PM
<BLOCKQUOTE><font size="1" face="Trebuchet MS, Arial, Helvetica, serif">quote:</font><hr width="100%" size="1" noshade><font face="Trebuchet MS, Arial, Helvetica, serif" size="2">Ummmmmmm as far as I could tell it IS a DOS program already. Isn't it? Or did I miss the Win version someplace? Cause that's what I need.</font><hr width="100%" size="1" noshade></BLOCKQUOTE>
I believe it's a Win32 Console program, like Zennode.
------------------
-DarkWolf
Doom_Dude
June 1st, 2003, 03:07 PM
<BLOCKQUOTE><font size="1" face="Trebuchet MS, Arial, Helvetica, serif">quote:</font><hr width="100%" size="1" noshade><font face="Trebuchet MS, Arial, Helvetica, serif" size="2">I believe it's a Win32 Console program, like Zennode.</font><hr width="100%" size="1" noshade></BLOCKQUOTE>
Oh ok. I followed what it said in the txt file but I kept getting errors with it.
Anyhow I grabbed that Alotroph? program off Relliks site. http://forums.newdoom.com/UBB/wink.gif
------------------
Vilecore@The Megawad (http://megawad.newdoom.com)
http://megawad.newdoom.com/sig/vilesig1.GIF
The NewdooM Community Project (http://megawad.newdoom.com/ndcp)
Doom_Dude
June 1st, 2003, 03:25 PM
YAY!!!!!!! I finally got my script working! Thanx to Aliotroph?'s little program.
http://forums.newdoom.com/UBB/smilies/cwm35.gif
Now to figure out how to spawn crap. http://forums.newdoom.com/UBB/wink.gif
------------------
Vilecore@The Megawad (http://megawad.newdoom.com)
http://megawad.newdoom.com/sig/vilesig1.GIF
The NewdooM Community Project (http://megawad.newdoom.com/ndcp)
Agent Spork
June 1st, 2003, 03:32 PM
lol http://forums.newdoom.com/UBB/smilies/cwm27.gif
Doom_Dude
June 1st, 2003, 03:37 PM
Vile Arena coming soon Spork. http://forums.newdoom.com/UBB/wink.gif j/k lol
------------------
Vilecore@The Megawad (http://megawad.newdoom.com)
http://megawad.newdoom.com/sig/vilesig1.GIF
The NewdooM Community Project (http://megawad.newdoom.com/ndcp)
Agent Spork
June 1st, 2003, 03:53 PM
I could probably make a map like that in about 10 minutes http://forums.newdoom.com/UBB/smile.gif
Rellik_jmd
June 1st, 2003, 04:08 PM
That little program is awesome isn't it D_DUDE? I've used if for so many things besides doom editing. I just gotta get him or someone else to make me a new one with a couple small added features. http://forums.newdoom.com/UBB/smile.gif
------------------
DOOM Legacy Website Guy (http://legacy.newdoom.com/)
Webmaster The Legacy Editing Resource (http://legacy.newdoom.com/der/).
Webmaster Discharge! DeathMatch Level Reviews (http://www.telusplanet.net/public/daewoo/server/).
Doom_Dude
June 1st, 2003, 04:31 PM
Yeah it's damned cool!
Hey Rellik! I was trying out some of your FS tutorial stuffage on spawning things. In your tut it says:
spawn(TROOPER, 100, 200, 0, 300);
If I put 'TROOPER' in my FS it says 'unknown variable' in the console when I cross the trig. I looked in the Things.txt off your site and changed 'TROOPER' to the number '1' and it worked. Did they change the code or is that an error in the Tut? Might wanna fix that unless Trooper does work and I'm doing something weird.
Hey Spork what are you designing now by the way? I played some of your Cyber Arena stuff and it's pretty cool. Like to see you do some non-arena SP maps now. http://forums.newdoom.com/UBB/smile.gif
It sucks I can't save in Cyber Arena II. What's up with that by the way? I've noticed that in othe FS maps as well. :/
------------------
Vilecore@The Megawad (http://megawad.newdoom.com)
http://megawad.newdoom.com/sig/vilesig1.GIF
The NewdooM Community Project (http://megawad.newdoom.com/ndcp)
Rellik_jmd
June 1st, 2003, 04:43 PM
Didja include the things.h file? The begining of the script section should look like this:
<BLOCKQUOTE><font size="1" face="Trebuchet MS, Arial, Helvetica, serif">quote:</font><hr width="100%" size="1" noshade><font face="Trebuchet MS, Arial, Helvetica, serif" size="2">[Scripts]
include("things.h");
script 8
...</font><hr width="100%" size="1" noshade></BLOCKQUOTE>
I'll have to go and check over the editing page cuz I think I forgot to tell people to do that. http://forums.newdoom.com/UBB/tongue.gif
EDIT: Yup, forgot to do that, Sorry Darren. http://forums.newdoom.com/UBB/smile.gif All fixed now including the incorrectly named sprite frame error.
------------------
DOOM Legacy Website Guy (http://legacy.newdoom.com/)
Webmaster The Legacy Editing Resource (http://legacy.newdoom.com/der/).
Webmaster Discharge! DeathMatch Level Reviews (http://www.telusplanet.net/public/daewoo/server/).
Doom_Dude
June 1st, 2003, 05:30 PM
LOL. No prob Rellik! No I didn't know about that xtra bit you just posted.
whats the ... part do?
I do however have the [scripts] part in my script as Pate pointed out earlier.
[edit] Are you sure that's right? When I add that xtra part I hear the player screaming at the start of the map. lol
------------------
Vilecore@The Megawad (http://megawad.newdoom.com)
http://megawad.newdoom.com/sig/vilesig1.GIF
The NewdooM Community Project (http://megawad.newdoom.com/ndcp)
DarkWolf
June 1st, 2003, 05:38 PM
I think he meant etc, or something similar.
At any rate, you can use other constants too when scripting. You can declare them as such:
const NAME = value;
For example:
const DOORSPEED = 8;
const MESSAGE = "Billy Bob";
It's a good idea to declare them outside your scripts so they're global. A handy constant to define is PI.
------------------
-DarkWolf
Rellik_jmd
June 1st, 2003, 06:13 PM
Yeah the "..." is just to say "this is where da rest of yer crap goes" http://forums.newdoom.com/UBB/tongue.gif Don't worry DUDE, the beginning is tough but once you nail down the basics it starts to make sense. http://forums.newdoom.com/UBB/smile.gif
------------------
DOOM Legacy Website Guy (http://legacy.newdoom.com/)
Webmaster The Legacy Editing Resource (http://legacy.newdoom.com/der/).
Webmaster Discharge! DeathMatch Level Reviews (http://www.telusplanet.net/public/daewoo/server/).
DarkWolf
June 1st, 2003, 06:19 PM
It's good to see he's at least tried it. I remember not too long ago he wouldn't touch it with a 10ft pole.
------------------
-DarkWolf
Doom_Dude
June 1st, 2003, 07:13 PM
<BLOCKQUOTE><font size="1" face="Trebuchet MS, Arial, Helvetica, serif">quote:</font><hr width="100%" size="1" noshade><font face="Trebuchet MS, Arial, Helvetica, serif" size="2">It's good to see he's at least tried it. I remember not too long ago he wouldn't touch it with a 10ft pole.</font><hr width="100%" size="1" noshade></BLOCKQUOTE>
LOL@10ft pole! That's true though.
Well what happened is I started making this new Uac base level with 3D floors and some boom linetype stuff on Saturday. I really felt like doing more 3D floor stuff after doing that Underhalls map so I started this new map. I had Rellik's tutorials printed off from 3 weeks ago. So while I was mapping this morning I figured I should get the tuts out and see if I could do a small script because I wanted to spawn a keycard.
Ambient sounds..... are they hard to put in a map? I know somebody posted a script for it someplace. I thought it was in the NDCP forum but can't find it.
------------------
Vilecore@The Megawad (http://megawad.newdoom.com)
http://megawad.newdoom.com/sig/vilesig1.GIF
The NewdooM Community Project (http://megawad.newdoom.com/ndcp)
DarkWolf
June 1st, 2003, 07:27 PM
There's an example on my page.
------------------
-DarkWolf
Doom_Dude
June 1st, 2003, 07:36 PM
Ok cool DarkWolf I found it. http://forums.newdoom.com/UBB/wink.gif
------------------
Vilecore@The Megawad (http://megawad.newdoom.com)
http://megawad.newdoom.com/sig/vilesig1.GIF
The NewdooM Community Project (http://megawad.newdoom.com/ndcp)
Aliotroph?
June 1st, 2003, 11:30 PM
Bloody amazing how the VB program I made in 10 min while sitting in a Lay-Z-Boy chair is the one people like. LOL
So what do you want in it Rellik? I was thinking of slapping a more advanced one together anyway since Big_Al made one in a hurry that's technically better. I was gonna do one that lets you choose files and such.
------------------
"Once in a while a programmer really writes something he's proud of, a slick, elegant, blazingly fast routine that stands as a benchmark against which other code will be judged by. However, this is not the case with TED's fill routine. This slow, stupid algorithm will casually fill one plane of data in a painfully creeping manner. Press ESC when it gets confused." - John Romero on TED (Tile EDitor)
Aliotroph?.postCount++;
Doom_Dude
June 2nd, 2003, 05:03 AM
Aliotroph? your program should be in the Legacy zip methinks as an alternative to that other jobby. http://forums.newdoom.com/UBB/biggrin.gif
------------------
Vilecore@The Megawad (http://megawad.newdoom.com)
http://megawad.newdoom.com/sig/vilesig1.GIF
The NewdooM Community Project (http://megawad.newdoom.com/ndcp)
Rellik_jmd
June 2nd, 2003, 07:30 AM
Or it should atleast be in the editing package. Hmm, I'm gonna have to update that too I think.
Item # 402 on To Do list...
http://forums.newdoom.com/UBB/tongue.gif
------------------
DOOM Legacy Website Guy (http://legacy.newdoom.com/)
Webmaster The Legacy Editing Resource (http://legacy.newdoom.com/der/).
Webmaster Discharge! DeathMatch Level Reviews (http://www.telusplanet.net/public/daewoo/server/).
Doom_Dude
June 2nd, 2003, 05:04 PM
Hell yeah, write this stuff down! http://forums.newdoom.com/UBB/wink.gif
------------------
Vilecore@The Megawad (http://megawad.newdoom.com)
http://megawad.newdoom.com/sig/vilesig1.GIF
The NewdooM Community Project (http://megawad.newdoom.com/ndcp)
Aliotroph?
June 2nd, 2003, 06:14 PM
It can't be an alternative because it still uses that other jobby. It just runs that thing through a batch file Rellik was already using. What I ought to do is get the code for that other one (the better version that Pate made) and learn VC++ and build a real windows version.
On the other hand, making a more generalized program that can launch a variety of batch files has it's advantages too. Ack, too much to do.
------------------
"Once in a while a programmer really writes something he's proud of, a slick, elegant, blazingly fast routine that stands as a benchmark against which other code will be judged by. However, this is not the case with TED's fill routine. This slow, stupid algorithm will casually fill one plane of data in a painfully creeping manner. Press ESC when it gets confused." - John Romero on TED (Tile EDitor)
Aliotroph?.postCount++;
Doom_Dude
June 2nd, 2003, 07:13 PM
Well it should be included with it then. I just now got back to my script stuff for a minute. I remembered what Rellik said earlier about that things.h jobby.
The TROOPER bit was right afterall of course.
<BLOCKQUOTE><font size="1" face="Trebuchet MS, Arial, Helvetica, serif">code:</font><hr width="100%" size="1" noshade><pre>
//Doom_Dudes Fraggle Jobby
[scripts]
include("things.h");
//spawn chaingun on 3D floor
script 22
{
spawn(CHAINGUN, 96, -224, 90, -16);
}
</pre><hr width="100%" size="1" noshade></BLOCKQUOTE>
------------------
Vilecore@The Megawad (http://megawad.newdoom.com)
http://megawad.newdoom.com/sig/vilesig1.GIF
The NewdooM Community Project (http://megawad.newdoom.com/ndcp)
Aliotroph?
June 3rd, 2003, 12:03 AM
I don't see anything in that script about a trooper.
------------------
"Once in a while a programmer really writes something he's proud of, a slick, elegant, blazingly fast routine that stands as a benchmark against which other code will be judged by. However, this is not the case with TED's fill routine. This slow, stupid algorithm will casually fill one plane of data in a painfully creeping manner. Press ESC when it gets confused." - John Romero on TED (Tile EDitor)
Aliotroph?.postCount++;
Pate
June 3rd, 2003, 03:16 AM
The source to my add_fs.exe comes with the package. If Legacy's version does not have it, just grab it from my site.
------------------
Tired of crappy Doom editors? So was I, that's why I'm coding my own (http://www.hut.fi/~jpakkane/why/).
Doom_Dude
June 3rd, 2003, 05:16 AM
<BLOCKQUOTE><font size="1" face="Trebuchet MS, Arial, Helvetica, serif">quote:</font><hr width="100%" size="1" noshade><font face="Trebuchet MS, Arial, Helvetica, serif" size="2">I don't see anything in that script about a trooper.</font><hr width="100%" size="1" noshade></BLOCKQUOTE>
Oh yeah I changed it, obviously. http://forums.newdoom.com/UBB/smilies/cwm12.gif
------------------
Vilecore@The Megawad (http://megawad.newdoom.com)
http://megawad.newdoom.com/sig/vilesig1.GIF
The NewdooM Community Project (http://megawad.newdoom.com/ndcp)
Hurdler
June 3rd, 2003, 10:43 AM
Legacy uses Pate's version of add_fs (at least since 1.40)
------------------
Member of the DooM Legacy Team
Doom_Dude
June 4th, 2003, 05:21 PM
Yeah and it works great thank to Pate for that and to Aliotroph? as well for his Pate assisted thinghy. http://forums.newdoom.com/UBB/wink.gif
------------------
Vilecore@The Megawad (http://megawad.newdoom.com)
http://megawad.newdoom.com/sig/vilesig1.GIF
The NewdooM Community Project (http://megawad.newdoom.com/ndcp)
SavageMessiah
June 9th, 2003, 05:17 PM
plugplugplugplugplug . http://forums.newdoom.com/UBB/smilies/cwm4.gif
Alio, you could always just use my program, my new version allows you to run progs without having to go through the pointy clicky bits. I still haven't uploaded the update though.
------------------
http://members.lycos.co.uk/lardboard/images/eyeball2.jpg (http://members.lycos.co.uk/lardboard)
Aliotroph?
June 9th, 2003, 10:56 PM
That seems a bit excessive for running scripts. http://forums.newdoom.com/UBB/wink.gif
------------------
"Once in a while a programmer really writes something he's proud of, a slick, elegant, blazingly fast routine that stands as a benchmark against which other code will be judged by. However, this is not the case with TED's fill routine. This slow, stupid algorithm will casually fill one plane of data in a painfully creeping manner. Press ESC when it gets confused." - John Romero on TED (Tile EDitor)
Aliotroph?.postCount++;
MR_ROCKET
June 10th, 2003, 03:58 PM
dont worry dd , im still a fraggle noob also, although im gettin a little bit better heh..we'r in the same boat man..
i use xwe to install scripts , 3 clicks dont have to type anything in ,baddaboom baddabing script in wad :P
if you end up using xwe though , just use it to edit dehack , fraggle , and merg wads.. nothing more , cause xwe can screw up textures and sound..
Doom_Dude
June 10th, 2003, 04:59 PM
I've inserted 368 custom textures and 205 flats into my Vilecore resource wad using XWE and it works great. http://forums.newdoom.com/UBB/tongue.gif If it wasn't for XWE id be screwed from adding Textures to my maps because Wintex never worked for me...
As far as flats go you have to save each as a doom flat under the 'Image' menu otherwise it won't be tiled right which appears as random garbage in the game..
I also figured out how to edit my FS with XWE after inserting it with Pate's jobby. I click on the map01 (or whatever map) and then go up to 'entry' and click on 'view raw data'
------------------
Vilecore@The Megawad (http://megawad.newdoom.com)
http://megawad.newdoom.com/sig/vilesig1.GIF
The NewdooM Community Project (http://megawad.newdoom.com/ndcp)
MR_ROCKET
June 10th, 2003, 07:01 PM
oh really , ok well i'll check out the texture loading a bit better then http://forums.newdoom.com/UBB/tongue.gif doh cause what lead me to think it was corrupting the textures was what it did with the flats..- heh i stopped there..
you can insert the script in xwe by loading the map , click on the map01 header , goto entry , replace , select your script , ok it and its in the map http://forums.newdoom.com/UBB/smile.gif
MR_ROCKET
June 10th, 2003, 07:17 PM
yea well i want 3d barrels floors that explode from under you while running across !!!
oops wrong topic http://forums.newdoom.com/UBB/smile.gif
Doom_Dude
June 10th, 2003, 09:30 PM
Hehe ok Mr_Rocket!
I'll check out that FS insertion with XWE tip sometime later. I think me needs sleep again. http://forums.newdoom.com/UBB/wink.gif
------------------
Vilecore@The Megawad (http://megawad.newdoom.com)
http://megawad.newdoom.com/sig/vilesig1.GIF
The NewdooM Community Project (http://megawad.newdoom.com/ndcp)
vBulletin® v3.8.5, Copyright ©2000-2013, Jelsoft Enterprises Ltd.