Welcome to the Builder Academy

Question Question about saving/loading

More
25 Apr 2014 23:49 #4866 by thomas
Just after loading it, in players.c, add a log line with info:
Code:
case 'G': if (!strcmp(tag, "Gold")) GET_GOLD(ch) = atoll(line); +{ + char out[100]; + sprintf(out, "found gold: %lld", GET_GOLD(ch)); + log(out); +} break;

This code block can be added anywhere you need to log the amount for testing.

(untested, but should work)

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

More
26 Apr 2014 00:02 - 26 Apr 2014 00:03 #4867 by Liko
Replied by Liko on topic Question about saving/loading

thomas wrote: Just after loading it, in players.c, add a log line with info:

Code:
case 'G': if (!strcmp(tag, "Gold")) GET_GOLD(ch) = atoll(line); +{ + char out[100]; + sprintf(out, "found gold: %lld", GET_GOLD(ch)); + log(out); +} break;

This code block can be added anywhere you need to log the amount for testing.

(untested, but should work)


Doesn't trigger the log at all. As soon as they log back in they are set back to 2.14b

Randian(0.0.0)
Owner/Developer
Last edit: 26 Apr 2014 00:03 by Liko.

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

More
26 Apr 2014 00:13 #4868 by Liko
Replied by Liko on topic Question about saving/loading
The be honest, I'm think it has to deal with int load_char..

Randian(0.0.0)
Owner/Developer

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

More
26 Apr 2014 01:13 #4869 by Liko
Replied by Liko on topic Question about saving/loading
Never mind this :P

Randian(0.0.0)
Owner/Developer

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

Time to create page: 0.327 seconds