Welcome to the Builder Academy

Question medit - code assistance

More
10 Feb 2018 12:30 #7575 by thomas
Replied by thomas on topic medit - code assistance
You need a null check before the call:
Code:
if (MCMD(ch, subcmd).func != NULL) check = (*MCMD(ch, subcmd).func)(ch, 0, strcpy(actbuf, ""), MCMD(ch, subcmd).num1, MCMD(ch, subcmd).num2, MCMD(ch, subcmd).num3, MCMD(ch, subcmd).num4, MCMD(ch, subcmd).num5, ch);

Please Log in or Create an account to join the conversation.

More
10 Feb 2018 13:47 #7576 by cunning
Replied by cunning on topic medit - code assistance
That is one of my spec proc calls. That is telling the mobile check your list of spec procs, if your good to fire, fire away.

Please Log in or Create an account to join the conversation.

More
10 Feb 2018 13:52 - 10 Feb 2018 22:08 #7577 by cunning
Replied by cunning on topic medit - code assistance
SOLVED!

I found that i did not provide one of my values needed.

I saw what Thomas said, and noticed that in my new command i was missing my function assignment.

$31 = {command = 80 'N', procs = 51, func = 0x0, freq = 100, name = 0x0, run_type = 2, term = 1, num1 = 100, num2 = 0, num3 = 0, num4 = 0, num5 = 0,
internal = 6, line = 5, next = 0x0}

Once i saw that i knew what to do. Slight over site on my part. Now i can edit procs on the fly and save them out. Very useful when you have 50 special procedures on a mobile.
Last edit: 10 Feb 2018 22:08 by cunning. Reason: updated function

Please Log in or Create an account to join the conversation.

More
23 Mar 2018 15:25 #7766 by lacrc
Replied by lacrc on topic medit - code assistance
@WhiskyTest
I know this is an old post but, since you mentioned you made a patch for this, do you have a link for it? I tried searching for it but failed miserably, sorry. :/

Please Log in or Create an account to join the conversation.

More
24 Mar 2018 17:30 - 24 Mar 2018 17:32 #7788 by cunning
Replied by cunning on topic medit - code assistance
I do not have a patch for our spec procs. They are unique to JediMUD.

Now if you want to go that direction, I can certainly let you take a peak on our dev port to see what they look like. I can help and give pointers, but I would be in deep do do by the IMP and existing Admin if i gave out that code as a snippet. Though I am going to remove the object spec procs and replace with triggers in the next few weeks.

Right now the CCIE written is coming up for me and I need to recert that in a few weeks.
Last edit: 24 Mar 2018 17:32 by cunning.

Please Log in or Create an account to join the conversation.

More
25 Mar 2018 00:57 #7796 by lacrc
Replied by lacrc on topic medit - code assistance
Nah man don't worry about it!
I thought that there was something done that was public out there haha, just something that I could base off.
But no sweat, I'ma give it a go later! :)
Thanks anyway!!

Please Log in or Create an account to join the conversation.

Time to create page: 0.208 seconds