Penn-Specific things you can do for Myrddin's BBS

Submitted by javelin on Mon, 2012-02-13 20:10

Myrddin's BBS assigns each post in it a unique id, which is stored as a base-36 number instead of the normal base 10. This is done because the ids of all posts someone has read are stored in an attribute on the player, and numbers in base 36 take fewer characters than base 10, so more can fit into the attribute before hitting the buffer limit.
In Penn 1.7.7p23, the baseconv() function was added for converting numbers between different bases. To use that function instead of the entirely softcoded conversion routines that come with the BBS, do the following:
Inside the Global BBS object should be an object named bbpocket. It has two attributes you need to change. The first, FN_B36-TO-B10, should be set to 'baseconv(%0, 36, 10)'. The second, FN_B10-TO-B36, should be set to 'ucstr(baseconv(%0, 10, 36))'. That's it.

2004-Jan-16 1:14pm shawnw