Hello
I have a problem using a header in xternal/games section.
Yesterday I made it work and it did show proper but today it won't do.
To explain, I have a 'XtrnProgLst.hdr' in CTRL dir (9 points length ansi renamed to .hdr) and my text.dat entry looks like this -
'"@INCLUDE:XtrnProgLst.hdr@" 380 XtrnProgLstHdr "\1h\1wNum \1h|\1h\1b Name " 381 XtrnProgLstTitles "\1h-#-#-#-##-#-#-#-#-#-#-#-#-#-#-#-#-#-#- " 382 XtrnProgLstUnderline "\1h\1w%3u | \1h\1r%-25.25s\1h " 383 XtrnProgLstFmt "\r\1h\1bSelect the number or \1w~Q\1h\1ruit: \1h" 384 WhichXtrnProg "\r\n%s is currently running %s on node %d.\r\n" 385 UserRunningXtrn "\r\nTry again later.\r\n\r\n"'
(don't mind ' at beginning and end I put it here only, just in case :) )
It worked yesterday, no problems, shows the header--all good.
Today it simply shows "@INCLUDE:XtrnProgLst.hdr@" and the games list below as usual so you can in fact play them but it does not show header, just the above 'include' text.
I did not change anything since yesterday, mind.
Do you know if you're using the hard-coded external program logic (i.e. invoked with the Baja "xtrn_section" function or JS bbs.xtrn_sec() method) or if you're using the exec/xtrn_sec.js external program menu implementation?
However, if using xtrn_sec.js, you can always *modify* it to display whatever header you like, without *any* text.dat changes at all. Copy exec/xtrn_sec.js to your mods directory and edit to your liking.
Re: Text.dat header problem
By: Digital Man to Lobo on Tue Dec 06 2016 01:37 pm
Do you know if you're using the hard-coded external program logic (i.e. invoked with the Baja "xtrn_section" function or JS bbs.xtrn_sec() method) or if you're using the exec/xtrn_sec.js external program menu implementation?
I am using exec/xtrn_sec.js, correct.
However, if using xtrn_sec.js, you can always *modify* it to display whatever header you like, without *any* text.dat changes at all. Copy exec/xtrn_sec.js to your mods directory and edit to your liking.
OK, will try that. So I should put back the 'default' 380 line as it was, back
into the text.dat (just in case?) and move xtrn_sec.js to mods.
Just one detail, I see reference in xtrn_sec about header under -
'if(file_exists(system.text_dir + "menu/xtrn" +
(xtrn_area.sec_list[xsec].number+1) + ".asc"))'
If that is correct line I'm looking at, I would have to create a file simply
called 'xtrn.asc' inside 'menu/ ', is that correct?
Or do I have to write the actual name of asc inside xtrn_sec.js?
| Sysop: | Winzlo |
|---|---|
| Location: | Minnesota, USA |
| Users: | 11 |
| Nodes: | 16 (0 / 16) |
| Uptime: | 495938:58:16 |
| Calls: | 82 |
| Files: | 1,070 |
| D/L today: |
27 files (11,920K bytes) |
| Messages: | 286,963 |