Errors with LPC Code using the latest LDMUD Driver LDMUD LDMud 3.6.8 (3.6.8) (release)

3 views
Skip to first unread message

Rodney Quaye

unread,
Jan 6, 2026, 7:04:15 AM (9 days ago) Jan 6
to LDMud Talk
Hi!

Could anyone help me with these errors please?

I am getting these errors:


-----//-----
2026.01.06 11:59:52 generic/living.c line 1468: Function call result must be casted due to pragma strict_types before end of line.
2026.01.06 11:59:52 generic/living.c line 1469: Function call result must be casted due to pragma strict_types before end of line.
-----//-----

from these lines in the file living.c:

-----//-----
        ob=filter_array( (object*) (all_inventory(here) - ({ this_object() })),
                         #'living );
        ob=filter_array(ob, "query_real_name");
-----//-----

I am also getting this error:

2026.01.06 11:59:52 include/terrains.h line 199: Invalid character sequence at byte 32.

from this line in the file terrains.h:

-----//-----

#define VALID_OUTLINES "-\\]!\"£%$^&*()_+= {};:@'#~?.><,\\\\/|`\
abcdefghijklmnopqrstuvwxyz\
ACDEFGHIJKLMNOPQSTUWYZ\
0123456789"

-----//-----


Thanks for your help!

Rod.

Stephan Weinberger

unread,
Jan 6, 2026, 9:23:36 AM (9 days ago) Jan 6
to ldmud...@googlegroups.com
Hi Rodney!

On 2026-01-06 13:04, Rodney Quaye wrote:
>
> -----//-----
> 2026.01.06 11:59:52 generic/living.c line 1468: Function call result
> must be casted due to pragma strict_types before end of line.
> 2026.01.06 11:59:52 generic/living.c line 1469: Function call result
> must be casted due to pragma strict_types before end of line.
> -----//-----
>
> from these lines in the file living.c:
>
> -----//-----
>         ob=filter_array( (object*) (all_inventory(here) - ({
> this_object() })),
>                          #'living );
>         ob=filter_array(ob, "query_real_name");
> -----//-----


I presume "ob" is declared as "object* ob;", is it? In this case the
result of filter_array() needs to be typecast, since it is defined as
returning "mixed*".


>
> I am also getting this error:
>
> 2026.01.06 11:59:52 include/terrains.h line 199: Invalid character
> sequence at byte 32.
>
> from this line in the file terrains.h:
>
> -----//-----
>
> #define VALID_OUTLINES "-\\]!\"£%$^&*()_+= {};:@'#~?.><,\\\\/|`\
> abcdefghijklmnopqrstuvwxyz\
> ACDEFGHIJKLMNOPQSTUWYZ\
> 0123456789"
>
> -----//-----


This is likely because of the file's character encoding not matching the
H_FILE_ENCODING driver hook.


Hope that helps,
  Stephan


Gnomi

unread,
Jan 6, 2026, 4:21:36 PM (9 days ago) Jan 6
to ldmud...@googlegroups.com
Hello Rodney,

Rodney Quaye wrote:
> I am getting these errors:
>
>
> -----//-----
> 2026.01.06 11:59:52 generic/living.c line 1468: Function call result must
> be casted due to pragma strict_types before end of line.
> 2026.01.06 11:59:52 generic/living.c line 1469: Function call result must
> be casted due to pragma strict_types before end of line.
> -----//-----

When using pragma strict_types you need to cast (either ({type}) or (type))
the result of a call_other/_direct/_strict to the expected type (and only
of those, other efuns don't have this requirement).

> from these lines in the file living.c:
>
> -----//-----
> ob=filter_array( (object*) (all_inventory(here) - ({ this_object()
> })),
> #'living );
> ob=filter_array(ob, "query_real_name");
> -----//-----

However these lines don't contain any obvious call_others. But filter_array()
is not an efun anymore. Is it a simul-efun, lfun or macro call?

Greetings,
Gnomi.
Reply all
Reply to author
Forward
0 new messages