Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ PennMUSH ➜ Compiling the server ➜ Win32 Penn & compiling help files

Win32 Penn & compiling help files

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Krenath   USA  (76 posts)  Bio
Date Sun 19 Jan 2003 01:30 AM (UTC)
Message
PennMUSH comes with scripts intended to recompile and reindex help files.

Unfortunately for me, those are perl scripts intended to be run under *nix.

Does anyone know of any preexisting Win32 scripts, batch files, or utilities which can handle the help and news files?

- Krenath from
bDv TrekMUSH
ATS TrekMUSH
TNG TrekMUSE
TOS TrekMUSE
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #1 on Sun 19 Jan 2003 02:36 AM (UTC)
Message
Years ago when I ported PennMUSH to Win32 I added in the compilation of help files into the main executable. It should still be there.

Have a look in filecopy.c, see these lines:

ConcatenateFiles("txt\\hlp\\*.hlp", "txt\\help.txt");
ConcatenateFiles("txt\\nws\\*.nws", "txt\\news.txt");
ConcatenateFiles("txt\\evt\\*.evt", "txt\\events.txt");
ConcatenateFiles("txt\\rul\\*.rul", "txt\\rules.txt");
ConcatenateFiles("txt\\idx\\*.idx", "txt\\index.txt");

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Krenath   USA  (76 posts)  Bio
Date Reply #2 on Sun 19 Jan 2003 08:34 PM (UTC)
Message
Hm. Based on that, I'd think that all one would have to do is drop a new help file in that directory and then type @readcache (or something) in the MUSH in order to load the help files.

However, I dropped a copy of the ASpace help files (by Duckers) into the directory, then used @readcache, and then used @shutdown/reboot when @readcache. All of the above failed to add the ASpace topics to the help system.

Is there some reindexing step or other step that has to be performed that I might be missing?

- Krenath from
bDv TrekMUSH
ATS TrekMUSH
TNG TrekMUSE
TOS TrekMUSE
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #3 on Mon 20 Jan 2003 08:47 PM (UTC)
Message
Which directory? What file name exactly? It looks for files with specific suffices in certain directories.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Krenath   USA  (76 posts)  Bio
Date Reply #4 on Fri 21 Mar 2003 02:46 PM (UTC)
Message
Finally got my problem figured out, and went one better than that.

Diggign through the source, it seems that the lines in filecopy.c are only called on startup/reboot. When we modified the individual files in the pennmush\game\text\hlp directory, they would only get concatenated on a restart.

@readcache will read in new help files, but it only reads in the big, concatenated lump of help files.

Well, we could have simply used a copy command to concatenate the help files together and then use @readcache, but if we're going to use code to do this, it might as well be built in.

Inside the definition for the @Readcache command, I added the lines from filecopy.c and I can now update any of the individual help files and they appear in the MUSH as soon as I type @readcache.

This really helps prevent us from procrastinating updates to the help files. I'd really suggest it become a standard part of Penn.

- Krenath from
bDv TrekMUSH
ATS TrekMUSH
TNG TrekMUSE
TOS TrekMUSE
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


16,332 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.