Jump to content
  • 0

Help! Doom Builder Not Finding Script 3+


DiavoJinx

Question

Posted (edited)

Hoping someone can help me please... an odd problem arose tonight on a map I started working on this weekend.

GZDoom Builder 2 is not seeing any scripts passed the first two on the LineDef 80 Script Execute action.  The drop-down selector only shows the first 2 scripts, and I've added scripts after (#3 below, then testing by adding more) but none show up here, so I can't use them.

 

Usually with odd programming bugs, I've forgotten a semicolon or something so common & mundane... but I think I've got everything correct when comparing to previous levels I've made & scripted fine. (This certainly isn't my first script in ACS, so I'm stumped tonight.)

 

Below is the script for this map so far, and what Doom Builder is only showing me as options to select a script.

 

316xUfx.jpg --&-- o52nwDc.jpg

 

EDIT TO ADD:  If I try a named script instead of a number, no dice still.  Haven't found any useful information google searching.  It feels like I'm missing some little thing, but idk.

Edited by DiavoJinx

Share this post


Link to post

8 answers to this question

Recommended Posts

  • 0
Posted (edited)

UPDATE
May be a bug in GZDoom, idk...

I didn't solve it, but I have a work around for now.

I removed the line print (s:"cj\"No turning back now\""); and then GZDoom recognizes scripts below the one with that line.  Tested it in a few positions to confirm it was that exact line as a show-stopper.

Extra weird because in my previous map (Murder House) and that map in this multi-level WAD I used an identical print line with different words with no problems.

 

Right now I am simply doing without that text pop-up when a player presses Use on the door right behind them at the start. ;-)

If I really want to keep that fun addition, should work if I make it the very last script so I don't have to use anything under it.

Edited by DiavoJinx

Share this post


Link to post
  • 0

So \cj is used to change the on-screen text from red to silver within the print command, and \" is necessary to show a double quote in the on-screen text. Common in programming elsewhere to use a slash to "escape" the expected syntax and actually use that next character.

A print command needs to be print(s:"text here") with the text surrounded by double quotes.

 

Share this post


Link to post
  • 0
Posted (edited)

Is it the colour escape sequences or the escaped quotes that are breaking? If the latter, try a single quote for the in-text quotes, or maybe a character code for the quote? [Disclaimer: untested]

 

>>>  EDIT  <<<

It's not the double blank line is it?

Edited by smeghammer

Share this post


Link to post
  • 0

(Shouldn't be the double blank lines -- I do that in all my scripts for legibility and it hasn't ever affected anything.)

 

When I get home tonight I do need to try the most basic version of print command without getting fancy/extra with it, thanks yes.

Share this post


Link to post
  • 0
2 hours ago, DiavoJinx said:

Oh sweet, thank you!!  Will take a long when I'm home from work tonight.

You're welcome, doom builder now gets script #3 right and script #2 works somehow, hope it helps.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...