Jump to content
Eternal Lands Official Forums
Sign in to follow this  
jamesvm

Manu Item

Recommended Posts

No, and I am very happy it does not.

 

Last week I made 20.000 health essences.

 

Imagine the grow of the logfile with 20.000 times "You succesfully created a health essence"

Share this post


Link to post
Share on other sites
No, and I am very happy it does not.

 

Last week I made 20.000 health essences.

 

Imagine the grow of the logfile with 20.000 times "You succesfully created a health essence"

well i would like it too

so keep track all failer and susscessfulness

Share this post


Link to post
Share on other sites

Logs all server messages, that aren't being ignored. That is - it'll also log Harvest failed unless you're ignoring "Harvest" etc.

Share this post


Link to post
Share on other sites

hey got idea instead have output

you susscesful create  1 fire essence

you susscesful create  1 fire essence

 

you could have log how many fire ess made in row so tit would be

you suusscesful create  2 fire essence

so when click mix again it would just change from 2 to 3

and failed would writen under it

Share this post


Link to post
Share on other sites

It's possible but would be a very ugly hack. If the server message instead send an integer back containing the object ID (back with that discussion with objectid/imageid) and a 1 or a 0 if it was succesful or not, then it might actually be worthwhile.

Share this post


Link to post
Share on other sites
It's possible but would be a very ugly hack. If the server message instead send an integer back containing the object ID (back with that discussion with objectid/imageid) and a 1 or a 0 if it was succesful or not, then it might actually be worthwhile.

so are saying right now it give client 1 or 0 back to tell if creation was susscessful or not

Share this post


Link to post
Share on other sites

No, it's send as plain text.

 

You succesfully created 1 health essence.

Share this post


Link to post
Share on other sites
No, it's send as plain text.

 

You succesfully created 1 health essence.

oh

how do number off end pakage

cuase try get always look like this

You successfuly created 1 Fire Essence1

Share this post


Link to post
Share on other sites

Yea, you need the message length, which is also send with the package:

 

void process_message_from_server(unsigned char *in_data, int data_lenght)

 

If you want to use the raw text, put in a \0 at in_data[data_lenght]. The text is between &in_data[3] and &in_data[data_lenght]. Or do an strncmp

Share this post


Link to post
Share on other sites

There should be two log files - chat_log.txt and server_log.txt I have to remove harvest messages from

my chat_log.txt using grep -v grrr!

 

Regards.

Share this post


Link to post
Share on other sites

Index: elc/main.c
===================================================================
RCS file: /cvsroot/elc/elc/main.c,v
retrieving revision 1.39
diff -r1.39 main.c
107a108,109
>       if(chat_log != NULL)fclose(chat_log);//You didn't fclose this before?
>       if(server_log != NULL)fclose(server_log);
Index: elc/text.c
===================================================================
RCS file: /cvsroot/elc/elc/text.c,v
retrieving revision 1.32
diff -r1.32 text.c
25a26
> FILE  *server_log=NULL;
45a47,57
>       if (server_log == NULL && log_server)
>               {
>                       char server_log_file[100];
> #ifndef WINDOWS
>                       strcpy(server_log_file, configdir);
>                       strcat(server_log_file,"server_log.txt");
> #else
>                       strcpy(server_log_file,"server_log.txt");
> #endif
>                       server_log = fopen(server_log_file,"a");
>               }
64c76
<       if(!server_message || log_server)
---
>       if(!server_message)
66a79,84
>                       fflush(chat_log);
>               }
>       if(log_server)
>               {
>                       fwrite(str, j+1, 1, server_log);
>                       fflush(server_log);
68d85
<       fflush(chat_log);
Index: elc/text.h
===================================================================
RCS file: /cvsroot/elc/elc/text.h,v
retrieving revision 1.9
diff -r1.9 text.h
27a28,30
> extern FILE * chat_log;
> extern FILE * server_log;
>

Didn't try it out, but it should work.

Share this post


Link to post
Share on other sites

damn :P

 

:P

Share this post


Link to post
Share on other sites

wytter found another way around for created message for make stuf to put in log and to consuled

 

aaaaaah can't get 1 off ending of it manu massage

Edited by jamesvm

Share this post


Link to post
Share on other sites
wytter found another way around for created message for make stuf to put in log and to consuled

 

aaaaaah can't get 1 off ending of it manu massage

Try in_data[data_lenght-1]='\0'; then ;-)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×