lynnfaraday / MUSH

MUSH Softcode and Utilities
8 stars 1 forks source link

+jobs list displaying all black #8

Closed ke4peo closed 11 years ago

ke4peo commented 12 years ago

Just did a fresh install on a new Pennmush 1.8.4 compile and I noticed that the list of jobs appears to either be all black text, or I messed up somehow. The list grows, when the installers add new jobs, but they don't seem to appear.

lynnfaraday commented 12 years ago

I'm looking into it. If you could please copy/paste the contents of FUN_DISPLAY_JOBS_LIST on the job functions object, that would help. For example, here is the default installed version, but it should be replaced with your DB#'s.

&FUN_DISPLAY_JOBS_LIST Jobs Function=localize([line_with_text(%0)]%R[u(#JOBS_FUN/fun_display_header)][iter(u(#JOBS_FUN/fun_get_jobs_list,%1,%2),%R[u(#JOBS_FUN/fun_display_job,##)])])

ke4peo commented 12 years ago

Posted on Github as well -

Here's the FUN_DISPLAY_JOBS_LIST from the Jobs Functions object on the game:

&FUN_DISPLAY_JOBS_LIST Jobs Functions=localize([line_with_text(%0)]%R[u(#23/fun_display_header)][iter(u(#23/fun_get_jobs_list,%1,%2),%R[u(#23/fun_display_job,##)])])

Additional functions just in case they might help -

&FUN_DISPLAYJOB Jobs Functions=[setq(7,before(%0,:))][setq(8,after(%0,:))][setq(9,xget(%q7,%q8))][iter(xget(#22,fields),padstr(u(FIELD[first(##,:)],after(%q8,_),%q9,name(%q7)),last(##,:)))]

&FUN_GET_JOBS_LIST Jobs Functions=sort_oldest(trim(squish(iter(lattr(#22/cat_),iter(lattr([xget(#22,##)]/JOB),switch(1,u(#23/fun_matches_filter,%0,%1,[xget(#22,##)],[itext(0)]),[xget(#22,##)]:[itext(0)])))))


On Mon, Jan 30, 2012 at 10:39 AM, lynnfaraday reply@reply.github.com wrote:

I'm looking into it.  If you could please copy/paste the contents of FUN_DISPLAY_JOBS_LIST on the job functions object, that would help.   For example, here is the default installed version, but it should be replaced with your DB#'s.

 &FUN_DISPLAY_JOBS_LIST Jobs Function=localize([line_with_text(%0)]%R[u(#JOBS_FUN/fun_display_header)][iter(u(#JOBS_FUN/fun_get_jobs_list,%1,%2),%R[u(#JOBS_FUN/fun_display_job,##)])])


Reply to this email directly or view it on GitHub: https://github.com/lynnfaraday/MUSH/issues/8#issuecomment-3722595

ke4peo commented 12 years ago

Figured I'd add a TRACE of the Job System objects when I run +jobs. Thought it might help:

Jobs System - DEBUG set.

24! isstaff(%#) :

24! %# => #3

24! isstaff(%#) => 1

24! pemit(%#,[setq(0,switch(hasattr(%#,jobs_filter),1,xget(%#,jobs_filter),all))][line_with_text(Filtered

Jobs - %q0)]%R[u(#23/fun_display_header)][iter(u(#23/fun_get_jobs_list,%q0,%#),%R[u(#23/fun_display_job,##)])]%R[line()]) :

24! %# => #3

24! [setq(0,switch(hasattr(%#,jobs_filter),1,xget(%#,jobs_filter),all))][line_with_text(Filtered

Jobs - %q0)]%R[u(#23/fun_display_header)][iter(u(#23/fun_get_jobs_list,%q0,%#),%R[u(#23/fun_display_job,##)])]%R[line()] :

24! setq(0,switch(hasattr(%#,jobs_filter),1,xget(%#,jobs_filter),all)) :

24! switch(hasattr(%#,jobs_filter),1,xget(%#,jobs_filter),all) :

24! hasattr(%#,jobs_filter) :

24! %# => #3

24! hasattr(%#,jobs_filter) => 0

24! switch(hasattr(%#,jobs_filter),1,xget(%#,jobs_filter),all) => all

24! setq(0,switch(hasattr(%#,jobs_filter),1,xget(%#,jobs_filter),all)) =>

24! line_with_text(Filtered Jobs - %q0) :

24! Filtered Jobs - %q0 => Filtered Jobs - all

24! line_with_text(Filtered Jobs - %q0) =>

+==~====~~======= Filtered Jobs - all ==========~~~==+

24! u(#23/fun_display_header) =>

24! iter(u(#23/fun_get_jobs_list,%q0,%#),%R[u(#23/fun_display_job,##)]) :

24! u(#23/fun_get_jobs_list,%q0,%#) :

24! %q0 => all

24! %# => #3

24! u(#23/fun_get_jobs_list,%q0,%#) => #18:JOB_1 #18:JOB_2

18:JOB_3 #18:JOB_4 #18:JOB_5 #16:JOB_6 #18:JOB_7 #18:JOB_8 #18:JOB_9

18:JOB_10 #18:JOB_11 #18:JOB_12 #18:JOB_13 #18:JOB_14 #18:JOB_15

18:JOB_16 #18:JOB_17 #18:JOB_18 #18:JOB_19 #18:JOB_20 #18:JOB_21

18:JOB_22 #18:JOB_23

24! %R[u(#23/fun_display_job,#18:JOB_1)] :

24! u(#23/fun_display_job,#18:JOB_1) =>

24! %R[u(#23/fun_display_job,#18:JOB_1)] =>

24! %R[u(#23/fun_display_job,#18:JOB_2)] :

24! u(#23/fun_display_job,#18:JOB_2) =>

24! %R[u(#23/fun_display_job,#18:JOB_2)] =>

24! %R[u(#23/fun_display_job,#18:JOB_3)] :

24! u(#23/fun_display_job,#18:JOB_3) =>

24! %R[u(#23/fun_display_job,#18:JOB_3)] =>

24! %R[u(#23/fun_display_job,#18:JOB_4)] :

24! u(#23/fun_display_job,#18:JOB_4) =>

24! %R[u(#23/fun_display_job,#18:JOB_4)] =>

24! %R[u(#23/fun_display_job,#18:JOB_5)] :

24! u(#23/fun_display_job,#18:JOB_5) =>

24! %R[u(#23/fun_display_job,#18:JOB_5)] =>

24! %R[u(#23/fun_display_job,#16:JOB_6)] :

24! u(#23/fun_display_job,#16:JOB_6) =>

24! %R[u(#23/fun_display_job,#16:JOB_6)] =>

24! %R[u(#23/fun_display_job,#18:JOB_7)] :

24! u(#23/fun_display_job,#18:JOB_7) =>

24! %R[u(#23/fun_display_job,#18:JOB_7)] =>

24! %R[u(#23/fun_display_job,#18:JOB_8)] :

24! u(#23/fun_display_job,#18:JOB_8) =>

24! %R[u(#23/fun_display_job,#18:JOB_8)] =>

24! %R[u(#23/fun_display_job,#18:JOB_9)] :

24! u(#23/fun_display_job,#18:JOB_9) =>

24! %R[u(#23/fun_display_job,#18:JOB_9)] =>

24! %R[u(#23/fun_display_job,#18:JOB_10)] :

24! u(#23/fun_display_job,#18:JOB_10) =>

24! %R[u(#23/fun_display_job,#18:JOB_10)] =>

24! %R[u(#23/fun_display_job,#18:JOB_11)] :

24! u(#23/fun_display_job,#18:JOB_11) =>

24! %R[u(#23/fun_display_job,#18:JOB_11)] =>

24! %R[u(#23/fun_display_job,#18:JOB_12)] :

24! u(#23/fun_display_job,#18:JOB_12) =>

24! %R[u(#23/fun_display_job,#18:JOB_12)] =>

24! %R[u(#23/fun_display_job,#18:JOB_13)] :

24! u(#23/fun_display_job,#18:JOB_13) =>

24! %R[u(#23/fun_display_job,#18:JOB_13)] =>

24! %R[u(#23/fun_display_job,#18:JOB_14)] :

24! u(#23/fun_display_job,#18:JOB_14) =>

24! %R[u(#23/fun_display_job,#18:JOB_14)] =>

24! %R[u(#23/fun_display_job,#18:JOB_15)] :

24! u(#23/fun_display_job,#18:JOB_15) =>

24! %R[u(#23/fun_display_job,#18:JOB_15)] =>

24! %R[u(#23/fun_display_job,#18:JOB_16)] :

24! u(#23/fun_display_job,#18:JOB_16) =>

24! %R[u(#23/fun_display_job,#18:JOB_16)] =>

24! %R[u(#23/fun_display_job,#18:JOB_17)] :

24! u(#23/fun_display_job,#18:JOB_17) =>

24! %R[u(#23/fun_display_job,#18:JOB_17)] =>

24! %R[u(#23/fun_display_job,#18:JOB_18)] :

24! u(#23/fun_display_job,#18:JOB_18) =>

24! %R[u(#23/fun_display_job,#18:JOB_18)] =>

24! %R[u(#23/fun_display_job,#18:JOB_19)] :

24! u(#23/fun_display_job,#18:JOB_19) =>

24! %R[u(#23/fun_display_job,#18:JOB_19)] =>

24! %R[u(#23/fun_display_job,#18:JOB_20)] :

24! u(#23/fun_display_job,#18:JOB_20) =>

24! %R[u(#23/fun_display_job,#18:JOB_20)] =>

24! %R[u(#23/fun_display_job,#18:JOB_21)] :

24! u(#23/fun_display_job,#18:JOB_21) =>

24! %R[u(#23/fun_display_job,#18:JOB_21)] =>

24! %R[u(#23/fun_display_job,#18:JOB_22)] :

24! u(#23/fun_display_job,#18:JOB_22) =>

24! %R[u(#23/fun_display_job,#18:JOB_22)] =>

24! %R[u(#23/fun_display_job,#18:JOB_23)] :

24! u(#23/fun_display_job,#18:JOB_23) =>

24! %R[u(#23/fun_display_job,#18:JOB_23)] =>

24! iter(u(#23/fun_get_jobs_list,%q0,%#),%R[u(#23/fun_display_job,##)]) =>

24! line() =>

+==~====~~==============================~~~==+

24! [setq(0,switch(hasattr(%#,jobs_filter),1,xget(%#,jobs_filter),all))][line_with_text(Filtered

Jobs - %q0)]%R[u(#23/fun_display_header)][iter(u(#23/fun_get_jobs_list,%q0,%#),%R[u(#23/fun_display_job,##)])]%R[line()] => +==~====~~======= Filtered Jobs - all ==========~~~==+

+==~====~~==============================~~~==+ +==~====~~======= Filtered Jobs - all ==========~~~==+

+==~====~~==============================~~~==+

24! pemit(%#,[setq(0,switch(hasattr(%#,jobs_filter),1,xget(%#,jobs_filter),all))][line_with_text(Filtered

Jobs - %q0)]%R[u(#23/fun_display_header)][iter(u(#23/fun_get_jobs_list,%q0,%#),%R[u(#23/fun_display_job,##)])]%R[line()]) =>

24! %0 => s

On Mon, Jan 30, 2012 at 10:46 AM, Chris Thompson ke4peo@gmail.com wrote:

Posted on Github as well -

Here's the FUN_DISPLAY_JOBS_LIST from the Jobs Functions object on the game:

&FUN_DISPLAY_JOBS_LIST Jobs Functions=localize([line_with_text(%0)]%R[u(#23/fun_display_header)][iter(u(#23/fun_get_jobs_list,%1,%2),%R[u(#23/fun_display_job,##)])])

Additional functions just in case they might help -

&FUN_DISPLAYJOB Jobs Functions=[setq(7,before(%0,:))][setq(8,after(%0,:))][setq(9,xget(%q7,%q8))][iter(xget(#22,fields),padstr(u(FIELD[first(##,:)],after(%q8,_),%q9,name(%q7)),last(##,:)))]

&FUN_GET_JOBS_LIST Jobs Functions=sort_oldest(trim(squish(iter(lattr(#22/cat_),iter(lattr([xget(#22,##)]/JOB),switch(1,u(#23/fun_matches_filter,%0,%1,[xget(#22,##)],[itext(0)]),[xget(#22,##)]:[itext(0)])))))


On Mon, Jan 30, 2012 at 10:39 AM, lynnfaraday reply@reply.github.com wrote:

I'm looking into it.  If you could please copy/paste the contents of FUN_DISPLAY_JOBS_LIST on the job functions object, that would help.   For example, here is the default installed version, but it should be replaced with your DB#'s.

 &FUN_DISPLAY_JOBS_LIST Jobs Function=localize([line_with_text(%0)]%R[u(#JOBS_FUN/fun_display_header)][iter(u(#JOBS_FUN/fun_get_jobs_list,%1,%2),%R[u(#JOBS_FUN/fun_display_job,##)])])


Reply to this email directly or view it on GitHub: https://github.com/lynnfaraday/MUSH/issues/8#issuecomment-3722595

ke4peo commented 12 years ago

Ok, I figured it out!!!!! When installed, the Jobs Database object doesn't have any default FIELDS set. Therefore the system sees the jobs and designates rows for them, but without fields it doesn't display any information. I set up a field for DateDue based on the example on the Wiki and it shows the due date. So I'm gonna go build a field list and will report back and close if completely fixed.

EDIT: Quick question: How do you set up multiple fields on the attribute? I've tried both a , and a ; and neither works.

ke4peo commented 12 years ago

Ok, closing the issue. I'm not sure where the import of the code went wrong, but it never imported the defaults fields from the .dec file. I manually added them in and viola.....it's working now. Thanks!

lynnfaraday commented 12 years ago

I'm going to reopen this and see if I can find some problem with the installer. It should have been installed for you. Thanks for the detailed decompile.

ke4peo commented 12 years ago

Works for me. If I have a moment tonight I'll fire up a blank database, remove the QUIET sets in the file, and import the code up to +jobs again. I'll post the results of the +jobs import and see if that will help identify where it failed.

ke4peo commented 12 years ago

Full text of install enclosed. I'm guessing it was either network lag or something gone wrong on the import of my other build. The test game import worked find and set the fields.


Beginning Jobs System Installation. Please wait until the Installation Complete message appears...

Creating Objects...

Created object JOBS_CMD with DB# #12.

Created object JOBS_FUN with DB# #13.

Created object JOBS_DB with DB# #14.

Created object JOBS_CMD_REQUEST with DB# #15.

Setting Object Attributes...

Jobs System(#12) - Use locked. Jobs System/ACONNECT - Set. Jobs System/CMD-+JOBS - Set. Jobs System/CMD-+JOBS-ALIAS - Set. Jobs System/CMD-+JOBS-ALL - Set. Jobs System/CMD-+JOBS-ASSIGN - Set. Jobs System/CMD-+JOBS-AVAIL - Set. Jobs System/CMD-+JOBS-CATCHUP - Set. Jobs System/CMD-+JOBS-CAT - Set. Jobs System/CMD-+JOBS-CATLIST - Set. Jobs System/CMD-+JOBS-CHANGECAT - Set. Jobs System/CMD-+JOBS-CLEAR - Set. Jobs System/CMD-+JOBS-CLOSE - Set. Jobs System/CMD-+JOBS-CLOSE-COMMENT - Set. Jobs System/CMD-+JOBS-COLLAPSE - Set. Jobs System/CMD-+JOBS-COMMENT - Set. Jobs System/CMD-+JOBS-ADD - Set. Jobs System/CMD-+JOBS-CREATE - Set. Jobs System/CMD-+JOBS-CREATE2 - Set. Jobs System/CMD-+JOBS-CREATE3 - Set. Jobs System/CMD-+JOBS-DELCAT - Set. Jobs System/CMD-+JOBS-DUE - Set. Jobs System/CMD-+JOBS-FILTER - Set. Jobs System/CMD-+JOBS-HANDLE - Set. Jobs System/CMD-+JOBS-CLAIM - Set. Jobs System/CMD-+JOBS-MAIL - Set. Jobs System/CMD-+JOBS-ME - Set. Jobs System/CMD-+JOBS-MINE - Set. Jobs System/CMD-+JOBS-NEW - Set. Jobs System/CMD-+JOBS-NEWCAT - Set. Jobs System/TR-UNINSTALL - Set. Jobs System/CMD-+JOBS-PRI - Set. Jobs System/CMD-+JOBS-STATUS - Set. Jobs System/CMD-+JOBS-TITLE - Set. Jobs System/CMD-+JOBS-VIEW - Set. Jobs System/CMD-+JOBS-VIEWMANY - Set. Jobs System/ISSTAFF - Set. Jobs System/STARTUP - Set. Jobs Functions/FUN_DO_COMMENT - Set. Jobs Functions/FUN_DO_HANDLE - Set. Jobs Functions/FUN_DO_CREATE - Set. Jobs Functions/FUN_DISPLAY_JOBS_LIST - Set. Jobs Functions/FUN_CREATE_JOB - Set. Jobs Functions/FUN_DISPLAY_HEADER - Set. Jobs Functions/FUN_DISPLAY_JOB - Set. Jobs Functions/FIELD_NUMBER - Set. Jobs Functions/FIELD_CATEGORY - Set. Jobs Functions/FIELD_TITLE - Set. Jobs Functions/FIELD_SUBMITTER - Set. Jobs Functions/FIELD_HANDLER - Set. Jobs Functions/FIELD_DUEDATE - Set. Jobs Functions/FIELD_STATUS - Set. Jobs Functions/FIELD_OVERDUE - Set. Jobs Functions/FUN_DISPLAY_JOB_LONG - Set. Jobs Functions/FUN_EXTRACT_DATA - Set. Jobs Functions/FUN_FIND_JOB - Set. Jobs Functions/FUN_FORMAT_DUEDATE - Set. Jobs Functions/FUN_DUE_STATUS - Set. Jobs Functions/FUN_FORMAT_SUBMITDATE - Set. Jobs Functions/FUN_GET_JOBS_LIST - Set. Jobs Functions/FUN_HAS_NEW_ACTIVITY - Set. Jobs Functions/FUN_MATCHES_FILTER - Set. Jobs Functions/FUN_REPLACE_DATA - Set. Jobs Functions/FUN_UPDATEACTIVITY - Set. Jobs Functions/SHELP+JOBS - Set. Jobs Functions/MORESHELP+JOBS_DISPLAY - Set. Jobs Functions/MORESHELP+JOBS_SETUP - Set. Jobs Functions/MORESHELP+JOBSSTATUS - Set. Jobs Functions/HELP+REQUEST - Set. Jobs Functions/ORDER - Set. Request System/CMD-+REQUEST-COMMENT - Set. Request System/CMD-+REQUEST-LIST - Set. Request System/CMD-+REQUEST-SUBMIT - Set. Request System/CMD-+REQUEST-VIEW - Set. Request System/STARTUP - Set. Setting up database numbers...

Jobs Database/DUEDATE_SECS - Set. Jobs Database/NEXT_JOB - Set. Jobs Database/STATUS_VALS - Set. Jobs Database/STATUS_VALS - visual set. Jobs Database/FIELDS - Set. Creating default categories...

Quote Finished. Huh? (Type "help" for help.) Huh? (Type "help" for help.) Huh? (Type "help" for help.) Huh? (Type "help" for help.) Huh? (Type "help" for help.) Huh? (Type "help" for help.) Huh? (Type "help" for help.)

Installation Complete!!

lynnfaraday commented 11 years ago

Cannot reproduce. Since the problem has been solved for ke4peo, I'm going to close this issue.