Closed ke4peo closed 11 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,##)])])
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
Figured I'd add a TRACE of the Job System objects when I run +jobs. Thought it might help:
Jobs System - DEBUG set.
Jobs - %q0)]%R[u(#23/fun_display_header)][iter(u(#23/fun_get_jobs_list,%q0,%#),%R[u(#23/fun_display_job,##)])]%R[line()]) :
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
==========~~~==+
+==~====~~==============================~~~==+
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 ==========~~~==+
+==~====~~==============================~~~==+
Jobs - %q0)]%R[u(#23/fun_display_header)][iter(u(#23/fun_get_jobs_list,%q0,%#),%R[u(#23/fun_display_job,##)])]%R[line()]) =>
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
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.
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!
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.
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.
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!!
Cannot reproduce. Since the problem has been solved for ke4peo, I'm going to close this issue.
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.